/* ═══════════════════════════════════════════════════════════════════
   عيادتي — Modern SaaS Theme Layer
   Additive layer over styles.css. Do NOT modify class names referenced by JS.
   Load AFTER styles.css to override appearance only.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* refined medical blue + teal accent */
    --primary-color: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-darker: #1E3A8A;
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-500: #3B82F6;
    --primary-600: #2563EB;
    --primary-700: #1D4ED8;

    --accent-teal: #0EA5A4;
    --accent-teal-50: #ECFEFF;

    --secondary-color: #10B981;
    --secondary-light: #D1FAE5;
    --success: #10B981;
    --success-50: #ECFDF5;
    --warning: #F59E0B;
    --warning-50: #FFFBEB;
    --danger: #EF4444;
    --danger-50: #FEF2F2;
    --info: #0EA5E9;
    --info-50: #F0F9FF;

    --background-color: #F6F8FB;
    --surface: #FFFFFF;
    --card-bg: #FFFFFF;
    --surface-elevated: #FFFFFF;

    --text-main: #0F172A;
    --text-strong: #0F172A;
    --text-body: #1E293B;
    --text-muted: #64748B;
    --text-soft: #94A3B8;

    --border-color: #E5E7EB;
    --border-soft: #EEF2F6;

    /* radii */
    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* layered soft shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 8px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 8px 16px rgba(15, 23, 42, 0.06), 0 24px 48px rgba(15, 23, 42, 0.08);
    --shadow-primary: 0 8px 24px rgba(37, 99, 235, 0.25);
    --shadow-primary-strong: 0 12px 32px rgba(37, 99, 235, 0.32);

    /* gradients */
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    --gradient-primary-soft: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    --gradient-hero: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #0EA5A4 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-danger: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    --gradient-glass: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.35) 100%);

    /* timing */
    --t-fast: 0.15s;
    --t-base: 0.22s;
    --t-slow: 0.36s;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════════
   LANDING PAGE — Modern Medical SaaS
   All classes prefixed `lp-` so they don't collide with existing styles.
   ═══════════════════════════════════════════════════════════════════ */

.lp-screen {
    background: #FAFBFF;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    color: #0F172A;
    font-family: 'Cairo', sans-serif;
}

/* Decorative background */
.lp-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.lp-bg-blob--1 {
    top: -150px; right: -150px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
}
.lp-bg-blob--2 {
    top: 280px; left: -200px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, #0EA5A4 0%, transparent 70%);
    opacity: 0.35;
}
.lp-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.lp-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ─── NAV ─── */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.lp-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.lp-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    color: #0F172A;
    font-weight: 800;
    font-size: 1.25rem;
}
.lp-brand-mark {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    font-size: 1.05rem;
}
.lp-nav-links {
    display: flex; align-items: center; gap: 28px;
    margin-right: auto; margin-left: auto;
}
.lp-nav-link {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.18s;
}
.lp-nav-link:hover { color: #1D4ED8; }
.lp-nav-actions { display: flex; align-items: center; gap: 10px; }

/* ─── BUTTONS ─── */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s;
    white-space: nowrap;
    text-decoration: none;
}
.lp-btn--sm { padding: 9px 16px; font-size: 0.88rem; border-radius: 10px; }
.lp-btn--lg { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.lp-btn--block { width: 100%; }

.lp-btn--primary {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.32);
}
.lp-btn--primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.lp-btn--secondary {
    background: #fff;
    color: #1D4ED8;
    border: 1.5px solid #DBEAFE;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.lp-btn--secondary:hover {
    transform: translateY(-1px);
    border-color: #93C5FD;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.lp-btn--ghost {
    background: transparent;
    color: #1E293B;
    padding: 9px 14px;
    font-weight: 600;
}
.lp-btn--ghost:hover { background: rgba(15, 23, 42, 0.04); }

.lp-btn--white {
    background: #fff;
    color: #1D4ED8;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.lp-btn--white:hover { transform: translateY(-1px); filter: brightness(1.02); }

.lp-btn--ghost-white {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
}
.lp-btn--ghost-white:hover { background: rgba(255, 255, 255, 0.2); }

/* ─── HERO ─── */
.lp-hero {
    padding: 72px 0 60px;
    position: relative;
    z-index: 1;
}
.lp-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.lp-hero-text { max-width: 560px; }

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1D4ED8;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.16);
    margin-bottom: 20px;
}
.lp-eyebrow-dot {
    width: 6px; height: 6px;
    background: #1D4ED8;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.18);
    animation: lp-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes lp-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.18); }
    50%      { box-shadow: 0 0 0 8px rgba(29, 78, 216, 0.05); }
}

