@tailwind base;
@tailwind components;
@tailwind utilities;

/* ===================================
   LUXURY DESIGN SYSTEM - PREMIUM EDITION
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Purple Color System - Luxury Palette */
    --primary-50: #faf5ff;
    --primary-100: #f3e8ff;
    --primary-200: #e9d5ff;
    --primary-300: #d8b4fe;
    --primary-400: #c084fc;
    --primary-500: #a855f7;
    --primary-600: #9333ea;
    --primary-700: #7e22ce;
    --primary-800: #6b21a8;
    --primary-900: #581c87;

    /* Royal Gold Accents */
    --gold-50: #fefce8;
    --gold-100: #fef9c3;
    --gold-200: #fef08a;
    --gold-300: #fde047;
    --gold-400: #facc15;
    --gold-500: #eab308;
    --gold-600: #ca8a04;
    --gold-700: #a16207;
    --gold-800: #854d0e;
    --gold-900: #713f12;

    /* Elegant Rose */
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-300: #fda4af;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --rose-800: #9f1239;
    --rose-900: #881337;

    /* Deep Emerald */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;

    /* Sophisticated Blue */
    --sapphire-50: #eff6ff;
    --sapphire-100: #dbeafe;
    --sapphire-200: #bfdbfe;
    --sapphire-300: #93c5fd;
    --sapphire-400: #60a5fa;
    --sapphire-500: #3b82f6;
    --sapphire-600: #2563eb;
    --sapphire-700: #1d4ed8;
    --sapphire-800: #1e40af;
    --sapphire-900: #1e3a8a;

    /* Amber Warning */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;

    /* Ruby Error */
    --ruby-50: #fef2f2;
    --ruby-100: #fee2e2;
    --ruby-200: #fecaca;
    --ruby-300: #fca5a5;
    --ruby-400: #f87171;
    --ruby-500: #ef4444;
    --ruby-600: #dc2626;
    --ruby-700: #b91c1c;
    --ruby-800: #991b1b;
    --ruby-900: #7f1d1d;

    /* Premium Neutrals - Refined Grays */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    /* Premium Typography */
    --font-primary: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Inter', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace;

    /* Font Sizes - Premium Scale */
    --text-xs: 0.6875rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-lg: 1.0625rem;
    --text-xl: 1.1875rem;
    --text-2xl: 1.4375rem;
    --text-3xl: 1.8125rem;
    --text-4xl: 2.3125rem;
    --text-5xl: 2.9375rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;

    /* Line Heights - Perfect Proportions */
    --leading-none: 1;
    --leading-tight: 1.2;
    --leading-snug: 1.35;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    --leading-loose: 1.8;

    /* Letter Spacing - Refined Typography */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* Premium Spacing System (Based on 4px grid) */
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;
    --space-1: 0.25rem;
    --space-1-5: 0.375rem;
    --space-2: 0.5rem;
    --space-2-5: 0.625rem;
    --space-3: 0.75rem;
    --space-3-5: 0.875rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-9: 2.25rem;
    --space-10: 2.5rem;
    --space-11: 2.75rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-28: 7rem;
    --space-32: 8rem;
    --space-36: 9rem;
    --space-40: 10rem;
    --space-44: 11rem;
    --space-48: 12rem;
    --space-52: 13rem;
    --space-56: 14rem;
    --space-60: 15rem;
    --space-64: 16rem;
    --space-72: 18rem;
    --space-80: 20rem;
    --space-96: 24rem;

    /* Border Radius - Sophisticated Curves */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-base: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.5rem;
    --radius-4xl: 2rem;
    --radius-full: 9999px;

    /* Premium Shadows - Depth & Elevation */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
    --shadow-base: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
    --shadow-2xl: 0 35px 60px -15px rgb(0 0 0 / 0.2);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Luxury Shadows - Purple Glow */
    --shadow-purple-sm: 0 4px 14px 0 rgba(147, 51, 234, 0.15);
    --shadow-purple-base: 0 8px 24px 0 rgba(147, 51, 234, 0.2);
    --shadow-purple-lg: 0 16px 48px 0 rgba(147, 51, 234, 0.25);
    --shadow-purple-xl: 0 24px 64px 0 rgba(147, 51, 234, 0.3);

    /* Gold Glow Effects */
    --shadow-gold-sm: 0 4px 14px 0 rgba(234, 179, 8, 0.15);
    --shadow-gold-base: 0 8px 24px 0 rgba(234, 179, 8, 0.2);
    --shadow-gold-lg: 0 16px 48px 0 rgba(234, 179, 8, 0.25);

    /* Premium Transitions - Smooth & Fluid */
    --transition-faster: 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

    /* Easing Functions - Premium Motion */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Z-Index Layers */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-60: 60;
    --z-70: 70;
    --z-80: 80;
    --z-90: 90;
    --z-100: 100;
    --z-tooltip: 1000;
    --z-dropdown: 1100;
    --z-modal: 1200;
    --z-notification: 1300;
    --z-max: 9999;

    /* Backdrop Filters */
    --backdrop-blur-sm: blur(4px);
    --backdrop-blur-base: blur(8px);
    --backdrop-blur-md: blur(12px);
    --backdrop-blur-lg: blur(16px);
    --backdrop-blur-xl: blur(24px);
    --backdrop-blur-2xl: blur(40px);
}

