/* ═══════════════════════════════════════════════════════════════
   Mico Sage Tech Agency — Custom Stylesheet
   Liquid Pro Aesthetic · Glassmorphism · Nebula Effects
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─ New Premium Theme ──────────────────────────── */
:root {
    /* Deep Space Backgrounds */
    --bg-primary: #0b0e14;
    --bg-secondary: #0f172a;
    --bg-surface: #1a2333;

    /* Glassmorphism System */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Futuristic Accents */
    --neon-emerald: #10b981;
    --neon-cyan: #06b6d4;
    --neon-violet: #8b5cf6;
    --neon-amber: #f59e0b;
    --neon-rose: #f43f5e;

    --theme-primary: var(--neon-emerald);
    --theme-accent: var(--neon-cyan);
    --theme-gold: var(--neon-amber);

    /* Functional Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Legacy Front-End Card Variables */
    --bg-card: rgba(26, 29, 36, 0.7);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-smooth: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;

    /* Spacing & Radius Overhaul */
    --gap-core: 2rem;
    --radius-premium: 18px;
    --sidebar-width: 280px;

    --font-en: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-ar: 'IBM Plex Sans Arabic', 'Amiri', sans-serif;

    --transition-premium: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-primary: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* ── Neon Utility Classes ────────────────────────────────────── */
.text-neon-cyan {
    color: var(--neon-cyan);
}

.bg-neon-cyan {
    background-color: var(--neon-cyan);
}

.text-neon-emerald {
    color: var(--neon-emerald);
}

.bg-neon-emerald {
    background-color: var(--neon-emerald);
}

.text-neon-purple {
    color: var(--neon-purple);
}

.bg-neon-purple {
    background-color: var(--neon-purple);
}

.text-neon-amber {
    color: var(--neon-amber);
}

.bg-neon-amber {
    background-color: var(--neon-amber);
}

.text-neon-rose {
    color: var(--neon-rose);
}

.bg-neon-rose {
    background-color: var(--neon-rose);
}

.bg-glass-bg {
    background-color: var(--glass-bg);
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.shadow-premium {
    box-shadow: var(--glass-shadow);
}

/* Screen Reader Only / Visually Hidden */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ── Global Spacing Cleanup ── */
.admin-layout {
    gap: 0;
    /* Handled by margins */
}

/* ── Opportunity State Styles ──────────────────────────────── */
.opp-read-only input:not([type="radio"]):not([type="checkbox"]),
.opp-read-only select,
.opp-read-only textarea {
    pointer-events: none !important;
    border-bottom-color: transparent !important;
    background-color: transparent !important;
    padding-left: 0 !important;
}

.opp-read-only label i {
    display: none !important;
}

.opp-read-only .group/rev {
    opacity: 0.8;
}

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

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

body {
    font-family: var(--font-en);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ── Nebula Background ────────────────────────────────────── */
.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
        /* Emerald */
        radial-gradient(ellipse 60% 80% at 80% 60%, rgba(251, 191, 36, 0.06) 0%, transparent 60%),
        /* Gold */
        radial-gradient(ellipse 50% 40% at 50% 90%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        /* Cyan */
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.nebula-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: transparent;
    box-shadow:
        10vw 20vh 1px 0px rgba(255, 255, 255, 0.3),
        30vw 70vh 1px 0px rgba(255, 255, 255, 0.2),
        60vw 30vh 1px 0px rgba(255, 255, 255, 0.25),
        80vw 80vh 1px 0px rgba(255, 255, 255, 0.15),
        50vw 50vh 1px 0px rgba(255, 255, 255, 0.1),
        95vw 15vh 1px 0px rgba(255, 255, 255, 0.2),
        /* Additional stars for coverage */
        15vw 85vh 1px 0px rgba(255, 255, 255, 0.2),
        75vw 10vh 1px 0px rgba(255, 255, 255, 0.15);
    animation: starTwinkle 8s ease-in-out infinite alternate;
    will-change: opacity;
}

@keyframes starTwinkle {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.nebula-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
    will-change: transform;
}

.nebula-orb-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent);
    animation-delay: 0s;
}

.nebula-orb-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -10%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1), transparent);
    animation-delay: -7s;
}

.nebula-orb-3 {
    width: 350px;
    height: 350px;
    bottom: -5%;
    left: 30%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.07), transparent);
    animation-delay: -14s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        transform: translate(15px, 15px) scale(1.02);
    }
}

/* ── Floating Island Navbar ───────────────────────────────── */
.navbar-island {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(10, 10, 30, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    max-width: 95vw;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-island:hover {
    background: rgba(10, 10, 30, 0.8);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 48px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-logo {
    font-size: 0.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}

.company-name-text {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.85rem;
    font-weight: 800;
}

html.light-theme .company-name-text {
    -webkit-text-fill-color: #0f172a;
}

.footer-company-name {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.1rem;
}

body[dir="rtl"] .nav-logo {
    margin-left: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

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

.nav-lang-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    font-weight: 500;
    flex-shrink: 0;
}

.nav-lang-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
    border-color: rgba(16, 185, 129, 0.3);
}

/* ── Theme Toggle Button ───────────────────────────────────── */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--glass-hover);
    color: var(--theme-gold);
    border-color: rgba(251, 191, 36, 0.3);
    transform: rotate(15deg);
}

.theme-toggle .sun {
    display: none;
}

.theme-toggle .moon {
    display: block;
}

html.light-theme .theme-toggle .sun {
    display: block;
}

html.light-theme .theme-toggle .moon {
    display: none;
}

/* ── Light Theme Variables ─────────────────────────────────── */
html.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-hover: rgba(0, 0, 0, 0.04);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
}

html.light-theme .mobile-nav {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
}

html.light-theme .mobile-nav a {
    color: #475569 !important;
}

html.light-theme .mobile-nav a:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}

html.light-theme .nav-hamburger span {
    background: #0f172a !important;
}

html.light-theme body {
    background: #f1f5f9;
    color: var(--text-primary);
}

html.light-theme .navbar-island {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html.light-theme .navbar-island:hover {
    background: #ffffff;
}

html.light-theme .nav-links a {
    color: #475569;
}

html.light-theme .nav-links a:hover {
    color: #0f172a;
}

html.light-theme .nav-logo {
    -webkit-text-fill-color: #0f172a;
}

html.light-theme .hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
        var(--bg-primary);
}

html.light-theme .hero-subtitle {
    color: #334155;
}

html.light-theme .floating-code {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
}

html.light-theme .step-circle {
    background: #ffffff;
    box-shadow: 0 0 0 10px #f1f5f9;
    color: #0f172a;
}

html.light-theme .step-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

html.light-theme .step-content h3 {
    color: #0f172a;
}

html.light-theme .step-content p {
    color: #475569;
}

html.light-theme .service-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html.light-theme .service-card h3 {
    color: #0f172a;
}

html.light-theme .service-card p {
    color: #475569;
}

html.light-theme .tagline-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

html.light-theme .tagline-card h3 {
    color: #0f172a;
}

html.light-theme .tagline-card p {
    color: #475569;
}

html.light-theme .section-heading h2 {
    color: #0f172a;
}

html.light-theme .section-heading p {
    color: #475569;
}

html.light-theme .blog-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

html.light-theme .blog-card h3 {
    color: #0f172a !important;
}

