/* ==========================================================================
   iDevster - Glassmorphism & Neon Design System
   ========================================================================== */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-neon: #a855f7;
    --bg: #f5f3ff;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-backdrop: blur(16px) saturate(180%);
    --text: #0f172a;
    --text-light: #475569;
    --border: rgba(99, 102, 241, 0.18);
    --border-glow: rgba(168, 85, 247, 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07), inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);
    --shadow-neon: 0 0 20px rgba(99, 102, 241, 0.25);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --primary-light: rgba(99, 102, 241, 0.12);
    --bg-muted: rgba(241, 245, 249, 0.8);
}

:root.dark-mode {
    --bg: #070a13 !important;
    --card-bg: rgba(15, 23, 42, 0.68) !important;
    --card-backdrop: blur(20px) saturate(200%) !important;
    --text: #f8fafc !important;
    --text-light: #94a3b8 !important;
    --border: rgba(255, 255, 255, 0.12) !important;
    --border-glow: rgba(168, 85, 247, 0.5) !important;
    --primary: #818cf8 !important;
    --primary-hover: #a5b4fc !important;
    --primary-neon: #c084fc !important;
    --primary-light: rgba(129, 140, 248, 0.2) !important;
    --bg-muted: rgba(30, 41, 59, 0.7) !important;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
    --shadow-neon: 0 0 25px rgba(129, 140, 248, 0.3) !important;
}

.dark-mode .dark-hidden { display: none !important; }
.light-hidden { display: none !important; }
.dark-mode .light-hidden { display: block !important; }

* { box-sizing: border-box; }

body, .navbar, .card, .btn, .dropdown-content, .dropdown-trigger, .nav-links a, .form-group input, .form-group textarea, .flow-step-box {
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
                var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
}

:root.dark-mode body {
    background: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
                #070a13;
    background-attachment: fixed;
}

.container { max-width: 1060px; margin: 0 auto; padding: 2rem 1rem; }

.container { max-width: 1060px; margin: 0 auto; padding: 2rem 1rem; }

/* Sidebar Layout Option 1 - Dashboard Pro Style */
:root {
    --sidebar-width: 250px;
}

@media (min-width: 1025px) {
    body.has-sidebar {
        padding-left: var(--sidebar-width);
    }
    .mobile-top-header {
        display: none !important;
    }
    .sidebar-overlay {
        display: none !important;
    }
    .sidebar-close-btn {
        display: none !important;
    }
}

.app-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--card-bg);
    backdrop-filter: var(--card-backdrop);
    -webkit-backdrop-filter: var(--card-backdrop);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 10005;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.03);
}

:root.dark-mode .app-sidebar {
    background: rgba(11, 15, 25, 0.94);
    border-right-color: rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
}

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.sidebar-header .brand img {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.sidebar-close-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-points-badge {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    padding-left: 8px;
    margin-bottom: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.sidebar-link i, .sidebar-link .icon-svg {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

.sidebar-link:hover i, .sidebar-link:hover .icon-svg {
    color: var(--primary);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    color: var(--primary);
    font-weight: 700;
    border-left: 3px solid var(--primary);
}

.sidebar-link.active i, .sidebar-link.active .icon-svg {
    color: var(--primary);
}

.sidebar-cta-wrapper {
    margin-top: auto;
    padding-top: 0.5rem;
}

.btn-sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-sidebar-cta.buy {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-sidebar-cta.sell {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-sidebar-cta:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-light);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-sidebar-footer:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text);
}

:root.dark-mode .btn-sidebar-footer:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-sidebar-footer.text-error:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.sidebar-auth-btns {
    display: flex;
    gap: 8px;
    width: 100%;
}

.sidebar-auth-btns a {
    flex: 1;
    text-align: center;
}

@media (min-width: 1025px) {
    body.has-sidebar {
        padding-left: var(--sidebar-width);
    }
    #smart-app-banner {
        margin-left: var(--sidebar-width);
    }
    .mobile-top-header {
        display: none !important;
    }
    .sidebar-overlay {
        display: none !important;
    }
    .sidebar-close-btn {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    body.has-sidebar {
        padding-top: 0;
        padding-left: 0;
    }

    .mobile-top-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--card-bg);
        backdrop-filter: var(--card-backdrop);
        -webkit-backdrop-filter: var(--card-backdrop);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        z-index: 10000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    :root.dark-mode .mobile-top-header {
        background: rgba(11, 15, 25, 0.94);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-top-header .sidebar-toggle-btn {
        background: transparent;
        border: none;
        color: var(--text);
        font-size: 1.25rem;
        cursor: pointer;
        padding: 6px;
    }

    .mobile-top-header .brand {
        font-family: 'Outfit', sans-serif;
        font-size: 1.15rem;
        font-weight: 800;
        background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
    }

    .mobile-top-header .brand img {
        height: 26px;
        width: auto;
    }

    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 10004;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .container {
        padding-top: 1.5rem;
    }
}

#points-history, #my-projects, #explore-apps, #quase-la, #geral, #em-producao, #abortados {
    scroll-margin-top: 100px;
}
.dark-mode .brand img, .dark-mode .footer-logo {
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}
.dark-mode .user-nav-wrapper {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}
.user-nav-wrapper:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-neon);
}
.user-avatar-link {
    display: flex;
    text-decoration: none;
}
.user-avatar-small {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}
.dark-mode .user-avatar-small {
    border-color: #818cf8;
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.4);
}
.user-avatar-link:hover .user-avatar-small {
    transform: scale(1.12);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.6);
}