.lp-hero-title {
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin: 0 0 20px;
}
.lp-gradient-text {
    background: linear-gradient(135deg, #3B82F6 0%, #0EA5A4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-sub {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #475569;
    margin: 0 0 32px;
}

.lp-hero-cta {
    display: flex; gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.lp-hero-trust {
    display: flex; align-items: center; gap: 12px;
    color: #475569;
    font-size: 0.92rem;
}
.lp-trust-stars { color: #F59E0B; display: inline-flex; gap: 2px; font-size: 0.9rem; }
.lp-trust-text strong { color: #0F172A; font-weight: 800; }

/* ─── HERO VISUAL / MOCKUP ─── */
.lp-hero-visual {
    position: relative;
    perspective: 1500px;
}
.lp-mockup {
    position: relative;
    transform: rotateY(-3deg) rotateX(2deg);
    transform-style: preserve-3d;
    animation: lp-mockup-float 6s ease-in-out infinite;
}
@keyframes lp-mockup-float {
    0%, 100% { transform: rotateY(-3deg) rotateX(2deg) translateY(0); }
    50%      { transform: rotateY(-3deg) rotateX(2deg) translateY(-8px); }
}

.lp-mockup-frame {
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 30px 60px -15px rgba(15, 23, 42, 0.25),
        0 12px 24px -8px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    padding: 0 0 18px;
    direction: rtl;
}

.lp-mockup-chrome {
    background: #F8FAFC;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #EEF2F6;
}
.lp-mockup-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.lp-mockup-dot--r { background: #EF4444; }
.lp-mockup-dot--y { background: #F59E0B; }
.lp-mockup-dot--g { background: #10B981; }
.lp-mockup-url {
    margin-right: auto;
    background: #fff;
    border: 1px solid #E2E8F0;
    color: #64748B;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
}

.lp-mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 10px;
    padding: 18px 18px 12px;
}
.lp-mockup-stat {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #EEF2F6;
}
.lp-mockup-stat--accent {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-color: #A7F3D0;
}
.lp-mockup-stat-label {
    font-size: 0.72rem;
    color: #64748B;
    font-weight: 700;
    margin-bottom: 4px;
}
.lp-mockup-stat-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.02em;
}
.lp-mockup-stat--accent .lp-mockup-stat-value { color: #047857; }

.lp-mockup-current {
    margin: 4px 18px 14px;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    color: #fff;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}
.lp-mockup-current-num {
    width: 56px; height: 56px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    backdrop-filter: blur(6px);
}
.lp-mockup-current-info { flex: 1; min-width: 0; }
.lp-mockup-current-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.lp-mockup-current-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}
.lp-mockup-current-time {
    display: inline-flex; align-items: center; gap: 4px;
    font-variant-numeric: tabular-nums;
}
.lp-mockup-current-status {
    background: rgba(16, 185, 129, 0.25);
    color: #A7F3D0;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.lp-mockup-queue {
    margin: 0 18px;
    display: flex; flex-direction: column;
    gap: 8px;
}
.lp-mockup-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #EEF2F6;
    border-radius: 10px;
    transition: all 0.18s;
}
.lp-mockup-row--priority {
    background: linear-gradient(90deg, #FFFBEB 0%, #fff 60%);
    border-color: #FDE68A;
}
.lp-mockup-row-num {
    width: 32px; height: 32px;
    background: #EFF6FF;
    color: #1D4ED8;
    border-radius: 8px;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 0.88rem;
}
.lp-mockup-row-num--priority {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #fff;
}
.lp-mockup-row-name {
    font-weight: 700;
    color: #0F172A;
    font-size: 0.9rem;
}
.lp-mockup-pill {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}
.lp-mockup-pill--blue  { background: #DBEAFE; color: #1D4ED8; }
.lp-mockup-pill--green { background: #D1FAE5; color: #047857; }
.lp-mockup-pill--gold  { background: #FDE68A; color: #92400E; }
.lp-mockup-row-wait {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.lp-mockup-row-wait--ok   { background: #ECFDF5; color: #047857; }
.lp-mockup-row-wait--warn { background: #FFFBEB; color: #B45309; }

/* Floating cards beside mockup */
.lp-float-card {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow:
        0 20px 40px -10px rgba(15, 23, 42, 0.18),
        0 8px 16px -6px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.04);
    z-index: 2;
    animation: lp-float-pulse 4s ease-in-out infinite;
}
.lp-float-card--success {
    top: 18%; left: -32px;
    animation-delay: 0s;
}
.lp-float-card--info {
    bottom: 8%; right: -28px;
    animation-delay: 2s;
}
@keyframes lp-float-pulse {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.lp-float-card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10B981, #047857);
    color: #fff;
    display: grid; place-items: center;
    font-size: 1rem;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35);
}
.lp-float-card-icon--info {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}
.lp-float-card-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: #0F172A;
}
.lp-float-card-sub {
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 2px;
}

/* ─── TRUSTBAR ─── */
.lp-trustbar {
    padding: 28px 0;
    background: #fff;
    border-top: 1px solid #EEF2F6;
    border-bottom: 1px solid #EEF2F6;
}
.lp-trustbar-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
}
.lp-trustbar-item { text-align: center; flex: 1; min-width: 0; }
.lp-trustbar-value {
    font-size: 1.85rem;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-trustbar-label {
    font-size: 0.82rem;
    color: #64748B;
    font-weight: 700;
    margin-top: 4px;
}
.lp-trustbar-divider {
    width: 1px;
    height: 40px;
    background: #E2E8F0;
}

/* ─── SECTIONS ─── */
.lp-section {
    padding: 88px 0;
    position: relative;
    z-index: 1;
}
.lp-section--alt {
    background: linear-gradient(180deg, #F1F5F9 0%, #FAFBFF 100%);
}
.lp-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}
.lp-section-head .lp-eyebrow { margin-bottom: 16px; }
.lp-section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin: 0 0 14px;
    line-height: 1.2;
}
.lp-section-sub {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* ─── FEATURES GRID ─── */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.lp-feature {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid #EEF2F6;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03), 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.lp-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06), 0 24px 48px rgba(15, 23, 42, 0.08);
}
.lp-feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}
.lp-feature-icon--blue   { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.lp-feature-icon--green  { background: linear-gradient(135deg, #10B981, #047857); box-shadow: 0 8px 18px rgba(16, 185, 129, 0.25); }
.lp-feature-icon--gold   { background: linear-gradient(135deg, #F59E0B, #D97706); box-shadow: 0 8px 18px rgba(245, 158, 11, 0.25); }
.lp-feature-icon--purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); box-shadow: 0 8px 18px rgba(139, 92, 246, 0.25); }
.lp-feature-icon--cyan   { background: linear-gradient(135deg, #06B6D4, #0E7490); box-shadow: 0 8px 18px rgba(6, 182, 212, 0.25); }
.lp-feature-icon--pink   { background: linear-gradient(135deg, #EC4899, #BE185D); box-shadow: 0 8px 18px rgba(236, 72, 153, 0.25); }
.lp-feature-icon--red    { background: linear-gradient(135deg, #EF4444, #B91C1C); box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25); }
.lp-feature-icon--teal   { background: linear-gradient(135deg, #14B8A6, #0F766E); box-shadow: 0 8px 18px rgba(20, 184, 166, 0.25); }
.lp-feature-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 8px;
}
.lp-feature-desc {
    color: #64748B;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* ─── STEPS ─── */
.lp-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}
.lp-step {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #EEF2F6;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03), 0 4px 12px rgba(15, 23, 42, 0.04);
    position: relative;
}
.lp-step-num {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #fff;
    margin: 0 auto 18px;
    display: grid; place-items: center;
    font-size: 1.6rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}
.lp-step-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #0F172A;
}
.lp-step-desc {
    color: #64748B;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}
.lp-step-connector {
    flex: 0 0 32px;
    align-self: center;
    height: 2px;
    background: repeating-linear-gradient(90deg, #CBD5E1 0 6px, transparent 6px 12px);
}

/* ─── PRICING ─── */
.lp-pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    text-align: center;
    box-shadow:
        0 30px 60px -15px rgba(37, 99, 235, 0.2),
        0 12px 24px -8px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}
.lp-pricing-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 6px;
    background: linear-gradient(90deg, #3B82F6, #0EA5A4);
}
.lp-pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.3);
}
.lp-pricing-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1D4ED8;
    margin-bottom: 10px;
}
.lp-pricing-price {
    margin-bottom: 6px;
}
.lp-pricing-amount {
    font-size: 3.6rem;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-pricing-currency {
    color: #64748B;
    font-size: 1rem;
    font-weight: 700;
    margin-right: 6px;
}
.lp-pricing-sub {
    color: #94A3B8;
    font-size: 0.88rem;
    margin-bottom: 28px;
}
.lp-pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: right;
}
.lp-pricing-list li {
    display: flex; align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #1E293B;
    font-weight: 600;
    border-bottom: 1px solid #F1F5F9;
}
.lp-pricing-list li:last-child { border-bottom: none; }
.lp-pricing-list li i {
    color: #10B981;
    font-size: 1.05rem;
}
.lp-pricing-note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: #64748B;
}

/* ─── FINAL CTA ─── */
.lp-final-cta {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: 64px 32px;
    text-align: center;
    color: #fff;
}
.lp-final-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 164, 0.4), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.5), transparent 50%),
        linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #0EA5A4 120%);
}
.lp-final-cta-inner { position: relative; z-index: 1; }
.lp-final-cta-title {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 900;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
.lp-final-cta-sub {
    font-size: 1.1rem;
    opacity: 0.92;
    margin: 0 0 32px;
    max-width: 580px;
    margin-right: auto; margin-left: auto;
}
.lp-final-cta-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    justify-content: center;
}

/* ─── FOOTER ─── */
.lp-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 56px 0 28px;
}
.lp-footer .lp-container { max-width: 1180px; }
.lp-footer-top {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lp-footer .lp-brand { color: #fff; }
.lp-footer-tagline {
    margin: 14px 0 0;
    color: #94A3B8;
    line-height: 1.7;
    max-width: 320px;
}
.lp-footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.lp-footer-col-title {
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 14px;
}
.lp-footer-col a {
    display: block;
    color: #94A3B8;
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.92rem;
    transition: color 0.18s;
}
.lp-footer-col a:hover { color: #fff; }
.lp-footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lp-footer-copy {
    color: #64748B;
    font-size: 0.88rem;
    margin: 0;
}
.lp-footer .developer-credit {
    color: #94A3B8;
    font-size: 0.88rem;
    margin: 0;
}
.lp-footer .developer-credit a {
    color: #60A5FA;
    font-weight: 800;
    text-decoration: none;
    background: none;
    -webkit-text-fill-color: initial;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991.98px) {
    .lp-nav-links { display: none; }
    .lp-nav-inner { gap: 12px; }
    .lp-hero { padding: 48px 0 40px; }
    .lp-hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    .lp-hero-text { margin: 0 auto; }
    .lp-hero-cta { justify-content: center; }
    .lp-hero-trust { justify-content: center; flex-wrap: wrap; }
    .lp-features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .lp-steps { flex-direction: column; gap: 12px; }
    .lp-step-connector {
        width: 2px; height: 24px; flex: 0;
        background: repeating-linear-gradient(180deg, #CBD5E1 0 6px, transparent 6px 12px);
        margin: 0 auto;
    }
    .lp-footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767.98px) {
    #pwa-install-btn { display: none !important; }
    #pwa-install-btn.visible { display: none !important; }
    .lp-nav-inner { padding: 12px 16px; }
    .lp-btn--sm { padding: 8px 12px; font-size: 0.82rem; }
    .lp-container { padding: 0 16px; }
    .lp-hero { padding: 36px 0 32px; }
    .lp-hero-inner { padding: 0 16px; gap: 32px; }
    .lp-hero-cta { flex-direction: column; gap: 10px; }
    .lp-hero-cta .lp-btn { width: 100%; }
    .lp-hero-trust { font-size: 0.84rem; gap: 8px; }
    .lp-section { padding: 56px 0; }
    .lp-section-head { margin-bottom: 36px; }
    .lp-features-grid { grid-template-columns: 1fr; gap: 14px; }
    .lp-feature { padding: 22px 20px; }
    .lp-trustbar { padding: 22px 0; }
    .lp-trustbar-row { flex-wrap: wrap; gap: 14px; }
    .lp-trustbar-item { flex: 0 0 calc(50% - 14px); }
    .lp-trustbar-divider { display: none; }
    .lp-trustbar-value { font-size: 1.5rem; }
    .lp-pricing-card { padding: 32px 22px; border-radius: 20px; }
    .lp-pricing-amount { font-size: 2.8rem; }
    .lp-final-cta { padding: 48px 22px; border-radius: 22px; }
    .lp-final-cta-actions { flex-direction: column; }
    .lp-final-cta-actions .lp-btn { width: 100%; }
    .lp-footer { padding: 40px 0 24px; }
    .lp-footer-cols { grid-template-columns: 1fr 1fr; }

    /* Mockup mobile tweaks */
    .lp-mockup { transform: none; animation: none; }
    .lp-mockup-frame { border-radius: 16px; }
    .lp-float-card--success { top: 8%; left: -8px; padding: 8px 12px; }
    .lp-float-card--info { bottom: 4%; right: -8px; padding: 8px 12px; }
    .lp-float-card-title { font-size: 0.78rem; }
    .lp-float-card-sub { font-size: 0.66rem; }
    .lp-float-card-icon { width: 32px; height: 32px; font-size: 0.85rem; }
    .lp-mockup-stats { padding: 14px 14px 10px; gap: 8px; }
    .lp-mockup-stat { padding: 10px 10px; }
    .lp-mockup-stat-value { font-size: 1.1rem; }
    .lp-mockup-current { margin: 4px 14px 12px; padding: 12px; }
    .lp-mockup-current-num { width: 44px; height: 44px; font-size: 1.2rem; }
    .lp-mockup-current-name { font-size: 0.95rem; }
    .lp-mockup-queue { margin: 0 14px; }
    .lp-mockup-row { padding: 8px 10px; gap: 8px; }
    .lp-mockup-row-num { width: 28px; height: 28px; font-size: 0.78rem; }
    .lp-mockup-row-name { font-size: 0.82rem; }
}

/* ═════════════ GLOBAL TYPOGRAPHY & BASE ═════════════ */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--background-color);
    color: var(--text-body);
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* No horizontal scroll anywhere on mobile */
html, body { overflow-x: hidden; max-width: 100vw; }

h1, h2, h3, h4, h5, h6 {
    color: var(--text-strong);
    letter-spacing: -0.01em;
}

/* ═════════════ BOOTSTRAP & UTILITIES POLISH ═════════════ */
.btn {
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0;
    transition: all var(--t-base) var(--ease-out);
    border-width: 1px;
}
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    background: var(--gradient-primary) !important;
    filter: brightness(1.05);
    box-shadow: var(--shadow-primary-strong);
    transform: translateY(-1px);
}
.btn-warning {
    background: var(--gradient-warning) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}
.btn-success {
    background: var(--gradient-success) !important;
    border-color: transparent !important;
}
.btn-danger {
    background: var(--gradient-danger) !important;
    border-color: transparent !important;
}
.btn-light {
    background: #fff !important;
    border-color: var(--border-color) !important;
    color: var(--text-body) !important;
}
.btn-outline-primary {
    background: #fff !important;
    border: 1.5px solid var(--primary-500) !important;
}

/* Cards (Bootstrap) */
.card {
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-base) var(--ease-out);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
}

/* Badges */
.badge { border-radius: var(--radius-pill); font-weight: 700; }

/* Inputs polish */
input[type="text"], input[type="password"], input[type="number"],
input[type="email"], input[type="tel"], input[type="search"],
input[type="date"], textarea, select {
    border-radius: var(--radius-md) !important;
    border: 1.5px solid var(--border-color) !important;
    background: #fff !important;
    transition: border-color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out);
    min-height: 44px;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}

/* ═════════════ SPLASH SCREEN ═════════════ */
.splash-container {
    background: var(--gradient-glass), radial-gradient(circle at top, #EFF6FF 0%, #fff 60%) !important;
}
.splash-logo {
    filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.18));
}
.ekg-line {
    stroke: var(--primary-500);
    stroke-width: 1.5;
}

/* ═════════════ LANDING PAGE / NAVBAR ═════════════ */
#landing-page .navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border-soft) !important;
    box-shadow: var(--shadow-xs) !important;
}
#landing-page .navbar-brand > div {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-primary);
}

#landing-page .display-4 {
    background: linear-gradient(135deg, #0F172A 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero floating card */
#landing-page .position-relative .position-absolute.bottom-0.end-0 {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Final CTA banner */
#landing-page .bg-primary.rounded-4 {
    background: var(--gradient-hero) !important;
    box-shadow: var(--shadow-lg);
}

/* PWA install button polish */
#pwa-install-btn {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-primary) !important;
}

/* ═════════════ LOGIN MODAL ═════════════ */
.login-modal-overlay {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.login-modal-card {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid rgba(255,255,255,0.6);
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%) !important;
}
.login-modal-logo-circle {
    background: var(--gradient-primary) !important;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35),
                inset 0 1px 0 rgba(255,255,255,0.4) !important;
}
.login-modal-title {
    background: linear-gradient(135deg, #0F172A 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-role-tabs {
    background: var(--background-color) !important;
    border-radius: var(--radius-pill) !important;
    padding: 4px !important;
}
.login-role-tab {
    border-radius: var(--radius-pill) !important;
    transition: all var(--t-base) var(--ease-out) !important;
}
.login-role-tab--active {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    box-shadow: var(--shadow-primary) !important;
}
.login-form-input-wrapper {
    border-radius: var(--radius-md) !important;
    border: 1.5px solid var(--border-color) !important;
    background: #fff !important;
    transition: all var(--t-fast) var(--ease-out);
}
.login-form-input-wrapper:focus-within {
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.login-form-input { min-height: 48px; }

/* ── Unify icon position: ALL icons on the right (RTL-first) ── */
.login-form-input-wrapper i {
    right: 16px !important;
    left: auto !important;
    color: var(--text-muted);
    font-size: 1rem;
}
.login-form-input-wrapper--email i,
.login-form-input-wrapper--code i {
    right: 16px !important;
    left: auto !important;
}

/* Make all login inputs feel identical: icon on right, padding consistent */
.login-form-input {
    padding: 12px 52px 12px 16px !important;  /* RTL: right padding for icon */
    text-align: right !important;
    direction: rtl !important;
}
/* Email/code: keep text LTR for Latin chars, but still right-align so the
   value sits next to the icon (matching other fields visually) */
.login-form-input[type="email"],
.login-form-input-wrapper--code .login-form-input {
    direction: ltr !important;
    text-align: right !important;       /* align value to right edge */
    padding: 12px 52px 12px 16px !important;
}
/* Placeholder always Arabic — force RTL so it reads naturally */
.login-form-input::placeholder {
    direction: rtl;
    text-align: right;
    opacity: 0.55;
}

/* ── Password visibility toggle ── */
.login-form-input-wrapper.has-pw-toggle {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}
.login-form-input-wrapper.has-pw-toggle .login-form-input {
    /* Make room on the left for the toggle button */
    padding-left: 52px !important;
    padding-right: 52px !important;
    flex: 1;
}
.login-form-input-wrapper.has-pw-toggle .pw-toggle-btn {
    position: absolute !important;
    left: 8px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    border: none !important;
    background: transparent !important;
    color: #94A3B8 !important;
    cursor: pointer !important;
    border-radius: 10px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 1.02rem !important;
    transition: color 0.15s, background 0.15s, transform 0.12s !important;
    z-index: 10 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none;
}
.login-form-input-wrapper.has-pw-toggle .pw-toggle-btn i {
    /* Make sure the icon inherits styling and isn't picked up by the
       absolute-positioned input-wrapper "i" rules above. */
    position: static !important;
    transform: none !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: 1 !important;
    pointer-events: none;
}
.login-form-input-wrapper.has-pw-toggle .pw-toggle-btn:hover {
    color: #1D4ED8 !important;
    background: rgba(37, 99, 235, 0.10) !important;
}
.login-form-input-wrapper.has-pw-toggle .pw-toggle-btn:active {
    transform: translateY(-50%) scale(0.92) !important;
}
.login-form-input-wrapper.has-pw-toggle .pw-toggle-btn:focus-visible {
    outline: 2px solid #3B82F6 !important;
    outline-offset: 1px !important;
}

/* ═════════════ APP CONTAINER / CARDS / STATS ═════════════ */
#app-container .card,
#app-container .stat-box,
#app-container .reception-display-card {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-soft) !important;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-base) var(--ease-out),
                transform var(--t-base) var(--ease-out);
}
#app-container .card:hover { box-shadow: var(--shadow-md); }

/* Stat boxes */
.stat-box {
    background: #fff;
    padding: 1.25rem 1rem !important;
    position: relative;
    overflow: hidden;
}
.stat-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: var(--gradient-primary-soft);
    border-radius: 50%;
    transform: translate(30%, -40%);
    opacity: 0.6;
    pointer-events: none;
}
.stat-box .stat-value,
.stat-box h3,
.stat-box .display-6 {
    color: var(--primary-darker);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ═════════════ PATIENT CARDS / QUEUE ═════════════ */
.patient-item {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-soft) !important;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: all var(--t-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.patient-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(37, 99, 235, 0.18) !important;
}

/* status accent bar (right side, RTL) */
.patient-item::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 4px;
    background: var(--text-soft);
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}
.patient-item.status-waiting::before          { background: var(--info); }
.patient-item.status-in_room::before          { background: var(--success); }
.patient-item.status-completed::before        { background: var(--text-soft); }
.patient-item.status-temporarily_away::before { background: var(--warning); }
.patient-item.status-booked::before           { background: var(--primary-500); }

.patient-item .p-num {
    background: var(--gradient-primary-soft);
    color: var(--primary-darker);
    border-radius: var(--radius-md);
    font-weight: 800;
    padding: 6px 12px;
    font-variant-numeric: tabular-nums;
}
.patient-item .p-name {
    color: var(--text-strong);
    font-weight: 700;
}
.patient-item .p-meta { color: var(--text-muted); }

/* type pills */
.p-type {
    border-radius: var(--radius-pill);
    font-weight: 700;
    padding: 4px 10px;
    font-size: 0.72rem;
}
.p-type.kashf     { background: var(--info-50);     color: #0369A1; }
.p-type.esteshara { background: var(--success-50);  color: #047857; }
.p-type.ziyara    { background: var(--warning-50);  color: #B45309; }

/* est wait pill */
.est-wait {
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.est-wait.wait-green  { background: var(--success-50); color: #047857; }
.est-wait.wait-yellow { background: var(--warning-50); color: #B45309; }
.est-wait.wait-red    { background: var(--danger-50);  color: #B91C1C; }

/* Priority glow */
.glow-pulse {
    border: 2px solid transparent !important;
    background: linear-gradient(#fff, #fff) padding-box,
                var(--gradient-primary) border-box;
    animation: glow-soft 2s ease-in-out infinite;
}
@keyframes glow-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.0); }
    50%      { box-shadow: 0 0 0 8px rgba(37,99,235,0.12); }
}

/* Patient action buttons — bigger touch targets */
.p-btn, .p-actions .btn, .p-actions button {
    min-height: 40px;
    border-radius: var(--radius-md) !important;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
}

/* ═════════════ EMPTY STATES & LOADING ═════════════ */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem !important;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}
.empty-state::before {
    content: '\f15b';
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-soft);
    opacity: 0.7;
}

/* Skeleton (utility) */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s linear infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═════════════ TOASTS ═════════════ */
.toast, .toast-notification, [class*="-toast"] {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-soft);
}

/* ═════════════ MODALS ═════════════ */
.modal:not(.hidden) {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal .modal-content,
.modal-card,
.modal-dialog .modal-content {
    border-radius: var(--radius-xl) !important;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
}

/* ═════════════ MOBILE BOTTOM NAV ═════════════ */
@media (max-width: 991.98px) {
    .mobile-nav {
        background: rgba(255,255,255,0.92) !important;
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-top: 1px solid var(--border-soft);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06) !important;
        padding-top: 6px;
    }
    .mobile-nav .nav-item {
        font-size: 0.72rem !important;
        font-weight: 700;
        color: var(--text-muted) !important;
        transition: color var(--t-fast) var(--ease-out);
        min-height: 56px;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }
    .mobile-nav .nav-item i {
        font-size: 1.25rem !important;
        margin-bottom: 0 !important;
        transition: transform var(--t-fast) var(--ease-out);
    }
    .mobile-nav .nav-item.active {
        color: var(--primary-600) !important;
        position: relative;
    }
    .mobile-nav .nav-item.active::after {
        content: '';
        position: absolute;
        top: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 28px; height: 3px;
        background: var(--gradient-primary);
        border-radius: var(--radius-pill);
    }
    .mobile-nav .nav-item.active i {
        transform: translateY(-1px) scale(1.06);
    }
}

/* ═════════════ MOBILE — KILL HORIZONTAL SCROLL, CARDIFY TABLES ═════════════ */
@media (max-width: 767.98px) {
    /* Containers shouldn't overflow horizontally */
    .container, .container-fluid,
    .reports-container, .reports-table-wrap,
    .list-container, #app-container > * {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Generic table → cards transformation (safe for unstyled tables) */
    .table-cardify, .table-cardify thead { display: block; }
    .table-cardify thead { display: none; }
    .table-cardify tbody, .table-cardify tr, .table-cardify td {
        display: block;
        width: 100%;
        text-align: right;
    }
    .table-cardify tr {
        background: #fff;
        border: 1px solid var(--border-soft);
        border-radius: var(--radius-md);
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
        box-shadow: var(--shadow-xs);
    }
    .table-cardify td {
        border: none;
        padding: 4px 0;
    }
    .table-cardify td::before {
        content: attr(data-label);
        display: inline-block;
        min-width: 90px;
        font-weight: 700;
        color: var(--text-muted);
        margin-left: 8px;
    }

    /* Larger touch targets */
    .btn, button.btn, .p-btn { min-height: 44px; }
    .login-form-input, input, select, textarea { min-height: 48px; }

    /* Modals → fullscreen on small phones */
    .modal:not(.hidden) .modal-dialog,
    .modal:not(.hidden) .modal-card,
    .modal:not(.hidden) .modal-content {
        margin: 0 !important;
        max-width: 100vw !important;
        width: 100vw !important;
        min-height: 100vh;
        border-radius: 0 !important;
    }

    /* Stat boxes: 2 columns on phones */
    .stat-box { padding: 1rem 0.85rem !important; }

    /* Patient cards padding tightened */
    .patient-item { padding: 0.85rem !important; }

    /* Hide PWA hint when it would overlap bottom nav */
    #pwa-landing-hint, #pwa-ios-hint { bottom: 80px !important; }

    /* Reports: force vertical scrolling */
    .reports-screen, .reports-content,
    [data-reports-container],
    .report-card-grid {
        flex-direction: column !important;
        overflow-x: hidden !important;
    }

    /* Any wide divs with horizontal scroll → vertical */
    .table-responsive,
    .horizontal-scroll {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive::-webkit-scrollbar { height: 4px; }
}

/* ═════════════ OFFLINE BANNER POLISH ═════════════ */
#offline-banner {
    background: var(--gradient-danger) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
    font-family: 'Cairo', sans-serif !important;
}

/* ═════════════ PWA LANDING HINT POLISH ═════════════ */
#pwa-landing-hint, #pwa-ios-hint {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.95) !important;
    border: 1px solid rgba(37,99,235,0.25) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* ═════════════ SCROLLBAR (desktop only) ═════════════ */
@media (min-width: 992px) {
    *::-webkit-scrollbar { width: 10px; height: 10px; }
    *::-webkit-scrollbar-track { background: transparent; }
    *::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: var(--radius-pill);
        border: 2px solid transparent;
        background-clip: padding-box;
    }
    *::-webkit-scrollbar-thumb:hover { background: var(--text-soft); background-clip: padding-box; }
}

/* ═════════════ ANIMATIONS ═════════════ */
.patient-item, .stat-box, .card, .feature-card {
    animation: fade-rise var(--t-slow) var(--ease-out) both;
}
@keyframes fade-rise {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ═════════════ FORM CONTROLS — ASSISTANT/DOCTOR SETTINGS ═════════════ */
.settings-input {
    border-radius: var(--radius-md) !important;
    border: 1.5px solid var(--border-color) !important;
    min-height: 44px;
    background: #fff !important;
    transition: all var(--t-fast) var(--ease-out);
}
.settings-input:focus {
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12) !important;
}
.settings-save-btn {
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-primary) !important;
    min-height: 48px;
    font-weight: 700;
}
.settings-save-btn:hover {
    filter: brightness(1.05);
    box-shadow: var(--shadow-primary-strong) !important;
}

/* ═════════════ DEVELOPER CREDIT FOOTER POLISH ═════════════ */
.developer-credit, .copyright {
    font-family: 'Cairo', sans-serif;
}
.developer-credit a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ═════════════ REPORT MODAL (17-col table) ═════════════ */
#report-modal .card.border-0 .card-body {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
#report-modal .table {
    font-size: 0.88rem;
}
#report-modal .table thead.table-light th {
    background: var(--background-color) !important;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0;
    padding: 12px 8px;
    white-space: nowrap;
    border-bottom: 2px solid var(--border-soft);
}
#report-modal .table tbody td {
    padding: 10px 8px;
    border-color: var(--border-soft);
    white-space: nowrap;
}
#report-modal .table-responsive {
    border-radius: var(--radius-lg);
    -webkit-overflow-scrolling: touch;
}