html.light-theme .blog-card p {
    color: #475569 !important;
}

html.light-theme .blog-nav-link:hover {
    color: var(--neon-emerald) !important;
}

html.light-theme .booking-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
}

html.light-theme .form-group label {
    color: #0f172a;
}

html.light-theme .form-input {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

html.light-theme .form-input:focus {
    background: #ffffff;
    border-color: var(--theme-primary);
}

html.light-theme .stat-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

html.light-theme .stat-label {
    color: #475569;
}

html.light-theme .about-text p {
    color: #334155;
}

html.light-theme .about-section h2 {
    color: #0f172a;
}

html.light-theme .footer {
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-theme .footer h3,
html.light-theme .footer h4,
html.light-theme .footer .footer-logo,
html.light-theme .footer-copy {
    color: #0f172a !important;
}

html.light-theme .footer .footer-tagline,
html.light-theme .footer .footer-links a {
    color: #475569 !important;
}

html.light-theme .footer .footer-links a:hover {
    color: var(--theme-primary) !important;
}

html.light-theme .process-line {
    background: rgba(0, 0, 0, 0.1);
}

html.light-theme .floating-call-btn {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

html.light-theme #chatbotPanel {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

html.light-theme .chat-msg.bot {
    background: #f1f5f9;
    color: #1a1d24;
}

html.light-theme .chat-msg.user {
    background: var(--theme-primary);
    color: #fff;
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-cta-btn:hover {
    background: linear-gradient(135deg, var(--theme-gold), var(--theme-primary)) !important;
    box-shadow: 0 4px 25px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 30, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    z-index: 999;
    min-width: 250px;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    display: block;
    font-size: 0.95rem;
}

.mobile-nav a:hover {
    color: var(--text-primary);
    background: var(--glass-hover);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .navbar-island {
        padding: 10px 16px;
        gap: 8px;
        width: max-content;
        max-width: 95vw;
    }

    .nav-logo {
        gap: 4px;
        max-width: 140px;
        overflow: hidden;
    }

    .nav-logo span {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ── Section Container ────────────────────────────────────── */
.section-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
}

.neural-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-gold) 50%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-gold) 50%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--theme-primary), var(--neon-cyan));
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    /* Emerald shadow */
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--theme-primary), var(--neon-cyan), var(--theme-gold));
    z-index: -1;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover::before {
    opacity: 0.6;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-ghost:hover {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
    background: var(--glass-bg);
}

/* ── Floating code snippet inside hero ────────────────────── */
.hero-floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-code {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    animation: floatSlow 15s ease-in-out infinite;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.floating-code.code-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.floating-code.code-2 {
    top: 60%;
    right: 5%;
    animation-delay: -5s;
}

.floating-code.code-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: -10s;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(1deg);
    }

    50% {
        transform: translateY(10px) rotate(-0.5deg);
    }

    75% {
        transform: translateY(-8px) rotate(0.5deg);
    }
}

/* ── Section Headings ─────────────────────────────────────── */
.section-heading {
    text-align: center;
    margin-bottom: 64px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.heading-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-gold));
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ── Tagline Section ────────────────────────────────────────── */
.tagline-section {
    padding: 60px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 200px;
    position: relative;
    z-index: 2;
}

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

@media (max-width: 900px) {
    .tagline-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.tagline-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tagline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-primary), var(--neon-cyan));
    opacity: 0;
    transition: var(--transition-smooth);
}

.tagline-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.tagline-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif;
    line-height: 1;
}

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

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

/* ── Services Bento Grid ──────────────────────────────────── */
.services-section {
    padding: 80px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}

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

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    overflow: hidden;
    animation: floatSlow 12s ease-in-out infinite;
}

.service-card:nth-child(2) {
    animation-delay: -4s;
}

.service-card:nth-child(3) {
    animation-delay: -8s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.2);
    background: var(--glass-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(16, 185, 129, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.03));
    pointer-events: none;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    position: relative;
}

.service-icon.web-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.1));
    color: var(--neon-cobalt);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.service-icon.windows-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    color: var(--neon-violet);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.service-icon.marketing-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    color: var(--neon-emerald);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Holographic shine effect on cards */
.service-card .holo-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.02) 50%,
            transparent 70%);
    transform: rotate(0deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.service-card:hover .holo-shine {
    transform: rotate(180deg);
}

/* ── Our Process Section ────────────────────────────────────── */
.process-section {
    padding: 80px 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.process-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--glass-border);
    border-radius: 2px;
}

.process-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--theme-primary), var(--neon-cyan));
    border-radius: 2px;
    transition: height 1s ease;
}

.process-timeline.visible .process-line::after {
    height: 100%;
}

.process-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:nth-child(odd) {
    flex-direction: row-reverse;
}

.step-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border: 3px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, color 0.3s, box-shadow 0.3s;
    z-index: 2;
    box-shadow: 0 0 0 10px var(--bg-primary);
    opacity: 0;
}

