@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    
    /* Project Brand Palette */
    --brand-purple: #6A479C;
    --brand-purple-rgb: 106, 71, 156;
    
    --brand-slate-purple: #5A4A72;
    --brand-slate-purple-rgb: 90, 74, 114;
    
    --brand-coral: #E9385A;
    --brand-coral-rgb: 233, 56, 90;
    
    --brand-crimson: #B51F38;
    --brand-crimson-rgb: 181, 31, 56;
    
    --brand-yellow: #FACC18;
    --brand-yellow-rgb: 250, 204, 24;
    
    --brand-royal-blue: #335CAA;
    --brand-royal-blue-rgb: 51, 92, 170;
    
    --brand-sky-blue: #2584C6;
    --brand-sky-blue-rgb: 37, 132, 198;
    
    /* Modern Light Theme Palette */
    --bg-dark: #f8fafc;
    --bg-card-dark: #ffffff;
    --bg-card-border: #e2e8f0;
    
    --text-primary: #1e1b4b;
    --text-secondary: #5A4A72;
    --text-muted: #94a3b8;
    
    /* Phase Colors matching the brand palette */
    --color-phase-1: #2584C6; /* Sky Blue */
    --color-phase-1-rgb: 37, 132, 198;
    --color-phase-2: #335CAA; /* Royal Blue */
    --color-phase-2-rgb: 51, 92, 170;
    --color-phase-3: #6A479C; /* Purple */
    --color-phase-3-rgb: 106, 71, 156;
    
    /* App theme values */
    --accent: #335CAA; /* Royal Blue */
    --accent-hover: #2584C6; /* Sky Blue */
    --accent-glow: rgba(51, 92, 170, 0.12);
    --bg-blue-panel: rgba(37, 132, 198, 0.08);
    --danger: #B51F38; /* Crimson */
    --danger-coral: #E9385A; /* Coral Red */
    --warning: #FACC18; /* Golden Yellow */
    --success: #2584C6;
    --active-sidebar: #E9385A; /* Coral Pink-Red */
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 4px 20px -2px rgba(90, 74, 114, 0.08), 0 2px 8px -1px rgba(90, 74, 114, 0.04);
    --shadow-glow: 0 0 15px rgba(51, 92, 170, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card-dark);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
}

/* Layout containers */
.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-card-border);
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand span.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: var(--shadow-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-royal-blue), var(--brand-sky-blue));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(51, 92, 170, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--bg-card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent-glow);
}

/* Main Main container */
.main-content {
    flex: 1;
    width: 100%;
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
}

/* Auth Pages Styling */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    /* background: rgba(15, 23, 42, 0.6); */
    border: 1px solid var(--bg-card-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.form-control.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.invalid-feedback {
    display: block;
    color: var(--danger);
    font-size: 0.825rem;
    font-weight: 500;
    margin-top: 0.4rem;
}

/* Verification Code Boxes */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 2rem 0;
}

.otp-input {
    width: 55px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
}

/* Hero & Phase Selection Page */
.hero-section {
    text-align: center;
    margin-bottom: 3.5rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.phase-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* background: var(--accent); */
}

.phase-card.phase-1::before { background: var(--color-phase-1); }
.phase-card.phase-2::before { background: var(--color-phase-2); }
.phase-card.phase-3::before { background: var(--color-phase-3); }

.phase-card:hover {
    transform: translateY(-8px);
}

.phase-card.phase-1:hover {
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.phase-card.phase-2:hover {
    box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.phase-card.phase-3:hover {
    box-shadow: 0 15px 35px -5px rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
}

.phase-badge {
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.phase-card.phase-1 .phase-badge { background: rgba(16, 185, 129, 0.1); color: var(--color-phase-1); }
.phase-card.phase-2 .phase-badge { background: rgba(59, 130, 246, 0.1); color: var(--color-phase-2); }
.phase-card.phase-3 .phase-badge { background: rgba(249, 115, 22, 0.1); color: var(--color-phase-3); }

.phase-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.phase-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.phase-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
}

.phase-price span.currency {
    font-size: 1.4rem;
    font-weight: 600;
    margin-right: 2px;
}

.phase-card.phase-1 .phase-price { color: var(--color-phase-1); }
.phase-card.phase-2 .phase-price { color: var(--color-phase-2); }
.phase-card.phase-3 .phase-price { color: var(--color-phase-3); }

/* Modern Checkout & Payment Gateway UI */
.checkout-page-container {
    max-width: 1080px;
    margin: 0 auto 3rem auto;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.checkout-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #335CAA, #2584C6, #6A479C);
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--bg-card-border);
}

.checkout-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(51, 92, 170, 0.12), rgba(37, 132, 198, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-royal-blue);
    flex-shrink: 0;
}

