/* ===================================
   Tickra.ai - Dark TradingView Theme
   Professional Trading Platform Design
   =================================== */

/* ===================================
   Root Variables - Dark Theme
   =================================== */
:root {
    /* TradingView Dark Color Palette */
    --bg-primary: #0D0D0D;
    --bg-secondary: #131722;
    --bg-tertiary: #1C1E2B;
    --bg-card: #1E222D;
    --bg-elevated: #262B3E;

    /* Accent Colors - Trading Theme */
    --accent-green: #26a69a;
    --accent-green-bright: #00E676;
    --accent-blue: #2962FF;
    --accent-purple: #9C27B0;
    --accent-gold: #FF9800;
    --accent-red: #FF5252;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2962FF 0%, #26a69a 100%);
    --gradient-success: linear-gradient(135deg, #00E676 0%, #26a69a 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FF9800 100%);
    --gradient-glass: linear-gradient(135deg, rgba(41, 98, 255, 0.1) 0%, rgba(38, 166, 154, 0.1) 100%);

    /* Text Colors */
    --text-primary: #D1D4DC;
    --text-secondary: #787B86;
    --text-tertiary: #4E5259;
    --text-white: #FFFFFF;

    /* Border & Divider */
    --border-color: #2A2E39;
    --border-light: #363A45;
    --divider: rgba(255, 255, 255, 0.06);

    /* Status Colors */
    --success-color: #00E676;
    --error-color: #FF5252;
    --warning-color: #FF9800;
    --info-color: #2962FF;

    /* Typography */
    --font-arabic: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-english: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --card-padding: 40px;

    /* Shadows - Dark Theme */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --glow-blue: 0 0 30px rgba(41, 98, 255, 0.4);
    --glow-green: 0 0 30px rgba(38, 166, 154, 0.4);
    --glow-gold: 0 0 30px rgba(255, 152, 0, 0.4);

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: var(--font-arabic);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: var(--font-english);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-white);
}