/* ===================================
   BASE STYLES - PREMIUM FOUNDATION
   =================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--neutral-800);
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--primary-50) 50%, var(--neutral-50) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
    animation: luxuryGlow 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes luxuryGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-10%, 10%) scale(1.1);
        opacity: 0.8;
    }
}

/* ===================================
   CONTAINER SYSTEM - RESPONSIVE GRID
   =================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-8);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-12);
    }
}

@media (min-width: 1536px) {
    .container {
        padding: 0 var(--space-16);
    }
}

/* ===================================
   TYPOGRAPHY - REFINED & ELEGANT
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--neutral-900);
    margin: 0;
}

h1 {
    font-size: var(--text-6xl);
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 50%, var(--gold-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: var(--tracking-tighter);
}

h2 {
    font-size: var(--text-4xl);
    color: var(--neutral-900);
    font-weight: 700;
}

h3 {
    font-size: var(--text-3xl);
    color: var(--neutral-800);
    font-weight: 600;
}

h4 {
    font-size: var(--text-2xl);
    color: var(--neutral-800);
    font-weight: 600;
}

h5 {
    font-size: var(--text-xl);
    color: var(--neutral-700);
    font-weight: 600;
}

h6 {
    font-size: var(--text-lg);
    color: var(--neutral-700);
    font-weight: 600;
}

p {
    line-height: var(--leading-relaxed);
    color: var(--neutral-600);
    margin: 0;
}

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

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

a.link-underline {
    position: relative;
}

a.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-600), var(--gold-500));
    transition: width var(--transition-normal);
}

a.link-underline:hover::after {
    width: 100%;
}

/* ===================================
   BUTTONS - PREMIUM INTERACTIVE
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3-5) var(--space-8);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-primary);
    user-select: none;
    box-shadow: var(--shadow-base);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
    border-radius: var(--radius-2xl);
}

.btn-xl {
    padding: var(--space-6) var(--space-12);
    font-size: var(--text-xl);
    border-radius: var(--radius-2xl);
    font-weight: 700;
}

/* Premium Purple Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border-color: var(--primary-600);
    box-shadow: var(--shadow-purple-base), var(--shadow-lg);
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: inherit;
    z-index: -1;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-purple-lg), var(--shadow-2xl);
}

.btn-primary:hover::after {
    opacity: 1;
}
a.btn.btn-primary.btn-large:hover{
    color: var(--primary-200) !important;
}
/* Royal Gold Button */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    color: var(--neutral-900);
    border-color: var(--gold-600);
    box-shadow: var(--shadow-gold-base), var(--shadow-lg);
    font-weight: 700;
}

.btn-gold:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-lg), var(--shadow-2xl);
}