/* Mobile: stat cards 2-column grid above the table */
@media (max-width: 767.98px) {
    #report-modal .modal-body > .row.g-3 {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
        margin: 0 0 1rem 0 !important;
    }
    #report-modal .modal-body > .row.g-3 > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        flex: unset !important;
    }
    #report-modal .modal-body > .row.g-3 > [class*="col-"]:first-child,
    #report-modal .modal-body > .row.g-3 > [class*="col-"]:last-child {
        grid-column: span 2;
    }
    #report-modal .modal-body > .row.g-3 .card-body { padding: 0.85rem; }
    #report-modal .modal-body > .row.g-3 h3,
    #report-modal .modal-body > .row.g-3 h4 { font-size: 1.4rem; }

    /* Hint that table scrolls horizontally */
    #report-modal .table-responsive {
        position: relative;
        font-size: 0.82rem;
    }
    #report-modal .table-responsive::after {
        content: '←';
        position: absolute;
        top: 6px; left: 6px;
        background: var(--gradient-primary);
        color: #fff;
        width: 26px; height: 26px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%;
        font-size: 0.9rem;
        font-weight: 800;
        opacity: 0.85;
        pointer-events: none;
        animation: nudge-scroll 1.6s ease-in-out infinite;
        z-index: 2;
    }
    @keyframes nudge-scroll {
        0%, 100% { transform: translateX(0); opacity: 0.85; }
        50%      { transform: translateX(-6px); opacity: 1; }
    }
    #report-modal .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    #report-modal .modal-footer .btn {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* ═════════════ ARCHIVE / SETTINGS — RESPONSIVE TOUCHES ═════════════ */
