/* =========================================
   VARIABLES & DESIGN SYSTEM 
   ========================================= */
:root[data-theme="dark"] {
    --bg-main: #000000; /* Apple true black */
    --bg-secondary: rgba(20, 20, 22, 0.4);
    --bg-card: rgba(30, 30, 35, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #F5F5F7;
    --text-secondary: #86868B;
    --accent: #E5E5E5;
    --glow: 0 0 40px rgba(255,255,255,0.03);
    --input-bg: rgba(255,255,255,0.05);

    --ai-glow-1: rgba(10, 132, 255, 0.35); /* Apple Blue */
    --ai-glow-2: rgba(94, 92, 230, 0.35);  /* Indigo */
    --ai-glow-3: rgba(191, 90, 242, 0.35); /* Purple */
}

:root[data-theme="light"] {
    --bg-main: #F5F5F7;
    --bg-secondary: rgba(255, 255, 255, 0.5);
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.06);
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --accent: #000000;
    --glow: 0 10px 30px rgba(0,0,0,0.03);
    --input-bg: rgba(255,255,255,0.8);

    --ai-glow-1: rgba(0, 122, 255, 0.25);
    --ai-glow-2: rgba(88, 86, 214, 0.25);
    --ai-glow-3: rgba(175, 82, 222, 0.25);
}

:root {
    /* Typography settings */
    --font-sans: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 6rem;
    --spacing-xl: 10rem;
    
    /* Effects */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base styles for Arabic RTL */
html[dir="rtl"] body {
    text-align: right;
    letter-spacing: 0; /* Arabic looks better without negative letter-spacing sometimes */
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   AI BACKGROUND & EFFECTS
   ========================================= */
.ai-background {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--bg-main);
    transition: background-color 0.4s ease;
}

.ai-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    z-index: -1;
}

[data-theme="light"] .ai-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.05) 1px, transparent 1px);
}

.robot-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 100vw;
    height: 100vh;
    background-image: url('robot-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    mix-blend-mode: screen;
    animation: breatheEye 14s infinite alternate ease-in-out;
    will-change: transform, opacity;
}

[data-theme="light"] .robot-bg {
    opacity: 0.08;
    filter: invert(1);
    mix-blend-mode: multiply;
    animation: breatheEyeLight 14s infinite alternate ease-in-out;
}

@keyframes breatheEye {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.12; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.25; }
}

@keyframes breatheEyeLight {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.05; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.12; }
}

.ai-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: floatGlow 20s infinite alternate ease-in-out;
}

html[data-theme="light"] .ai-glow { filter: blur(80px); }

.glow-1 {
    width: 60vw; height: 60vw;
    max-width: 600px; max-height: 600px;
    background: var(--ai-glow-1);
    top: -10%; left: -20%;
    animation-delay: 0s;
}

.glow-2 {
    width: 50vw; height: 50vw;
    max-width: 700px; max-height: 700px;
    background: var(--ai-glow-2);
    bottom: -15%; right: -10%;
    animation-delay: -5s;
}

.glow-3 {
    width: 40vw; height: 40vw;
    max-width: 500px; max-height: 500px;
    background: var(--ai-glow-3);
    top: 30%; left: 60%;
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(6vw, -6vh) scale(1.1); }
    66% { transform: translate(-4vw, 5vh) scale(0.9); }
    100% { transform: translate(3vw, 3vh) scale(1.05); }
}

/* Floating Tech Shapes */
.floating-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: floatShape 20s infinite ease-in-out alternate;
}

html[data-theme="light"] .shape {
    opacity: 0.1;
}

.shape-1 {
    top: 15%; left: 10%;
    font-size: 2rem;
    animation-delay: 0s;
}

.shape-2 {
    top: 65%; left: 85%;
    width: 40px; height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape-3 {
    top: 25%; right: 15%;
    font-size: 1.5rem;
    animation-delay: -2s;
    animation-duration: 18s;
}

.shape-4 {
    top: 75%; left: 20%;
    width: 30px; height: 30px;
    border: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation-delay: -10s;
    animation-duration: 22s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, -50px) rotate(360deg); }
}

/* Base interactive card style for Apple spotlight */
.interactive-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1;
    transform: translateZ(0); /* Hardware acceleration */
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: radial-gradient(
        800px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

[data-theme="light"] .interactive-card::before {
    background: radial-gradient(
        800px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
        rgba(0, 0, 0, 0.04),
        transparent 40%
    );
}

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

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3 {
    letter-spacing: -0.04em;
}

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

.section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* =========================================
   HEADER & NAV
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 11, 12, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

/* Light mode specific header override if needed */
html[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.7);
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}


.nav-links a:hover {
    color: var(--text-primary);
}

.btn-nav {
    background: var(--text-primary);
    color: var(--bg-main) !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.btn-nav:hover {
    background: var(--text-secondary);
}

.header-controls {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-sans);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(150,150,150,0.04) 0%, transparent 60%);
    z-index: -1;
}