/* Elegant Secondary Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--backdrop-blur-md);
    color: var(--neutral-700);
    border: 2px solid var(--neutral-300);
    box-shadow: var(--shadow-base);
}

.btn-secondary:hover:not(:disabled) {
    background: white;
    border-color: var(--primary-400);
    color: var(--primary-700);
    transform: translateY(-3px);
    box-shadow: var(--shadow-purple-sm), var(--shadow-lg);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-600);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-purple-base);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--neutral-700);
    border-color: transparent;
    box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
    color: white;
    border-color: var(--emerald-600);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--emerald-400) 0%, var(--emerald-500) 100%);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px 0 rgba(16, 185, 129, 0.25);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
    color: white;
    border-color: var(--amber-600);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-500) 100%);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px 0 rgba(245, 158, 11, 0.25);
}

/* Error/Danger Button */
.btn-error {
    background: linear-gradient(135deg, var(--ruby-500) 0%, var(--ruby-600) 100%);
    color: white;
    border-color: var(--ruby-600);
}

.btn-error:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--ruby-400) 0%, var(--ruby-500) 100%);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px 0 rgba(239, 68, 68, 0.25);
}

/* Full Width Button */
.btn-full {
    width: 100%;
}

/* Navigation Button */
.btn-nav {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white !important;
    padding: var(--space-2-5) var(--space-6);
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    box-shadow: var(--shadow-purple-sm);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple-base);
}

/* Button Loading State */
.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn:has(.btn-loader:not(.hidden)) .btn-text {
    opacity: 0;
}

/* ===================================
   FORM ELEMENTS - PREMIUM INPUTS
   =================================== */

.form-group {
    margin-bottom: var(--space-6);
}

.form-row {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

label {
    display: block;
    margin-bottom: var(--space-2-5);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--neutral-700);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    color: var(--neutral-800);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--backdrop-blur-sm);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xs);
}

input::placeholder,
textarea::placeholder {
    color: var(--neutral-400);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1), var(--shadow-purple-sm);
    transform: translateY(-1px);
}

input.error,
select.error,
textarea.error {
    border-color: var(--ruby-500);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--neutral-100);
}

.error-message {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--ruby-600);
    font-weight: 500;
}

.success-message {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--emerald-600);
    font-weight: 500;
}

/* Checkbox - Premium Style */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--text-base);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: var(--space-6);
    height: var(--space-6);
    background: white;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    margin-left: var(--space-3);
    position: relative;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.checkbox-label input:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border-color: var(--primary-600);
    box-shadow: var(--shadow-purple-sm);
}

.checkbox-label input:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary-400);
    transform: scale(1.05);
}

/* Radio Button - Premium Style */
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--text-base);
    user-select: none;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-mark {
    width: var(--space-6);
    height: var(--space-6);
    background: white;
    border: 2px solid var(--neutral-300);
    border-radius: 50%;
    margin-left: var(--space-3);
    position: relative;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.radio-label input:checked + .radio-mark {
    border-color: var(--primary-600);
    box-shadow: var(--shadow-purple-sm);
}

.radio-label input:checked + .radio-mark:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translate(-50%, -50%);
}

.radio-label:hover .radio-mark {
    border-color: var(--primary-400);
    transform: scale(1.05);
}

/* ===================================
   NAVIGATION - LUXURY HEADER
   =================================== */

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--backdrop-blur-xl);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    position: sticky;
    top: 0;
    z-index: var(--z-dropdown);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-purple-sm), var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
    position: relative;
}

/* Brand Logo */
.nav-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: transform var(--transition-fast);
}

.nav-brand:hover {
    transform: scale(1.02);
}

.nav-brand h2 a {
    /*color: inherit;*/
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-brand i {
    font-size: var(--text-3xl);
    background: linear-gradient(135deg, var(--primary-600), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand h2 {
    font-size: var(--text-2xl);
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    -webkit-background-clip: text;
    /*-webkit-text-fill-color: transparent;*/
    background-clip: text;
    margin: 0;
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
}

/* Navigation Links */
.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    align-items: center;
}

.nav-links.logged-in {
    justify-content: flex-end;
    gap: var(--space-4);
}

.nav-links.hidden {
    display: none;
}

.nav-link {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--neutral-700);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    position: relative;
    letter-spacing: var(--tracking-wide);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-600), var(--gold-500));
    transform: translateX(-50%);
    transition: width var(--transition-normal);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
    background: var(--primary-200);
}
.nav-link.btn-nav:hover
{
    background: var(--primary-500) !important;
}
.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