.checkout-plan-card {
    background: linear-gradient(145deg, #ffffff, rgba(248, 250, 252, 0.8));
    border: 1.5px solid rgba(51, 92, 170, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.checkout-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(51, 92, 170, 0.1);
    color: var(--brand-royal-blue);
    margin-bottom: 0.75rem;
}

.checkout-benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.checkout-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.45;
}

.checkout-benefit-item i {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkout-price-summary {
    background: rgba(241, 245, 249, 0.6);
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.checkout-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
}

.checkout-price-row:last-child {
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--bg-card-border);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.checkout-payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.payment-method-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--bg-card-border);
    border-radius: 12px;
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.payment-method-chip:hover {
    border-color: var(--brand-royal-blue);
    background: rgba(51, 92, 170, 0.04);
}

.payment-method-chip.active {
    border-color: var(--brand-royal-blue);
    background: linear-gradient(145deg, rgba(51, 92, 170, 0.08), rgba(37, 132, 198, 0.05));
    color: var(--brand-royal-blue);
    box-shadow: 0 0 0 2px rgba(51, 92, 170, 0.15);
}

.payment-method-chip i {
    color: var(--brand-royal-blue);
    width: 18px;
    height: 18px;
}

.payment-method-panel {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.upi-app-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.upi-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 1.25rem;
}

.btn-razorpay-pay {
    width: 100%;
    background: linear-gradient(135deg, #0c2340 0%, #17376e 50%, #0d2653 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px -5px rgba(12, 35, 64, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-razorpay-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(12, 35, 64, 0.45);
    background: linear-gradient(135deg, #0f2c52 0%, #1c4486 50%, #10306b 100%);
    color: #ffffff;
}

.btn-razorpay-pay:active {
    transform: translateY(0);
}

.razorpay-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(12, 35, 64, 0.06);
    border: 1px solid rgba(12, 35, 64, 0.12);
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0c2340;
}

.test-mode-box {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: 12px;
}

/* Wizard / Step Progress Tracker */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 3.5rem;
    padding: 0 1rem;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1e293b;
    z-index: 1;
    transform: translateY(-50%);
}

.wizard-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: var(--accent);
    z-index: 2;
    transform: translateY(-50%);
    transition: width 0.4s ease;
}