a {
    text-decoration: none;
    transition: var(--transition-base);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 6px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ===================================
   Language Toggle
   =================================== */
.language-toggle {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1050;
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[dir="rtl"] .language-toggle {
    right: 20px;
    left: auto;
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-lang {
    background: rgba(30, 34, 45, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.btn-lang:hover {
    background: var(--bg-card);
    border-color: var(--accent-blue);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow-blue);
}

.btn-lang i {
    font-size: 16px;
    color: var(--accent-blue);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: rgba(19, 23, 34, 0.95);
    backdrop-filter: blur(20px);
    padding: 18px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

/* Logo Styles */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1100;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(41, 98, 255, 0.3));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(41, 98, 255, 0.5));
}

.navbar-brand .logo-text {
    display: none;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 10px 18px !important;
    border-radius: 10px;
    transition: var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: rgba(41, 98, 255, 0.1);
    color: var(--text-white) !important;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    background: var(--bg-secondary);
    color: var(--text-white);
    padding: 100px 0 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Static Grid Background */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(41, 98, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 98, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(41, 98, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(38, 166, 154, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 152, 0, 0.08) 0%, transparent 60%);
}

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

/* Hero Logo */
.hero-logo-wrapper {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(41, 98, 255, 0.8))
            drop-shadow(0 0 15px rgba(41, 98, 255, 0.6))
            brightness(1.2)
            contrast(1.3);
    animation: float 3s ease-in-out infinite;
}

.badge-pill {
    display: inline-block;
    background: rgba(41, 98, 255, 0.15);
    border: 1px solid rgba(41, 98, 255, 0.3);
    color: var(--accent-blue);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--glow-blue);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both, textShine 3s ease-in-out infinite;
    line-height: 1.3;
    max-width: 100%;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

/* Typing Demo */
.typing-demo-wrapper {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.typing-demo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(41, 98, 255, 0.08);
    border: 1px solid rgba(41, 98, 255, 0.25);
    border-radius: 50px;
    padding: 14px 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(41, 98, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.typing-demo:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(41, 98, 255, 0.3);
    border-color: rgba(41, 98, 255, 0.4);
}

.typing-icon {
    font-size: 24px;
    color: var(--accent-blue);
    animation: pulse 2s ease-in-out infinite;
}

.typing-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.typing-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
}

.typing-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    min-height: 24px;
    display: flex;
    align-items: center;
    font-family: 'Courier New', monospace;
}

.typing-text::after {
    content: '|';
    color: var(--accent-blue);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

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

.hero-stats {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
    justify-content: center;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(41, 98, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: countUp 2s ease-out;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-cta {
    padding: 18px 48px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--glow-blue);
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 40px rgba(41, 98, 255, 0.6), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-cta:hover::before {
    left: 100%;
}

/* Hero Image - Floating Cards with Enhanced Animation */
.hero-image {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    background: rgba(30, 34, 45, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-white);
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-smooth);
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.floating-card i {
    font-size: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05) rotateY(5deg);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.card-1 {
    top: 15%;
    right: 5%;
    animation: float3D 4s ease-in-out infinite, fadeInRight 1s ease-out;
}

.card-2 {
    top: 45%;
    right: 25%;
    animation: float3D 4s ease-in-out 0.7s infinite, fadeInRight 1s ease-out 0.3s;
}

.card-3 {
    bottom: 15%;
    right: 10%;
    animation: float3D 4s ease-in-out 1.4s infinite, fadeInRight 1s ease-out 0.6s;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 28px;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: var(--transition-base);
}

.scroll-indicator:hover {
    color: var(--accent-blue);
    transform: translateX(-50%) scale(1.2);
}

/* ===================================
   Section Styles
   =================================== */
.features-section,
.how-it-works-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
}

.how-it-works-section {
    background: var(--bg-secondary);
}

.section-header {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* ===================================
   Feature Cards - Glassmorphism
   =================================== */
.feature-card {
    background: rgba(30, 34, 45, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 45px 35px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--glow-blue);
    border-color: var(--accent-blue);
}

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

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    background: var(--gradient-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: white;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    box-shadow: var(--glow-blue);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 50px rgba(41, 98, 255, 0.6);
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ===================================
   Step Cards
   =================================== */
.step-card {
    background: rgba(30, 34, 45, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 35px;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity 0.4s;
}

.step-card:hover {
    background: rgba(30, 34, 45, 0.6);
    border-color: var(--accent-green);
    box-shadow: var(--glow-green);
    transform: translateY(-10px) scale(1.03);
}

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

.step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    box-shadow: var(--glow-green);
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 90px auto 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: white;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.step-card:hover .step-icon {
    transform: scale(1.2) rotate(360deg);
}

.step-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ===================================
   Registration Section
   =================================== */
.register-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
}

.register-card {
    background: rgba(30, 34, 45, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: var(--card-padding);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.register-header {
    margin-bottom: 40px;
}

.register-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 18px;
}

.register-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Form Styles - Dark Theme */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.2);
    color: var(--text-white);
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-white);
    padding: 10px;
}

.form-control.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 4px rgba(255, 82, 82, 0.2);
}

.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 6px;
    color: var(--error-color);
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-base);
}

body[dir="rtl"] .btn-toggle-password {
    left: auto;
    right: 14px;
}

.btn-toggle-password:hover {
    color: var(--accent-blue);
    transform: translateY(-50%) scale(1.2);
}

/* Password Strength */
.password-strength {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.password-strength::after {
    content: '';
    display: block;
    height: 100%;
    transition: var(--transition-base);
    box-shadow: 0 0 10px currentColor;
}

.password-strength.weak::after {
    width: 33%;
    background: var(--error-color);
}

.password-strength.medium::after {
    width: 66%;
    background: var(--warning-color);
}

.password-strength.strong::after {
    width: 100%;
    background: var(--success-color);
}

/* Submit Button */
.btn-submit {
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    margin-top: 25px;
    background: var(--gradient-primary);
    border: none;
    transition: var(--transition-smooth);
    box-shadow: var(--glow-blue);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(41, 98, 255, 0.6);
}

.btn-submit:hover:not(:disabled)::before {
    left: 100%;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

body[dir="ltr"] .social-links {
    justify-content: flex-end;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--glow-blue);
}

/* ===================================
   Toast Notifications
   =================================== */
.toast {
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
}

.toast-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
}

.toast.error .toast-header {
    background: var(--error-color);
}

.toast.success .toast-header {
    background: var(--gradient-success);
}

.toast-body {
    padding: 18px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
}

/* ===================================
   Questionnaire Page
   =================================== */
.questionnaire-body {
    background: var(--bg-primary);
    min-height: 100vh;
}