.process-step.visible .step-circle {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.process-step:hover .step-circle {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 0 10px var(--bg-primary);
}

.step-content {
    width: calc(50% - 60px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateX(-50px);
}

.process-step:nth-child(even) .step-content {
    text-align: right;
    transform: translateX(50px);
}

.process-step:nth-child(odd) .step-content {
    text-align: left;
    transform: translateX(-50px);
}

.process-step.visible .step-content {
    opacity: 1;
    transform: translateX(0);
}

.process-step:hover .step-content {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition-delay: 0s !important;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .process-line {
        left: 30px;
    }

    .process-step,
    .process-step:nth-child(odd) {
        flex-direction: row;
        justify-content: flex-start;
    }

    .step-circle {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-content,
    .process-step:nth-child(even) .step-content,
    .process-step:nth-child(odd) .step-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        text-align: left;
    }
}

/* ── About Section ────────────────────────────────────────── */
.about-section {
    padding: 80px 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

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

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

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

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

/* ── Digital Marketing Section ────────────────────────────── */
.marketing-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

.marketing-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 60%);
    pointer-events: none;
}

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

@media (max-width: 768px) {
    .marketing-grid {
        grid-template-columns: 1fr;
    }
}

.marketing-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

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

.marketing-card-inner {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    height: 100%;
    transition: var(--transition-smooth);
}

.marketing-card:hover .marketing-card-inner {
    border-color: rgba(16, 185, 129, 0.2);
    background: var(--glass-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(16, 185, 129, 0.05);
}

.marketing-orb {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

body[dir="rtl"] .marketing-orb {
    right: auto;
    left: -40px;
}

.marketing-card:hover .marketing-orb {
    opacity: 0.8;
    transform: scale(1.2);
}

.marketing-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.marketing-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.marketing-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ── Products / Solutions Section ─────────────────────────── */
.products-section {
    padding: 80px 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

.products-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.06), transparent 70%);
    pointer-events: none;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.product-tab {
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.product-tab:hover {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.08);
    /* Emerald slight hover */
}

.product-tab.active {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

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

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(16, 185, 129, 0.03));
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.2);
    background: var(--glass-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(16, 185, 129, 0.05);
}

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-category-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(16, 185, 129, 0.12);
    /* Emerald badge */
    color: var(--theme-primary);
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.product-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ── Clients Section ─────────────────────────────────────── */
.clients-section {
    padding: 60px 0;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 1px 300px;
}

.clients-marquee {
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
    display: flex;
    gap: 32px;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

body[dir="rtl"] .clients-track {
    animation: marqueeScrollRtl 30s linear infinite;
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes marqueeScrollRtl {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(50%, 0, 0);
    }
}

.client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    padding: 28px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.client-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
    /* Emerald reflection */
}

.client-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.client-initials {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(251, 191, 36, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--theme-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.client-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

.admin-brand {
    padding: 0 24px;
    margin-bottom: 32px;
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Booking Section ──────────────────────────────────────── */
.booking-section {
    padding: 80px 0 100px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}

.booking-card {
    max-width: 650px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.booking-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent, rgba(251, 191, 36, 0.10));
    z-index: -1;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

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

/* Ensure select options have a solid background, especially on mobile */
select.form-input option {
    background-color: var(--bg-secondary, #0b1120);
    color: #ffffff;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* ── Global Styled Selects / Dropdowns ── */
select.form-input,
.admin-form-group select,
.form-group select,
.admin-card select,
.invoice-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #0f1218;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2310b981' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

select.form-input:hover,
.admin-form-group select:hover,
.form-group select:hover,
.admin-card select:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background-color: #131820;
}

select.form-input:focus,
.admin-form-group select:focus,
.form-group select:focus,
.admin-card select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background-color: #131820;
    outline: none;
}

/* Style native dropdown options */
select.form-input option,
.admin-form-group select option,
.form-group select option,
.admin-card select option,
.invoice-form select option {
    background-color: #1a1f2e;
    color: #e2e8f0;
    padding: 10px 14px;
}

select.form-input option:checked,
.admin-form-group select option:checked,
.form-group select option:checked {
    background-color: #10b981;
    color: #fff;
}

/* RTL arrow position */
body[dir="rtl"] select.form-input,
body[dir="rtl"] .admin-form-group select {
    background-position: left 14px center;
    padding-right: 18px;
    padding-left: 40px;
}

/* Custom Modern Dropdown */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.custom-select-trigger .placeholder {
    color: var(--text-muted);
}

.custom-select-trigger .arrow {
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: cover;
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0f1115;
    /* Solid fallback */
    background: rgba(15, 17, 21, 0.98);
    /* Almost solid charcoal for readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--theme-primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.15);
    z-index: 1005;
    /* High enough to stay above everything but the chatbot */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.custom-option:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--theme-primary);
}

.custom-option.selected {
    background: rgba(16, 185, 129, 0.15);
    color: var(--theme-gold);
    font-weight: 600;
}

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

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

    .booking-card {
        padding: 32px 20px;
    }
}

/* Neon Submit Button */
.btn-neon {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

.btn-neon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold), var(--neon-cyan));
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        opacity: 0.4;
        filter: blur(15px);
    }

    50% {
        opacity: 0.7;
        filter: blur(20px);
    }
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}


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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px) scale(0.95) rotateX(-10deg);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity, filter;
    transform-origin: center top;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0px);
}

/* Mobile: lighter animations for performance */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(30px);
        filter: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
        will-change: transform, opacity;
    }

    .animate-on-scroll.visible {
        transform: translateY(0);
        filter: none;
    }
}

/* ── Alert Messages ───────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--neon-emerald);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════
   Our Process Section — Animated
   ═══════════════════════════════════════════════════════════ */
.process-visual {
    width: calc(50% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateX(50px);
}

.process-step:nth-child(even) .process-visual {
    transform: translateX(-50px);
}

.process-step:nth-child(odd) .process-visual {
    transform: translateX(50px);
}

.process-step.visible .process-visual {
    opacity: 1;
    transform: translateX(0);
}

/* Add slight delay so circle pops first, then text/visuals slide in */
.process-step .step-content,
.process-step .process-visual {
    transition-delay: 0.2s;
}

.process-step:hover .process-visual {
    transform: translateY(-5px) scale(1.02);
    transition-delay: 0s !important;
}

@media (max-width: 768px) {

    .process-step,
    .process-step:nth-child(odd) {
        flex-wrap: wrap;
    }

    .process-visual {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-top: 30px;
        min-height: 150px;
    }
}

/* ═══ Step 1: Idea Bubbles ═══ */
.pv-bubbles {
    position: relative;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    font-size: 1.6rem;
    opacity: 0;
    animation: bubbleFloat 4s ease-in-out infinite;
}

.b1 {
    left: 15%;
    animation-delay: 0s;
}

.b2 {
    left: 45%;
    animation-delay: 0.5s;
}

.b3 {
    left: 75%;
    animation-delay: 1s;
}

.b4 {
    left: 30%;
    animation-delay: 1.5s;
}

.b5 {
    left: 60%;
    animation-delay: 2s;
}

.b6 {
    left: 10%;
    animation-delay: 2.5s;
}

.b7 {
    left: 50%;
    animation-delay: 3s;
}

.b8 {
    left: 80%;
    animation-delay: 3.5s;
}

@keyframes bubbleFloat {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: scale(0.5) translateX(0);
    }

    15% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.7;
        transform: scale(1) translateX(15px);
    }

    85% {
        opacity: 0.3;
    }

    100% {
        bottom: 110%;
        opacity: 0;
        transform: scale(0.8) translateX(-10px);
    }
}

/* ═══ Step 2: Design Grid ═══ */
.pv-design {
    position: relative;
    width: 140px;
    height: 140px;
}

.design-grid {
    width: 100%;
    height: 100%;
}

.dg-r {
    stroke: rgba(6, 182, 212, 0.3);
    stroke-width: 1.5;
    fill: none;
    transition: all 0.4s ease;
}

.dg1 {
    animation: dgPulse 3s ease-in-out infinite;
}

.dg2 {
    animation: dgPulse 3s ease-in-out infinite 0.4s;
}

.dg3 {
    animation: dgPulse 3s ease-in-out infinite 0.8s;
}

.dg4 {
    animation: dgPulse 3s ease-in-out infinite 1.2s;
}

.dg-dot {
    fill: rgba(6, 182, 212, 0.15);
    animation: dgDotPulse 2s ease-in-out infinite;
}

.dd2 {
    animation-delay: 1s;
}

.design-cursor {
    position: absolute;
    top: 25%;
    left: 30%;
    animation: cursorMove 4s ease-in-out infinite;
}

@keyframes dgPulse {

    0%,
    100% {
        stroke: rgba(6, 182, 212, 0.2);
        fill: rgba(6, 182, 212, 0.02);
    }

    50% {
        stroke: rgba(6, 182, 212, 0.5);
        fill: rgba(6, 182, 212, 0.06);
    }
}

@keyframes dgDotPulse {

    0%,
    100% {
        r: 5;
        opacity: 0.3;
    }

    50% {
        r: 10;
        opacity: 0.6;
    }
}

@keyframes cursorMove {
    0% {
        top: 25%;
        left: 30%;
    }

    25% {
        top: 15%;
        left: 65%;
    }

    50% {
        top: 70%;
        left: 50%;
    }

    75% {
        top: 55%;
        left: 20%;
    }

    100% {
        top: 25%;
        left: 30%;
    }
}

/* ═══ Step 3: Code Window ═══ */
.pv-code {
    width: 85%;
}