@media (max-width: 767.98px) {
    #settings-screen .container, #archive-modal .container,
    #settings-screen .modal-body, #archive-modal .modal-body {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    /* Stat columns on dashboard: 2 cols on phones */
    #doctor-screen .row.g-4 > [class*="col-"],
    #reception-screen .row.g-4 > [class*="col-"] {
        margin-bottom: 0;
    }
}

/* ═════════════ NURSE CALL / BREAK BANNERS POLISH ═════════════ */
.alert.alert-warning, #nurse-call-alert {
    border-radius: var(--radius-md) !important;
    border: 1px solid #FDE68A !important;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;
}
.alert.alert-danger, #doctor-break-banner {
    border-radius: var(--radius-md) !important;
    border: 1px solid #FECACA !important;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%) !important;
}

/* ═════════════ TYPE RADIO BUTTONS (الإضافة) ═════════════ */
.btn-check + .btn-outline-primary,
.btn-check + .btn-outline-success,
.btn-check + .btn-outline-warning {
    border-radius: var(--radius-md) !important;
    border-width: 1.5px !important;
    font-weight: 700;
    min-height: 44px;
    transition: all var(--t-base) var(--ease-out) !important;
}
.btn-check:checked + .btn-outline-primary {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-primary);
}
.btn-check:checked + .btn-outline-success {
    background: var(--gradient-success) !important;
    border-color: transparent !important;
    color: #fff !important;
}
.btn-check:checked + .btn-outline-warning {
    background: var(--gradient-warning) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* ═════════════ STICKY HEADERS POLISH ═════════════ */
#doctor-screen header.sticky-top,
#reception-screen header.sticky-top {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-xs) !important;
}

