/**
 * NAATI CCL Practice Platform - Main Stylesheet
 * Version 1.0.0
 */

/* ==========================================
   CSS Variables & Root Styles
   ========================================== */
:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #10B981;
    --secondary-dark: #059669;
    --accent-color: #F59E0B;
    --accent-dark: #D97706;
    
    --success-color: #22C55E;
    --warning-color: #EAB308;
    --danger-color: #EF4444;
    --info-color: #3B82F6;
    
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --font-primary: 'Roboto', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Roboto', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   Navbar Styles
   ========================================== */
.navbar {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    min-width: 220px;
}

.dropdown-menu-animated {
    animation: fadeInDown 0.2s ease;
}

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

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    color: var(--text-muted);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

/* ==========================================
   Button Styles
   ========================================== */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ==========================================
   Card Styles
   ========================================== */
.card {
    background: white;
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
}

/* ==========================================
   Form Styles
   ========================================== */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control-lg {
    padding: 0.875rem 1.25rem;
    font-size: 1.0625rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.input-group-text {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%234F46E5' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    opacity: 0.5;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==========================================
   Section Styles
   ========================================== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

/* ==========================================
   Feature Cards
   ========================================== */
.feature-card {
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-card {
    padding: 1.5rem;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   Pricing Cards
   ========================================== */
.pricing-card {
    position: relative;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    border-color: var(--primary-color);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-original {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.pricing-features li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* ==========================================
   Language Cards
   ========================================== */
.language-card {
    padding: 1.5rem;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.language-card:hover,
.language-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(79, 70, 229, 0.1));
}

.language-flag {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.language-name {
    font-weight: 600;
    color: var(--text-primary);
}

.language-native {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================
   Footer Styles
   ========================================== */
.footer {
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
}

.footer-heading {
    font-weight: 600;
    color: white;
    position: relative;
    padding-bottom: 1rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ==========================================
   Back to Top Button
   ========================================== */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    transform: translateY(-5px);
}

/* ==========================================
   Auth Pages Styles
   ========================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}

.auth-card {
    max-width: 450px;
    width: 100%;
    margin: 2rem auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================
   Dashboard Layout
   ========================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.dashboard-sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-item {
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.sidebar-item i {
    width: 20px;
    font-size: 1.125rem;
}

.sidebar-item span {
    font-weight: 500;
}

.sidebar-section {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.dashboard-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-content {
    padding: 2rem;
}

/* ==========================================
   Dashboard Cards - Advanced Modern Design
   ========================================== */
.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    flex-shrink: 0;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    border: 2px dashed transparent;
    transition: border-color var(--transition-normal);
}

.stat-card:hover .stat-icon::after {
    border-color: rgba(79, 70, 229, 0.2);
    animation: stat-pulse 2s infinite;
}

@keyframes stat-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
}

.stat-icon.primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.stat-icon.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.stat-icon.warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.stat-icon.danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stat card with trend indicator */
.stat-card .stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.stat-card .stat-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.stat-card .stat-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

/* Mini sparkline placeholder */
.stat-card .stat-sparkline {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 60px;
    height: 24px;
    opacity: 0.3;
}

/* ==========================================
   Test Interface
   ==========================================*/
.test-interface {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.test-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.test-timer {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.test-timer.warning {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.test-content {
    display: flex;
    height: calc(100vh - 70px);
}

.test-instructions {
    width: 40%;
    padding: 2rem;
    background: white;
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
}

.test-answer-area {
    width: 60%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.webcam-preview {
    background: #000;
    border-radius: var(--radius-lg);
    aspect-ratio: 16/9;
    max-height: 200px;
    overflow: hidden;
}

.audio-player-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.voice-recorder {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.recorder-btn {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--danger-color), #DC2626);
    border: none;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recorder-btn:hover {
    transform: scale(1.1);
}

.recorder-btn.recording {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================
   Tables
   ========================================== */
.table-modern {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-modern thead {
    background: var(--bg-tertiary);
}

.table-modern th {
    font-weight: 600;
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    border: none;
    white-space: nowrap;
}

.table-modern td {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-light);
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: var(--bg-secondary);
}

/* ==========================================
   Badges
   ========================================== */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.badge-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

/* ==========================================
   Alerts
   ========================================== */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    color: #854D0E;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1E40AF;
}

/* ==========================================
   Pagination
   ========================================== */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

/* ==========================================
   Modal Styles
   ========================================== */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
}

/* ==========================================
   Toast Notifications
   ========================================== */
.toast {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.toast-header {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
}

/* ==========================================
   Progress Bar
   ========================================== */
.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
}

.progress-bar {
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

/* ==========================================
   Animations
   ========================================== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .test-content {
        flex-direction: column;
    }
    
    .test-instructions,
    .test-answer-area {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.rounded-2xl {
    border-radius: var(--radius-2xl) !important;
}

.shadow-smooth {
    box-shadow: var(--shadow-lg);
}

.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   Ultra-Luxury Design Enhancements
   ========================================== */

/* ---- Luxury Navbar ---- */
.navbar-luxury {
    padding: 0;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    transition: all 0.4s ease;
}

.navbar-luxury.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar-luxury .navbar-brand {
    padding: 1rem 0;
}

.navbar-luxury .nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    padding: 0.625rem 1.125rem !important;
    border-radius: 8px;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.navbar-luxury .nav-link:hover,
.navbar-luxury .nav-link.active {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.06);
}

.navbar-luxury .nav-link.active {
    font-weight: 600;
}

.navbar-luxury .dropdown-menu {
    margin-top: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 0.625rem;
    animation: luxuryDropdown 0.2s ease;
}

@keyframes luxuryDropdown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.navbar-luxury .dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.navbar-luxury .dropdown-item:hover {
    background: rgba(79, 70, 229, 0.06);
    color: var(--primary-color);
}

/* ---- Single Login/Signup Button ---- */
.btn-auth-single {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7C3AED 100%);
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    border: none;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-auth-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    color: white !important;
}

/* ---- Hero Ultra-Luxury ---- */
.hero-luxury {
    background: linear-gradient(135deg, #F8F7FF 0%, #EEF2FF 40%, #E0E7FF 100%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-luxury::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-luxury::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

.hero-badge-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.125rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(79, 70, 229, 0.1);
}

.hero-badge-luxury .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

.hero-title-luxury {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #0F0F1A;
    letter-spacing: -0.02em;
}

.hero-title-luxury span {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7C3AED 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}

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

.hero-subtitle-luxury {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-trust-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

.trust-badge .check-icon {
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 0.7rem;
}

/* ---- Floating Card ---- */
.floating-card {
    background: white;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: absolute;
    z-index: 10;
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 10%;
    right: -5%;
    animation-delay: 1.5s;
}

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

.floating-card .card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.floating-card .card-icon.green { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.floating-card .card-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.floating-card .card-icon.purple { background: rgba(79, 70, 229, 0.1); color: #4F46E5; }
.floating-card .card-icon.gold { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }

.floating-card .card-info .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F0F1A;
    line-height: 1;
    margin-bottom: 2px;
}

.floating-card .card-info .card-subtitle {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-weight: 400;
}

/* ---- Stats Counter Section ---- */
.stats-luxury {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.stat-counter-card {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.stat-counter-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08), transparent);
}

.stat-counter-card:last-child::before {
    display: none;
}

.stat-counter-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0F0F1A;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.stat-counter-number .gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-counter-label {
    font-size: 0.9375rem;
    color: #6B7280;
    font-weight: 500;
}

.stat-counter-desc {
    font-size: 0.8125rem;
    color: #9CA3AF;
    margin-top: 0.25rem;
}

/* ---- Feature Cards Luxury ---- */
.feature-card-luxury {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #7C3AED);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card-luxury:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.1);
}

.feature-card-luxury:hover::before {
    transform: scaleX(1);
}

.feature-icon-luxury {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.625rem;
    transition: all 0.3s ease;
}

.feature-card-luxury:hover .feature-icon-luxury {
    transform: scale(1.1);
}

.feature-card-luxury h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0F0F1A;
}

.feature-card-luxury p {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.7;
    margin: 0;
}

/* ---- Testimonials Section ---- */
.testimonials-section {
    background: linear-gradient(135deg, #F8F7FF 0%, #EEF2FF 100%);
    padding: 5rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 5rem;
    line-height: 1;
    color: rgba(79, 70, 229, 0.08);
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1.25rem;
}

.testimonial-stars i {
    color: #F59E0B;
    font-size: 0.875rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #0F0F1A;
    margin-bottom: 1px;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: #9CA3AF;
}

.testimonial-result {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-top: 0.5rem;
}

/* ---- How It Works - Luxury ---- */
.how-it-works {
    padding: 5rem 0;
    background: white;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), #7C3AED);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.3), rgba(79, 70, 229, 0));
    margin-left: 0.5rem;
}

.step-card:last-child .step-number::after {
    display: none;
}

.step-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0F0F1A;
}

.step-card p {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.7;
}

/* ---- CTA Section Luxury ---- */
.cta-luxury {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-luxury::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-luxury::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

/* ---- Lottie Container ---- */
.lottie-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-container dotlottie-player,
.lottie-container lottie-player {
    max-width: 100%;
    height: auto;
}

/* ---- Split-Screen Auth Layout ---- */
.auth-split {
    min-height: 100vh;
    display: flex;
}

.auth-split-left {
    width: 50%;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 60%, #EC4899 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-split-left::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-split-left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}

.auth-left-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-left-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.auth-left-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.auth-left-feature .feature-check {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.auth-left-feature span {
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
    font-weight: 500;
}

.auth-left-testimonial {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}

.auth-left-testimonial p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.auth-left-testimonial .author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-left-testimonial .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.auth-left-testimonial .author-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-left-testimonial .author-role {
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
}

.auth-split-right {
    width: 50%;
    background: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.auth-form-container {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-form-header .brand-logo .logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), #7C3AED);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.auth-form-header .brand-logo .brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F0F1A;
}

.auth-form-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F0F1A;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-form-header p {
    color: #6B7280;
    font-size: 0.9375rem;
}

@media (max-width: 991.98px) {
    .auth-split-left {
        display: none;
    }
    .auth-split-right {
        width: 100%;
        padding: 2rem;
    }
}

/* ---- Password Strength Indicator ---- */
.password-strength {
    height: 4px;
    border-radius: 4px;
    transition: all 0.3s;
    margin-top: 6px;
}

.password-strength.weak { background: #EF4444; width: 33%; }
.password-strength.medium { background: #F59E0B; width: 66%; }
.password-strength.strong { background: #10B981; width: 100%; }

/* ---- Luxury Pricing Cards ---- */
.pricing-card-luxury {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 2px solid rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pricing-card-luxury.featured {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-color: transparent;
    color: white;
    transform: scale(1.04);
}

.pricing-card-luxury.featured h4,
.pricing-card-luxury.featured .pricing-price-luxury,
.pricing-card-luxury.featured .pricing-feature {
    color: white;
}

.pricing-card-luxury.featured .pricing-price-luxury span,
.pricing-card-luxury.featured .pricing-feature span,
.pricing-card-luxury.featured .pricing-feature-icon {
    color: rgba(255,255,255,0.75);
}

.pricing-card-luxury:not(.featured):hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.12);
    transform: translateY(-4px);
}

.pricing-popular-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.25);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.pricing-price-luxury {
    font-size: 2.75rem;
    font-weight: 800;
    color: #0F0F1A;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 1.25rem 0 0.5rem;
}

.pricing-price-luxury span {
    font-size: 1rem;
    font-weight: 500;
    color: #9CA3AF;
    letter-spacing: 0;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #4B5563;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* ---- FAQ Luxury ---- */
.faq-luxury .accordion-item {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-luxury .accordion-button {
    font-weight: 600;
    color: #0F0F1A;
    background: white;
    padding: 1.25rem 1.5rem;
    font-size: 0.9375rem;
}

.faq-luxury .accordion-button:not(.collapsed) {
    background: rgba(79, 70, 229, 0.03);
    color: var(--primary-color);
    box-shadow: none;
}

.faq-luxury .accordion-button::after {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234F46E5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px;
}

.faq-luxury .accordion-body {
    color: #6B7280;
    line-height: 1.7;
    font-size: 0.9375rem;
    padding: 0 1.5rem 1.25rem;
}

/* ---- Language Grid Luxury ---- */
.language-card-luxury {
    background: white;
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-card-luxury:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.03);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.1);
}

.language-card-luxury .lang-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: #0F0F1A;
    margin-bottom: 2px;
}

.language-card-luxury .lang-native {
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* ---- Page Header Luxury ---- */
.page-header-luxury {
    background: linear-gradient(135deg, #F8F7FF 0%, #EEF2FF 100%);
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}

.page-header-luxury h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0F0F1A;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-header-luxury p {
    font-size: 1.125rem;
    color: #6B7280;
    line-height: 1.7;
    max-width: 600px;
}

/* ---- Contact Info Cards ---- */
.contact-info-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.contact-info-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ---- Misc Luxury ---- */
.section-header-luxury {
    margin-bottom: 3.5rem;
}

.section-badge-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 70, 229, 0.06);
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.section-title-luxury {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0F0F1A;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle-luxury {
    font-size: 1.0625rem;
    color: #6B7280;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ---- Gradient Divider ---- */
.gradient-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #7C3AED, #EC4899);
    border-radius: 4px;
    width: 60px;
    margin: 0.75rem auto 1.5rem;
}

/* ---- AOS Animations Compatibility ---- */
[data-aos] {
    transition-property: opacity, transform;
}

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #7C3AED);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ---- Responsive Additions ---- */
@media (max-width: 767.98px) {
    .hero-title-luxury {
        font-size: 2.25rem;
    }
    .stat-counter-number {
        font-size: 2.25rem;
    }
    .stat-counter-card::before {
        display: none;
    }
    .floating-card {
        display: none;
    }
    .step-number::after {
        display: none;
    }
    .page-header-luxury h1 {
        font-size: 1.875rem;
    }
    .section-title-luxury {
        font-size: 1.75rem;
    }
    .pricing-card-luxury.featured {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .hero-luxury {
        padding: 4rem 0 3rem;
    }
    .hero-trust-badges {
        gap: 1rem;
    }
}

/* ==========================================
   Typography System – Jost (Futura) + Roboto
   ========================================== */

/* Body text tightening */
p { line-height: 1.55; margin-bottom: 0.85rem; }
.lead { line-height: 1.5; }
small, .small { line-height: 1.4; }

/* Heading weights */
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }
h4 { font-weight: 600; }
h5, h6 { font-weight: 600; }

/* Force heading font everywhere */
.hero-title-luxury,
.section-title-luxury,
.page-header-luxury h1,
.auth-form-header h2,
.auth-left-content h2,
.pricing-price-luxury,
.stat-counter-number {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Section subtitles/body in Roboto */
.hero-subtitle-luxury,
.section-subtitle-luxury,
.testimonial-text,
.feature-card-luxury p,
.step-card p {
    font-family: var(--font-primary);
    line-height: 1.6;
}

/* ==========================================
   Password Toggle / Wrapper Fix
   ========================================== */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* ==========================================
   Compact Auth Form Enhancements
   ========================================== */
.auth-step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.75rem;
}

.auth-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.auth-step-dot.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(79,70,229,0.35);
}

.auth-step-dot.done {
    background: #10B981;
    color: white;
}

.auth-step-dot.pending {
    background: #F3F4F6;
    color: #9CA3AF;
    border: 1.5px solid #E5E7EB;
}

.auth-step-line {
    flex: 1;
    height: 2px;
    background: #E5E7EB;
    margin: 0 6px;
    border-radius: 2px;
    transition: background 0.3s;
}

.auth-step-line.done {
    background: #10B981;
}

.auth-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9CA3AF;
    text-align: center;
    margin-top: 4px;
}

.auth-step-label.active {
    color: var(--primary-color);
}

/* Compact form inputs */
.form-control-compact,
.form-select-compact {
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1.5px solid #E5E7EB;
    transition: all 0.2s;
    font-family: var(--font-primary);
    height: 42px;
}

.form-control-compact:focus,
.form-select-compact:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
    outline: none;
}

.form-label-compact {
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: #374151;
    margin-bottom: 0.3rem;
    letter-spacing: 0.01em;
}

.register-step {
    display: none;
}
.register-step.active {
    display: block;
    animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Language select grid for register */
.lang-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

.lang-option-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.825rem;
    font-family: var(--font-primary);
    color: #374151;
    text-align: left;
}

.lang-option-btn:hover {
    border-color: var(--primary-color);
    background: rgba(79,70,229,0.04);
    color: var(--primary-color);
}

.lang-option-btn.selected {
    border-color: var(--primary-color);
    background: rgba(79,70,229,0.08);
    color: var(--primary-color);
    font-weight: 600;
}

.lang-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.lang-option-btn.selected .lang-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.lang-option-btn.selected .lang-check::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

/* ==========================================
   SEO Meta / Schema (visually hidden)
   ========================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   Support / FAQ Page Luxury
   ========================================== */
.support-sidebar .nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: #6B7280;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    margin-bottom: 2px;
}

.support-sidebar .nav-link:hover,
.support-sidebar .nav-link.active {
    background: rgba(79,70,229,0.07);
    color: var(--primary-color);
    font-weight: 600;
}

/* Section subtitle line height fix */
.section-subtitle-luxury {
    line-height: 1.6;
}

/* Responsive auth form label */
@media (max-width: 479.98px) {
    .auth-split-right { padding: 1.5rem; }
    .lang-option-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   Enhanced Responsive Styles
   ========================================== */

/* Container padding on mobile */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.35;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Tablet responsive fixes */
@media (max-width: 991.98px) {
    .hero-luxury {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-title-luxury {
        font-size: 2rem;
    }
    
    .hero-subtitle-luxury {
        font-size: 1rem;
    }
    
    .hero-trust-badges {
        justify-content: center;
    }
    
    .floating-card {
        position: relative !important;
        margin: 0.5rem auto;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    .stat-counter-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon-box {
        width: 50px;
        height: 50px;
    }
}

/* Mobile specific */
@media (max-width: 767.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-luxury .lottie-container {
        max-width: 100% !important;
    }
    
    .hero-luxury .lottie-container dotlottie-player,
    .hero-luxury .lottie-container img {
        height: 250px !important;
        max-height: 300px;
    }
    
    .stats-luxury .stat-counter-number {
        font-size: 1.5rem;
    }
    
    .stats-luxury .stat-counter-label {
        font-size: 0.75rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    footer .row {
        text-align: center;
    }
    
    footer .col-md-3 {
        margin-bottom: 2rem;
    }
    
    .btn-back-to-top {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 15px;
    }
}

/* Small mobile screens */
@media (max-width: 400px) {
    .hero-title-luxury {
        font-size: 1.5rem;
    }
    
    .hero-badge-luxury {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
    
    .trust-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Ensure images scale properly */
img {
    max-width: 100%;
    height: auto;
}

/* Fix overflow issues */
.overflow-hidden {
    overflow: hidden;
}

/* Lottie fallback styling */
.lottie-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-container img {
    max-width: 100%;
    height: auto;
}