/* Tester Face Dot */
.tester-face-dot {
    margin-left: -8px;
    border: 2px solid var(--card-bg, #ffffff);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    overflow: hidden;
    background: var(--border, #e2e8f0);
    display: block;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.tester-face-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    z-index: 30 !important;
}

.user-nav-wrapper .dropdown-trigger:hover {
    background: transparent;
    color: var(--primary-neon);
}

/* Dropdown Menu Glassmorphism */
.dropdown {
    position: relative;
}
.dropdown-trigger {
    cursor: pointer;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.dropdown-trigger:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.dropdown-content {
    display: none;
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: var(--card-backdrop);
    -webkit-backdrop-filter: var(--card-backdrop);
    min-width: 210px;
    box-shadow: var(--shadow-glass), 0 20px 25px -5px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 2000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    display: block;
}

.dropdown-content a {
    color: var(--text);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    color: var(--primary);
    transform: translateX(3px);
}
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
    animation: glassFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes glassFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown-content.right {
    right: 0;
    left: auto;
    transform: none;
}

.dropdown-content hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 6px 0;
}

.dropdown-content a.text-error {
    color: var(--error);
}

.dropdown-content a.text-error:hover {
    background-color: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

@media (max-width: 768px) {
    .dropdown-content.right {
        position: static;
        width: 100%;
    }
}

.navbar a { font-size: 0.88rem; }
.navbar .brand { font-size: 1.25rem; }

@media (max-width: 1024px) {
    .nav-links { gap: 0.5rem; }
    .container { max-width: 100%; padding: 0 1rem; }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 0.75rem;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .dropdown:hover .dropdown-content { display: none; }
    .dropdown.active .dropdown-content {
        display: block;
        position: static;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--border);
        width: 100%;
        margin-top: 5px;
    }
    .dropdown-trigger { width: 100%; justify-content: center; }
}

/* Cards Glassmorphism & Neon */
.card {
    background: var(--card-bg);
    backdrop-filter: var(--card-backdrop);
    -webkit-backdrop-filter: var(--card-backdrop);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-glass);
    margin-bottom: 1.75rem;
    position: relative;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glass), var(--shadow-neon);
}

/* Buttons Glassmorphism & Neon Gradient */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    text-align: center;
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.55);
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn-secondary {
    background: var(--bg-muted);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.btn:disabled, .btn.disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    filter: grayscale(0.4);
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-ghost:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--border);
    transform: translateY(-2px);
}

/* Form inputs Glassmorphism */
.form-group { margin-bottom: 1.35rem; }
.form-group label { display: block; margin-bottom: 0.55rem; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text);
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
:root.dark-mode .form-group input, :root.dark-mode .form-group textarea, :root.dark-mode .form-group select {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
}
:root.dark-mode .form-group input:focus, :root.dark-mode .form-group textarea:focus, :root.dark-mode .form-group select:focus {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: #818cf8 !important;
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.4) !important;
}