.code-window {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.code-dots {
    padding: 10px 14px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) {
    background: #ff5f57;
}

.code-dots span:nth-child(2) {
    background: #ffbd2e;
}

.code-dots span:nth-child(3) {
    background: #28c840;
}

.code-lines {
    padding: 14px 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.7rem;
    line-height: 1.9;
}

.cl {
    opacity: 0;
    animation: typeIn 0.4s ease forwards;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.5);
}

.cl1 {
    animation-delay: 0.3s;
}

.cl2 {
    animation-delay: 0.7s;
}

.cl3 {
    animation-delay: 1.1s;
    padding-left: 16px;
}

.cl4 {
    animation-delay: 1.5s;
    padding-left: 16px;
}

.cl5 {
    animation-delay: 1.9s;
}

.cl6 {
    animation-delay: 2.3s;
}

.ck {
    color: #ff79c6;
}

.cv {
    color: #8be9fd;
}

.cf {
    color: #50fa7b;
}

.cs {
    color: #bd93f9;
}

.cn {
    color: #f1fa8c;
}

@keyframes typeIn {
    0% {
        opacity: 0;
        transform: translateX(-8px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══ Step 4: Rocket Launch ═══ */
.pv-launch {
    position: relative;
    width: 140px;
    height: 180px;
}

.rocket {
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: rocketHover 2.5s ease-in-out infinite;
    z-index: 2;
}

.launch-trail {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.trail {
    display: block;
    width: 3px;
    border-radius: 2px;
    margin: 2px auto;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.6), transparent);
    animation: trailShimmer 1.5s ease-in-out infinite;
}

.t1 {
    height: 30px;
    animation-delay: 0s;
}

.t2 {
    height: 22px;
    animation-delay: 0.2s;
    opacity: 0.6;
}

.t3 {
    height: 14px;
    animation-delay: 0.4s;
    opacity: 0.3;
}

.launch-stars {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.6rem;
    animation: starTwinkle 2s ease-in-out infinite;
}

.s1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.s2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.4s;
}

.s3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 0.8s;
}

.s4 {
    top: 40%;
    right: 25%;
    animation-delay: 1.2s;
}

.s5 {
    bottom: 15%;
    right: 10%;
    animation-delay: 1.6s;
}

@keyframes rocketHover {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    50% {
        transform: translate(-50%, -60%) rotate(-45deg);
    }
}

@keyframes trailShimmer {

    0%,
    100% {
        opacity: 0.3;
        height: 10px;
    }

    50% {
        opacity: 0.8;
        height: 35px;
    }
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .process-card {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .process-card {
        flex-direction: column;
    }

    .process-visual {
        min-height: 200px;
        flex: none;
    }

    .process-info {
        padding: 24px 20px;
    }

    .step-number {
        font-size: 2.2rem;
    }

    .process-info h3 {
        font-size: 1.1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Admin Panel Styles — Premium Redesign
   ═══════════════════════════════════════════════════════════ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #0b0e14 100%);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    padding: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: var(--transition-premium);
}

.admin-sidebar::-webkit-scrollbar {
    width: 3px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.25);
}

body[dir="rtl"] .admin-sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Sidebar Brand ──────────────────────────────── */
.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 20px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-brand-logo {
    max-height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.admin-brand-name {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--theme-primary) 50%, var(--theme-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: visible;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.2));
}

/* ── Sidebar Navigation ────────────────────────── */
.admin-nav {
    flex: 1;
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
}

/* Section Labels */
.sidebar-section-label {
    padding: 16px 14px 6px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(100, 116, 139, 0.45);
}

.sidebar-section-label:first-child {
    padding-top: 8px;
}

/* Nav links */
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 14px;
    margin: 1px 0;
    color: rgba(148, 163, 184, 0.8);
    text-decoration: none;
    font-size: 0.835rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    letter-spacing: 0.01em;
}

.admin-nav a span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[dir="rtl"] .admin-nav a {
    border-left: none;
    border-right: none;
}

.admin-nav a:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    transform: translateX(2px);
}

.admin-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
    box-shadow: none;
    font-weight: 600;
}

.admin-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, var(--theme-primary), var(--neon-cyan));
    border-radius: 0 4px 4px 0;
}

body[dir="rtl"] .admin-nav a.active::before {
    left: auto;
    right: 0;
    border-radius: 4px 0 0 4px;
}

body[dir="rtl"] .admin-nav a:hover,
body[dir="rtl"] .admin-nav a.active {
    transform: translateX(-2px);
}

/* SVG Icon container */
.admin-nav .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.admin-nav a:hover .nav-icon,
.admin-nav a.active .nav-icon {
    opacity: 1;
}

.admin-nav a.active .nav-icon svg {
    stroke: var(--theme-primary);
}

/* ── Sidebar Collapsible Groups ────────────────── */
.sidebar-group {
    margin: 1px 0;
}

.sidebar-group-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.835rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    border-radius: 8px;
    letter-spacing: 0.01em;
}

.sidebar-group-toggle-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.sidebar-group-toggle-left .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sidebar-group-toggle:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-group-toggle:hover .nav-icon {
    opacity: 1;
}

.sidebar-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.35;
}

.sidebar-group.open .sidebar-chevron {
    transform: rotate(90deg);
    opacity: 0.65;
}

.sidebar-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-group.open .sidebar-group-items {
    max-height: 600px;
}

.sidebar-group-items a {
    padding-left: 46px !important;
    font-size: 0.81rem !important;
}

body[dir="rtl"] .sidebar-group-items a {
    padding-left: 14px !important;
    padding-right: 46px !important;
}

/* ── Sidebar Divider ───────────────────────────── */
.sidebar-divider {
    height: 1px;
    margin: 12px 14px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* ── View Live Site Link ───────────────────────── */
.sidebar-live-link {
    color: var(--theme-primary) !important;
    font-weight: 500 !important;
    opacity: 0.85;
    transition: all 0.2s !important;
}

.sidebar-live-link:hover {
    opacity: 1;
    color: var(--theme-gold) !important;
    background: rgba(16, 185, 129, 0.06) !important;
}

.sidebar-live-link .nav-icon {
    opacity: 1 !important;
}

.sidebar-live-link svg {
    stroke: var(--theme-primary);
}

.sidebar-live-link:hover svg {
    stroke: var(--theme-gold);
}

/* ── User Profile Card ─────────────────────────── */
.sidebar-user-card {
    margin: auto 10px 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s;
}

.sidebar-user-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 2px;
}

.sidebar-user-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.sidebar-user-details {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.68rem;
    color: rgba(100, 116, 139, 0.7);
    margin-top: 1px;
}

.sidebar-user-chevron {
    display: flex;
    align-items: center;
    color: rgba(100, 116, 139, 0.5);
    transition: transform 0.2s;
}

.sidebar-user-menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-user-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.85);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}

.sidebar-user-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.sidebar-user-menu a svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-logout-link {
    color: rgba(239, 68, 68, 0.7) !important;
}

.sidebar-logout-link:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.06) !important;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--gap-core);
    background: var(--bg-primary);
}

/* ── Futuristic Card System ── */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-core);
    padding: var(--gap-core);
}

.admin-stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-premium);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-premium);
    box-shadow: var(--glass-shadow);
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    background: var(--glass-hover);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
}

.admin-stat-card .stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.admin-stat-card .stat-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.admin-stat-card .stat-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    opacity: 0.15;
    transition: var(--transition-premium);
}