/* Mobile Navigation Toggle */
.nav-mobile {
    position: absolute;
    left: var(--space-6);
    display: none;
}

.nav-toggle {
    display: none;
    font-size: var(--text-2xl);
    color: var(--neutral-600);
    cursor: pointer;
    padding: var(--space-2-5);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    background: white;
    border: 2px solid var(--neutral-200);
}

.nav-toggle:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    border-color: var(--primary-300);
    transform: scale(1.05);
}

/* Notifications */
.nav-notifications {
    position: relative;
}

.notification-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--neutral-100);
    color: var(--neutral-600);
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 2px solid transparent;
}

.notification-link:hover {
    background: var(--primary-100);
    color: var(--primary-600);
    border-color: var(--primary-300);
    transform: scale(1.1);
    box-shadow: var(--shadow-purple-sm);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--ruby-500), var(--ruby-600));
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: white;
    border: 2px solid var(--neutral-200);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.profile-btn:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-purple-sm);
    transform: scale(1.02);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-300);
    box-shadow: var(--shadow-sm);
}

.profile-btn i {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    transition: transform var(--transition-fast);
    margin-right: var(--space-2);
}

.profile-btn.active i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-3));
    left: 0;
    right: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: var(--backdrop-blur-xl);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-purple-base), var(--shadow-2xl);
    min-width: 280px;
    z-index: var(--z-dropdown);
    animation: dropdownSlideIn 0.3s var(--ease-out);
    overflow: hidden;
}

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

.dropdown-header {
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-bottom: 2px solid rgba(168, 85, 247, 0.1);
}

.user-info h4 {
    font-size: var(--text-base);
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
    font-weight: 700;
}

.user-info p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin: 0;
}

.dropdown-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    color: var(--neutral-700);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    padding-right: var(--space-6);
}

.dropdown-item i {
    width: 20px;
    color: var(--neutral-500);
    transition: color var(--transition-fast);
}

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

.logout-btn:hover {
    background: var(--ruby-50);
    color: var(--ruby-700);
}

.logout-btn:hover i {
    color: var(--ruby-600);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--backdrop-blur-sm);
    z-index: var(--z-90);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-menu-overlay.show {
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    /*max-width: 400px;*/
    height: 100vh;
    background: white;
    z-index: var(--z-max);
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-2xl);
    overflow-y: auto;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 2px solid rgba(168, 85, 247, 0.1);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.mobile-brand i {
    font-size: var(--text-2xl);
    background: linear-gradient(135deg, var(--primary-600), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-brand h3 {
    font-size: var(--text-lg);
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 800;
}

.mobile-close {
    background: white;
    border: 2px solid var(--neutral-200);
    font-size: var(--text-xl);
    color: var(--neutral-600);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close:hover {
    background: var(--ruby-50);
    color: var(--ruby-600);
    border-color: var(--ruby-300);
    transform: rotate(90deg);
}

.mobile-menu-content {
    padding: var(--space-6);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-6);
    border: 2px solid rgba(168, 85, 247, 0.2);
}

.mobile-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-300);
    box-shadow: var(--shadow-purple-sm);
}

.mobile-user-details h4 {
    font-size: var(--text-lg);
    color: var(--neutral-900);
    margin-bottom: var(--space-1-5);
    font-weight: 700;
}

.mobile-user-details p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin: 0;
}

.mobile-nav-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    margin: var(--space-6) 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    color: var(--neutral-700);
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    margin-bottom: var(--space-3);
    position: relative;
    background: white;
    border: 2px solid transparent;
    width: 100%;
    text-align: right;
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: 600;
}

.mobile-nav-link:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-200);
    transform: translateX(-4px);
}

.mobile-nav-link.primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    box-shadow: var(--shadow-purple-base);
}

.mobile-nav-link.primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    transform: translateX(-4px) translateY(-2px);
    box-shadow: var(--shadow-purple-lg);
}

.mobile-nav-link.logout {
    color: var(--ruby-600);
    border-color: var(--ruby-200);
}

.mobile-nav-link.logout:hover {
    background: var(--ruby-50);
    color: var(--ruby-700);
    border-color: var(--ruby-300);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    font-size: var(--text-lg);
}