/* Glassmorphism Alerts */
.alert {
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
}
.alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.points-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    color: var(--primary-neon);
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 800;
    border: 1px solid rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.progress-container {
    background: var(--bg-muted);
    border-radius: 9999px;
    height: 12px;
    width: 100%;
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid var(--border);
}
.progress-bar {
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
    height: 100%;
    border-radius: 9999px;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-2-1 { grid-template-columns: 2fr 1fr; align-items: start; }

.view-test-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.view-test-main { grid-column: 1; grid-row: 1; }
.view-test-sidebar { grid-column: 2; grid-row: 1 / span 2; }
.view-test-feed { grid-column: 1; grid-row: 2; }

.points-balance {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.points-header h1 { margin-bottom: 0.5rem; }

@media (max-width: 768px) {
    .grid, .grid-2-1 { grid-template-columns: 1fr; gap: 1rem; align-items: stretch; }
    .grid.sidebar-first-mobile { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
    .grid.sidebar-first-mobile > aside { order: -1 !important; margin-bottom: 1rem !important; }
    .grid.sidebar-first-mobile > main { order: 1 !important; }
    .points-header { margin-bottom: 1.5rem !important; }
    .points-balance { font-size: 2.5rem; }
    .points-history-item { padding: 0.75rem !important; gap: 8px !important; }
    .points-history-item > div:first-child { font-size: 0.85rem; }
    .points-history-item strong { font-size: 1rem !important; }
    .view-test-layout { display: flex; flex-direction: column; gap: 1rem; }
    .view-test-main { order: 1; }
    .view-test-sidebar { order: 2; }
    .view-test-feed { order: 3; }
    .container { padding: 1.25rem 1rem; }
    h1 { font-size: 1.6rem !important; }
    .card { padding: 1.25rem; }
}

/* Glass Modal */
.img-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 19, 0.82);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.img-modal img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: default;
    transition: transform 0.3s ease;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

/* Neon Loader */
#global-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
:root.dark-mode #global-loader {
    background: rgba(7, 10, 19, 0.85);
}
.loader-spinner {
    width: 54px;
    height: 54px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary-neon);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Icons */
.icon-svg { width: 1.25em; height: 1.25em; vertical-align: middle; display: inline-block; flex-shrink: 0; }
.icon-svg.small { width: 1em; height: 1em; }

/* Status Badges Glass & Neon */
.status-badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    padding: 3px 10px;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge-error {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    padding: 3px 10px;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Flow Steps Glass */
.flow-step-box {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-glass);
    margin-bottom: 0.85rem;
}
.flow-step-number {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}
.flow-step-number.purple { background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%); }
.flow-step-number.success { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.flow-step-number.error { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); }

.flow-step-box.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #065f46;
}
.flow-step-box.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

