/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-tertiary: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --border-color: #d1d5db;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --sidebar-width: 280px;
    --header-height: 64px;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
    user-select: none;
    -webkit-user-select: none;
}

/* Allow text selection in specific areas like results and inputs */
input,
textarea,
.essay-content-display,
.solution-display,
.message-content,
[contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
}

/* ===== App Landing Page (Native Look) ===== */
.landing-page {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    background: var(--bg-primary);
}

.app-landing {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: calc(3.5rem + env(safe-area-inset-top, 20px)) 1.5rem 3rem 1.5rem;
    text-align: center;
}

.app-landing-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.app-landing-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.app-header-simple {
    margin-top: 2rem;
}

.app-logo-large {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 15px rgba(99, 102, 241, 0.3));
    animation: appLogoFloat 3s ease-in-out infinite;
}

@keyframes appLogoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.app-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.app-tagline {
    font-size: 1rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.app-feature-preview {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
}

.preview-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.preview-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.preview-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.preview-card-item span {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.app-hero-main {
    margin: 1rem 0;
}

.hero-main-text {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
}

.app-actions-fixed {
    margin-top: auto;
    width: 100%;
}

.btn-app-primary {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-app-primary:active {
    transform: scale(0.98);
    box-shadow: 0 5px 10px rgba(99, 102, 241, 0.2);
}

.app-footer-text {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

/* ===== Auth Page Enhanced & Beautiful ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    width: 100%;
}

[data-theme="dark"] .auth-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Subtle Animated Mesh Effect (Very light) */
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    animation: authMeshMove 20s linear infinite;
    z-index: 0;
}

@keyframes authMeshMove {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: authReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes authReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
    width: 100%;
}

[data-theme="dark"] .auth-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Floating Study Shapes Animation */
.auth-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.15;
    animation: floatShape 20s infinite linear;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 20%;
    animation-duration: 15s;
}

.shape-2 {
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    animation-duration: 18s;
}

.shape-3 {
    bottom: 15%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: var(--success);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-duration: 25s;
}

.shape-4 {
    top: 50%;
    right: 5%;
    font-size: 3rem;
    animation-duration: 12s;
}

.shape-5 {
    top: 5%;
    left: 15%;
    font-size: 2.5rem;
    animation-duration: 22s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, 50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-10deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.auth-card.switching {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.logo-wrapper {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .logo-wrapper {
    background: var(--bg-secondary);
}

.auth-logo .logo-icon {
    width: 44px;
    height: 44px;
}

.auth-logo .logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.auth-form input {
    width: 100% !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 1rem 1.25rem 1rem 3.5rem !important;
    border-radius: 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 1rem !important;
    outline: none !important;
}

.auth-form input:focus {
    background: var(--bg-primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
    transform: translateY(-2px);
}

.auth-form input:focus~.input-icon {
    opacity: 1;
    color: var(--primary);
}

.btn-auth-submit {
    padding: 1.1rem !important;
    border-radius: 1.25rem !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4) !important;
}

.btn-auth-submit:active {
    transform: translateY(0);
}

.btn-shine {
    display: none;
}

width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--bg-primary);
    padding: 0 1rem;
    position: relative;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .auth-divider span {
    background: #1e293b;
}

.btn-google {
    width: 100%;
    padding: 0.85rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-google svg {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.auth-footer {
    margin-top: 2.5rem;
    text-align: center;
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 2rem;
    }

    .auth-header h1 {
        font-size: 1.65rem;
    }
}

/* ===== Theme Toggle ===== */
#themeToggle .moon-icon {
    display: none;
}

[data-theme="dark"] #themeToggle .sun-icon {
    display: none;
}

[data-theme="dark"] #themeToggle .moon-icon {
    display: block;
}

/* ===== Sidebar Hidden (Replaced by Bottom Nav) ===== */
.sidebar {
    display: none !important;
}

/* ===== Mobile Header ===== */
.mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--header-height) + env(safe-area-inset-top, 25px));
    padding-top: env(safe-area-inset-top, 25px);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.mobile-logo:active {
    transform: scale(0.95);
}

.mobile-logo .logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.mobile-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* ===== Main Content ===== */
.main-content {
    margin-left: 0;
    min-height: 100vh;
    padding: 1.5rem;
    padding-top: calc(var(--header-height) + 1.25rem + env(safe-area-inset-top, 15px));
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 20px));
    transition: all var(--transition-base);
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-secondary);
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(70px + env(safe-area-inset-bottom, 10px));
    padding-bottom: env(safe-area-inset-bottom, 10px);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: none;
    /* Hidden by default, shown when mainApp is active */
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#mainApp[style*="display: block"] .bottom-nav,
#mainApp[style*="display: block"]~.bottom-nav {
    display: flex;
}

/* Fallback if style attribute isn't precisely "display: block" */
#mainApp:not([style*="display: none"]) .bottom-nav {
    display: flex;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    height: 100%;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active svg {
    color: var(--primary);
    transform: translateY(-4px) scale(1.1);
}

.bottom-nav-item:active {
    transform: scale(0.9);
}

/* ===== Navigation Sheets ===== */
.nav-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: 2rem 2rem 0 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 20px));
    max-height: 85vh;
    overflow-y: auto;
}

.nav-sheet.active {
    transform: translateY(0);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.sheet-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sheet-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.sheet-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sheet-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.sheet-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateX(4px);
}