.mobile-notification-badge {
    position: absolute;
    left: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--ruby-500), var(--ruby-600));
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
}

/* Responsive Navigation */
@media (max-width: 1200px) {
    .nav-brand i {
        font-size: var(--text-2xl);
    }

    .nav-brand h2 {
        font-size: var(--text-xl);
    }

    .nav-link {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-4);
    }
}

@media (max-width: 1024px) {
    .nav-brand i {
        font-size: var(--text-xl);
    }

    .nav-brand h2 {
        font-size: var(--text-lg);
    }

    .nav-link {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
    }

    .nav-links {
        gap: var(--space-1);
    }
}

@media (max-width: 767px) {
    .nav-mobile {
        display: block;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links:not(.mobile-menu .nav-links) {
        display: none;
    }

    .navbar .container {
        justify-content: center;
    }
}

/* ===================================
   HERO SECTION - LUXURY SHOWCASE
   =================================== */

.hero {
    position: relative;
    padding: var(--space-32) 0;
    background: linear-gradient(135deg,
        var(--primary-50) 0%,
        var(--neutral-50) 25%,
        var(--primary-100) 50%,
        var(--gold-50) 75%,
        var(--neutral-50) 100%
    );
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(234, 179, 8, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: luxuryFloat 15s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    top: 50%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-500), var(--rose-500));
    bottom: 15%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes luxuryFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.2;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.1;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: right;
    }
}

.hero-content h1 {
    font-size: var(--text-7xl);
    margin-bottom: var(--space-8);
    line-height: var(--leading-tight);
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-10);
    color: var(--neutral-700);
    line-height: var(--leading-relaxed);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (min-width: 1024px) {
    .hero-stats {
        justify-content: flex-start;
    }
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--backdrop-blur-md);
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(168, 85, 247, 0.1);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-purple-base);
    border-color: var(--primary-300);
}

.stat-item i {
    font-size: var(--text-3xl);
    background: linear-gradient(135deg, var(--primary-600), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--neutral-900), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.hero-buttons {
    display: flex;
    gap: var(--space-5);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

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

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur-xl);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-purple-lg), var(--shadow-2xl);
    max-width: 360px;
    width: 100%;
    border: 2px solid rgba(168, 85, 247, 0.2);
    transition: all var(--transition-slow);
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-purple-xl), var(--shadow-2xl);
}

.hero-card.floating {
    animation: floatCard 4s ease-in-out infinite;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.teacher-avatar {
    position: relative;
}

.teacher-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-300);
    box-shadow: var(--shadow-purple-sm);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--emerald-400), var(--emerald-500));
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.teacher-info h4 {
    margin-bottom: var(--space-1-5);
    font-size: var(--text-lg);
    color: var(--neutral-900);
}

.teacher-info p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin-bottom: var(--space-2);
}

.rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.rating i {
    color: var(--gold-500);
    font-size: var(--text-base);
}

.rating span {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--neutral-800);
}

.card-content p {
    font-size: var(--text-base);
    color: var(--neutral-700);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.price {
    font-size: var(--text-2xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   SECTION HEADER - ELEGANT TITLES
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-20);
}

.section-header h2 {
    margin-bottom: var(--space-6);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-600), var(--gold-500));
    border-radius: var(--radius-full);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    max-width: 700px;
    margin: var(--space-6) auto 0;
    line-height: var(--leading-relaxed);
}

/* ===================================
   FEATURES SECTION - PREMIUM CARDS
   =================================== */

.features {
    padding: var(--space-32) 0;
    background: white;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(234, 179, 8, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    gap: var(--space-10);
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    position: relative;
    z-index: 1;
}

.feature-card {
    text-align: center;
    padding: var(--space-10);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 245, 255, 0.9));
    backdrop-filter: var(--backdrop-blur-md);
    border: 2px solid rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-3xl);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-base);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-500), var(--gold-500), var(--primary-500));
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform var(--transition-slow);
    animation: shimmer 3s ease-in-out infinite;
}

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

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

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-purple-lg), var(--shadow-2xl);
    border-color: var(--primary-300);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-8);
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-purple-sm);
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary-400), var(--gold-400));
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.feature-card:hover .feature-icon::before {
    opacity: 0.3;
}