.admin-stat-card:hover .stat-icon {
    opacity: 0.6;
    color: var(--neon-cyan);
    transform: scale(1.1);
}

.admin-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-premium);
    padding: var(--gap-core);
    margin: var(--gap-core);
    box-shadow: var(--glass-shadow);
}

/* ── Glow Accents ── */
.glow-emerald {
    border-bottom: 3px solid var(--neon-emerald);
}

.glow-cyan {
    border-bottom: 3px solid var(--neon-cyan);
}

.glow-rose {
    border-bottom: 3px solid var(--neon-rose);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
    }
}

.animate-glow-emerald {
    animation: pulseGlow 3s infinite;
}

/* ── New-style admin pages (flex header + scrollable content) ── */
.admin-layout>.flex-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-primary);
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 769px) {
    .admin-layout>.flex-1 {
        margin-left: var(--sidebar-width);
    }

    body[dir="rtl"] .admin-layout>.flex-1 {
        margin-left: 0;
        margin-right: var(--sidebar-width);
    }
}

.admin-layout>.flex-1>header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
}

.admin-layout>.flex-1>.admin-content,
.admin-layout>.flex-1>main,
.admin-layout>.flex-1>.fb-wrap {
    flex: 1;
    overflow-y: auto;
}


.crm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--bg-primary);
    overflow: hidden;
}

/* CRM Pipeline & Drag/Drop Enhancements */
.kanban-column {
    background-color: transparent !important;
    border: none !important;
}

.kanban-column-body {
    background-color: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    transition: background-color 0.25s;
}

.kanban-column-body.drag-over {
    background-color: rgba(16, 185, 129, 0.04) !important;
    border-color: rgba(16, 185, 129, 0.15);
}

.kanban-card {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s, border-color 0.2s;
    border-left: 3px solid transparent;
}

.kanban-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.25);
}

.kanban-card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

/* Color Classes */
.crm-color-red {
    border-left-color: #ef4444 !important;
}

.crm-color-orange {
    border-left-color: #f97316 !important;
}

.crm-color-yellow {
    border-left-color: #eab308 !important;
}

.crm-color-green {
    border-left-color: #22c55e !important;
}

.crm-color-blue {
    border-left-color: #3b82f6 !important;
}

.crm-color-purple {
    border-left-color: #a855f7 !important;
}

.crm-color-teal {
    border-left-color: #14b8a6 !important;
}

.crm-color-pink {
    border-left-color: #ec4899 !important;
}

/* List View Styles */
.crm-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.crm-list-table tr {
    background-color: #1e293b;
    transition: background-color 0.2s;
}

.crm-list-table tr:hover {
    background-color: #334155;
}

.crm-list-table td,
.crm-list-table th {
    padding: 12px 16px;
}

.crm-list-table tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.crm-list-table tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

body[dir="rtl"] .admin-main {
    margin-left: 0;
    margin-right: 264px;
}

body[dir="rtl"] .crm-main {
    margin-left: 0;
    margin-right: 264px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.admin-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(16, 185, 129, 0.12);
}

.admin-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-gold));
    opacity: 0;
    transition: opacity 0.25s;
}

.admin-stat-card:hover::after {
    opacity: 1;
}

.admin-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-stat-card .stat-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: start;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
    .admin-table {
        min-width: 100%;
    }

    .admin-table th,
    .admin-table td {
        white-space: normal !important;
    }
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.admin-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.008);
}

.admin-table tbody tr {
    transition: background 0.15s;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.status-new {
    background: rgba(59, 130, 246, 0.15);
    color: var(--neon-cobalt);
}

.status-viewed {
    background: rgba(139, 92, 246, 0.15);
    color: var(--neon-violet);
}

.status-contacted {
    background: rgba(6, 182, 212, 0.15);
    color: var(--neon-cyan);
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--neon-emerald);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Admin Form */
.admin-form-group {
    margin-bottom: 24px;
}

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

.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.admin-form-group input:hover,
.admin-form-group textarea:hover,
.admin-form-group select:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.admin-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Form Input (standalone class used across pages) */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.form-input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.form-group {
    margin-bottom: 0;
}

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

/* Inline select for tables */
.inline-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.inline-select:focus {
    border-color: var(--theme-primary);
}

/* ── Button System ──────────────────────────────── */
.btn-admin-save,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--theme-primary), var(--neon-cyan));
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-admin-save:hover,
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* ── Admin Card Hover ───────────────────────────── */
.admin-card {
    transition: border-color 0.2s;
}

.admin-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ── Toast / Alert Messages ─────────────────────── */
.admin-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border: 1px solid;
}

.admin-alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--theme-primary);
}

.admin-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.admin-alert-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--neon-cobalt);
}

/* ── Empty State ────────────────────────────────── */
.admin-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.admin-empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.admin-empty-state p {
    font-size: 0.9rem;
}

/* Admin Login */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.admin-login-card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 32px;
}

/* Content editor section cards */
.content-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.content-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin-bottom: 16px;
    font-family: monospace;
}

.content-locale-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .content-locale-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Grid Utilities */
.admin-grid-2,
.admin-grid-3,
.admin-grid-4 {
    display: grid;
    gap: 20px;
}

.admin-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.admin-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.admin-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .admin-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .admin-grid-2,
    .admin-grid-3,
    .admin-grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Admin Mobile Adjustments */
.admin-mobile-toggle {
    display: none;
}

.admin-mobile-overlay {
    display: none;
}

