/* UX Enhancements for Addiction & Ease of Use */
/* Version 2.0 - Enhanced Engagement */

/* ============================================
   1. PULSING & ATTENTION GRABBING BUTTONS
   ============================================ */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); transform: scale(1.03); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); transform: scale(1); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@keyframes shake-attention {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.btn-pulse {
    animation: pulse-gold 2s infinite;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000 !important;
    font-weight: bold;
    border: 2px solid #B8860B;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.btn-pulse:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: scale(1.08);
}

/* ============================================
   2. QUICK ACTION FLOATING MENU
   ============================================ */
.quick-actions {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.quick-actions.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.quick-action-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.quick-action-btn.qa-shop { background: linear-gradient(135deg, #3498db, #2980b9); }
.quick-action-btn.qa-donate { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.quick-action-btn.qa-roulette { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.quick-action-btn.qa-services { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

.quick-action-btn .qa-tooltip {
    position: absolute;
    right: 60px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.quick-action-btn:hover .qa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.quick-actions-toggle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
    position: fixed;
    bottom: 20px;
    right: 180px;
    z-index: 1000;
}

.quick-actions-toggle:hover {
    transform: rotate(90deg) scale(1.1);
}

.quick-actions-toggle.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: rotate(45deg);
}

/* ============================================
   3. ENHANCED NOTIFICATIONS & TOASTS
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    animation: slideInRight 0.4s ease;
    border-left: 4px solid #3498db;
}

.toast.toast-success { border-left-color: #2ecc71; }
.toast.toast-error { border-left-color: #e74c3c; }
.toast.toast-warning { border-left-color: #f39c12; }
.toast.toast-reward { border-left-color: #9b59b6; background: linear-gradient(135deg, rgba(155, 89, 182, 0.9), rgba(142, 68, 173, 0.9)); }

.toast i {
    font-size: 20px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 13px;
    opacity: 0.9;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* ============================================
   4. PROGRESS INDICATORS & LOADING
   ============================================ */
.progress-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    fill: transparent;
    stroke: #e0e0e0;
    stroke-width: 4;
}

.progress-ring-progress {
    fill: transparent;
    stroke: #2ecc71;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-ring-text {
    position: absolute;
    font-weight: bold;
    font-size: 12px;
}

/* Enchant Progress Bar Enhanced */
.enchant-progress-container {
    display: none;
    width: 100%;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
    height: 30px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 2px 5px rgba(0,0,0,0.3);
    position: relative;
}

.enchant-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    transition: width 0.1s linear;
    border-radius: 15px;
    position: relative;
}

.enchant-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    border-radius: 15px 15px 0 0;
}

.enchant-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 2;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   5. SHOP ENHANCEMENTS
   ============================================ */
.shop-pack {
    position: relative;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shop-pack:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    z-index: 10;
}

.badge-hot, .badge-best, .badge-new, .badge-sale {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 10px;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-hot { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.badge-best { background: linear-gradient(135deg, #f1c40f, #f39c12); color: #333; }
.badge-new { background: linear-gradient(135deg, #3498db, #2980b9); }
.badge-sale { background: linear-gradient(135deg, #2ecc71, #27ae60); }

/* Shop Item Hover Effect */
.shopPacks > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 3px;
}

.shopPacks > a:hover::before {
    opacity: 1;
}

/* ============================================
   6. ROULETTE ENHANCEMENTS
   ============================================ */
.roulette-spin-section .default.big,
#rouletteSpinSubmit {
    font-size: 20px !important;
    padding: 18px 40px !important;
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border: none !important;
    border-radius: 50px !important;
    box-shadow: 0 6px 0 #962d22, 0 10px 25px rgba(231, 76, 60, 0.4) !important;
    transition: all 0.15s ease !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.roulette-spin-section .default.big:hover:not(:disabled),
#rouletteSpinSubmit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #962d22, 0 15px 30px rgba(231, 76, 60, 0.5) !important;
}

.roulette-spin-section .default.big:active:not(:disabled),
#rouletteSpinSubmit:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #962d22 !important;
}

/* Jackpot Enhanced Glow */
.roulette-summary-card.jackpot {
    animation: jackpot-glow 3s infinite alternate;
    position: relative;
    overflow: hidden;
}

.roulette-summary-card.jackpot::before {
    content: '🏆';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes jackpot-glow {
    0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.3); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Reward Card Hover */
.roulette-reward-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roulette-reward-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ============================================
   7. STICKY CREDITS BAR (ENHANCED)
   ============================================ */
.sticky-credits {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 18px;
    border-radius: 50px;
    color: white;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.sticky-credits:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.15);
}

.sticky-credits i.fa-money {
    color: #f1c40f;
    font-size: 18px;
    animation: coin-spin 3s ease-in-out infinite;
}

@keyframes coin-spin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

.sticky-credits > span {
    color: #bbb;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sticky-credits > span > span.live-balance {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(90deg, #f1c40f, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-add-funds {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    animation: pulse-green 2s infinite;
}

.btn-add-funds:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
    background: linear-gradient(135deg, #27ae60, #219150);
}

/* ============================================
   8. SERVICES CARDS ENHANCEMENT
   ============================================ */
.service {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service:hover {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service > .title {
    position: relative;
}

.service > .title .costs {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(39, 174, 96, 0.9)) !important;
    border-radius: 25px !important;
    font-weight: bold;
    animation: pulse-green 3s infinite;
}

/* ============================================
   9. NAVIGATION IMPROVEMENTS
   ============================================ */
nav > a, nav > span > span {
    position: relative;
    overflow: hidden;
}

nav > a::before, nav > span > span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3498db, #9b59b6);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

nav > a:hover::before, nav > span > span:hover::before,
nav > a.actived::before, nav > span.actived > span::before {
    transform: scaleY(1);
}

/* Active menu item glow */
nav > a.actived, nav > span.actived > span {
    background: linear-gradient(to right, #a1a1a1, #b8b8b8) !important;
}

/* ============================================
   10. BALANCE UPDATE ANIMATION
   ============================================ */
@keyframes balance-update {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); color: #2ecc71; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.balance-updated {
    animation: balance-update 0.6s ease;
}

/* Debit animation */
@keyframes balance-debit {
    0% { transform: scale(1); }
    25% { transform: scale(0.9); color: #e74c3c; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.balance-debited {
    animation: balance-debit 0.6s ease;
}

/* ============================================
   11. CONFIRMATION DIALOGS ENHANCEMENT
   ============================================ */
#alerta {
    background: rgba(255,255,255,0.98) !important;
    border-radius: 15px !important;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3) !important;
    padding: 30px 35px !important;
    max-width: 450px;
}

#alerta .ok > div {
    border-radius: 25px !important;
    padding: 10px 25px !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
}

#alerta .ok > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#alerta .ok.sucesso > div {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    border: none !important;
}

#backblack {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px);
}

/* ============================================
   12. FORM ENHANCEMENTS
   ============================================ */
.formpadrao .camp input:focus,
.formpadrao .camp select:focus {
    background: #fffde7 !important;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.3);
    outline: none;
}

.formpadrao .camp input,
.formpadrao .camp select {
    transition: all 0.3s ease;
}

/* Submit buttons in forms */
input.default[type="submit"],
a.default.big {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input.default[type="submit"]:hover:not(:disabled),
a.default.big:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ============================================
   13. GAMIFICATION ELEMENTS
   ============================================ */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(241, 196, 15, 0.4);
}

.achievement-badge i {
    font-size: 14px;
}

.level-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

/* ============================================
   14. COUNTDOWN TIMER STYLES
   ============================================ */
.countdown-timer {
    display: inline-flex;
    gap: 8px;
    font-family: 'Segoe UI', monospace;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.1);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 50px;
}

.countdown-value {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

/* ============================================
   15. RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 1100px) {
    .sticky-credits {
        bottom: 10px;
        right: 10px;
        padding: 8px 14px;
    }
    
    .quick-actions-toggle {
        right: 140px;
        bottom: 10px;
        width: 45px;
        height: 45px;
    }
    
    .quick-actions {
        bottom: 70px;
        right: 10px;
    }
    
    .quick-action-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* ============================================
   16. SPECIAL EFFECTS
   ============================================ */
/* Confetti effect for rewards */
@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #f1c40f;
    top: 0;
    z-index: 9999;
    pointer-events: none;
    animation: confetti-fall 3s linear forwards;
}

.confetti:nth-child(2n) { background: #e74c3c; width: 8px; height: 8px; }
.confetti:nth-child(3n) { background: #3498db; width: 12px; height: 12px; }
.confetti:nth-child(4n) { background: #2ecc71; width: 6px; height: 6px; }
.confetti:nth-child(5n) { background: #9b59b6; width: 14px; height: 14px; }

/* Sparkle effect */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #f1c40f, 0 0 20px #f1c40f;
    animation: sparkle 1.5s ease-in-out infinite;
    pointer-events: none;
}

/* ============================================
   17. LOADER OVERLAY
   ============================================ */
#ux-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ux-loader-content {
    text-align: center;
    color: white;
}

.ux-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #f1c40f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ux-loader-text {
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   18. SERVICE LOADING OVERLAY ENHANCEMENT
   ============================================ */
#serviceLoadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
}

#serviceLoadingOverlay .message {
    background: white;
    padding: 30px 50px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: pulse-scale 1.5s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ============================================
   19. CHARACTER SELECTION ENHANCEMENT
   ============================================ */
.mult .selec > div {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.mult .selec > div:hover {
    transform: translateY(-5px) scale(1.05);
    z-index: 5;
}

.mult .selec > div.actived {
    transform: scale(1.1);
    z-index: 10;
}

.mult .selec > div::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mult .selec > div.actived::after {
    transform: translateX(-50%) scale(1);
}

/* ============================================
   20. DONATION BUTTON ENHANCEMENT
   ============================================ */
.btn-checkout,
.donate-card input[type="submit"] {
    position: relative;
    overflow: hidden;
}

.btn-checkout::before,
.donate-card input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-checkout:hover::before,
.donate-card input[type="submit"]:hover::before {
    left: 100%;
}

/* ============================================
   21. BREADCRUMB ENHANCEMENT
   ============================================ */
.breadcrumb {
    background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    padding: 12px 20px !important;
    border-radius: 8px;
    margin-bottom: 20px !important;
}

.breadcrumb li a {
    transition: all 0.2s ease;
}

.breadcrumb li a:hover {
    color: #3498db;
}

/* ============================================
   22. ANIMATED BALANCE COUNTER
   ============================================ */
.saldo .total span > span {
    display: inline-block;
    transition: all 0.3s ease;
}

/* ============================================
   23. HOVER CARD EFFECTS
   ============================================ */
.panel, .box, .card {
    transition: all 0.3s ease;
}

.panel:hover, .box:hover, .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ============================================
   24. TOOLTIP STYLES
   ============================================ */
.ux-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 200px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.ux-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.ux-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0,0,0,0.9);
}

/* ============================================
   25. SUCCESS/ERROR MESSAGE STYLING
   ============================================ */
.msg-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #28a745;
    color: #155724;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    animation: slideDown 0.3s ease;
}

.msg-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #dc3545;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   26. FOCUS STATES FOR ACCESSIBILITY
   ============================================ */
a:focus, button:focus, input:focus, select:focus {
    outline: 2px solid rgba(52, 152, 219, 0.5);
    outline-offset: 2px;
}

/* ============================================
   27. PRINT STYLES (hide non-essential)
   ============================================ */
@media print {
    .sticky-credits,
    .quick-actions,
    .quick-actions-toggle,
    .toast-container,
    nav {
        display: none !important;
    }
}

/* ============================================
   28. HIGH CONTRAST MODE SUPPORT
   ============================================ */
@media (prefers-contrast: high) {
    .btn-pulse {
        border: 3px solid #000;
    }
    
    .sticky-credits {
        border: 2px solid #fff;
    }
}

/* ============================================
   29. REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   30. DARK MODE ADJUSTMENTS (if user prefers)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .toast {
        background: rgba(40, 40, 50, 0.98);
    }
    
    #alerta {
        background: rgba(40, 40, 50, 0.98) !important;
        color: #fff;
    }
    
    #alerta .ok > div {
        background: #3498db !important;
    }
}