/* ═════════════ MOBILE QUICK ACTION ROW POLISH ═════════════ */
.mobile-quick-actions .btn {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.5rem 0.95rem;
    min-height: 40px;
    white-space: nowrap;
}

/* ═════════════ DOCTOR CALL/BREAK ACTION BUTTONS ═════════════ */
.doc-action-btn, .doc-action-btn-sm {
    border-radius: var(--radius-pill) !important;
    font-weight: 700;
    min-height: 44px;
}
.doc-action-btn-sm { font-size: 0.82rem; min-height: 38px; }

/* ═════════════ CLINIC SELECTION MODAL ═════════════ */
.clinic-selection-overlay {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.clinic-selection-card {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-soft);
}

/* ═════════════ PRINT (clean PDF output) ═════════════ */
@media print {
    body { background: #fff; }
    .no-print, .mobile-nav, #pwa-install-btn, #offline-banner,
    #pwa-landing-hint, #pwa-ios-hint { display: none !important; }
    #report-modal { position: static !important; background: #fff !important; }
    #report-modal .modal-dialog { max-width: 100% !important; margin: 0 !important; }
    #report-modal .modal-content { box-shadow: none !important; border: none !important; }
    #report-modal .table { font-size: 11px !important; }
    #report-modal .table thead { background: #f1f5f9 !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   TOAST & DIALOG SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

#eyd-toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: min(420px, calc(100vw - 32px));
    max-width: 420px;
    direction: rtl;
}

.eyd-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    color: #0F172A;
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.16),
        0 4px 10px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 4px solid #3B82F6;
}
.eyd-toast--in {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.eyd-toast--leaving {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
}

.eyd-toast-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 8px;
    display: grid; place-items: center;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 0.95rem;
}
.eyd-toast-msg {
    flex: 1;
    word-break: break-word;
    padding-top: 3px;
}
.eyd-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px;
    margin: 0;
    line-height: 1;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: color 0.15s, background 0.15s;
}
.eyd-toast-close:hover { color: #1E293B; background: rgba(15, 23, 42, 0.06); }

.eyd-toast--success { border-right-color: #10B981; }
.eyd-toast--success .eyd-toast-icon { background: #ECFDF5; color: #047857; }
.eyd-toast--warning { border-right-color: #F59E0B; }
.eyd-toast--warning .eyd-toast-icon { background: #FFFBEB; color: #B45309; }
.eyd-toast--error   { border-right-color: #EF4444; }
.eyd-toast--error   .eyd-toast-icon { background: #FEF2F2; color: #B91C1C; }

/* ─── Dialog (confirm/prompt) ─── */
.eyd-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.eyd-dialog-overlay--in { opacity: 1; }
.eyd-dialog-overlay--leaving { opacity: 0; }

.eyd-dialog-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 22px;
    padding: 32px 28px 24px;
    text-align: center;
    box-shadow:
        0 30px 60px -15px rgba(15, 23, 42, 0.3),
        0 12px 24px -8px rgba(15, 23, 42, 0.15);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    transform: scale(0.92);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.eyd-dialog-overlay--in .eyd-dialog-card { transform: scale(1); }

.eyd-dialog-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    margin: 0 auto 18px;
    display: grid; place-items: center;
    font-size: 1.75rem;
    color: #fff;
}
.eyd-dialog-icon--primary {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}
.eyd-dialog-icon--danger {
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.35);
}

.eyd-dialog-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.eyd-dialog-msg {
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0 0 22px;
    white-space: pre-wrap;
}

.eyd-dialog-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    margin-bottom: 12px;
    direction: rtl;
    text-align: right;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-height: 48px;
}
.eyd-dialog-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.eyd-dialog-err {
    color: #B91C1C;
    background: #FEF2F2;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: right;
}

.eyd-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: stretch;
    margin-top: 10px;
}
.eyd-btn {
    flex: 1;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s, background 0.15s;
    min-height: 48px;
}
.eyd-btn--primary {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.eyd-btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.eyd-btn--danger {
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    color: #fff;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
}
.eyd-btn--danger:hover { filter: brightness(1.06); transform: translateY(-1px); }
.eyd-btn--ghost {
    background: #F8FAFC;
    color: #1E293B;
    border: 1.5px solid #E2E8F0;
}
.eyd-btn--ghost:hover { background: #F1F5F9; }

@media (max-width: 480px) {
    #eyd-toast-container { top: 12px; width: calc(100vw - 24px); }
    .eyd-toast { font-size: 0.88rem; padding: 12px 14px; }
    .eyd-dialog-card { padding: 24px 20px 18px; border-radius: 20px; }
    .eyd-dialog-icon { width: 56px; height: 56px; font-size: 1.5rem; }
    .eyd-dialog-title { font-size: 1.1rem; }
    .eyd-dialog-actions { flex-direction: column-reverse; }
}

/* ═══════════════════════════════════════════════════════════════════
   ONBOARDING WIZARD
   ═══════════════════════════════════════════════════════════════════ */
.eyd-onb-overlay {
    position: fixed; inset: 0; z-index: 100002;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid; place-items: center;
    padding: 16px;
    opacity: 0; transition: opacity 0.25s ease;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}
.eyd-onb-overlay--in { opacity: 1; }
.eyd-onb-overlay--leaving { opacity: 0; }

.eyd-onb-card {
    width: 100%; max-width: 640px;
    max-height: calc(100vh - 32px);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.35), 0 16px 32px -10px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    display: flex; flex-direction: column;
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.eyd-onb-overlay--in .eyd-onb-card { transform: scale(1); }

.eyd-onb-bg {
    position: absolute;
    top: -120px; left: -100px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.eyd-onb-header {
    position: relative; z-index: 1;
    padding: 22px 28px 0;
    display: flex; align-items: center;
    flex-direction: column;
    gap: 20px;
}
.eyd-onb-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.1rem;
    color: #0F172A;
}
.eyd-onb-mark {
    width: 36px; height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
    font-size: 0.95rem;
}

.eyd-onb-progress {
    display: flex; align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 420px;
}
.eyd-onb-step {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}
.eyd-onb-step-dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #E2E8F0;
    transition: all 0.25s;
    position: relative;
}
.eyd-onb-step.current .eyd-onb-step-dot {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.16);
}
.eyd-onb-step.done .eyd-onb-step-dot {
    background: #10B981;
}
.eyd-onb-step.done .eyd-onb-step-dot::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: grid; place-items: center;
    color: #fff;
    font-size: 0.7rem;
}
.eyd-onb-step-label {
    font-size: 0.72rem; color: #94A3B8;
    font-weight: 700;
}
.eyd-onb-step.current .eyd-onb-step-label { color: #1D4ED8; }
.eyd-onb-step.done .eyd-onb-step-label    { color: #047857; }
.eyd-onb-step-line {
    flex: 1; height: 2px;
    background: #E2E8F0;
    margin-bottom: 18px;
    transition: background 0.25s;
}
.eyd-onb-step-line.done { background: #10B981; }

.eyd-onb-body {
    position: relative; z-index: 1;
    padding: 24px 28px 28px;
    overflow-y: auto;
    flex: 1;
    display: flex; flex-direction: column;
    gap: 22px;
}

.eyd-onb-step-head { text-align: center; }
.eyd-onb-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.eyd-onb-sub {
    color: #64748B;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.eyd-onb-content { flex: 1; min-height: 200px; }

/* ─── Welcome step ─── */
.eyd-onb-welcome { text-align: center; }
.eyd-onb-welcome-icon {
    width: 80px; height: 80px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #10B981, #047857);
    color: #fff;
    display: grid; place-items: center;
    font-size: 2rem;
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.35);
}
.eyd-onb-welcome-msg {
    color: #0F172A;
    font-size: 1.1rem;
    margin-bottom: 24px;
}
.eyd-onb-welcome-msg strong { color: #1D4ED8; }
.eyd-onb-welcome-list {
    background: #F8FAFC;
    border-radius: 14px;
    padding: 16px 18px;
    text-align: right;
}
.eyd-onb-welcome-list > div {
    padding: 8px 0;
    color: #1E293B;
    font-weight: 600;
    display: flex; align-items: center; gap: 10px;
}
.eyd-onb-welcome-list i { color: #10B981; }

/* ─── Pricing step ─── */
.eyd-onb-grid {
    display: grid;
    gap: 14px;
}
.eyd-onb-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.eyd-onb-grid--2 { grid-template-columns: 1fr 1fr; }

.eyd-onb-price {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.18s;
}
.eyd-onb-price:hover { border-color: #93C5FD; background: #fff; }
.eyd-onb-price-head {
    font-weight: 700;
    color: #0F172A;
    font-size: 0.92rem;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.eyd-onb-price-head i { color: #1D4ED8; }
.eyd-onb-price-input {
    display: flex; align-items: center; gap: 6px;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 6px 12px;
    transition: all 0.15s;
}
.eyd-onb-price-input:focus-within {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.eyd-onb-price-input input {
    flex: 1; min-width: 0;
    border: none; outline: none;
    background: transparent;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F172A;
    text-align: right;
    padding: 6px 0;
    direction: ltr;
}
.eyd-onb-price-input span {
    color: #64748B;
    font-weight: 700;
    font-size: 0.88rem;
}

.eyd-onb-hint {
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 12px;
    padding: 10px 14px;
    color: #1E40AF;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.eyd-onb-hint i { color: #1D4ED8; }

/* ─── Queue step (radio options) ─── */
.eyd-onb-options {
    display: flex; flex-direction: column; gap: 12px;
}
.eyd-onb-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1.5px solid #E2E8F0;
    background: #fff;
    cursor: pointer;
    transition: all 0.18s;
    position: relative;
}
.eyd-onb-option input { position: absolute; opacity: 0; pointer-events: none; }
.eyd-onb-option:hover { border-color: #93C5FD; transform: translateY(-1px); }
.eyd-onb-option:has(input:checked) {
    border-color: #3B82F6;
    background: linear-gradient(135deg, #EFF6FF 0%, #fff 50%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
.eyd-onb-option-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #F1F5F9;
    color: #475569;
    display: grid; place-items: center;
    font-size: 1.1rem;
    transition: all 0.18s;
}
.eyd-onb-option:has(input:checked) .eyd-onb-option-icon {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #fff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}
.eyd-onb-option-title {
    font-weight: 800;
    color: #0F172A;
    font-size: 1rem;
    margin-bottom: 3px;
}
.eyd-onb-option-desc {
    color: #64748B;
    font-size: 0.85rem;
    line-height: 1.5;
}
.eyd-onb-option-check {
    color: #E2E8F0;
    font-size: 1.4rem;
    transition: color 0.18s;
}
.eyd-onb-option:has(input:checked) .eyd-onb-option-check { color: #10B981; }

/* ─── Staff step ─── */
.eyd-onb-staff-toggle {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 14px;
}
.eyd-onb-switch {
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
    font-weight: 700;
    color: #0F172A;
}
.eyd-onb-switch input { position: absolute; opacity: 0; pointer-events: none; }
.eyd-onb-switch-track {
    width: 46px; height: 26px;
    background: #CBD5E1;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.eyd-onb-switch-thumb {
    position: absolute;
    top: 3px; right: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
.eyd-onb-switch input:checked + .eyd-onb-switch-track {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}
.eyd-onb-switch input:checked + .eyd-onb-switch-track .eyd-onb-switch-thumb {
    transform: translateX(-20px);
}

.eyd-onb-staff-form { display: flex; flex-direction: column; gap: 12px; }
.eyd-onb-staff-form.hidden { display: none; }
.eyd-onb-field label {
    display: block;
    font-weight: 700;
    color: #1E293B;
    font-size: 0.88rem;
    margin-bottom: 6px;
}
.eyd-onb-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: all 0.15s;
    min-height: 46px;
}
.eyd-onb-field input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ─── Done step ─── */
.eyd-onb-done { text-align: center; }
.eyd-onb-done-icon {
    width: 88px; height: 88px;
    margin: 0 auto 18px;
    border-radius: 26px;
    background: linear-gradient(135deg, #10B981, #047857);
    color: #fff;
    display: grid; place-items: center;
    font-size: 2.4rem;
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.4);
    animation: eyd-onb-done-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes eyd-onb-done-pop {
    0%   { transform: scale(0.4); opacity: 0; }
    60%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}
.eyd-onb-done-msg {
    color: #1E293B;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.eyd-onb-code-box {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    color: #fff;
    border-radius: 18px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    align-items: center;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.32);
    text-align: right;
    position: relative;
    margin-bottom: 16px;
}
.eyd-onb-code-label {
    grid-row: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 700;
}
.eyd-onb-code-value {
    grid-row: 2;
    font-size: 1.85rem;
    font-weight: 900;
    font-family: 'Cairo', monospace;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    text-align: right;
}
.eyd-onb-copy {
    grid-row: 1 / 3;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.18s;
}
.eyd-onb-copy:hover { background: rgba(255, 255, 255, 0.28); }

.eyd-onb-staff-summary {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 18px;
    text-align: right;
    margin-top: 12px;
}
.eyd-onb-staff-summary-title {
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 10px;
}
.eyd-onb-staff-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #EEF2F6;
    color: #475569;
    font-size: 0.92rem;
}
.eyd-onb-staff-summary-row:last-of-type { border-bottom: none; }
.eyd-onb-staff-summary-row strong { color: #0F172A; font-family: 'Cairo', monospace; }

/* ─── Actions ─── */
.eyd-onb-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #EEF2F6;
}
.eyd-onb-btn {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.18s;
    min-height: 50px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
}
.eyd-onb-btn--block { flex: 1 1 100%; }
.eyd-onb-btn--primary {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
}
.eyd-onb-btn--primary:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}
.eyd-onb-btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }
.eyd-onb-btn--ghost {
    background: #F8FAFC;
    color: #1E293B;
    border: 1.5px solid #E2E8F0;
}
.eyd-onb-btn--ghost:hover { background: #F1F5F9; }

@media (max-width: 640px) {
    .eyd-onb-card { border-radius: 20px; }
    .eyd-onb-header { padding: 18px 18px 0; }
    .eyd-onb-body { padding: 18px 18px 22px; }
    .eyd-onb-title { font-size: 1.25rem; }
    .eyd-onb-sub { font-size: 0.88rem; }
    .eyd-onb-grid--3 { grid-template-columns: 1fr; }
    .eyd-onb-grid--2 { grid-template-columns: 1fr; }
    .eyd-onb-step-label { display: none; }
    .eyd-onb-code-value { font-size: 1.5rem; letter-spacing: 1px; }
    .eyd-onb-actions { flex-direction: column-reverse; }
    .eyd-onb-progress { max-width: 100%; }
}
@media (max-width: 480px) {
    .eyd-onb-overlay { padding: 0; align-items: stretch; }
    .eyd-onb-card {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   OAUTH (Google sign-in) buttons inside login modal
   ═══════════════════════════════════════════════════════════════════ */
.oauth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 16px;
    color: #94A3B8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: none;
}
.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E2E8F0 20%, #E2E8F0 80%, transparent);
}
.oauth-divider span {
    flex-shrink: 0;
    padding: 0 4px;
    letter-spacing: 0;
}

.oauth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: 14px;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    color: #1E293B;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-bottom: 0;
    min-height: 50px;
    position: relative;
}
.oauth-btn:hover {
    background: #FAFBFC;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.oauth-btn:active { transform: translateY(0); box-shadow: none; }
.oauth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.oauth-btn svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}
.oauth-btn--google span {
    color: #1F2937;
    font-weight: 700;
    letter-spacing: 0;
}

/* Hide Google button when reception role is selected */
.login-role-reception .oauth-divider,
.login-role-reception #oauth-google-btn { display: none !important; }

/* Reception role: bring login submit up tight (no divider above) */
.login-role-reception .login-form-submit { margin-top: 8px; }

/* Polish the "create account" link button */
.login-secondary-action {
    background: transparent !important;
    border: none !important;
    color: #64748B !important;
    font-weight: 600 !important;
    margin-top: 14px !important;
    padding: 10px !important;
    transition: color 0.15s !important;
    text-align: center !important;
}
.login-secondary-action strong {
    color: #1D4ED8;
    font-weight: 800;
    margin-right: 4px;
}
.login-secondary-action:hover { color: #1E293B !important; }
.login-secondary-action:hover strong { color: #1E40AF; }

/* ── Login modal footer (link + credit) ── */
.login-modal-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #EEF2F6;
    text-align: center;
    gap: 0;
}
.login-modal-footer > div {
    width: 100%;
    text-align: center !important;
}
.login-modal-footer p {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}
.login-footer-link {
    display: inline-block;
    color: #64748B;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.15s;
}
.login-footer-link:hover {
    color: #1D4ED8;
    background: rgba(37, 99, 235, 0.06);
}
.login-modal-footer .developer-credit,
.login-modal-footer .copyright {
    font-size: 0.74rem !important;
    color: #94A3B8 !important;
    line-height: 1.6 !important;
    text-align: center !important;
}
.login-modal-footer .developer-credit a {
    color: #1D4ED8 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    font-weight: 800;
}
/* Tighter border in modal footer */
.login-modal-footer > div[style*="border-top"] {
    border-top: 1px solid #EEF2F6 !important;
    padding-top: 12px !important;
    margin-top: 12px !important;
}

/* ═════════════ FOCUS VISIBLE (accessibility) ═════════════ */
:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}
button:focus, .btn:focus { outline: none; }
button:focus-visible, .btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(37,99,235,0.18) !important;
}