@media (max-width: 768px) {
    .admin-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 1.5rem;
        z-index: 1001;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        cursor: pointer;
    }

    body[dir="rtl"] .admin-mobile-toggle {
        right: auto;
        left: 20px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    }

    body[dir="rtl"] .admin-sidebar {
        transform: translateX(100%);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .admin-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .admin-main {
        margin-left: 0 !important;
        padding: 20px 15px;
        word-break: break-all;
        overflow-wrap: anywhere;
        overflow-x: hidden;
    }

    .crm-main {
        margin-left: 0 !important;
    }

    body[dir="rtl"] .admin-main {
        margin-right: 0 !important;
    }

    body[dir="rtl"] .crm-main {
        margin-right: 0 !important;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .admin-header div {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        display: flex;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .admin-header h1 {
        font-size: 1.3rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .content-locale-grid {
        grid-template-columns: 1fr;
    }

    .admin-login-card {
        padding: 32px 20px;
    }
}

/* ── Booking Success Page ────────────────────────────────── */
.success-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.success-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 500px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.success-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.success-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ── Futuristic Table System ── */
.admin-table-wrapper {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-premium);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.65rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.admin-table td {
    padding: 1.15rem 1.5rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-premium);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

/* Status Badges - Futuristic */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-new {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--neon-amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-cancelled {
    background: rgba(244, 63, 94, 0.1);
    color: var(--neon-rose);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* ── Select status dropdown inline ────────────────────────── */
.inline-form {
    display: inline;
}

.inline-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: inherit;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: var(--transition-premium);
    outline: none;
}

.inline-select:hover {
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.08);
}

/* ── Scroll indicator dots ────────────────────────────────── */
@media (max-width: 600px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Portfolio Page
   ═══════════════════════════════════════════════════════════════ */

/* ── Portfolio Hero ──────────────────────────────────────────── */
.portfolio-hero {
    padding: 160px 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.portfolio-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.portfolio-back-link:hover {
    color: var(--neon-cobalt);
    border-color: rgba(59, 130, 246, 0.3);
}

body[dir="rtl"] .portfolio-back-link svg {
    transform: scaleX(-1);
}

/* ── Filter Tabs ─────────────────────────────────────────────── */
.portfolio-filters-section {
    padding: 20px 0 40px;
    position: relative;
    z-index: 1;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pf-tab {
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pf-tab:hover {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
    background: var(--glass-hover);
}

.pf-tab.active {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* ── Grid ─────────────────────────────────────────────────── */
.portfolio-grid-section {
    padding: 0 0 100px;
    position: relative;
    z-index: 1;
}

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

@media (max-width: 960px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Card ──────────────────────────────────────────────────── */
.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.05);
    /* Emerald reflection */
}

.portfolio-card--featured {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .portfolio-card--featured {
        grid-column: span 1;
    }
}

.portfolio-card__header {
    padding: 32px 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card__badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-card__body {
    padding: 16px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.portfolio-card__client {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.portfolio-card__client-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.portfolio-card__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* ── Tags ──────────────────────────────────────────────────── */
.portfolio-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.portfolio-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ── CTA link ─────────────────────────────────────────────── */
.portfolio-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.portfolio-card__cta:hover {
    filter: brightness(1.3);
    gap: 10px;
}

/* ── Fade-in animation for filtered cards ─────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ──────────────────────────────────────────────────────────────
   Floating Call Button
────────────────────────────────────────────────────────────── */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--theme-primary), var(--neon-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body[dir="rtl"] .floating-call-btn {
    right: auto;
    left: 30px;
}

.floating-call-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
}

.fcb-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--theme-primary);
    animation: fcbPulse 2s infinite;
    z-index: -1;
}

@keyframes fcbPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.floating-wa-btn {
    position: fixed;
    bottom: 105px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

body[dir="rtl"] .floating-wa-btn {
    left: auto;
    right: 30px;
}

@media (max-width: 768px) {
    .floating-call-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    body[dir="rtl"] .floating-call-btn {
        left: 20px;
        right: auto;
    }

    .floating-wa-btn {
        bottom: 20px;
        left: 20px;
        right: auto;
        width: 50px;
        height: 50px;
    }

    body[dir="rtl"] .floating-wa-btn {
        right: 20px;
        left: auto;
    }
}

/* ──────────────────────────────────────────────────────────────
   Chatbot Widget
────────────────────────────────────────────────────────────── */
/* (chatbot styles moved to unified block below) */

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer {
        padding-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
    }
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--theme-primary);
    transform: translateX(5px);
}

body[dir="rtl"] .footer-links a:hover {
    transform: translateX(-5px);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* (chat-msg/options/input/footer styles in unified chatbot block below) */

/* ═══════════════════════════════════════════════════════════════
   Our Team Section
   ═══════════════════════════════════════════════════════════════ */
.team-section {
    padding: 80px 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06), transparent 70%);
    pointer-events: none;
}

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

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 28px 32px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-gold));
    opacity: 0;
    transition: var(--transition-smooth);
}

.team-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(16, 185, 129, 0.06);
}

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

.team-avatar {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
}

.team-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.team-avatar-initials {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 1;
}

.team-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: ringRotate 8s linear infinite;
    z-index: 0;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.team-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   Testimonials Section
   ═══════════════════════════════════════════════════════════════ */
.testimonials-section {
    padding: 80px 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.05), transparent 70%);
    pointer-events: none;
}

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

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    font-weight: 900;
    color: var(--theme-primary);
    opacity: 0.12;
    line-height: 1;
    font-family: Georgia, serif;
}

body[dir="rtl"] .testimonial-card::before {
    right: auto;
    left: 24px;
}

.testimonial-card:hover {
    border-color: rgba(251, 191, 36, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(251, 191, 36, 0.05);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
}

.testimonial-stars .star {
    font-size: 1rem;
    color: var(--glass-border);
}

.testimonial-stars .star.filled {
    color: var(--theme-gold);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.testimonial-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.testimonial-company {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* RTL input helper */
.rtl-input {
    direction: rtl;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════════════
   Mobile Layout Fixes
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Hide floating decorative elements to prevent overlap on small screens */
    .hero-floating-elements {
        display: none !important;
    }

    /* Ensure hero section doesn't stay too large or overlapped */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .hero-cta-group .btn-primary,
    .hero-cta-group .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    /* Grids to single column */
    .bento-grid,
    .marketing-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Disable stuck hover effects on touch devices */
    @media (hover: none) {

        .service-card:hover,
        .marketing-card:hover,
        .product-card:hover,
        .team-card:hover,
        .testimonial-card:hover {
            transform: none !important;
            box-shadow: none !important;
        }
    }
}

/* ═══════════════════════════════════════════════════════════
   Chatbot Widget
   ═══════════════════════════════════════════════════════════ */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: inherit;
}

.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-toggle:hover {
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
    transform: scale(1.08);
}

.chatbot-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 370px;
    max-height: 520px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    max-height: 300px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg.bot {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: linear-gradient(135deg, var(--theme-primary), rgba(16, 185, 129, 0.7));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    gap: 5px;
    padding: 12px 18px;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: chatTyping 1.2s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chatTyping {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    30% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Option Buttons */
.chatbot-options {
    padding: 0 16px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-opt-btn {
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--theme-primary, #10b981);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    animation: chatOptFadeIn 0.4s ease both;
}

.chat-opt-btn:nth-child(2) {
    animation-delay: 0.1s;
}

.chat-opt-btn:nth-child(3) {
    animation-delay: 0.2s;
}

.chat-opt-btn:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes chatOptFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-opt-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.chat-opt-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Input Area */
.chatbot-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.chatbot-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input-area input:focus {
    border-color: rgba(16, 185, 129, 0.4);
}

.chatbot-input-area input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chatbot-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-gold));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
}

.chatbot-input-area button:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.chatbot-footer {
    padding: 8px 16px;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* New Chat button in header */
.chatbot-action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.chatbot-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* End Chat button */
.chatbot-end-btn {
    background: none;
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: rgba(244, 63, 94, 0.7);
    padding: 5px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.chatbot-end-btn:hover {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.4);
}

.chatbot-end-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Mobile chatbot */
@media (max-width: 480px) {
    .chatbot-panel {
        width: calc(100vw - 32px);
        right: -8px;
        bottom: 65px;
        max-height: 70vh;
    }

    .chatbot-widget {
        bottom: 16px;
        right: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Floating CTA Button & Popup
   ═══════════════════════════════════════════════════════════ */
.floating-cta-wrapper {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--theme-primary), var(--neon-cyan));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    font-family: inherit;
    z-index: 2;
}

.floating-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.fcb-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 2px solid rgba(16, 185, 129, 0.5);
    animation: fcbPulse 2s infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes fcbPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.floating-cta-popup {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 0;
    background: rgba(10, 10, 30, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transform-origin: bottom left;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    z-index: 1;
}

.floating-cta-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cta-popup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.03);
}

.cta-popup-item.wa:hover {
    background: #25D366;
    /* WhatsApp Green */
    color: white;
}

.cta-popup-item.call:hover {
    background: var(--theme-primary);
    color: white;
}

@media (max-width: 768px) {
    .floating-cta-wrapper {
        bottom: 16px;
        left: 16px;
    }

    .floating-cta-btn .cta-text {
        display: none;
    }

    .floating-cta-btn {
        padding: 14px;
        border-radius: 50%;
    }

    .fcb-pulse {
        border-radius: 50%;
    }
}

/* -- Enterprise Inbox Dashboard --------------------------- */
.inbox-dashboard {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    height: calc(100vh - 100px);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 10px 20px 20px 20px;
}

/* Sidebar: Session List */
.inbox-sidebar {
    border-right: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.inbox-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.session-list {
    flex: 1;
    overflow-y: auto;
}

.session-item {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.session-item:hover {
    background: var(--glass-hover);
}

.session-item.active {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--neon-emerald);
}

.session-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cobalt), var(--neon-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.session-info {
    flex: 1;
    min-width: 0;
}

.session-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.session-snippet {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Middle: Chat Window */
.inbox-chat {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.1);
}

.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.chat-input-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input-wrapper textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    resize: none;
    outline: none;
    font-size: 0.95rem;
    padding-top: 8px;
}

/* Right: Visitor Profile */
.inbox-profile {
    border-left: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding: 20px;
}

.profile-section {
    margin-bottom: 24px;
}

.profile-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--neon-cyan);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-data-row {
    margin-bottom: 12px;
}

.profile-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-all;
}

