/* ===================================
   NABEH - Smart Education Assist
   Design System & Global Styles
   =================================== */

/* --- CSS Variables / Tokens --- */
:root {
    /* Brand Colors */
    --color-primary: #234C6A;
    --color-primary-dark: #1B3C53;
    --color-primary-light: #456882;
    --color-accent: #0DFFF1;
    --color-neutral: #E3E3E3;
    
    /* Light Mode */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F8FA;
    --bg-card: #FFFFFF;
    --bg-input: #F3F4F6;
    --text-primary: #1B3C53;
    --text-secondary: #456882;
    --text-muted: #7A8FA0;
    --border-color: #E3E3E3;
    --shadow-sm: 0 1px 3px rgba(27, 60, 83, 0.06);
    --shadow-md: 0 4px 16px rgba(27, 60, 83, 0.08);
    --shadow-lg: 0 8px 32px rgba(27, 60, 83, 0.1);
    --shadow-xl: 0 16px 48px rgba(27, 60, 83, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(227, 227, 227, 0.5);
    --header-bg: rgba(255, 255, 255, 0.85);
    --accent-glow: rgba(13, 255, 241, 0.15);
    --gradient-hero: linear-gradient(135deg, #F7F8FA 0%, #EDF3F8 50%, #E8F0F7 100%);
}

[data-theme="dark"] {
    --bg-primary: #0D1B2A;
    --bg-secondary: #12243A;
    --bg-card: #162D45;
    --bg-input: #1B3C53;
    --text-primary: #E3E3E3;
    --text-secondary: #A8BCC9;
    --text-muted: #6B8299;
    --border-color: rgba(69, 104, 130, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);
    --glass-bg: rgba(22, 45, 69, 0.7);
    --glass-border: rgba(69, 104, 130, 0.2);
    --header-bg: rgba(13, 27, 42, 0.88);
    --accent-glow: rgba(13, 255, 241, 0.08);
    --gradient-hero: linear-gradient(135deg, #0D1B2A 0%, #12243A 50%, #162D45 100%);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

[dir="ltr"] body {
    font-family: 'Inter', 'Cairo', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

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

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

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

@keyframes scrollLine {
    0% { height: 0; opacity: 0; }
    30% { opacity: 1; }
    100% { height: 40px; opacity: 0; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(13, 255, 241, 0.15); }
    50% { box-shadow: 0 0 40px rgba(13, 255, 241, 0.3); }
}

@keyframes orbMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes orbMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(0.95); }
    66% { transform: translate(20px, -20px) scale(1.1); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo img {
    height: 52px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
    background: var(--accent-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle,
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.lang-toggle:hover,
.theme-toggle:hover {
    background: var(--accent-glow);
    color: var(--color-accent);
    border-color: rgba(13, 255, 241, 0.3);
}

.lang-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    padding-top: 72px;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(13, 255, 241, 0.12);
    top: 10%;
    right: -5%;
    animation: orbMove1 15s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(35, 76, 106, 0.15);
    bottom: 10%;
    left: -5%;
    animation: orbMove2 18s ease-in-out infinite;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(13, 255, 241, 0.08);
    top: 50%;
    left: 40%;
    animation: orbMove1 12s ease-in-out infinite reverse;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-glow);
    border: 1px solid rgba(13, 255, 241, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 24px;
}

[data-theme="dark"] .hero-badge {
    background: rgba(13, 255, 241, 0.06);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, #0BC5BA 50%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(27, 60, 83, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 60, 83, 0.35);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(13, 255, 241, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

[dir="ltr"] .btn svg {
    transform: scaleX(-1);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-suffix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.hero-image-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    background: radial-gradient(ellipse, rgba(13, 255, 241, 0.2) 0%, transparent 70%);
    filter: blur(20px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 2px;
    height: 0;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scrollLine 2s ease-in-out infinite;
}

/* --- Hero Particle Canvas --- */
.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* --- Hero Animated Grid --- */
.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(13, 255, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 255, 241, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
    animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}

/* --- Floating Metric Badges --- */
@keyframes floatBadge1 {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50%       { transform: translateY(-14px) rotate(1deg); }
}
@keyframes floatBadge2 {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50%       { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes floatBadge3 {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50%       { transform: translateY(-16px) rotate(-2deg); }
}
@keyframes floatBadge4 {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50%       { transform: translateY(-12px) rotate(2deg); }
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.8); opacity: 0; }
}

.hero-image-wrapper {
    overflow: visible !important;
}

.hero-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    cursor: default;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}
.hero-float-badge:hover {
    box-shadow: 0 12px 40px rgba(13, 255, 241, 0.2);
    border-color: rgba(13, 255, 241, 0.35);
}

.float-badge-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 10px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.float-badge-info {
    display: flex;
    flex-direction: column;
}

.float-badge-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.1;
}

.float-badge-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.float-badge-pulse {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}
.float-badge-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-accent);
    animation: badgePulse 2s ease-out infinite;
}

/* Badge positions */
.hero-float-1 {
    top: -20px;
    right: -24px;
    animation: floatBadge1 5s ease-in-out infinite;
}
.hero-float-2 {
    bottom: 40px;
    right: -30px;
    animation: floatBadge2 6s ease-in-out infinite 0.5s;
}
.hero-float-3 {
    top: 60px;
    left: -36px;
    animation: floatBadge3 5.5s ease-in-out infinite 1s;
}
.hero-float-4 {
    bottom: -18px;
    left: 20px;
    animation: floatBadge4 7s ease-in-out infinite 0.3s;
}

[dir="ltr"] .hero-float-1 { right: auto; left: -24px; }
[dir="ltr"] .hero-float-2 { right: auto; left: -30px; }
[dir="ltr"] .hero-float-3 { left: auto; right: -36px; }
[dir="ltr"] .hero-float-4 { left: auto; right: 20px; }

/* --- Hero Ring Decorations --- */
@keyframes ringRotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg); }
}
@keyframes ringRotateRev {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(-360deg); }
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(13, 255, 241, 0.18);
    pointer-events: none;
    left: 50%;
    top: 50%;
}