.wizard-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wizard-step-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e293b;
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.wizard-step.active .wizard-step-node {
    background-color: var(--bg-dark);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.wizard-step.completed .wizard-step-node {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.wizard-step-label {
    position: absolute;
    top: 48px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.wizard-step.active .wizard-step-label,
.wizard-step.completed .wizard-step-label {
    color: var(--text-primary);
}

/* Wizard Form Card */
.wizard-card {
    padding: 3rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.wizard-panel {
    display: none;
    flex-grow: 1;
}

.wizard-panel.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    border-top: 1px solid var(--bg-card-border);
    padding-top: 1.5rem;
}

/* Option Grids for Assessment/Interests */
.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.option-item {
    position: relative;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.option-label {
    display: block;
    padding: 1.25rem 1.5rem;
    /* background: rgba(15, 23, 42, 0.4); */
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.option-item input:checked ~ .option-label {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.option-item:hover .option-label {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

/* Student Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 120px);
}

.dashboard-sidebar {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.progress-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--bg-card-border);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.progress-bar-outer {
    height: 6px;
    background: #1e293b;
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.content-item-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    text-align: left;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.content-item-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.content-item-btn.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

.content-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
}

.content-item-btn.active .content-icon {
    background: var(--accent);
    color: white;
}

.completion-checkbox {
    margin-left: auto;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: transparent;
}

.content-item-btn.completed .completion-checkbox {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Dashboard Main Content Area */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-viewer-card {
    padding: 2rem;
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-placeholder {
    width: 100%;
    padding: 4rem 2rem;
    /* background: rgba(15, 23, 42, 0.4); */
    border: 2px dashed var(--bg-card-border);
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.doc-placeholder-icon {
    font-size: 3rem;
    color: var(--accent);
}

.content-desc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.content-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.content-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Assessment Card Styling */
.assessment-card {
    padding: 2.5rem;
}

.assessment-header {
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.assessment-progress {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.assessment-question {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Report Panel Details */
.report-card {
    padding: 3rem;
}

.report-header {
    text-align: center;
    margin-bottom: 3rem;
}

.report-badge {
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.chart-bar-outer {
    height: 12px;
    background: #1e293b;
    border-radius: 99px;
    overflow: hidden;
}

.chart-bar-inner {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), #818cf8);
}

.report-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.report-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Booking & Support Cards */
.booking-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.booking-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition-smooth);
}

.booking-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.booking-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.booking-card.mentor-card .booking-card-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-phase-2);
}

.booking-card.counsel-card .booking-card-icon {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-phase-3);
}

.booking-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

.booking-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-grow: 1;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.time-slot-btn {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.time-slot-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.time-slot-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status banners */
.alert-banner {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-banner-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-banner-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--success);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        position: relative;
        top: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .report-grid {
        grid-template-columns: 1fr;
    }
    .payment-options {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   UI REDESIGN STYLES (Soft Light Blue Theme)
   ========================================== */

/* Split-Screen Auth Page */
.split-auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
}

.auth-left-panel {
    background-color: var(--bg-blue-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
    position: relative;
    border-right: 1px solid var(--bg-card-border);
}

.auth-left-panel .illustration-container {
    max-width: 420px;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease;
}

.auth-left-panel h2 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.auth-left-panel p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 380px;
    margin: 0 auto 2rem;
}

.auth-right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    overflow-y: auto;
    background: #ffffff;
    width: 100%;
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Input Fields with Icons */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .form-control {
    padding-right: 2.75rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.input-with-icon .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.input-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1.1rem;
}

/* Pill Button */
.btn-pill {
    border-radius: 99px;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
}

.btn-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Social Buttons */
.social-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-social {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-social:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Dashboard Banner Header */
.dashboard-banner {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 16px;
    padding: 2.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-premium);
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.dashboard-banner-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.dashboard-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dashboard-banner-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.dashboard-banner-info p {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

/* Stat Cards */
.stat-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.stat-card-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Insight Cards */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insight-card {
    background: #ffffff;
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.insight-card.card-blue::before { background: #3b82f6; }
.insight-card.card-purple::before { background: #8b5cf6; }
.insight-card.card-indigo::before { background: #6366f1; }

.insight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insight-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.insight-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-grow: 1;
    line-height: 1.5;
}

/* Responsive Auth Split Screen */
@media (max-width: 1024px) {
    .split-auth-container {
        grid-template-columns: 1fr;
    }
    .auth-left-panel {
        display: none;
    }
    .auth-right-panel {
        padding: 3rem 1.5rem;
    }
    .stat-card-grid, .insight-grid {
        grid-template-columns: 1fr;
    }
}

/* Validation Feedback Styling */
.form-control.is-invalid {
    border-color: var(--danger) !important;
    background-color: rgba(239, 68, 68, 0.02) !important;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.35rem;
    display: block;
    animation: fadeIn 0.25s ease-out;
}

/* Header Action Buttons & Dropdown */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.75rem;
}

.header-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--bg-card-border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    font-size: 1rem;
    padding: 0;
}

.header-action-btn:hover {
    background: var(--bg-dark);
    transform: translateY(-1px);
}

.header-action-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.user-avatar-trigger {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    padding: 0;
    background: none;
}

.user-avatar-trigger:hover, .user-avatar-trigger.active {
    border-color: var(--accent);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Dropdown Menu */
.profile-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.profile-dropdown-menu {
    position: absolute;
    top: 48px;
    right: 0;
    width: 290px;
    background: #ffffff;
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    display: none;
    flex-direction: column;
    z-index: 1000;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.profile-dropdown-menu.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}

.dropdown-user-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.dropdown-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.dropdown-user-email {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.dropdown-menu-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.15s ease;
    text-align: left;
}

.dropdown-menu-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.dropdown-menu-item span.icon {
    font-size: 1rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.dropdown-menu-item:hover span.icon {
    color: var(--accent);
}

.dropdown-menu-badge {
    margin-left: auto;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
}

.dropdown-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 0.5rem 0;
}

.dropdown-footer {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-logout-dropdown {
    width: 100%;
    background: #ff4d6d;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
}

.btn-logout-dropdown:hover {
    background: #ff3356;
    transform: translateY(-1px);
}

.instructor-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.switch-control {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 20px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch-control input:checked + .switch-slider {
    background-color: var(--accent);
}

.switch-control input:checked + .switch-slider:before {
    transform: translateX(18px);
}

/* Sidebar & Header Layout */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.top-header {
    height: 70px;
    background: rgba(255, 255, 255, 0.85); /* Aesthetic light glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--bg-card-border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-only-brand {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-only-brand {
        display: flex !important;
    }
}

.header-brand {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.5rem;
}

.header-brand img {
    height: 60px;
    filter: none; /* Show original brand logo colors on light header */
    display: block;
    transition: opacity 0.2s ease;
}

.header-brand:hover img {
    opacity: 0.85;
}

.header-brand span.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-phase-2);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--color-phase-2);
}

.header-toggle-btn {
    background: #ffffff;
    border: 1.5px solid rgba(51, 92, 170, 0.25);
    color: var(--brand-royal-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-toggle-btn:hover {
    background: rgba(51, 92, 170, 0.05);
    border-color: var(--brand-royal-blue);
    color: var(--brand-royal-blue);
    box-shadow: 0 2px 6px rgba(51, 92, 170, 0.15);
}

.header-grid-btn, .header-expand-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.header-grid-btn:hover, .header-expand-btn:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

.header-user-menu {
    position: relative;
}

.header-user-trigger {
    background: transparent;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.header-user-trigger:hover, .header-user-trigger.active {
    background: rgba(15, 23, 42, 0.05);
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--bg-card-border);
}

.header-user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.header-user-trigger .chevron-icon {
    width: 12px;
    height: 12px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.header-user-trigger.active .chevron-icon {
    transform: rotate(180deg);
}

.header-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 160px;
    background: #ffffff;
    border: 1px solid var(--bg-card-border);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
    padding: 0.4rem 0;
    z-index: 1001;
    transform-origin: top right;
}

.header-user-dropdown.show {
    display: block;
    animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.header-user-dropdown .dropdown-item:hover {
    background: #f8fafc;
    color: var(--text-primary);
}

.header-user-dropdown .dropdown-item i {
    width: 14px;
    height: 14px;
}

.layout-body {
    display: flex;
    flex: 1;
    width: 100%;
}

.app-layout:has(.top-header) .layout-body {
    margin-top: 70px;
}

.sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.65); /* Premium glassmorphism matching header */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--bg-card-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding: 0;
    box-shadow: 4px 0 24px -2px rgba(15, 23, 42, 0.04);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 1.5rem;
    border-bottom: 1px solid var(--bg-card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header .header-brand {
    margin-right: 0;
    justify-content: center;
    width: 100%;
}

.sidebar-header .header-brand img {
    height: 48px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-layout.sidebar-collapsed .sidebar-header {
    padding: 10px 0.5rem !important;
    justify-content: center !important;
}

.app-layout.sidebar-collapsed .sidebar-header .header-brand {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
}

.app-layout.sidebar-collapsed .sidebar-header .header-brand img {
    height: 38px !important;
    max-width: 44px !important;
    object-fit: contain !important;
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Sidebar User Profile Mini Card */
.sidebar-user-profile {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--bg-card-border);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, rgba(240, 247, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.sidebar-user-profile::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 92, 170, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(51, 92, 170, 0.25);
    box-shadow: 0 2px 8px rgba(51, 92, 170, 0.12);
    flex-shrink: 0;
}

.sidebar-user-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-royal-blue), var(--brand-sky-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(51, 92, 170, 0.25);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-phase {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-badge {
    background: linear-gradient(135deg, var(--brand-royal-blue), var(--brand-sky-blue));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 99px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Sidebar Nav Content */
.sidebar-nav-content {
    padding: 1rem 0.85rem;
    flex: 1;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    padding-left: 0.65rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-divider {
    height: 1px;
    background-color: var(--bg-card-border);
    margin: 0.85rem 0;
    border: none;
    opacity: 0.8;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    border-left: 2.5px solid transparent;
}

.sidebar-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sidebar-link i {
    width: 16px;
    height: 16px;
    color: #64748b;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    color: var(--active-sidebar);
    background: rgba(var(--brand-coral-rgb), 0.05);
    border-left-color: var(--active-sidebar);
}

.sidebar-link:hover .sidebar-link-icon {
    background: rgba(var(--brand-coral-rgb), 0.1);
}

.sidebar-link:hover i {
    color: var(--active-sidebar);
}

.sidebar-link.active {
    background: rgba(var(--brand-coral-rgb), 0.08);
    color: var(--active-sidebar);
    font-weight: 700;
    border-left-color: var(--active-sidebar);
}

.sidebar-link.active .sidebar-link-icon {
    background: rgba(var(--brand-coral-rgb), 0.14);
}

.sidebar-link.active i {
    color: var(--active-sidebar);
}

.sidebar-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}

.sidebar-link.disabled i {
    color: var(--text-muted);
}

/* Sidebar link label grows to fill space */
.sidebar-link-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-left: 1rem;
    border-left: 2px solid #f1f5f9;
    margin-left: 2.4rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
}

.sidebar-submenu.open {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.15rem;
    margin-bottom: 0.35rem;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.sidebar-sublink i {
    width: 13px;
    height: 13px;
    color: #94a3b8;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.sidebar-sublink:hover {
    color: var(--active-sidebar);
    background: rgba(var(--brand-coral-rgb), 0.05);
}

.sidebar-sublink:hover i {
    color: var(--active-sidebar);
}

.sidebar-sublink.active {
    color: var(--active-sidebar);
    font-weight: 700;
    background: rgba(var(--brand-coral-rgb), 0.08);
}

.sidebar-sublink.active i {
    color: var(--active-sidebar);
}

/* Sidebar phase progress bar */
.sidebar-phase-bar {
    padding: 1rem 1.25rem;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.sidebar-phase-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sidebar-phase-bar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.sidebar-phase-bar-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
}

.sidebar-phase-progress-outer {
    height: 5px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.sidebar-phase-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.app-layout:has(.sidebar) .main-content {
    margin-left: 300px;
    width: calc(100% - 300px);
    /* max-width: 1200px; */
    margin-right: auto;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-layout:has(.sidebar) .top-header {
    left: 300px;
    width: calc(100% - 300px);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-layout.sidebar-collapsed .top-header {
    left: 70px !important;
    width: calc(100% - 70px) !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==========================================
   DASHBOARD REDESIGN (Inspired by Ref Image)
   ========================================== */

/* Premium Quiz/Assessment Banner */
.premium-quiz-banner {
    background: #ffffff;
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.quiz-banner-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quiz-banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.quiz-banner-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-quiz-continue {
    background: var(--brand-royal-blue);
    color: #ffffff;
    border-radius: 99px;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(51, 92, 170, 0.2);
}

.btn-quiz-continue:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(51, 92, 170, 0.3);
    background: var(--brand-sky-blue);
}

/* Redesigned Stat Cards Typography & Icon Wrapper */
.stat-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-card-info p {
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    order: 1; /* Pushes paragraph (label) to the top */
    margin: 0;
}

.stat-card-info h3 {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    line-height: 1 !important;
    order: 2; /* Pushes value to the bottom */
    margin: 0;
}

/* Redesigned Gradient Insight Cards */
.insight-card.gradient-card {
    border: none;
    color: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    transition: var(--transition-smooth);
}

.insight-card.gradient-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(90, 74, 114, 0.2);
}

.insight-card.gradient-card.card-blue {
    background: linear-gradient(135deg, var(--brand-royal-blue), var(--brand-sky-blue));
}

.insight-card.gradient-card.card-purple {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-coral));
}

.insight-card.gradient-card.card-indigo {
    background: linear-gradient(135deg, var(--brand-slate-purple), var(--brand-royal-blue));
}

.insight-card.gradient-card .insight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.insight-card.gradient-card .insight-icon-container {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.insight-card.gradient-card .insight-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.insight-card.gradient-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.insight-card.gradient-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.insight-card.gradient-card .insight-card-footer {
    margin-top: auto;
    width: 100%;
}

.insight-card.gradient-card .card-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.insight-card.gradient-card .card-progress-bar-outer {
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 99px;
    overflow: hidden;
}

.insight-card.gradient-card .card-progress-bar-inner {
    height: 100%;
    background: #ffffff;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.insight-card.gradient-card .btn-card-action {
    background: #ffffff;
    border: none;
    border-radius: 99px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.insight-card.gradient-card.card-blue .btn-card-action {
    color: var(--brand-royal-blue);
}

.insight-card.gradient-card.card-purple .btn-card-action {
    color: var(--brand-purple);
}

.insight-card.gradient-card.card-indigo .btn-card-action {
    color: var(--brand-slate-purple);
}

.insight-card.gradient-card .btn-card-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ========================================================
   GLOBAL RESPONSIVENESS OVERRIDES & SIDEBAR STATES
   ======================================================== */

/* Collapsed Sidebar on Desktop */
@media (min-width: 1025px) {
    .app-layout.sidebar-collapsed .sidebar {
        width: 70px !important;
    }
    .app-layout.sidebar-collapsed:has(.sidebar) .main-content {
        margin-left: 70px !important;
        width: calc(100% - 70px) !important;
    }
    .app-layout.sidebar-collapsed .sidebar .sidebar-section-title,
    .app-layout.sidebar-collapsed .sidebar .sidebar-divider,
    .app-layout.sidebar-collapsed .sidebar .sidebar-link-label,
    .app-layout.sidebar-collapsed .sidebar .sidebar-user-badge,
    .app-layout.sidebar-collapsed .sidebar .sidebar-submenu,
    .app-layout.sidebar-collapsed .sidebar .sidebar-phase-bar {
        display: none !important;
    }
    .app-layout.sidebar-collapsed .sidebar .sidebar-user-profile {
        padding: 1rem 0 !important;
        justify-content: center !important;
        background: transparent !important;
        border-bottom: 1px solid var(--bg-card-border) !important;
    }
    .app-layout.sidebar-collapsed .sidebar .sidebar-user-profile .sidebar-user-info,
    .app-layout.sidebar-collapsed .sidebar .sidebar-user-profile::before {
        display: none !important;
    }
    .app-layout.sidebar-collapsed .sidebar .sidebar-link {
        justify-content: center;
        padding: 0.6rem 0;
        border-left: 3px solid transparent;
    }
    .app-layout.sidebar-collapsed .sidebar .sidebar-link-icon {
        margin: 0;
    }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 280px !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1010 !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15) !important;
    }
    .app-layout.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }
    .app-layout:has(.sidebar) .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .app-layout:has(.sidebar) .top-header {
        left: 0 !important;
        width: 100% !important;
    }
    
    /* Backdrop styling */
    .sidebar-backdrop {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        background: rgba(15, 23, 42, 0.4) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 1005 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }
    .app-layout.sidebar-open .sidebar-backdrop {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Puts player/main content on top and library list below it on mobile viewer */
    .dashboard-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
    .dashboard-sidebar {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        margin-top: 2rem !important;
    }
}

@media (max-width: 768px) {
    /* Responsive support layouts globally */
    .support-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .support-hero {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .header-brand img {
        height: 45px !important;
    }
    .top-header {
        padding: 0 0.75rem !important;
    }
    .header-user-name {
        display: none !important;
    }
    .hero-section h1 {
        font-size: 2rem !important;
    }
    .hero-section p {
        font-size: 0.95rem !important;
    }
    .phase-grid {
        grid-template-columns: 1fr !important;
    }
    .payment-details {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    .payment-details div:nth-child(2) {
        text-align: left !important;
    }
    .btn {
        width: 100% !important;
    }
}

/* Dynamic Breadcrumbs */
.breadcrumb-container {
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    animation: fadeIn 0.4s ease;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.25rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.breadcrumb-link:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 700;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--bg-card-border);
    margin-bottom: 2rem;
    gap: 1rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-align: center;
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

/* ==========================================================================
   UX ENHANCEMENT SYSTEMS — User-Friendliness Upgrade
   ========================================================================== */


/* ---- Tooltip System ---- */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 7px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

[data-tooltip].tooltip-right::after {
    bottom: auto;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
}

[data-tooltip].tooltip-right:hover::after {
    transform: translateY(-50%) translateX(0);
}

/* ---- Scroll-to-Top Button ---- */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.85);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 900;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

.scroll-to-top i { width: 20px; height: 20px; }

/* ---- Button Micro-Interactions ---- */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
}

/* Ripple effect for buttons */
.btn .btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: btnRipple 0.6s ease-out;
    pointer-events: none;
}

@keyframes btnRipple {
    to { transform: scale(4); opacity: 0; }
}

/* ---- Loading Spinner Overlay ---- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border: 3.5px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spinLoader 0.7s linear infinite;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* Button loading state */
.btn.btn-loading {
    pointer-events: none;
    opacity: 0.75;
    position: relative;
}

.btn.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spinLoader 0.6s linear infinite;
    margin-left: 0.35rem;
}

/* ---- Staggered Card Entrance Animations ---- */
@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-stagger > * {
    opacity: 0;
    animation: cardFadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.12s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.19s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.26s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.33s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.40s; }

/* ---- Progress Bar Shimmer ---- */
@keyframes progressShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.progress-shimmer {
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: progressShimmer 2s ease infinite;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.progress-bar-outer, .card-progress-bar-outer, .sidebar-phase-progress-outer {
    position: relative;
}

/* ---- Form Validation Animations ---- */
@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.form-control.shake-error {
    animation: inputShake 0.4s ease;
    border-color: var(--danger) !important;
}

.form-control.input-valid {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) !important;
}

/* ---- Completion Celebration ---- */
@keyframes celebratePop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes confettiFade {
    0% { opacity: 1; transform: translateY(0) rotate(0); }
    100% { opacity: 0; transform: translateY(-40px) rotate(180deg); }
}

.completion-burst {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    animation: celebratePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.completion-burst-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
}

.completion-burst-inner i { width: 36px; height: 36px; color: #ffffff; }

.confetti-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    z-index: 9999;
    pointer-events: none;
    animation: confettiFade 1.2s ease-out forwards;
}

/* ---- Character Counter ---- */
.char-counter {
    text-align: right;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 0.35rem;
    transition: color 0.2s ease;
}

.char-counter.warning { color: #f59e0b; }
.char-counter.danger { color: #ef4444; }

/* ---- Sidebar Collapsed Tooltips ---- */
@media (min-width: 1025px) {
    .app-layout.sidebar-collapsed .sidebar-link {
        position: relative;
    }

    .app-layout.sidebar-collapsed .sidebar-link::after {
        content: attr(data-label);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) translateX(-4px);
        background: #0f172a;
        color: #ffffff;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.4rem 0.75rem;
        border-radius: 8px;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 1100;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .app-layout.sidebar-collapsed .sidebar-link:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* ---- Accessibility Focus Rings ---- */
:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible,
.sidebar-link:focus-visible,
.form-control:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* ---- Quick Action Chips ---- */
.quick-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.quick-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.quick-action-chip:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-action-chip i { width: 14px; height: 14px; }

/* ---- Pulsing Active Indicator ---- */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0); }
}

.content-item-btn.active .content-icon {
    animation: pulseGlow 2s ease infinite;
}

/* ---- Animated Number Counter (visual-only enhancement) ---- */
.stat-counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ---- Page Transition ---- */
.main-content {
    animation: pageEnter 0.35s ease-out;
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Time Greeting ---- */
.greeting-text {
    font-size: 0.85rem;
    opacity: 0.75;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.greeting-emoji {
    font-size: 1.1rem;
}

/* ---- Empty State Enhancement ---- */
.empty-state-enhanced {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.empty-state-enhanced .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-enhanced .empty-icon i { width: 28px; height: 28px; color: #6366f1; }

.empty-state-enhanced h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.empty-state-enhanced p {
    font-size: 0.88rem;
    color: #94a3b8;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Security Protection CSS Extensions */
@media print {
    body, html, .app-layout, .main-content, .dashboard-grid, .dashboard-main, video, iframe, canvas, img, .content-viewer-card {
        display: none !important;
    }
}

.security-watermark {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.2);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 99;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: top 1.5s ease-in-out, left 1.5s ease-in-out;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    font-family: var(--font-primary), sans-serif;
    letter-spacing: 0.05em;
}

.security-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.security-blur-content {
    text-align: center;
    color: #ffffff;
    padding: 2.5rem;
    max-width: 420px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.security-blur-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0.5rem 0 0 0;
    color: #f87171;
}

.security-blur-content p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

.security-blur-content button {
    margin-top: 0.5rem;
}

/* Modern Clean Select & Dropdown Styling */
select, .form-control select, select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 16px !important;
    padding-right: 2.5rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

select:hover, .form-control select:hover, select.form-control:hover {
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
    background-color: #ffffff !important;
}

select:focus, .form-control select:focus, select.form-control:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    background-color: #ffffff !important;
}

select option {
    padding: 0.6rem 0.85rem !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

select option:hover, select option:focus, select option:checked {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 800 !important;
}

/* Custom Floating Dropdown Menu Component (Portal Switcher Style) */
.custom-dropdown-container {
    position: relative;
    display: inline-block;
}

.custom-dropdown-trigger {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.custom-dropdown-trigger:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 0.4rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-dropdown-menu.align-right {
    left: auto;
    right: 0;
}

.custom-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.custom-dropdown-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.custom-dropdown-item.active {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 800 !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ==========================================================================
   FAST CONTENT ACCESS & STREAMLINED UX EXTENSIONS
   ========================================================================== */

/* Resume Learning Hero Card */
.resume-hero-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.resume-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.4);
}

.btn-resume-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.5) !important;
}

.btn-all-content:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Interactive Category Jump Cards on Dashboard */
.interactive-jump-card {
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.interactive-jump-card:hover {
    transform: translateY(-3px);
    background: #ffffff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 8px 24px rgba(51, 92, 170, 0.12) !important;
}

.interactive-jump-card:hover .jump-arrow {
    opacity: 1 !important;
    transform: translateX(2px);
    color: var(--accent);
}

.interactive-jump-card:hover .progress-track-icon {
    transform: scale(1.08);
}

/* Header Quick Search Bar */
.header-search-bar:hover {
    border-color: var(--accent) !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-search-bar:hover .search-kbd-badge {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--accent) !important;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
}

.mobile-nav-item .mobile-nav-icon {
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-item .mobile-nav-icon i {
    width: 20px;
    height: 20px;
}

.mobile-nav-item:hover {
    color: var(--accent);
}

.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-item.active .mobile-nav-icon {
    background: rgba(51, 92, 170, 0.12);
    color: var(--accent);
}

/* Mobile Screen Adjustments */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
    }

    .main-content {
        padding-bottom: 80px !important;
    }

    .header-search-bar {
        min-width: unset !important;
        padding: 0.4rem 0.6rem !important;
    }

    .header-search-bar span {
        display: none;
    }
}

/* ==========================================================================
   MODERN TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: none;
    width: auto;
    max-width: calc(100vw - 2rem);
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    width: 380px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast.toast-removing {
    opacity: 0 !important;
    transform: translateX(40px) scale(0.95) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon i {
    width: 18px;
    height: 18px;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

.toast-message {
    font-size: 0.82rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.toast-close i {
    width: 14px;
    height: 14px;
}

/* Toast Variants */
.toast-success {
    border-left: 4px solid #10b981;
}
.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}
.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}
.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}
.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

/* Toast Auto-Dismiss Countdown Bar */
.toast-countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: currentColor;
    opacity: 0.25;
    animation: toastCountdown linear forwards;
    animation-duration: var(--toast-duration, 5000ms);
}

@keyframes toastCountdown {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 640px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        align-items: stretch;
        max-width: unset;
        width: auto;
    }
    .toast {
        width: 100%;
    }
}