/* Responsive adjustments */
@media (max-width: 1300px) {
    .inbox-dashboard {
        grid-template-columns: 320px 1fr;
    }

    .inbox-profile {
        display: none;
    }
}

@media (max-width: 768px) {
    .inbox-dashboard {
        grid-template-columns: 1fr;
        height: calc(100vh - 80px);
        /* Taller on mobile */
        border-radius: 0;
        margin: 0;
    }

    .inbox-sidebar {
        display: block;
    }

    .inbox-chat {
        display: none;
    }

    .inbox-dashboard.session-selected .inbox-sidebar {
        display: none;
    }

    .inbox-dashboard.session-selected .inbox-chat {
        display: flex;
    }

    .inbox-back-btn {
        display: inline-block;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        font-size: 0.8rem;
        color: var(--text-secondary);
        text-decoration: none;
        margin-right: 12px;
    }
}

.inbox-back-btn {
    display: none;
}

.profile-main-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: start;
}

@media (max-width: 768px) {
    .profile-main-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-main-grid>div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   Admin Button Design System
   ═══════════════════════════════════════════════════════════ */

/* ── Base Button Reset ─────────────────────────────────── */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger,
.btn-neon,
.admin-btn,
.btn-admin-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.3;
    white-space: nowrap;
    outline: none;
    position: relative;
    overflow: hidden;
}

/* ── Primary Button ─────────────────────────────────────── */
.btn-primary,
.btn-admin-save {
    background: linear-gradient(135deg, var(--theme-primary), #059669);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover,
.btn-admin-save:hover {
    background: linear-gradient(135deg, #059669, var(--theme-primary));
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-admin-save:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}

/* ── Secondary Button ───────────────────────────────────── */
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* ── Ghost Button (Cancel / Back) ───────────────────────── */
.btn-ghost,
.admin-btn {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover,
.admin-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.15);
}

/* ── Danger Button ──────────────────────────────────────── */
.btn-danger {
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.btn-danger:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.35);
    transform: translateY(-1px);
}

/* ── Neon Button (Login / Launch) ───────────────────────── */
.btn-neon {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-emerald));
    color: #0a0c10;
    border: none;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(6, 182, 212, 0.25);
}

.btn-neon:hover {
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
}

/* ── Size Variants ──────────────────────────────────────── */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ── Admin Header Back Button ───────────────────────────── */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

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

/* ── Responsive Admin Buttons ───────────────────────────── */
@media (max-width: 768px) {

    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-ghost,
    .btn-danger,
    .btn-neon,
    .admin-btn,
    .btn-admin-save {
        padding: 10px 16px;
        font-size: 0.82rem;
        width: auto;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header-actions {
        width: 100%;
    }

    .admin-header-actions>* {
        flex: 1;
        min-width: 0;
    }
}

.blog-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

/* -- SEO Fixes: Card Title Styling -- */
.card-title {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.team-name.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.portfolio-card__title.card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ── Global Styled Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.4));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.7), rgba(168, 85, 247, 0.7));
    background-clip: padding-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

/* ── CRM Pipeline Styles ─────────────────────────────────── */
.crm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: transparent;
}

/* Stylish main-page scrollbar */
.crm-main-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.crm-main-scroll::-webkit-scrollbar {
    height: 8px;
}

.crm-main-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.crm-main-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.4));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.crm-main-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.7), rgba(168, 85, 247, 0.7));
    background-clip: padding-box;
}

#stages-wrapper {
    overflow: visible;
}

.kanban-column-body {
    background: transparent;
    transition: background 0.2s ease;
}

.kanban-column-body.drag-over {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.kanban-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: scale(1.02) rotate(2deg);
    cursor: grabbing;
}

.crm-color-red {
    border-left: 4px solid #ef4444 !important;
}

.crm-color-orange {
    border-left: 4px solid #f97316 !important;
}

.crm-color-yellow {
    border-left: 4px solid #eab308 !important;
}

.crm-color-green {
    border-left: 4px solid #22c55e !important;
}

.crm-color-blue {
    border-left: 4px solid #3b82f6 !important;
}

.crm-color-purple {
    border-left: 4px solid #a855f7 !important;
}

.crm-color-teal {
    border-left: 4px solid #14b8a6 !important;
}

.crm-color-pink {
    border-left: 4px solid #ec4899 !important;
}

/* CRM Custom Scrollbars */
.crm-main-scroll::-webkit-scrollbar,
.crm-column-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.crm-main-scroll::-webkit-scrollbar-track,
.crm-column-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.crm-main-scroll::-webkit-scrollbar-thumb,
.crm-column-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.crm-main-scroll::-webkit-scrollbar-thumb:hover,
.crm-column-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.3);
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   CRM Responsive & Mobile-Friendly Styles
   ═══════════════════════════════════════════════════════════════ */

/* CRM Main container */
.crm-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    height: 100vh;
}

/* Sidebar drawer styles */
.admin-mobile-toggle {
    display: none;
}