.sheet-icon {
    font-size: 1.75rem;
    width: 54px;
    height: 54px;
    background: var(--bg-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.sheet-text {
    flex: 1;
}

.sheet-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.sheet-desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.sheet-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
    opacity: 0.5;
}

.user-profile-sheet {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.user-profile-sheet .user-avatar {
    width: 56px;
    height: 56px;
    background: white;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
}

.user-profile-sheet .user-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.user-profile-sheet .user-email {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.sheet-overlay.active {
    display: block;
}

@media (min-width: 1025px) {
    .main-content {
        padding: 2.5rem;
        padding-top: calc(var(--header-height) + 2.5rem);
        padding-bottom: 120px;
        max-width: 1000px;
        margin: 0 auto;
    }
}

.page {
    display: none;
    animation: pageEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 1200px;
    margin: 0 auto;
}

.page.active {
    display: block;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.page-header {
    margin-bottom: 1.5rem;
    padding-left: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.back-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--bg-tertiary);
    transform: translateX(-4px);
}

.back-btn:active {
    transform: scale(0.9);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

/* ===== Dashboard Page Enhancements ===== */
.dashboard-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2rem;
    padding: 2.5rem;
    color: white;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.hero-greeting {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-date {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Updated Stat Cards */
.stat-card {
    background: var(--bg-primary);
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

/* Quick Actions Section */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.action-card {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: 1.25rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.action-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-4px);
}

.action-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: block;
}

.action-label {
    font-weight: 700;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-greeting {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Dashboard Grid & Cards ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-info {
    width: 100%;
}

.stat-info h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin: 0.25rem 0;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

/* Horizontal layout for larger screens */
@media (min-width: 1200px) {
    .stat-card {
        flex-direction: row;
        align-items: center;
        padding: 2rem;
    }

    .stat-icon {
        width: 64px;
        height: 64px;
        border-radius: 1.25rem;
    }

    .stat-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Mobile adjustments */
@media (max-width: 580px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .stat-value {
        font-size: 2.25rem;
    }

    .page-header {
        margin-bottom: 1.75rem;
    }
}

/* ===== Content Card Improvements ===== */
.content-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-body {
    padding: 2rem;
}

.card-body.center {
    text-align: center;
    padding: 4rem 2rem;
}

/* Empty State Styling */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-tertiary);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.empty-state-hint {
    font-size: 0.9rem;
    max-width: 250px;
    margin: 0 auto;
}

/* Mobile Header Adjustment */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 20px));
    }

    .card-header {
        padding: 1.25rem 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1.25rem;
        padding-top: calc(var(--header-height) + 0.75rem);
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 20px));
    }

    .page-title {
        font-size: 1.75rem;
    }
}

/* ===== Forms ===== */
.form-inline {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
select,
textarea {
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: var(--bg-primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 600;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-label.large {
    flex-direction: column;
    padding: var(--spacing-2xl);
    text-align: center;
}

.file-hint {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.file-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

/* ===== Buttons ===== */
.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.btn.full-width {
    width: 100%;
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== Subject Cards ===== */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.subject-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.subject-card.warning {
    border-color: var(--warning);
}

.subject-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.subject-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.delete-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn svg {
    pointer-events: none;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.attendance-percentage {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subject-card.warning .attendance-percentage {
    background: linear-gradient(135deg, var(--warning), var(--danger));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.attendance-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.stat-item {
    text-align: center;
}

.stat-item .label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.stat-item .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.attendance-actions {
    display: flex;
    gap: var(--spacing-md);
}

.warning-message {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    color: var(--warning);
    font-weight: 600;
    text-align: center;
    margin-top: var(--spacing-md);
}

/* ===== Tasks ===== */
.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.3s;
    width: 0%;
}

.progress-info {
    font-weight: 600;
    color: var(--primary);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.task-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    max-width: 100%;
}

.task-item.completed {
    opacity: 0.6;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary);
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-subject {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-description {
    font-weight: 500;
    word-break: break-word;
}

.task-item.completed .task-description {
    text-decoration: line-through;
}

.task-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 2rem;
    margin-top: 0.5rem;
}

.task-date svg {
    opacity: 0.8;
}

.task-delete {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-delete svg {
    pointer-events: none;
}

.task-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ===== Notes ===== */
.filter-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.note-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    cursor: pointer;
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.note-preview {
    width: 100%;
    height: 180px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.note-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.note-subject {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.note-title {
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.note-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.note-btn {
    flex: 1;
    padding: var(--spacing-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 600;
}

.note-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== MCQ Quiz ===== */
.quiz-info {
    display: flex;
    gap: var(--spacing-lg);
    font-weight: 600;
    color: var(--text-secondary);
}

.question-container {
    margin-bottom: var(--spacing-xl);
}

.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.option-btn {
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
}

.option-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.option-btn.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.option-btn.correct {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.option-btn.incorrect {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.quiz-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: space-between;
    margin-top: var(--spacing-xl);
}

.quiz-result {
    text-align: center;
    padding: var(--spacing-2xl);
}

.result-score {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-md);
}

/* ===== Essay Generator Styles ===== */
.essay-options-group {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.essay-content-display {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-primary);
    min-height: 300px;
    animation: fadeIn 0.5s ease;
}

[data-theme="dark"] .essay-content-display,
[data-theme="dark"] .essay-options-group {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 480px) {
    .essay-options-group {
        padding: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .essay-content-display {
        padding: 1rem;
        font-size: 0.95rem;
        line-height: 1.6;
        min-height: 200px;
    }
}

/* ===== Problem Solver Styles ===== */
.upload-container {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
    background: var(--bg-secondary);
    cursor: pointer;
    margin-bottom: var(--spacing-md);
}

.upload-container:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.upload-placeholder svg {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.upload-placeholder p {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.upload-placeholder span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

#imagePreviewContainer {
    position: relative;
    max-width: 100%;
}

#problemImagePreview {
    max-width: 100%;
    max-height: 350px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

#removeImageBtn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.solution-display {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.05rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    min-height: 200px;
}

/* ===== Source & Crop Modals ===== */
.source-modal {
    max-width: 400px !important;
}

.source-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

.source-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.source-option:hover {
    transform: translateY(-5px);
}

.source-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.source-option span {
    font-size: 0.8rem;
    font-weight: 600;
}

.crop-modal-content {
    max-width: 90% !important;
    max-height: 90% !important;
    display: flex;
    flex-direction: column;
}

.crop-container {
    flex: 1;
    min-height: 300px;
    max-height: 60vh;
    overflow: hidden;
    background: #000;
}

#cropImage {
    max-width: 100%;
    display: block;
}

/* ===== CV Options ===== */
.cv-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.cv-option {
    padding: var(--spacing-2xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-color);
}

.cv-option h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.divider {
    font-weight: 700;
    color: var(--text-tertiary);
}

#cvIframe {
    width: 100%;
    height: 80vh;
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-xl);
}

/* ===== Loading Overlay Enhanced ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.loading-overlay:not(.active) {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-logo-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    z-index: 2;
    animation: logoPulse 2s infinite ease-in-out;
}

.loading-logo-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.2;
    animation: glowPulse 2s infinite ease-in-out;
}

.loading-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(10px);
    animation: titleReveal 1s forwards 0.3s;
}

.loading-bar-wrapper {
    width: 240px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.loading-bar-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

/* Initial loading animation */
.loading-overlay.active #loadingBar:not([style*="width"]) {
    animation: progressIndeterminate 3s ease-in-out infinite;
    width: 100%;
}

@keyframes progressIndeterminate {
    0% {
        width: 0%;
        left: 0;
    }

    50% {
        width: 70%;
        left: 15%;
    }

    100% {
        width: 100%;
        left: 0;
    }
}

.loading-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: -0.5rem;
}

.loading-status {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
    opacity: 1;
}

/* Loading Keyframes */
@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    30% {
        width: 40%;
    }

    60% {
        width: 75%;
    }

    100% {
        width: 100%;
    }
}

@keyframes progressInfinite {
    0% {
        left: -100%;
        width: 30%;
    }

    50% {
        width: 30%;
    }

    100% {
        left: 100%;
        width: 30%;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: translateY(200%);
    transition: transform var(--transition-base);
    z-index: 9999;
    font-weight: 600;
}

.toast.show {
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

/* ===== Custom Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: var(--spacing-md);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 2rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: var(--spacing-xl);
        padding-top: calc(var(--header-height) + var(--spacing-xl) + 1rem);
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 20px));
    }

    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: auto;
    }

    .floating-card {
        position: relative;
        inset: auto;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 420px;
    }

    .hero-glow {
        display: none;
    }

    .hero-background {
        display: none;
    }

    .hero-stats {
        gap: 0.75rem;
    }

    .feature-marquee {
        padding: 0.75rem 0;
    }

    .marquee-track {
        animation-duration: 28s;
        font-size: 0.95rem;
    }

    .features-section {
        padding: 3rem 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
    }

    .cta-inner {
        text-align: center;
        justify-content: center;
    }

    .cta-actions {
        justify-content: center;
    }

    .trust-strip {
        padding: 0 1.5rem 2rem;
    }

    .trust-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 2rem;
    }

    .auth-logo .logo-icon {
        width: 60px;
        height: 60px;
    }

    .auth-logo .logo-text {
        font-size: 2rem;
    }

    .auth-header h2 {
        font-size: 1.75rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .dashboard-grid,
    .action-buttons,
    .form-row,
    .subjects-grid,
    .notes-grid {
        grid-template-columns: 1fr;
    }

    .cv-options {
        grid-template-columns: 1fr;
    }

    .toast {
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .landing-nav {
        padding: 1rem;
    }

    .landing-logo .logo-text {
        font-size: 1.25rem;
    }

    .landing-nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-nav-actions .btn-secondary {
        display: none;
    }

    .landing-nav-content {
        justify-content: space-between;
    }

    .cta-inner {
        text-align: center;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-badges {
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.8rem;
    }

    .stat-pill {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .trust-track {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.5rem 1rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .auth-form input {
        padding: 1rem 1rem 1rem 3.25rem !important;
    }

    .input-icon {
        left: 1rem;
    }

    .loading-title {
        font-size: 2.25rem;
    }

    .loading-bar-wrapper {
        width: 180px;
    }

}

/* ===== CV Maker Enhanced ===== */
.cv-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.cv-form-card {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-xl));
}

.cv-preview-container {
    background: white !important;
    color: #1e293b !important;
    padding: 50px;
    min-height: 842px;
    /* A4 Ratio */
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    box-shadow: var(--shadow-inner);
    border: 1px solid var(--border-color);
}

/* Ensure preview text is always readable regardless of theme */
.cv-preview-container * {
    color: #1e293b !important;
}

.cv-header-preview {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1.5rem;
}

.cv-header-preview h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.02em;
}

.cv-contact-preview {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9375rem;
    color: #64748b !important;
}

.cv-section-preview {
    margin-bottom: 2rem;
}

.cv-section-preview h2 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary) !important;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.cv-section-content {
    font-size: 1rem;
    white-space: pre-line;
}

.cv-section-content ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.cv-section-content li {
    margin-bottom: 0.5rem;
}

.empty-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-style: italic;
    min-height: 500px;
    text-align: center;
    gap: 1rem;
}

.empty-chart-message {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-style: italic;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
}

@media (max-width: 1200px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }

    .cv-form-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .cv-preview-container {
        padding: 25px;
    }

    .cv-header-preview h1 {
        font-size: 2rem;
    }

    .cv-contact-preview {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}



/* ===== Job Search ===== */

.jobs-list {

    display: flex;

    flex-direction: column;

    gap: var(--spacing-md);

    margin-top: var(--spacing-xl);

}

.job-card {

    background: var(--bg-primary);

    border-radius: var(--radius-xl);

    padding: var(--spacing-xl);

    box-shadow: var(--shadow-md);

    border: 1px solid var(--border-color);

    transition: transform var(--transition-base);

}

.job-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-xl);

}

.job-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: var(--spacing-md);

}

.job-title {

    font-size: 1.25rem;

    font-weight: 700;

    color: var(--primary);

}

.job-company {

    font-weight: 600;

    color: var(--text-secondary);

    margin-bottom: var(--spacing-sm);

}

.job-meta {

    display: flex;

    gap: var(--spacing-md);

    font-size: 0.875rem;

    color: var(--text-tertiary);

    margin-bottom: var(--spacing-md);

}

.job-snippet {

    font-size: 0.9375rem;

    color: var(--text-secondary);

    margin-bottom: var(--spacing-lg);

    line-height: 1.5;

}

.job-actions {

    display: flex;

    justify-content: flex-end;

}



/* ===== MCQ Generator UI Enhancements ===== */



.mcq-count-group {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}



.mcq-count-group label {



    font-size: 1rem;



    font-weight: 700;



    color: var(--text-primary);



    margin-bottom: 0.5rem;



}



.mcq-count-controls {



    display: flex;



    align-items: center;



    gap: 1.5rem;



    margin: 1.5rem 0;



    padding: 1rem;



    background: var(--bg-secondary);



    border-radius: var(--radius-lg);



}





.modern-slider {

    flex: 1;

    -webkit-appearance: none;

    height: 8px;

    background: var(--border-color);

    border-radius: var(--radius-full);

    outline: none;

}

.modern-slider::-webkit-slider-thumb {

    -webkit-appearance: none;

    appearance: none;

    width: 24px;

    height: 24px;

    background: var(--primary);

    cursor: pointer;

    border-radius: 50%;

    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);

    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

.modern-slider::-webkit-slider-thumb:hover {

    transform: scale(1.2);

}

.mcq-count-badge {

    background: linear-gradient(135deg, var(--primary), var(--secondary));

    color: white;

    padding: 0.5rem 1rem;

    border-radius: var(--radius-md);

    font-weight: 800;

    min-width: 50px;

    text-align: center;

    box-shadow: var(--shadow-md);

}

.quick-select-btns {

    display: flex;

    gap: 0.75rem;

}

.q-btn {

    flex: 1;

    padding: 0.6rem;

    border: 2px solid var(--border-color);

    background: var(--bg-primary);

    border-radius: var(--radius-md);

    cursor: pointer;

    font-weight: 700;

    color: var(--text-secondary);

    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

}

.q-btn:hover {

    border-color: var(--primary);

    color: var(--primary);

    transform: translateY(-2px);

}

.q-btn.active {

    background: var(--primary);

    color: white;

    border-color: var(--primary);

    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);

}

/* Enhanced CV Form Styling */
.cv-form-card .form-group {
    margin-bottom: 1.5rem;
}

.cv-form-card .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cv-form-card .input-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
}