html[data-theme="light"] .hero::before {
    background: radial-gradient(circle, rgba(0,0,0,0.02) 0%, transparent 60%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-orb-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

#robotic-eye {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.profile-wrapper-small {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 30px rgba(10, 132, 255, 0.4);
    background: #000;
}

.profile-wrapper-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-title-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[data-theme="light"] .founder-title-badge {
    background: rgba(0, 0, 0, 0.03);
}

.founder-name {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

html[dir="rtl"] .founder-name {
    letter-spacing: 0;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: var(--spacing-md);
    max-width: 900px;
    background: linear-gradient(to right, var(--text-primary) 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.btn-primary {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-main) !important;
    padding: 1.2rem 3rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s;
    z-index: 1;
}

.btn-primary:hover {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Fallback for btn secondary if needed, removed shiny/float animations to match Apple minimalist aesthetic */

/* =========================================
   SECTIONS GENERAL
   ========================================= */
section {
    padding: var(--spacing-xl) 0;
}

/* =========================================
   PROOF SECTION
   ========================================= */
.proof {
    position: relative;
    z-index: 1;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--glow);
}

.metric-desc {
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.highlight {
    color: var(--text-primary);
}

.arrow-down {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: var(--spacing-sm) 0;
}

.stats-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* =========================================
   TUTORIALS SECTION
   ========================================= */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.tutorial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--glow);
}

.tutorial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(150,150,150,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.overlay-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: floatIcon 4s infinite alternate ease-in-out;
    z-index: 10;
}

html[data-theme="light"] .overlay-icon {
    background: rgba(255, 255, 255, 0.6);
    color: #1D1D1F;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.icon-tr {
    top: 15px;
    right: 15px;
    animation-delay: 0s;
}

.icon-bl {
    bottom: 15px;
    left: 15px;
    animation-delay: 1.5s;
}

@keyframes floatIcon {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-8px) scale(1.05); }
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tutorial-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-md);
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   HOW IT WORKS SECTION
   ========================================= */
.how-it-works {
    position: relative;
    z-index: 1;
}

.steps-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.steps-container::-webkit-scrollbar {
    display: none;
}

.step-item {
    flex: 0 0 clamp(280px, 75vw, 320px);
    scroll-snap-align: start;
    position: relative;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--glow);
}

.step-number {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.step-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.step-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   CONSULTATION SECTION
   ========================================= */
.consultation {
    padding-bottom: var(--spacing-xl);
}

.consultation-container {
    max-width: 600px;
}

.consultation-content {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--glow);
}

.consultation-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.consultation-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.consultation-form {
    text-align: left;
}

html[dir="rtl"] .consultation-form {
    text-align: right;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

html[dir="rtl"] .form-group input {
    text-align: right;
}

.form-group input:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.btn-submit {
    width: 100%;
    margin-top: var(--spacing-sm);
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--text-secondary);
    color: var(--text-primary);
}

.form-success {
    margin-top: var(--spacing-sm);
    padding: 1rem;
    background: rgba(72, 199, 116, 0.1);
    color: #48c774;
    border: 1px solid rgba(72, 199, 116, 0.2);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    position: relative;
    z-index: 1;
    background: rgba(11, 11, 12, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html[data-theme="light"] footer {
    background: rgba(255, 255, 255, 0.3);
}

.footer-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(72, 199, 116, 0.1);
    border: 1px solid rgba(72, 199, 116, 0.2);
}

.wa-link svg {
    color: #48c774;
}

.wa-link:hover {
    background: rgba(72, 199, 116, 0.2);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.privacy-link {
    text-decoration: underline;
    opacity: 0.8;
    transition: var(--transition);
}

.privacy-link:hover {
    opacity: 1;
    color: var(--text-primary);
}

html[dir="rtl"] .footer-copy {
    direction: ltr; /* Keeping copyright block LTR often looks better with dates, but text flows RTL */
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-brand {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* =========================================
   ANIMATIONS & OBSERVER CLASSES
   ========================================= */
.fade-in {
    opacity: 0;
    filter: blur(12px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(40px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.in-view {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) scale(1) !important;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .metric-card, .tutorial-card, .step-item {
        padding: 1.5rem;
    }
    
    .consultation-content {
        padding: var(--spacing-md);
    }
    
        /* Make shapes slightly smaller on mobile */
    .glow-1 { width: 80vw; height: 80vw; }
    .glow-2 { width: 70vw; height: 70vw; }
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: var(--spacing-sm);
}

.modal-overlay.visible {
    opacity: 1;
}

html[data-theme="light"] .modal-overlay {
    background: rgba(255, 255, 255, 0.4);
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.visible .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

html[dir="rtl"] .modal-close {
    right: auto;
    left: 20px;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-xs);
}

.privacy-section {
    margin-bottom: var(--spacing-md);
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.privacy-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
