/* ╔══════════════════════════════════════════════════════════════╗
   ║  LIQAA — Emerald Theme CSS                                  ║
   ║  Version 3.0                                                ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ═══════════ CSS VARIABLES ═══════════ */
:root {
    /* Primary palette */
    --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;

    /* Semantic colors */
    --color-primary: #10b981;
    --color-primary-dark: #059669;
    --color-primary-light: #34d399;
    --color-primary-glow: rgba(16,185,129,0.15);
    --color-secondary: #3b82f6;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-violet: #8b5cf6;

    /* Backgrounds */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0b1220;
    --bg-navy: #111827;
    --bg-navy-deep: #0d1321;

    /* Text */
    --text-heading: #1e293b;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Borders */
    --border-light: #e2e8f0;
    --border-card: #f1f5f9;

    /* Fonts */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0b1220 0%, #064e3b 50%, #10b981 100%);
    --gradient-primary-btn: linear-gradient(135deg, #10b981, #059669);
    --gradient-brand-icon: linear-gradient(135deg, #10b981, #059669);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 100px;
    --radius-input: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-elevated: 0 12px 40px rgba(0,0,0,0.15);
    --shadow-glow-green: 0 0 20px rgba(16,185,129,0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Compat aliases */
    --color-text-primary: var(--text-heading);
    --color-text-secondary: var(--text-body);
    --color-text-muted: var(--text-muted);
    --color-text-dim: var(--text-dim);
    --color-heading: var(--text-heading);
    --color-muted: var(--text-muted);
    --color-card: var(--bg-card);
    --color-card-bg: var(--bg-card);
    --color-card-border: var(--border-light);
    --color-bg-dark: var(--bg-body);
    --color-bg-input: #f8fafc;
    --color-bg-hover: #f1f5f9;
    --color-border: var(--border-light);
    --color-divider: #f1f5f9;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --gradient-primary: var(--gradient-primary-btn);

    /* Navy compat */
    --color-navy: #0b1220;
    --color-navy-deep: #060b18;
    --color-navy-light: #0f172a;

    /* Primary compat */
    --color-primary-border: #a7f3d0;
    --color-primary-text: #6ee7b7;

    /* Surface compat */
    --color-bg-base: #f8fafc;
    --color-bg-elevated: #ffffff;
    --color-bg-surface: #ffffff;
    --color-bg-card: #ffffff;
}

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(16,185,129,0.5); transform: scale(1); }
    50% { box-shadow: 0 0 16px rgba(16,185,129,0.8); transform: scale(1.15); }
}
@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float-gentle 3s ease-in-out infinite; }

/* ═══════════ BUTTONS ═══════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary-btn);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(16,185,129,0.25);
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.btn-dark:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* ═══════════ CARDS ═══════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}
.card:hover { box-shadow: var(--shadow-md); }

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary-btn);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.feature-card:hover {
    border-color: var(--emerald-200);
    box-shadow: 0 8px 30px rgba(16,185,129,0.1);
    transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--emerald-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all var(--transition-normal);
}
.feature-card:hover .feature-icon {
    background: var(--emerald-100);
    transform: scale(1.05);
}

/* ═══════════ BADGES ═══════════ */
.badge-emerald {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: var(--emerald-50);
    color: var(--emerald-700);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--emerald-200);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--emerald-50);
    color: var(--emerald-700);
    border: 1px solid var(--emerald-200);
}
.badge-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.badge-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.badge-info { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.badge-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.badge-violet { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }

/* ═══════════ SECTION LABEL ═══════════ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald-600);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}
.section-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--emerald-500);
    border-radius: 2px;
}

/* ═══════════ FORMS ═══════════ */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-input);
    background: var(--bg-card);
    color: var(--text-heading);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}
.form-input:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.form-input::placeholder { color: var(--text-muted); }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

/* ═══════════ PRICING CARD ═══════════ */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}
.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.pricing-card.featured {
    border-color: var(--emerald-300);
    box-shadow: 0 8px 30px rgba(16,185,129,0.15);
    transform: scale(1.03);
}
.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

/* ═══════════ NAVBAR ═══════════ */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
}

/* ═══════════ FOOTER ═══════════ */
.footer {
    background: var(--bg-navy-deep);
    color: #94a3b8;
    padding: 64px 24px 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ═══════════ AUTH ═══════════ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    text-decoration: none;
}
.auth-logo .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--emerald-500);
    box-shadow: 0 0 12px rgba(16,185,129,0.5);
    animation: pulse-glow 2.5s ease-in-out infinite;
}
.auth-logo .name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

.auth-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    margin-bottom: 0.375rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* Google Auth Button */
.google-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-input);
    background: var(--bg-card);
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.google-auth-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}

/* Auth submit button */
.btn-submit {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-input);
    background: var(--gradient-primary-btn);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(16,185,129,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}

/* ═══════════ ADMIN STAT CARD ═══════════ */
.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    border-left: 3px solid var(--emerald-500);
}
.admin-stat-card:hover { box-shadow: var(--shadow-md); }

.admin-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border-left: 3px solid var(--emerald-500);
    transition: all var(--transition-normal);
}
.admin-stat:hover { box-shadow: var(--shadow-md); }
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
    letter-spacing: -0.02em;
}

/* ═══════════ LEGAL PAGE ═══════════ */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}
.legal-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--emerald-50);
}
.legal-page h2 span { color: var(--emerald-500); }
.legal-page p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 16px;
}
.legal-page ul { padding-right: 24px; margin-bottom: 16px; }
.legal-page ul li {
    font-size: 0.93rem;
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 8px;
}
.legal-page ul li::marker { color: var(--emerald-500); }

/* ═══════════ GLASS CARD (compat) ═══════════ */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}
.glass-card:hover { box-shadow: var(--shadow-md); }

/* ═══════════ GRADIENT TEXT (compat) ═══════════ */
.gradient-text {
    background: var(--gradient-primary-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════ TOPBAR (compat) ═══════════ */
.dt-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
}

/* ═══════════ HERO ORB (error pages compat) ═══════════ */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}
.hero-orb-1 {
    width: 400px;
    height: 400px;
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(16,185,129,0.15), transparent 70%);
}
.hero-orb-2 {
    width: 300px;
    height: 300px;
    bottom: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(59,130,246,0.1), transparent 70%);
}
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary, .btn-dark {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    .feature-card { padding: 1.5rem; }
    .pricing-card { padding: 2rem; }
    .auth-card { padding: 2rem 1.5rem; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-4px); }

    /* Legal page responsive */
    .legal-page {
        padding: 2rem 1rem 3rem;
    }
    .legal-page h2 {
        font-size: 1.05rem;
    }
    .legal-page p, .legal-page ul li {
        font-size: 0.875rem;
    }

    /* Navbar responsive — hide nav links, show hamburger on mobile */
    .navbar .nav-links {
        display: none !important;
    }
    .navbar .nav-mobile-toggle {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .auth-card { padding: 1.5rem 1.25rem; }
}

/* === Global SVG Fix === */
svg {
  max-width: 64px;
  max-height: 64px;
}
svg.logo-icon {
  max-width: none;
  max-height: none;
}