.cv-form-card input,
.cv-form-card textarea {
    padding-left: 3.5rem !important;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-form-card input:focus,
.cv-form-card textarea:focus {
    border-color: var(--primary);
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
}

.cv-form-card .form-group:focus-within label {
    color: var(--primary);
}

.cv-form-card .form-group:focus-within .input-icon {
    color: var(--primary);
}

.cv-form-card .form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

#generateCvBtn {
    position: relative;
    overflow: hidden;
}

#generateCvBtn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.5s;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -60%;
    }

    100% {
        left: 160%;
    }
}

.cv-preview-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.cv-preview-card .card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.cv-preview-container {
    padding: 2.5rem;
    background: #ffffff !important;
    color: #1e293b !important;
    min-height: 800px;
    font-family: 'Outfit', sans-serif;
}

/* Ensure sections have explicit colors for the PDF generator */
.cv-preview-container h1 {
    color: #1e293b !important;
    margin-bottom: 0.5rem;
}

.cv-preview-container h2 {
    color: #6366f1 !important;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.25rem;
    margin-top: 1.5rem;
}

.cv-preview-container .cv-contact-preview {
    color: #64748b !important;
    margin-bottom: 1.5rem;
}

.cv-preview-container strong {
    color: #0f172a !important;
}




.landing-nav-content {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.landing-nav-actions {
    margin-left: auto;
}
}