.admin-sidebar {
    width: var(--sidebar-width, 280px);
    background: #0a0d12;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh !important;
        transform: translateX(-100%);
        box-shadow: 20px 0 80px rgba(0, 0, 0, 0.8);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-mobile-toggle {
        display: flex !important;
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 1100;
        width: 56px;
        height: 56px;
        background: #06b6d4;
        color: #000;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 32px rgba(6, 182, 212, 0.4);
        border: none;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .admin-mobile-toggle:active {
        transform: scale(0.9);
    }

    .admin-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .admin-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ── Pipeline Page Mobile ────────────────────────────────── */
@media (max-width: 768px) {

    /* Pipeline header */
    .crm-main>header {
        padding: 1rem !important;
        padding-bottom: 0.5rem !important;
    }

    .crm-main>header h1 {
        font-size: 1.25rem !important;
    }

    /* Kanban columns on mobile */
    .stage-column {
        width: 220px !important;
        min-width: 220px !important;
    }

    /* Pipeline main scroll area */
    .crm-main-scroll {
        padding: 0.75rem !important;
    }

    /* Flash messages */
    .crm-main .m-6 {
        margin: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .stage-column {
        width: 180px !important;
        min-width: 180px !important;
    }

    .kanban-card {
        padding: 0.5rem !important;
    }

    .kanban-card .text-xs {
        font-size: 0.65rem !important;
    }
}

/* ── Opportunity Page Mobile ─────────────────────────────── */

/* Stage progress bar: scrollable on mobile */
@media (max-width: 1024px) {
    .crm-main>div:nth-child(2) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .crm-main>div:nth-child(2)>.flex.items-center:last-child {
        min-width: max-content;
    }
}

@media (max-width: 768px) {

    /* Action bar wraps on mobile */
    .crm-main>div:nth-child(2) {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        padding: 0.75rem 1rem !important;
    }

    .crm-main>div:nth-child(2) .flex.items-center:first-child {
        flex-wrap: wrap;
        gap: 0.35rem !important;
    }

    /* Stage indicators scroll */
    .crm-main>div:nth-child(2)>.flex.items-center:last-child {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Split view stacks on mobile */
    .crm-main>main {
        flex-direction: column !important;
    }

    /* Left form panel */
    .crm-main>main>div:first-child {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        overflow-y: visible !important;
        padding: 1rem !important;
    }

    /* Right chatter panel */
    .crm-main>main>div:last-child {
        width: 100% !important;
        max-height: 50vh;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Form fields */
    .crm-main>main .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .crm-main>main input[type="text"].text-3xl {
        font-size: 1.5rem !important;
    }

    /* Breadcrumb header */
    .crm-main>header {
        padding: 0.75rem 1rem !important;
    }

    .crm-main>header .truncate.max-w-\[200px\] {
        max-width: 120px !important;
    }

    /* Chatter header */
    .crm-main>main>div:last-child>div:first-child {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .crm-main>main>div:last-child>div:first-child input {
        width: 100% !important;
    }
}

/* ── Products Page Mobile ────────────────────────────────── */
@media (max-width: 768px) {

    /* Products header */
    .crm-main>header.h-16 {
        height: auto !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem;
        padding: 1rem !important;
    }

    /* Product table: hide some columns on mobile */
    .crm-main table th:nth-child(2),
    .crm-main table td:nth-child(2) {
        display: none;
    }

    /* Table padding */
    .crm-main table th,
    .crm-main table td {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {

    /* Products: simplify even more */
    .crm-main table th:nth-child(4),
    .crm-main table td:nth-child(4) {
        display: none;
    }
}

/* ── Modal Responsive ────────────────────────────────────── */
@media (max-width: 640px) {

    .fixed.inset-0 .max-w-md,
    .fixed.inset-0 .max-w-sm,
    .fixed.inset-0 .max-w-lg {
        max-width: 100% !important;
        margin: 0.5rem;
        border-radius: 1rem !important;
    }

    .fixed.inset-0 .p-6 {
        padding: 1rem !important;
    }

    .fixed.inset-0 .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ── Touch-friendly tap targets ──────────────────────────── */
@media (pointer: coarse) {
    .kanban-card {
        min-height: 60px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        min-height: 40px;
        min-width: 40px;
    }

    /* Make dropdown items easier to tap */
    [id^="stage-menu-"] button,
    [id^="stage-menu-"] a,
    [id^="card-menu-"] button,
    [id^="card-menu-"] a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Admin Panel — Global Responsive & UI Consistency
   ═══════════════════════════════════════════════════════════════ */

/* ── Admin Main Content ────── */
.admin-main {
    padding: 24px;
    min-height: 100vh;
    background: var(--bg-primary);
    flex: 1;
    min-width: 0;
}

/* ── Admin Header — topbar alignment fix ────────────────── */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.admin-header .header-left {
    flex: 1;
    min-width: 0;
}

.admin-header .header-right {
    flex-shrink: 0;
}

/* ── Admin Table — responsive horizontal scroll ─────────── */
.admin-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    min-width: 600px;
}

/* ── Admin Stats Grid ───────────────────────────────────── */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* ── Notification Dropdown Max Width on Small Screens ──── */
@media (max-width: 640px) {
    #notifMenu {
        width: calc(100vw - 2rem) !important;
        right: -60px !important;
        max-width: 360px;
    }

    #topProfileMenu {
        width: calc(100vw - 2rem) !important;
        right: -20px !important;
        max-width: 280px;
    }
}

/* ── General Admin Pages — Mobile ───────────────────────── */
@media (max-width: 768px) {

    /* Main content adjusts when sidebar becomes bottom nav */
    .admin-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 16px;
        padding-bottom: 80px;
        min-height: calc(100vh - 60px);
    }

    /* Admin header stacks on mobile */
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .admin-header h1 {
        font-size: 1.25rem !important;
    }

    .admin-header .header-right {
        align-self: flex-end;
    }

    /* Admin stats: 1 column on mobile */
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Admin card padding */
    .admin-card {
        padding: 16px !important;
        border-radius: 12px;
    }

    /* Form grids stack */
    .admin-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .admin-grid-3 {
        grid-template-columns: 1fr !important;
    }

    /* Table font size */
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Button group wraps */
    .admin-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Sidebar section title in bottom nav */
    .sidebar-section-title {
        display: none !important;
    }
}

/* ── Very Small Screens ─────────────────────────────────── */
@media (max-width: 480px) {
    .admin-main {
        padding: 10px;
        padding-bottom: 80px;
    }

    .admin-header h1 {
        font-size: 1.1rem !important;
    }

    /* Hide less critical table columns */
    .admin-table th:nth-child(n+5),
    .admin-table td:nth-child(n+5) {
        display: none;
    }

    /* Full width buttons */
    .btn-primary,
    .btn-admin-save {
        width: 100%;
        justify-content: center;
    }
}

/* ── Email Marketing Page ───────────────────────────────── */
@media (max-width: 768px) {

    .admin-main .grid,
    .admin-main [style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── User Management Cards — Mobile ─────────────────────── */
@media (max-width: 640px) {
    #users-card-view {
        grid-template-columns: 1fr !important;
    }

    /* List view table: hide email and sales columns */
    #users-list-view table th:nth-child(3),
    #users-list-view table td:nth-child(3),
    #users-list-view table th:nth-child(4),
    #users-list-view table td:nth-child(4) {
        display: none;
    }
}

/* ── Access Control / Permissions — Mobile ──────────────── */
@media (max-width: 768px) {

    /* Any flex row that should stack */
    .admin-main .flex-col-mobile {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* ── Invoice Pages — Mobile ─────────────────────────────── */
@media (max-width: 768px) {
    .admin-main table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-main table th,
    .admin-main table td {
        white-space: nowrap;
        font-size: 0.8rem;
    }
}

/* Unified mobile adjustments */
@media (max-width: 768px) {
    .admin-main {
        padding: 16px;
        padding-bottom: 32px;
    }

    header {
        padding: 0 16px !important;
    }
}

/* ── Print-specific (hide sidebar/topbar for printing) ──── */
@media print {

    .admin-sidebar,
    .admin-layout>aside,
    .admin-header .header-right,
    #notificationDropdown,
    #userProfileDropdown {
        display: none !important;
    }

    .admin-main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
}