.progress-bar-container {
    background: rgba(19, 23, 34, 0.95);
    backdrop-filter: blur(20px);
    padding: 25px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid var(--border-color);
}

/* Adjust language toggle on questionnaire page */
.questionnaire-body .language-toggle {
    top: 32px;
    z-index: 1101;
}

.progress-wrapper {
    position: relative;
}

.progress {
    height: 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 50px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: var(--glow-blue);
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--gradient-gold);
    border-radius: 50%;
    box-shadow: var(--glow-gold);
    animation: pulse 2s ease-in-out infinite;
}

.progress-text {
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.questionnaire-section {
    padding: 80px 0;
}

.questionnaire-card {
    background: rgba(30, 34, 45, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 60px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo {
    margin-bottom: 50px;
}

.logo-img-large {
    height: 100px;
    width: auto;
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo .logo-text {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 12px;
}

.question-wrapper {
    display: none;
    animation: fadeInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.question-wrapper.active {
    display: block;
}

.question-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 35px;
    line-height: 1.4;
}

.navigation-buttons {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    justify-content: space-between;
}

body[dir="ltr"] .navigation-buttons {
    flex-direction: row-reverse;
}

.navigation-buttons .btn {
    flex: 1;
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.navigation-buttons .btn-outline-secondary {
    border: 2px solid var(--border-light);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.navigation-buttons .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--glow-blue);
}

.navigation-buttons .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--glow-blue);
}

.navigation-buttons .btn-primary:hover,
.navigation-buttons .btn-success:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(41, 98, 255, 0.6);
}

/* ===================================
   Success Modal
   =================================== */
.modal-content {
    border-radius: 32px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    background: var(--bg-card);
}

.modal-body {
    background: var(--bg-card);
}

.success-icon {
    font-size: 100px;
    color: var(--success-color);
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(var(--glow-green));
}

.success-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-white);
}

.success-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.expected-timeline {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.expected-timeline strong {
    color: var(--accent-blue);
    font-size: 1.25rem;
}

.social-follow p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 18px;
}

/* ===================================
   Keyframe Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes float3D {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-20px) rotateX(5deg) rotateY(-5deg);
    }
    50% {
        transform: translateY(-30px) rotateX(-3deg) rotateY(5deg);
    }
    75% {
        transform: translateY(-15px) rotateX(3deg) rotateY(-3deg);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(41, 98, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(41, 98, 255, 0.8));
    }
}

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

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 70px;
        --card-padding: 35px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .typing-demo {
        padding: 12px 22px;
        gap: 12px;
    }

    .typing-icon {
        font-size: 20px;
    }

    .typing-text {
        font-size: 14px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .questionnaire-card {
        padding: 45px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 60px;
        --card-padding: 30px;
    }

    /* Navbar adjustments for mobile */
    .navbar {
        padding: 12px 0;
    }

    /* Center navbar brand on mobile */
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1100;
        pointer-events: none;
    }

    .navbar-brand > * {
        pointer-events: auto;
    }

    .navbar-toggler {
        order: 1;
        z-index: 1102;
        margin-right: auto;
    }

    .language-toggle {
        order: 3;
        z-index: 1102;
        margin-left: auto;
    }

    /* Mobile menu dropdown */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(19, 23, 34, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 1099;
        margin-top: 12px;
    }

    .navbar-collapse .navbar-nav {
        padding: 20px 0;
    }

    .navbar-collapse .nav-item {
        text-align: center;
        padding: 8px 0;
    }

    .logo-img {
        height: 36px;
    }

    .navbar-brand .logo-text {
        display: none;
    }

    .logo-img-large {
        height: 70px;
    }

    /* Hero logo on mobile */
    .hero-logo {
        height: 80px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .typing-demo {
        padding: 10px 18px;
        gap: 10px;
        flex-direction: row;
        max-width: 100%;
    }

    .typing-icon {
        font-size: 18px;
    }

    .typing-label {
        font-size: 10px;
    }

    .typing-text {
        font-size: 13px;
        min-height: 20px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 calc(50% - 10px);
    }

    .section-title {
        font-size: 2rem;
    }

    .register-card,
    .questionnaire-card {
        padding: 30px;
    }

    .register-title,
    .question-title {
        font-size: 1.75rem;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .navigation-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .btn-cta {
        padding: 16px 36px;
        font-size: 1rem;
    }

    .feature-card,
    .step-card {
        padding: 35px 25px;
    }
}

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

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}