.modal-overlay.active {
    display: flex;
}

.download-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-tertiary);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.update-banner {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== Career Hub Styles ===== */
.career-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .career-hub-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.career-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.career-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.career-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.career-card:hover .career-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.career-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.career-card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.career-card-btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: var(--bg-secondary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 1.25rem;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.career-card:hover .career-card-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ===== Account Page Styles ===== */
.account-profile-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2rem;
    padding: 2.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
    .account-profile-card {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }

    .profile-info {
        width: 100%;
    }

    .info-item {
        padding: 1rem;
    }
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    overflow: hidden;
}

#accountUserPic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.info-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.info-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    opacity: 0.7;
    margin-bottom: 0.2rem;
    color: white;
}

.profile-info h2,
.profile-info p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    word-break: break-all;
    line-height: 1.2;
}

.profile-info h2 {
    font-size: 1.25rem;
}

.account-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .account-options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.account-option-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.account-option-card:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.account-option-card.danger:hover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.option-icon {
    width: 54px;
    height: 54px;
    background: var(--bg-secondary);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-base);
}

.account-option-card:hover .option-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.account-option-card.danger:hover .option-icon {
    background: var(--danger);
}

.option-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.option-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Developer Branding */
.developer-branding {
    margin-top: auto;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 1rem 2rem;
    background: var(--bg-primary);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.dev-link:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.dev-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.dev-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dev-tagline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1.2;
}

.dev-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ===== Study Hub / Tools Section Styles ===== */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.tool-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.tool-icon {
    width: 70px;
    height: 70px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.tool-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.tool-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 1rem;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.tool-card:hover .tool-btn {
    background: var(--primary);
    color: white;
}

/* ===== Redesigned Landing Page ===== */
.landing-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.1), transparent 40%);
    position: relative;
    overflow: hidden;
}

.landing-hero-content {
    max-width: 800px;
    z-index: 2;
}

.landing-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .landing-logo-badge {
    background: rgba(30, 41, 59, 0.8);
}

.landing-logo-badge img {
    width: 24px;
    height: 24px;
}

.landing-logo-badge span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.landing-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-landing-primary {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.btn-landing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
}