/* Dark Mode Specific Overrides */
.dark-mode .dropdown-content a:hover, .dark-mode .dropdown-trigger:hover, .dark-mode .btn-secondary, .dark-mode .btn-ghost:hover {
    background: rgba(30, 41, 59, 0.8);
}
.dark-mode .alert-success { background: rgba(6, 78, 59, 0.5); color: #a7f3d0; border-color: rgba(6, 95, 70, 0.8); }
.dark-mode .alert-error { background: rgba(127, 29, 29, 0.5); color: #fecaca; border-color: rgba(153, 27, 27, 0.8); }
.dark-mode .points-badge { background: linear-gradient(135deg, rgba(49, 46, 129, 0.6) 0%, rgba(88, 28, 135, 0.6) 100%); color: #c7d2fe; border-color: rgba(192, 132, 252, 0.4); }
.dark-mode .flow-step-box { background: rgba(15, 23, 42, 0.65); }
.dark-mode .flow-step-box.success { background: rgba(6, 78, 59, 0.4); border-color: rgba(6, 95, 70, 0.6); color: #a7f3d0; }
.dark-mode .flow-step-box.error { background: rgba(69, 10, 10, 0.4); border-color: rgba(127, 29, 29, 0.6); color: #fca5a5; }

/* Reputation Badges Pill */
.reputation-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 9999px; font-size: 0.72rem; font-weight: 700; backdrop-filter: blur(8px); }
.rep-excellent { background: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
.rep-good { background: rgba(59, 130, 246, 0.12); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }
.rep-warning { background: rgba(245, 158, 11, 0.12); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.rep-danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* Inner Box Glass Utils */
.inner-box {
    background: var(--bg-muted);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.dark-mode .inner-box { background: rgba(15, 23, 42, 0.6); }
.inner-box.light { background: rgba(255, 255, 255, 0.6); }
.dark-mode .inner-box.light { background: rgba(15, 23, 42, 0.6); }
.inner-box.success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: #065f46; }
.dark-mode .inner-box.success { background: rgba(6, 78, 59, 0.4); border-color: rgba(6, 95, 70, 0.6); color: #a7f3d0; }
.inner-box.error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #991b1b; }
.dark-mode .inner-box.error { background: rgba(69, 10, 10, 0.4); border-color: rgba(127, 29, 29, 0.6); color: #fca5a5; }
.inner-box.warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #92400e; }
.dark-mode .inner-box.warning { background: rgba(69, 26, 3, 0.4); border-color: rgba(120, 53, 15, 0.6); color: #fde68a; }
.inner-box.info { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.3); color: #3730a3; }
.dark-mode .inner-box.info { background: rgba(30, 27, 75, 0.5); border-color: rgba(49, 46, 129, 0.8); color: #c7d2fe; }

/* Forced Dark Mode Fixes */
.dark-mode div[style*="background: #fff"], .dark-mode div[style*="background: white"], .dark-mode div[style*="background: #ffffff"],
.dark-mode input[style*="background: #fff"], .dark-mode input[style*="background: white"], .dark-mode input[style*="background: #ffffff"],
.dark-mode code[style*="background: #fff"], .dark-mode code[style*="background: white"], .dark-mode code[style*="background: #ffffff"] {
    background-color: var(--card-bg) !important; color: var(--text) !important;
}

.dark-mode div[style*="background: #f1f5f9"], .dark-mode code[style*="background: #f1f5f9"], .dark-mode input[style*="background: #f1f5f9"], .dark-mode span[style*="background: #f1f5f9"],
.dark-mode code[style*="background: #eee"], .dark-mode input[style*="background: #eee"],
.dark-mode code[style*="background: #f8fafc"], .dark-mode input[style*="background: #f8fafc"] {
    background-color: var(--bg-muted) !important; color: var(--text) !important;
}

.dark-mode div[style*="background: #f8fafc"], .dark-mode section[style*="background: #f8fafc"] {
    background-color: var(--bg) !important; color: var(--text) !important;
}
.dark-mode .index-block-content div, .dark-mode .index-block-content p { color: var(--text-light) !important; }
.dark-mode .index-block-content strong { color: var(--text) !important; }

/* Styling Index Blocks (Como Participar & Regras) */
.index-block-content > div > div {
    background: var(--bg-muted);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1.35rem;
    transition: all 0.3s ease;
}
.index-block-content > div > div:hover {
    border-color: var(--border-glow);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}
.index-block-content ul {
    list-style: none !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 1rem !important;
}
.index-block-content ul li {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    color: var(--text-light) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
    transition: all 0.25s ease !important;
}
.index-block-content ul li:hover {
    border-color: var(--border-glow) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15) !important;
}
.index-block-content ul li strong {
    color: var(--primary-neon) !important;
    display: block !important;
    margin-bottom: 2px !important;
    font-size: 0.9rem !important;
}

/* Fix visibility of inputs, readonly/disabled inputs, and code blocks in dark mode */
.dark-mode input,
.dark-mode input:disabled,
.dark-mode input[disabled],
.dark-mode input[readonly],
.dark-mode input:read-only,
.dark-mode code,
.dark-mode pre {
    background-color: rgba(30, 41, 59, 0.7) !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode code[style*="background: #eee"],
.dark-mode code[style*="background:#eee"] {
    background-color: rgba(30, 41, 59, 0.7) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.dark-mode code button,
.dark-mode code .btn-ghost {
    background: rgba(129, 140, 248, 0.2) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(129, 140, 248, 0.3) !important;
}

/* Interaction Cards */
.interaction-card.important {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.dark-mode .interaction-card.important {
    background: rgba(30, 58, 95, 0.5);
    border-color: rgba(129, 140, 248, 0.3);
}
.dark-mode .interaction-card.important p,
.dark-mode .interaction-card.important small {
    color: var(--text) !important;
}

.feedback-box {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
}
.dark-mode .feedback-box {
    background: var(--card-bg);
    border-left-color: var(--border) !important;
}

.auto-approve-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.dark-mode .auto-approve-box {
    background: rgba(69, 26, 3, 0.5);
    border-color: rgba(120, 53, 15, 0.8);
}
.dark-mode .auto-approve-box small {
    color: #fde68a;
}

.status-alert.blocked {
    background: rgba(239, 68, 68, 0.1);
}
.status-alert.warning {
    background: rgba(245, 158, 11, 0.1);
}
.dark-mode .status-alert.blocked {
    background: rgba(69, 10, 10, 0.5);
}
.dark-mode .status-alert.warning {
    background: rgba(69, 26, 3, 0.5);
}
.dark-mode .status-alert h4,
.dark-mode .status-alert p {
    color: var(--text) !important;
}

.dark-mode .btn-secondary {
    background: rgba(30, 41, 59, 0.7);
    color: var(--text);
}
.dark-mode .btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: #818cf8;
}

/* Points History Item */
.points-history-item {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}
.dark-mode .points-history-item {
    background: var(--card-bg);
}

.status-processing {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}
.dark-mode .status-processing {
    background: rgba(120, 53, 15, 0.6);
    color: #fde68a;
}

/* Dashboard items */
.points-history-item-sm {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border-radius: 12px;
}
.dark-mode .points-history-item-sm {
    background: var(--card-bg);
}

.points-stat-box {
    background: var(--bg-muted);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--border);
}
.dark-mode .points-stat-box {
    background: rgba(15, 23, 42, 0.6);
}

.testers-faces-box {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--border);
}
.dark-mode .testers-faces-box {
    background: var(--card-bg);
}

/* Reactions */
.reaction-pill {
    transition: all 0.25s ease;
    user-select: none;
    backdrop-filter: blur(8px);
}
.reaction-pill:hover {
    transform: scale(1.08);
}
.reaction-pill.active {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    border-color: var(--primary);
}
.dark-mode .reaction-pill.active {
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.5);
}
.reaction-selector span {
    display: inline-block;
    transition: transform 0.15s ease;
}
.reaction-selector span:hover {
    transform: scale(1.35);
}

/* WhatsApp Floating Button Neon Glow */
.whatsapp-float {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #10b981 100%);
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128c7e 0%, #059669 100%);
    transform: scale(1.12);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 80px;
        right: 20px;
    }
}

/* Cards com Faixa Zebrada Glass */
.card-zebra-container {
    position: relative;
    overflow: hidden !important;
}

.card-zebra-awaiting-points {
    border: 2px solid #f59e0b !important;
    background: rgba(254, 252, 232, 0.8) !important;
}
:root.dark-mode .card-zebra-awaiting-points {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: #f59e0b !important;
}

.zebra-banner-awaiting-points {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-6deg);
    width: 135%;
    padding: 8px 0;
    text-align: center;
    font-weight: 800;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        #f59e0b,
        #f59e0b 14px,
        #78350f 14px,
        #78350f 28px
    );
    border-top: 2.5px solid #fef08a;
    border-bottom: 2.5px solid #fef08a;
}

.pill-awaiting-points {
    background: rgba(15, 23, 42, 0.94);
    color: #fde047;
    border: 1px solid #fef08a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    pointer-events: auto;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-zebra-budget-exceeded {
    border: 2px solid #e11d48 !important;
    background: rgba(255, 241, 242, 0.8) !important;
}
:root.dark-mode .card-zebra-budget-exceeded {
    background: rgba(225, 29, 72, 0.12) !important;
    border-color: #e11d48 !important;
}

.zebra-banner-budget-exceeded {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-6deg);
    width: 135%;
    padding: 8px 0;
    text-align: center;
    font-weight: 800;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        #e11d48,
        #e11d48 14px,
        #881337 14px,
        #881337 28px
    );
    border-top: 2.5px solid #fecdd3;
    border-bottom: 2.5px solid #fecdd3;
}

.pill-budget-exceeded {
    background: rgba(15, 23, 42, 0.94);
    color: #fda4af;
    border: 1px solid #fecdd3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    pointer-events: auto;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-zebra-unavailable {
    border: 2px solid #ef4444 !important;
    background: rgba(254, 242, 242, 0.8) !important;
}
:root.dark-mode .card-zebra-unavailable {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: #ef4444 !important;
}

.zebra-banner-unavailable {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-6deg);
    width: 135%;
    padding: 8px 0;
    text-align: center;
    font-weight: 800;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        #ef4444,
        #ef4444 14px,
        #1e293b 14px,
        #1e293b 28px
    );
    border-top: 2.5px solid #fca5a5;
    border-bottom: 2.5px solid #fca5a5;
}

.pill-unavailable {
    background: rgba(15, 23, 42, 0.94);
    color: #fca5a5;
    border: 1px solid #fca5a5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    pointer-events: auto;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-status-suspended {
    position: absolute;
    top: 0;
    right: 0;
    background: #fef08a;
    color: #854d0e;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    border-bottom-left-radius: 10px;
    text-transform: uppercase;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 4px;
    border-left: 1px solid #fde047;
    border-bottom: 1px solid #fde047;
}

.badge-status-budget {
    position: absolute;
    top: 0;
    right: 0;
    background: #fecdd3;
    color: #9f1239;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    border-bottom-left-radius: 10px;
    text-transform: uppercase;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 4px;
    border-left: 1px solid #fda4af;
    border-bottom: 1px solid #fda4af;
}

.badge-production {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
}
:root.dark-mode .badge-production {
    background: rgba(6, 78, 59, 0.5);
    color: #a7f3d0;
    border: 1px solid rgba(6, 95, 70, 0.8);
}

/* Success Marquee Glass & Neon */
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.success-marquee-container:hover .success-marquee-track {
    animation-play-state: paused;
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.dark-mode .success-stories-main-card {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.7) 0%, rgba(30, 27, 75, 0.7) 100%) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    backdrop-filter: blur(16px) !important;
}
.dark-mode .success-heading {
    color: #f0abfc !important;
}
.dark-mode .success-subheading {
    color: #e879f9 !important;
}
.dark-mode .success-story-card {
    background: var(--card-bg) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}
.dark-mode .card-app-name {
    color: var(--text) !important;
}
.dark-mode .card-user-name,
.dark-mode .card-story-footer span {
    color: var(--text-light) !important;
}
.dark-mode .card-story-title {
    color: #f0abfc !important;
}
.dark-mode .card-story-text {
    color: #cbd5e1 !important;
}
.dark-mode .card-story-footer {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
}
.dark-mode .success-story-modal-content {
    background: var(--card-bg) !important;
    color: var(--text) !important;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px) !important;
}
.dark-mode .modal-close-btn {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #f8fafc !important;
}
.dark-mode .modal-close-btn:hover {
    background: rgba(71, 85, 105, 0.9) !important;
}
.dark-mode #modalStoryTitle {
    color: #f0abfc !important;
}
.dark-mode #modalStoryContent {
    color: var(--text) !important;
}
.dark-mode #modalStoryDate {
    color: var(--text-light) !important;
}
.dark-mode .modal-app-name-text {
    color: var(--text) !important;
}
.dark-mode .modal-user-name-text {
    color: var(--text-light) !important;
}

/* Timeter Story Ring Neon Spin */
@keyframes storyRingSpin {
    0% {
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

.timeter-story-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.timeter-story-ring::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #6366f1, #a855f7, #ec4899, #f43f5e, #10b981, #06b6d4, #6366f1
    );
    animation: storyRingSpin 5s linear infinite;
    z-index: -1;
    border-radius: 50%;
}

.timeter-story-ring:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.7);
    z-index: 10;
}

.timeter-story-ring img {
    border: 2px solid var(--card-bg, #fff) !important;
    border-radius: 50% !important;
    display: block;
    position: relative;
    z-index: 2;
}