.feature-icon i {
    font-size: var(--text-4xl);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-purple-base);
}

.feature-card h3 {
    margin-bottom: var(--space-5);
    color: var(--neutral-900);
}

.feature-card p {
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
    color: var(--neutral-600);
}

.feature-link a {
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
    font-size: var(--text-base);
}

.feature-link a:hover {
    color: var(--primary-700);
    transform: translateX(-6px);
    gap: var(--space-3);
}

/* ===================================
   HOW IT WORKS - LUXURY STEPS
   =================================== */

.how-it-works {
    padding: var(--space-32) 0;
    background: linear-gradient(135deg, var(--neutral-50), var(--primary-50));
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-10);
    position: relative;
    z-index: 1;
}

.step-item {
    text-align: center;
    max-width: 280px;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 800;
    margin: 0 auto var(--space-6);
    box-shadow: var(--shadow-purple-lg);
    position: relative;
    z-index: 2;
    border: 4px solid white;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, var(--primary-400), var(--gold-400));
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.step-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur-md);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 2px solid rgba(168, 85, 247, 0.1);
}

.step-content:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-purple-base), var(--shadow-xl);
    border-color: var(--primary-300);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow-sm);
}

.step-icon i {
    font-size: var(--text-2xl);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content h3 {
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
    color: var(--neutral-900);
}

.step-content p {
    line-height: var(--leading-relaxed);
    color: var(--neutral-600);
}

.step-connector {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-400), var(--gold-400));
    position: relative;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.step-connector::after {
    content: '';
    position: absolute;
    left: -10px;
    top: -7px;
    width: 0;
    height: 0;
    border-right: 10px solid var(--gold-500);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* ===================================
   STATS SECTION - LUXURY METRICS
   =================================== */

.stats-section {
    padding: var(--space-28) 0;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 50%, var(--primary-900) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(234, 179, 8, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-10);
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    backdrop-filter: var(--backdrop-blur-lg);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: var(--shadow-gold-base), var(--shadow-xl);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-base);
}

.stat-icon i {
    font-size: var(--text-3xl);
    color: var(--gold-300);
}

.stat-info h3 {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-3);
    color: white;
}

.stat-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-base);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

/* ===================================
   TESTIMONIALS - LUXURY REVIEWS
   =================================== */

.testimonials {
    padding: var(--space-32) 0;
    background: white;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-10);
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 245, 255, 0.95));
    backdrop-filter: var(--backdrop-blur-md);
    border: 2px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    transition: all var(--transition-slow);
    position: relative;
    box-shadow: var(--shadow-base);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--gold-500));
    border-radius: var(--radius-full) var(--radius-full) 0 0;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-purple-lg), var(--shadow-2xl);
    border-color: var(--primary-300);
}

.testimonial-content {
    margin-bottom: var(--space-6);
}

.quote-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-purple-sm);
}

.quote-icon i {
    font-size: var(--text-xl);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial-content p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
    color: var(--neutral-700);
    font-style: italic;
}

.testimonial-content .rating {
    justify-content: flex-start;
    margin-bottom: var(--space-5);
}

.testimonial-content .rating i {
    color: var(--gold-500);
    font-size: var(--text-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-300);
    box-shadow: var(--shadow-purple-sm);
}

.author-info h4 {
    margin-bottom: var(--space-1);
    font-size: var(--text-lg);
    color: var(--neutral-900);
    font-weight: 700;
}

.author-info p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

/* ===================================
   CTA SECTION - LUXURY CALL TO ACTION
   =================================== */

.cta-section {
    padding: var(--space-32) 0;
    background: linear-gradient(135deg,
        var(--primary-700) 0%,
        var(--primary-800) 50%,
        var(--primary-900) 100%
    );
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(234, 179, 8, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-6);
    font-size: var(--text-5xl);
    font-weight: 800;
}

.cta-content p {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-10);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
}

.cta-buttons {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-700);
    border-color: white;
    box-shadow: var(--shadow-xl);
}

.cta-buttons .btn-primary:hover {
    background: var(--gold-100);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-base), var(--shadow-2xl);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--backdrop-blur-md);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-4px);
}