/* Landing Features Section */
.landing-features {
    padding: 4rem 1.5rem;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.f-icon-bg {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.color-1 {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.color-2 {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.color-3 {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.color-4 {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.color-5 {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.color-6 {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.landing-footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Landing Page Refresh (March 2026) ===== */
.landing-hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 18%, rgba(6, 182, 212, 0.24), transparent 35%),
        radial-gradient(circle at 82% 16%, rgba(249, 115, 22, 0.2), transparent 32%),
        radial-gradient(circle at 78% 84%, rgba(14, 165, 233, 0.16), transparent 36%),
        linear-gradient(150deg, #f7fbff 0%, #eef6ff 50%, #fff7ed 100%);
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(rgba(30, 41, 59, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 41, 59, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] .landing-hero {
    background:
        radial-gradient(circle at 14% 12%, rgba(45, 212, 191, 0.2), transparent 34%),
        radial-gradient(circle at 86% 14%, rgba(251, 146, 60, 0.24), transparent 35%),
        radial-gradient(circle at 72% 82%, rgba(59, 130, 246, 0.22), transparent 36%),
        linear-gradient(152deg, #04111f 0%, #08243c 48%, #2b1a08 100%);
}

[data-theme="dark"] .landing-hero::before {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}

.landing-hero-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.landing-text-content {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
    text-align: left;
}

.landing-text-content p {
    margin: 0 0 1.75rem 0;
    /* Override center auto margin */
}

.landing-text-content .landing-cta-row {
    justify-content: flex-start;
}

.landing-text-content .landing-metrics {
    justify-content: flex-start;
}

/* Video Background */
.landing-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    /* Subtle blend with the radial gradients */
    transition: opacity 0.5s ease;
}

[data-theme="dark"] .landing-bg-video {
    opacity: 0.25;
}

/* Mockup Collage Container and Animation */
.landing-mockup-container {
    flex: 1;
    min-width: 300px;
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.floating-mockup {
    position: absolute;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .floating-mockup {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Primary Dashboard Image */
.primary-mockup {
    width: 90%;
    max-width: 500px;
    z-index: 2;
    animation: floatMockup1 6s ease-in-out infinite;
}

/* Secondary Images - Staggered */
.secondary-mockup-1 {
    width: 45%;
    max-width: 200px;
    bottom: 5%;
    left: -5%;
    z-index: 3;
    animation: floatMockup2 5s ease-in-out infinite -1.5s;
}

.secondary-mockup-2 {
    width: 35%;
    max-width: 160px;
    top: 10%;
    right: -2%;
    z-index: 1;
    animation: floatMockup3 7s ease-in-out infinite -3s;
    filter: blur(0.5px);
    /* Adds depth of field */
}

.secondary-mockup-3 {
    width: 40%;
    max-width: 180px;
    bottom: -5%;
    right: 5%;
    z-index: 4;
    animation: floatMockup4 5.5s ease-in-out infinite -4.2s;
}

@keyframes floatMockup1 {

    0%,
    100% {
        transform: translateY(0px) rotateY(-5deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-18px) rotateY(-2deg) rotateX(2deg);
    }
}

@keyframes floatMockup2 {

    0%,
    100% {
        transform: translateY(0px) rotateY(-10deg) rotateX(8deg) rotateZ(-3deg);
    }

    50% {
        transform: translateY(-12px) rotateY(-6deg) rotateX(4deg) rotateZ(-1deg);
    }
}

@keyframes floatMockup3 {

    0%,
    100% {
        transform: translateY(0px) rotateY(5deg) scale(0.95);
    }

    50% {
        transform: translateY(-15px) rotateY(8deg) scale(0.98);
    }
}

@keyframes floatMockup4 {

    0%,
    100% {
        transform: translateY(0px) rotateY(-8deg) rotateX(6deg) rotateZ(2deg);
    }

    50% {
        transform: translateY(-10px) rotateY(-4deg) rotateX(3deg) rotateZ(4deg);
    }
}

@media (max-width: 900px) {
    .landing-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .landing-text-content {
        text-align: center;
    }

    .landing-text-content p {
        margin: 0 auto 1.75rem auto;
    }

    .landing-text-content .landing-cta-row {
        justify-content: center;
    }

    .landing-text-content .landing-metrics {
        justify-content: center;
    }

    /* Responsive Mockup Collage */
    .landing-mockup-container {
        min-height: 380px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .primary-mockup {
        width: 85%;
    }

    .secondary-mockup-1 {
        width: 35%;
        left: 0;
        bottom: 10%;
    }

    .secondary-mockup-2 {
        width: 30%;
        top: 5%;
        right: 0;
    }

    .secondary-mockup-3 {
        width: 35%;
        right: 5%;
        bottom: 5%;
    }

    .floating-mockup {
        transform: rotateY(0deg) rotateX(0deg);
        animation: floatMockupMobile 5s ease-in-out infinite;
    }

    @keyframes floatMockupMobile {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-10px);
        }
    }
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    background: rgba(255, 255, 255, 0.65);
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

[data-theme="dark"] .landing-kicker {
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    border-color: rgba(56, 189, 248, 0.28);
}

.landing-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .landing-logo-badge {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.22);
}

.landing-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.25rem);
    line-height: 1.07;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(120deg, #0284c7 0%, #0ea5e9 35%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero p {
    font-size: clamp(1rem, 2.2vw, 1.22rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1.75rem auto;
}

.landing-cta-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.6rem;
}

.btn-landing-primary,
.btn-landing-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.btn-landing-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(14, 165, 233, 0.35);
    background: rgba(255, 255, 255, 0.8);
    color: #075985;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.2rem;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn-landing-download:hover {
    transform: translateY(-2px);
    border-color: rgba(2, 132, 199, 0.62);
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.18);
}

[data-theme="dark"] .btn-landing-download {
    background: rgba(15, 23, 42, 0.66);
    color: #bae6fd;
    border-color: rgba(56, 189, 248, 0.34);
}

.btn-landing-primary {
    color: #ffffff;
    border: 0;
    background: linear-gradient(120deg, #0369a1 0%, #0ea5e9 45%, #f97316 100%);
    box-shadow: 0 14px 32px rgba(2, 132, 199, 0.28);
}

.btn-landing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(2, 132, 199, 0.36);
}

.btn-landing-ghost {
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.75);
}

.btn-landing-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(2, 132, 199, 0.45);
}

[data-theme="dark"] .btn-landing-ghost {
    background: rgba(15, 23, 42, 0.64);
    border-color: rgba(148, 163, 184, 0.28);
}

.landing-metrics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.metric-pill {
    min-width: 140px;
    padding: 0.72rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.metric-pill strong {
    display: block;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.1;
}

.metric-pill span {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
}

[data-theme="dark"] .metric-pill {
    background: rgba(15, 23, 42, 0.68);
    border-color: rgba(148, 163, 184, 0.24);
}

[data-theme="dark"] .metric-pill strong {
    color: #f8fafc;
}

[data-theme="dark"] .metric-pill span {
    color: #94a3b8;
}

.landing-features {
    padding: clamp(3rem, 7vw, 5rem) 1.5rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(226, 232, 240, 0.35) 100%);
}

[data-theme="dark"] .landing-features {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(2, 6, 23, 0.45) 100%);
}

.landing-features .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.landing-features .section-header h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.landing-features .section-header p {
    color: var(--text-secondary);
    font-size: 1.06rem;
}

.features-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.landing-features .feature-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1.25rem;
    padding: 1.4rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    position: relative;
    overflow: hidden;
}

.landing-features .feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9 0%, #f97316 100%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.landing-features .feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.landing-features .feature-card:hover::after {
    opacity: 1;
}

[data-theme="dark"] .landing-features .feature-card {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.2);
}

.f-icon-bg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.landing-tool-icon {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.f-icon-bg span {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.color-1 {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

.color-2 {
    background: rgba(8, 145, 178, 0.14);
    color: #0e7490;
}

.color-3 {
    background: rgba(22, 163, 74, 0.14);
    color: #15803d;
}

.color-4 {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.color-5 {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

.color-6 {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

[data-theme="dark"] .color-1 {
    background: rgba(14, 165, 233, 0.2);
    color: #67e8f9;
}

[data-theme="dark"] .color-2 {
    background: rgba(8, 145, 178, 0.22);
    color: #67e8f9;
}

[data-theme="dark"] .color-3 {
    background: rgba(22, 163, 74, 0.24);
    color: #86efac;
}

[data-theme="dark"] .color-4 {
    background: rgba(245, 158, 11, 0.25);
    color: #fde68a;
}

[data-theme="dark"] .color-5 {
    background: rgba(249, 115, 22, 0.22);
    color: #fdba74;
}

[data-theme="dark"] .color-6 {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.landing-features .feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.landing-features .feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Modern Glassmorphism Footer */
.landing-footer-wrapper {
    width: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    background: transparent;
    position: relative;
    z-index: 10;
}

.landing-footer-glass {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .landing-footer-glass {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo img {
    width: 28px;
    height: 28px;
}

.footer-logo span {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .footer-socials a {
    background: rgba(255, 255, 255, 0.05);
}

.footer-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom-bar {
    width: 100%;
    max-width: 900px;
    margin-top: 1rem;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.footer-dev-branding {
    display: flex;
    align-items: center;
}

.footer-dev-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.2s ease;
}

[data-theme="dark"] .footer-dev-link {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.15);
}

.footer-dev-link:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .footer-dev-link:hover {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-dev-text {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-dev-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-dev-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

@media (max-width: 950px) {
    .landing-footer-wrapper {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .landing-footer-glass {
        flex-direction: column;
        border-radius: 1.5rem;
        padding: 1.5rem;
        gap: 1.25rem;
        text-align: center;
        width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom-bar {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    .footer-dev-branding {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        min-height: auto;
        padding-top: 4.2rem;
        padding-bottom: 3rem;
    }

    .landing-cta-row {
        display: flex;
    }

    .btn-landing-primary,
    .btn-landing-ghost {
        width: 100%;
    }

    .btn-landing-download {
        width: 100%;
        margin-bottom: 1rem;
    }

    .metric-pill {
        min-width: 118px;
    }
}

/* ===================================================================
   NEW PREMIUM LANDING PAGE   (lp-* prefix — all classes scoped)
   Supports both [data-theme="light"] and [data-theme="dark"]
====================================================================== */

/* ── CSS custom props used throughout ─────────────────────────────── */
:root {
    --lp-primary: #6366f1;
    --lp-primary2: #818cf8;
    --lp-teal: #38d9c0;
    --lp-border: rgba(99, 102, 241, 0.15);
    --lp-card: rgba(255, 255, 255, 0.6);
    --lp-radius: 16px;
}
[data-theme="dark"] {
    --lp-border: rgba(99, 102, 241, 0.18);
    --lp-card: rgba(15, 23, 42, 0.7);
}

/* ── Landing page wrapper ──────────────────────────────────────────── */
#landingPage {
    background: var(--bg-secondary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ─────────────── NAV ──────────────────────────────────────────────── */
.lp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--lp-border);
    transition: padding 0.3s, background 0.3s;
}
[data-theme="dark"] .lp-nav {
    background: rgba(15, 23, 42, 0.75);
}
.lp-nav-scrolled { padding: 10px 24px; }

.lp-nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.lp-nav-logo img { width: 30px; height: 30px; border-radius: 8px; }

.lp-nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}
.lp-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}
.lp-nav-links a:hover { color: var(--lp-primary); }

.lp-nav-actions { display: flex; align-items: center; gap: 10px; }

/* Theme toggle button */
.lp-theme-btn {
    width: 38px; height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.lp-theme-btn:hover { background: var(--bg-secondary); border-color: var(--lp-primary); transform: scale(1.05); }

/* Show/hide sun or moon depending on theme */
.lp-icon-sun { display: none; }
.lp-icon-moon { display: block; }
[data-theme="dark"] .lp-icon-sun  { display: block; }
[data-theme="dark"] .lp-icon-moon { display: none; }

.lp-nav-cta {
    background: var(--lp-primary);
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 100px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.lp-nav-cta:hover { background: var(--lp-primary2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4); }

/* ─────────────── HERO ─────────────────────────────────────────────── */
.lp-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 130px 24px 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.lp-grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    pointer-events: none;
}
.lp-hero-glow {
    position: absolute; top: 40%; left: 50%;
    transform: translate(-50%,-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse at center,
        rgba(99,102,241,0.1) 0%, rgba(56,217,192,0.06) 40%, transparent 70%);
    pointer-events: none;
}

.lp-hero-inner { position: relative; z-index: 2; max-width: 820px; }

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--lp-border);
    background: rgba(99,102,241,0.07);
    padding: 6px 18px;
    border-radius: 100px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--lp-primary);
    letter-spacing: 0.07em;
    margin-bottom: 28px;
    animation: lpFadeDown 0.8s ease both;
}
.lp-badge-dot {
    width: 7px; height: 7px;
    background: var(--lp-teal);
    border-radius: 50%;
    animation: lpBlink 2s infinite;
}
@keyframes lpBlink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }

.lp-hero-h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    animation: lpFadeUp 0.9s ease 0.1s both;
    color: var(--text-primary);
}
.lp-h1-accent {
    color: var(--lp-primary);
    font-style: italic;
}
.lp-h1-muted { color: var(--text-tertiary); }

.lp-hero-sub {
    margin: 22px auto 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 560px;
    animation: lpFadeUp 0.9s ease 0.2s both;
}

.lp-hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
    animation: lpFadeUp 0.9s ease 0.3s both;
}

.lp-btn-primary {
    background: var(--lp-primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(99,102,241,0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.lp-btn-primary:hover { background: var(--lp-primary2); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(99,102,241,0.4); }

.lp-btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.lp-btn-ghost:hover { border-color: var(--lp-primary); background: rgba(99,102,241,0.06); transform: translateY(-2px); }

.lp-hero-stats {
    display: flex;
    gap: 44px;
    justify-content: center;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--lp-border);
    animation: lpFadeUp 0.9s ease 0.5s both;
}
.lp-stat-num { font-size: 2.2rem; font-weight: 900; color: var(--lp-primary); line-height: 1; }
.lp-stat-lbl { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 4px; letter-spacing: 0.04em; }

/* ── Phone mockup ──────────────────────────────────────────────────── */
.lp-phone-wrap {
    position: relative;
    display: inline-block;
    margin-top: 72px;
    animation: lpFadeUp 1s ease 0.4s both;
}
.lp-phone-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.lp-orb-a { width:280px; height:280px; background:rgba(99,102,241,0.12); top:10%;left:-30%; }
.lp-orb-b { width:180px; height:180px; background:rgba(56,217,192,0.1); bottom:10%;right:-20%; }

.lp-phone {
    width: 260px;
    height: 520px;
    background: var(--bg-primary);
    border-radius: 38px;
    border: 1.5px solid var(--lp-border);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.05), 0 40px 80px rgba(0,0,0,0.18), 0 0 60px rgba(99,102,241,0.06);
    animation: lpFloat 4s ease-in-out infinite;
}
@keyframes lpFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }

.lp-notch {
    position: absolute; top: 14px; left: 50%;
    transform: translateX(-50%);
    width: 72px; height: 8px;
    background: var(--bg-secondary);
    border-radius: 100px;
    z-index: 2;
}

.lp-p-screen { padding: 30px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.lp-p-header { display: flex; align-items: center; justify-content: space-between; }
.lp-p-logo-row { display: flex; align-items: center; gap: 7px; }
.lp-p-logo-box {
    width: 26px; height: 26px;
    background: var(--lp-primary);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 900; color: white;
}
.lp-p-brand { font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.lp-p-greet { font-size: 0.65rem; color: var(--text-secondary); }
.lp-p-greet strong { color: var(--text-primary); }

.lp-p-card {
    background: rgba(99,102,241,0.07);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 13px;
    padding: 11px;
}
.lp-p-card-title { font-size: 0.55rem; color: var(--text-tertiary); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.lp-att-row { display: flex; align-items: center; gap: 9px; }
.lp-ring-pct { font-size: 1rem; font-weight: 700; color: var(--lp-primary); }
.lp-ring-sub { font-size: 0.52rem; color: var(--text-tertiary); }

.lp-p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lp-p-qbtn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px; padding: 8px;
    text-align: center; font-size: 0.56rem;
    color: var(--text-secondary);
}
.lp-qi { font-size: 0.95rem; display: block; margin-bottom: 2px; }

.lp-p-task {
    background: rgba(56,217,192,0.07);
    border: 1px solid rgba(56,217,192,0.18);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex; align-items: center; gap: 8px;
}
.lp-p-task-gold {
    background: rgba(99,102,241,0.05);
    border-color: rgba(99,102,241,0.15);
}
.lp-task-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-teal); flex-shrink: 0; }
.lp-task-dot-primary { background: var(--lp-primary); }
.lp-task-t { font-size: 0.58rem; color: var(--text-primary); }
.lp-task-s { font-size: 0.5rem; color: var(--text-tertiary); margin-top: 1px; }

/* ─────────────── SECTIONS ───────────────────────────────────────── */
.lp-section { padding: 90px 24px; }
.lp-inner { max-width: 1060px; margin: 0 auto; }

.lp-s-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--lp-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.lp-s-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-primary);
}
.lp-s-title em { font-style: italic; color: var(--lp-primary); }
.lp-s-desc { color: var(--text-secondary); margin-top: 12px; font-size: 0.95rem; line-height: 1.7; max-width: 500px; }

/* ─────────────── FEATURE CARDS ─────────────────────────────────── */
.lp-feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 52px;
}
.lp-feat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--lp-radius);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.lp-feat-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--lp-primary), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.lp-feat-card:hover { transform: translateY(-6px); border-color: rgba(99,102,241,0.35); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.lp-feat-card:hover::after { opacity: 1; }

.lp-feat-wide {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(99,102,241,0.07), rgba(56,217,192,0.04));
    border-color: rgba(99,102,241,0.25);
}
.lp-wide-inner { display: flex; gap: 24px; align-items: flex-start; }
.lp-wide-text { flex: 1; }
.lp-mcq-preview {
    flex-shrink: 0; width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px; padding: 14px;
}
.lp-mcq-q { font-size: 0.66rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 9px; }
.lp-mcq-opt {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 8px; border-radius: 7px; font-size: 0.6rem;
    margin-bottom: 4px; border: 1px solid transparent;
}
.lp-opt-l { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 700; flex-shrink: 0; }
.lp-opt-ok { background: rgba(56,217,192,0.1); border-color: rgba(56,217,192,0.3); color: var(--lp-teal); }
.lp-opt-ok .lp-opt-l { background: var(--lp-teal); color: #090c14; }
.lp-opt-no { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: #ef4444; }
.lp-opt-no .lp-opt-l { background: rgba(239,68,68,0.25); color: #ef4444; }
.lp-opt-na { background: var(--bg-secondary); border-color: var(--border-color); color: var(--text-tertiary); }
.lp-opt-na .lp-opt-l { background: var(--bg-tertiary); color: var(--text-tertiary); }

.lp-feat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    margin-bottom: 16px;
}
.lp-feat-icon-teal { background: rgba(56,217,192,0.1); border-color: rgba(56,217,192,0.2); }
.lp-feat-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.lp-feat-desc { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.65; }
.lp-feat-pill {
    display: inline-block; margin-top: 14px;
    background: rgba(56,217,192,0.1); color: var(--lp-teal);
    padding: 4px 12px; border-radius: 100px;
    font-size: 0.68rem; font-family: 'Space Mono', monospace;
}
.lp-pill-accent { background: rgba(99,102,241,0.1); color: var(--lp-primary); }
.lp-pill-teal { background: rgba(56,217,192,0.1); color: var(--lp-teal); }

/* ─────────────── HOW IT WORKS ──────────────────────────────────── */
.lp-how-bg {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .lp-how-bg { background: var(--bg-secondary); }

.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 52px;
    position: relative;
}
.lp-steps::before {
    content: ''; position: absolute; top: 30px;
    left: calc(16.67% + 10px); right: calc(16.67% + 10px);
    height: 1px;
    background: linear-gradient(90deg,var(--lp-primary),var(--lp-teal),var(--lp-primary));
    opacity: 0.22;
}
.lp-step { text-align: center; }
.lp-step-n {
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--lp-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 900; color: var(--lp-primary);
    margin: 0 auto 16px; position: relative; z-index: 2;
}
.lp-step-t { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.lp-step-d { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.65; }

/* ─────────────── TESTIMONIALS ──────────────────────────────────── */
.lp-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 52px;
}
.lp-testi {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--lp-radius);
    padding: 24px;
    transition: transform 0.3s;
}
.lp-testi:hover { transform: translateY(-4px); }
.lp-stars { color: #f59e0b; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 12px; }
.lp-testi-txt { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.7; font-style: italic; }
.lp-testi-auth { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.lp-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-teal));
    color: white;
}
.lp-auth-name { font-weight: 600; font-size: 0.84rem; color: var(--text-primary); }
.lp-auth-role { color: var(--text-tertiary); font-size: 0.72rem; }

/* ─────────────── CTA ────────────────────────────────────────────── */
.lp-cta-sec {
    text-align: center;
    padding: 110px 24px;
    position: relative;
    overflow: hidden;
}
.lp-cta-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 700px; height: 380px;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.lp-cta-inner { position: relative; z-index: 2; }
.lp-cta-t { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -2px; line-height: 1.1; color: var(--text-primary); }
.lp-cta-t em { font-style: italic; color: var(--lp-primary); }
.lp-cta-sub { color: var(--text-secondary); font-size: 0.95rem; margin: 16px auto 0; max-width: 440px; line-height: 1.7; }
.lp-cta-btns { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.lp-btn-android {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px; border-radius: 14px;
    font-weight: 600; font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.lp-btn-android:hover { background: var(--bg-tertiary); border-color: var(--lp-primary); transform: translateY(-2px); }
.lp-ai { font-size: 1.2rem; }
.lp-ts { font-size: 0.58rem; font-weight: 400; display: block; text-align: left; color: var(--text-tertiary); }
.lp-tb { display: block; text-align: left; margin-top: -1px; }

/* Hero APK button variant */
.lp-btn-android-hero {
    margin-top: 14px;
    border-color: rgba(99,102,241,0.3);
    background: rgba(99,102,241,0.06);
}
.lp-btn-android-hero:hover { border-color: var(--lp-primary); background: rgba(99,102,241,0.12); }
.lp-dl-arrow { margin-left: auto; opacity: 0.55; }

/* ─────────────── FOOTER ─────────────────────────────────────────── */
.lp-footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: var(--bg-primary);
}
.lp-f-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-primary); font-weight: 800; font-size: 1.05rem; }
.lp-f-brand img { width: 26px; height: 26px; border-radius: 6px; }
.lp-f-links { display: flex; gap: 20px; align-items: center; }
.lp-f-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.lp-f-links a:hover { color: var(--lp-primary); }
.lp-footer-socials a { display: flex; align-items: center; }
.lp-f-credit { color: var(--text-tertiary); font-size: 0.74rem; }
.lp-f-credit a { color: var(--lp-primary); text-decoration: none; }

/* ─────────────── SCROLL REVEAL ─────────────────────────────────── */
.lp-reveal  { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.lp-visible { opacity: 1; transform: translateY(0); }
.lp-d1 { transition-delay: 0.1s; }
.lp-d2 { transition-delay: 0.2s; }
.lp-d3 { transition-delay: 0.3s; }

/* ─────────────── ANIMATIONS ─────────────────────────────────────── */
@keyframes lpFadeUp   { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }
@keyframes lpFadeDown { from{opacity:0;transform:translateY(-16px);} to{opacity:1;transform:translateY(0);} }

/* ─────────────── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
    .lp-nav  { padding: 12px 18px; }
    .lp-nav-links { display: none; }
    .lp-section { padding: 64px 18px; }
    .lp-hero { padding: 90px 18px 60px; }
    .lp-feat-grid { grid-template-columns: 1fr; }
    .lp-feat-wide { grid-column: span 1; }
    .lp-wide-inner { flex-direction: column; }
    .lp-mcq-preview { width: 100%; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-steps::before { display: none; }
    .lp-testi-grid { grid-template-columns: 1fr; }
    .lp-hero-stats { gap: 24px; }
    .lp-footer { flex-direction: column; align-items: center; text-align: center; padding: 24px 18px; }
    .lp-f-links { flex-wrap: wrap; justify-content: center; }
    .lp-cta-sec { padding: 72px 18px; }
}