.hero-ring-1 {
    width: 110%;
    padding-bottom: 110%;
    margin-top: -55%;
    animation: ringRotate 25s linear infinite;
}

.hero-ring-2 {
    width: 130%;
    padding-bottom: 130%;
    margin-top: -65%;
    border-color: rgba(69, 104, 130, 0.15);
    animation: ringRotateRev 40s linear infinite;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(13, 255, 241, 0.15);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- About Section --- */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 255, 241, 0.2);
}

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

.about-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 14px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 255, 241, 0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 14px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: rgba(13, 255, 241, 0.1);
    color: var(--color-accent);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Pricing Section --- */
.pricing {
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--color-accent);
    background: var(--bg-card);
    box-shadow: 0 0 40px rgba(13, 255, 241, 0.08);
    transform: scale(1.04);
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-6px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 20px;
    background: linear-gradient(135deg, var(--color-accent), #0BC5BA);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50px;
    white-space: nowrap;
}

.plan-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.plan-price .currency {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.plan-price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.plan-features {
    text-align: start;
    margin-bottom: 28px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.btn-plan {
    width: 100%;
    padding: 14px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-plan:hover {
    background: var(--accent-glow);
    border-color: rgba(13, 255, 241, 0.3);
    color: var(--color-accent);
}

.pricing-card.featured .btn-plan {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 15px rgba(27, 60, 83, 0.25);
}

.pricing-card.featured .btn-plan:hover {
    box-shadow: 0 8px 25px rgba(27, 60, 83, 0.35);
}

/* --- Registration Section --- */
.register-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.register-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: 36px;
}

.form-section:last-of-type {
    margin-bottom: 32px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.form-section-title svg {
    color: var(--color-accent);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.92rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(13, 255, 241, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23456882' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
}

[dir="ltr"] .form-group select {
    background-position: right 14px center;
    padding-left: 16px;
    padding-right: 40px;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload:hover,
.file-upload.dragover {
    border-color: var(--color-accent);
    background: var(--accent-glow);
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px;
    color: var(--text-muted);
}

.file-upload-content svg {
    color: var(--color-accent);
}

.file-upload-content p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.file-upload-content span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.file-preview img {
    max-height: 80px;
    border-radius: 8px;
}

.file-remove {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[dir="ltr"] .file-remove {
    left: auto;
    right: 8px;
}

.file-remove:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

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

.password-wrapper input {
    width: 100%;
    padding-left: 44px;
}

[dir="ltr"] .password-wrapper input {
    padding-left: 16px;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.3s ease;
}

[dir="ltr"] .password-toggle {
    left: auto;
    right: 12px;
}

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

.eye-closed { display: none; }
.password-toggle.active .eye-open { display: none; }
.password-toggle.active .eye-closed { display: block; }

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    border-radius: 14px;
}

/* --- Footer --- */
.footer {
    background: var(--color-primary-dark);
    color: #FFFFFF;
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo-light { display: none; }
.footer .logo-dark { display: block; }

.footer-logo {
    height: 48px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(227, 227, 227, 0.7);
    font-size: 0.88rem;
    line-height: 1.8;
    max-width: 320px;
}

.footer-links-group h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    font-size: 0.88rem;
    color: rgba(227, 227, 227, 0.7);
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(227, 227, 227, 0.5);
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary-dark);
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(13, 255, 241, 0.2);
}

.toast.show {
    bottom: 30px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    color: var(--color-accent);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 580px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-6px);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        inset: 0;
        background: var(--bg-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 5;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

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

    .form-grid {
        grid-template-columns: 1fr;
    }

    .register-form {
        padding: 28px 20px;
    }

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

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