/* ===================================
   FOOTER - LUXURY FOOTER
   =================================== */

.footer {
    background: linear-gradient(135deg, var(--neutral-900), var(--neutral-800));
    color: var(--neutral-300);
    padding: var(--space-20) 0 var(--space-10);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-500), var(--gold-500), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--space-5);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.footer-brand i {
    font-size: var(--text-3xl);
    background: linear-gradient(135deg, var(--primary-400), var(--gold-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
    color: var(--neutral-400);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--neutral-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-300);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    transform: translateY(-4px);
    border-color: var(--primary-400);
    box-shadow: var(--shadow-purple-base);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-3);
}

.footer-section ul li a {
    color: var(--neutral-400);
    transition: all var(--transition-fast);
    display: inline-block;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: var(--primary-400);
    transform: translateX(-4px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--neutral-400);
}

.contact-info i {
    width: 24px;
    background: linear-gradient(135deg, var(--primary-500), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-bottom {
    border-top: 2px solid var(--neutral-700);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.footer-bottom p {
    color: var(--neutral-400);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-8);
}

.footer-links a {
    color: var(--neutral-400);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-400);
}

/* ===================================
   LOADING COMPONENTS - PREMIUM LOADERS
   =================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--backdrop-blur-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-max);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(168, 85, 247, 0.2);
    border-top: 4px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: var(--shadow-purple-base);
}

/* ===================================
   UTILITY CLASSES - HELPERS
   =================================== */

.hidden {
    display: none !important;
}

.visible {
    visibility: visible !important;
}

.invisible {
    visibility: hidden !important;
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Margin Utilities */
.m-0 { margin: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }

/* Padding Utilities */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Flexbox Utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* ===================================
   ANIMATIONS - LUXURY EFFECTS
   =================================== */

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-6px);
}

.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ===================================
   ACCESSIBILITY - A11Y ENHANCEMENTS
   =================================== */

*:focus {
    outline: 3px solid rgba(168, 85, 247, 0.5);
    outline-offset: 3px;
}

.btn:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 3px solid rgba(168, 85, 247, 0.5);
    outline-offset: 3px;
}

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

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

@media (max-width: 1024px) {
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }

    .hero { padding: var(--space-24) 0; }
    .features { padding: var(--space-24) 0; }
    .how-it-works { padding: var(--space-24) 0; }
    .testimonials { padding: var(--space-24) 0; }
    .cta-section { padding: var(--space-24) 0; }
}

@media (max-width: 767px) {
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }

    .hero { padding: var(--space-20) 0; }
    .hero-content h1 { font-size: var(--text-4xl); }
    .hero-subtitle { font-size: var(--text-lg); }

    .hero-stats { gap: var(--space-6); }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { min-width: auto; }

    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }

    .steps-container { flex-direction: column; }
    .step-connector {
        width: 3px;
        height: 80px;
        transform: rotate(0deg);
    }
    .step-connector::after {
        left: -7px;
        top: auto;
        bottom: -10px;
        border-right: 8px solid transparent;
        border-left: 8px solid transparent;
        border-top: 10px solid var(--gold-500);
        border-bottom: 0;
    }

    .cta-buttons { flex-direction: column; align-items: stretch; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    h1 { font-size: var(--text-3xl); }
    .hero-content h1 { font-size: var(--text-3xl); }
    .btn { padding: var(--space-3) var(--space-6); font-size: var(--text-sm); }
    .btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
}

/* ===================================
   PRINT STYLES - PROFESSIONAL PRINTING
   =================================== */

@media print {
    .navbar,
    .footer,
    .btn,
    .loader,
    .nav-toggle,
    .mobile-menu,
    .mobile-menu-overlay,
    .cta-section {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .hero,
    .features,
    .testimonials,
    .how-it-works {
        background: white !important;
        padding: 20pt 0 !important;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black !important;
    }

    a {
        text-decoration: underline;
        color: black !important;
    }
}

/* ===================================
   DARK MODE SUPPORT (OPTIONAL)
   =================================== */

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

* {
    -webkit-tap-highlight-color: transparent;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

/* ===================================
   END OF LUXURY DESIGN SYSTEM
   =================================== */
