/* ---------- الأساسيات ---------- */

:root {
    --bg-body: #f5f5f7;
    --bg-muted: #f3f4f6;
    --bg-card: #ffffff;
    --border-soft: #e5e7eb;
    --border-subtle: #d1d5db;

    --text-main: #111827;
    --text-muted: #6b7280;

    --primary: #4f46e5;
    --primary-soft: rgba(79, 70, 229, 0.08);
    --primary-dark: #4338ca;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-soft: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.18);

    --transition-fast: 0.18s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

/* مكوّن عام للحاويات */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: 16px;
}

/* ---------- صفحة الهبوط (Landing) ---------- */

.landing {
    background: var(--bg-body);
    min-height: 100vh;
}

/* رأس الصفحة */

.landing-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #111827;
    color: #f9fafb;
    box-shadow: 0 2px 8px rgba(15,23,42,0.35);
}

.landing-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 1.1rem;
}

.logo span {
    color: var(--primary);
}

.landing-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.landing-nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 999px;
    transition: background var(--transition-fast), color var(--transition-fast),
                transform var(--transition-fast);
}

.landing-nav a:hover {
    background: rgba(249,250,251,0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

/* المحتوى الرئيسي */

.landing-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px 60px;
}

/* هيرو */

.hero {
    text-align: center;
    padding: 32px 0 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0 0 10px;
}

.hero-sub {
    max-width: 600px;
    margin: 0 auto 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hero-btn-main {
    min-width: 170px;
    text-align: center;
}

.hero-btn-ghost {
    min-width: 150px;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* الأقسام */

.section {
    margin-top: 28px;
}

.section-alt {
    background: #f3f4ff;
    border-radius: 18px;
    padding: 18px 14px 22px;
}

.section-title {
    text-align: center;
    margin: 0 0 16px;
    font-size: 1.1rem;
}

/* كروت المزايا */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px 14px 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148,163,184,0.35);
    text-align: right;
}

.feature-card h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* خطوات */

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.step-badge {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.step-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* تاجات لمن المَوقع */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    font-size: 0.8rem;
}

/* CTA */

.cta-section {
    margin-top: 32px;
}

.cta-inner {
    border-radius: 20px;
    padding: 18px 14px 20px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-strong);
}

.cta-inner p {
    margin: 4px 0 12px;
    font-size: 0.9rem;
}

/* فوتر */

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 14px 16px 18px;
    background: #f9fafb;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-logo {
    font-weight: 600;
}

/* ريسبونسيف للـ landing */

@media (max-width: 768px) {
    .landing-header {
        padding: 12px 16px;
    }

    .landing-nav a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .landing-main {
        padding-inline: 14px;
    }

    .section-alt {
        padding-inline: 12px;
    }
}

@media (max-width: 480px) {
    .landing-header {
        padding-inline: 12px;
    }

    .logo {
        font-size: 1rem;
    }

    .hero {
        padding-top: 24px;
        padding-bottom: 22px;
    }

    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- الأزرار ---------- */

.btn-primary,
.btn-secondary,
.btn-full {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast),
                transform var(--transition-fast), box-shadow var(--transition-fast),
                border-color var(--transition-fast);
}

.btn-primary,
.btn-full {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover,
.btn-full:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.32);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid #9ca3af;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.btn-full {
    width: 100%;
}

/* ---------- خلفية الصفحات ---------- */

.auth-page,
.dashboard,
.booking-public {
    background: var(--bg-muted);
}

/* ---------- تخطيط خاص لكل نوع صفحة ---------- */

/* صفحة الدخول / التسجيل */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* صفحات لوحة التحكم */
.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- بطاقة الدخول / التسجيل ---------- */

.auth-card {
    max-width: 780px;
    width: min(100% - 32px, 420px); /* تقريبًا 90% من عرض الشاشة على الموبايل */
    margin: 48px auto;
    padding: 24px 22px 26px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.auth-card h1 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.25rem;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="time"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    background: #ffffff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
    background: #f9fafb;
}

textarea {
    resize: vertical;
}

/* رسائل */

.error {
    color: #b91c1c;
    background: #fee2e2;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.success {
    color: #166534;
    background: #dcfce7;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* ---------- لوحتي التنقّل (Clients + Staff) ---------- */

/* ---------------- NAVBAR (CLIENT + STAFF) ---------------- */

.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px; /* أكبر */
    background: #020617;
    color: #f9fafb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* LEFT SIDE (LOGO + BUSINESS NAME) */
.top-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-small {
    font-weight: 800;
    font-size: 1.15rem; /* أكبر */
    letter-spacing: 0.5px;
}

.business-name {
    font-size: 0.9rem;
    color: #cbd5e1;
    white-space: nowrap;
    max-width: 150px;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* RIGHT SIDE (LINKS + USER + LOGOUT) */
.top-nav-right,
.top-nav-links,
.staff-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nav-link,
.top-nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem; /* أوضح على الهاتف */
    padding: 6px 14px;
    border-radius: 999px;
    transition: 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

.nav-link:hover,
.top-nav-link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.nav-link-active {
    background: rgba(129, 140, 248, 0.35);
    color: #ffffff;
    font-weight: 600;
}

/* USER NAME */
.top-nav-user {
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 600;
}

/* LOGOUT BUTTON */
.nav-link-logout {
    background: #ef4444;
    color: #ffffff;
}

.nav-link-logout:hover {
    background: #b91c1c;
}

/* ---------------- MOBILE RESPONSIVE ---------------- */

@media (max-width: 720px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 8px;
    }

    .top-nav-links,
    .staff-nav-links,
    .top-nav-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }

    .nav-link,
    .top-nav-link {
        font-size: 0.9rem;
        padding: 7px 12px;
    }

    .logo-small {
        font-size: 1.2rem;
    }
}


/* ---------- محتوى لوحة التحكم ---------- */

.dashboard-main {
    width: 100%;
    max-width: 1024px;
    margin: 20px auto 32px;
    padding: 0 16px 40px;
    flex: 1;
}

/* بطاقات الإحصائيات */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.card-number {
    font-size: 1.6rem;
    font-weight: 700;
}

/* رابط صفحة الحجز */

.booking-link input {
    width: 100%;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    margin-bottom: 8px;
    font-size: 0.85rem;
}

/* فورمات عامة */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.preview-img {
    display: block;
    margin-top: 6px;
    max-width: 120px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

/* ---------- الجداول ---------- */

.basic-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.basic-table th,
.basic-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.9rem;
}

.basic-table th {
    background: var(--bg-muted);
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
}

.basic-table tr:last-child td {
    border-bottom: none;
}

.inline-form {
    display: inline;
}

.working-hours-table table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border-collapse: collapse;
    box-shadow: var(--shadow-soft);
}

.working-hours-table th,
.working-hours-table td {
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 10px;
    font-size: 0.9rem;
}

/* =========================================================
   صفحة الحجز للزبون (Booking Public)
   ========================================================= */

.booking-public {
    min-height: 100vh;
}


/* المحتوى فوق الخلفية */
.booking-header-content {
    position: relative; /* مهم حتى يظهر فوق الصورة */
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 16px;
    text-align: center;
    gap: 6px;
}

/* اللوغو */
.logo-big {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    border: 3px solid #ffffff;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}


.booking-header-content h1 {
    margin: 6px 0 2px;
    font-size: 1.5rem;
}

.booking-header-content p {
    max-width: 420px;
    font-size: 0.9rem;
    opacity: 0.96;
    margin: 0;
}

/* حاوية القسم بعد الهيدر */

.booking-main-container {
    max-width: 520px;
    margin: 12px auto 40px;
    padding: 0 12px 40px;
}
.booking-header-contacts {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    pointer-events: auto; /* مهم علشان يكونوا قابلين للضغط حتى لو الأب عليه شيء */
}

.booking-header-contacts .contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.18s ease;
}

.booking-header-contacts .contact-pill:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    transform: translateY(-1px);
}

/* لو عندك أي مكان حاطط عليه pointer-events:none في الهيدر، تأكد تشيله أو تعوض هنا */

/* شريط اللغات */

.lang-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.lang-switch span {
    color: var(--text-muted);
    margin-inline-end: 4px;
}

.lang-switch a {
    min-width: 72px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--text-main);
    background: #ffffff;
    transition: background var(--transition-fast), color var(--transition-fast),
                border-color var(--transition-fast), transform var(--transition-fast),
                box-shadow var(--transition-fast);
}

.lang-switch a.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.lang-switch a:hover:not(.active) {
    background: var(--primary-soft);
    border-color: var(--primary);
}

/* الكرت */

.booking-form-wrapper {
    width: 100%;
}

.booking-form {
    background: var(--bg-card);
    padding: 18px 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(148, 163, 184, 0.25);
    direction: inherit;
}

.booking-form button {
    width: 100%;
    margin-top: 10px;
}

/* صفوف النموذج */

.full-width {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.form-row > label {
    flex: 1;
    min-width: min(180px, 100%);
}

/* فورم الخدمات / الموظفين في صفحة الإعدادات */

.form-inline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.form-inline-row input,
.form-inline-row label {
    margin-right: 0;
}

/* ---------- ريسبونسيف لصفحة الحجز ---------- */

@media (max-width: 900px) {
    .booking-header .cover {
        height: 150px;
    }
    .booking-header-content h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 720px) {
    .booking-header .cover {
        height: 130px;
    }

    .booking-header-content {
        padding-bottom: 12px;
    }

    .logo-big {
        width: 76px;
        height: 76px;
    }

    .booking-main-container {
        max-width: 100%;
        margin-top: 8px;
        padding-inline: 10px;
    }

    .booking-form {
        border-radius: 16px;
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
        padding-inline: 14px;
    }

    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .landing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-block: 10px;
        padding-inline: 16px;
    }

    .hero {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .auth-card {
        margin: 32px auto;
        padding: 20px 16px 22px;
    }

    .booking-header .cover {
        height: 120px;
    }

    .booking-header-content h1 {
        font-size: 1.25rem;
    }

    .booking-main-container {
        padding-inline: 8px;
    }
}
/* غلاف للجداول على الشاشات الصغيرة – يسمح بسحب أفقي */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* سحب ناعم على الآيفون */
}

/* نخلي الجدول أوسع قليلاً ليظهر كل الأعمدة ويمكن سحبه */
.basic-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    min-width: 720px; /* مهم: عرض أدنى للجدول */
}

/* تحسين مظهر الجدول على الموبايل */
@media (max-width: 768px) {
    .basic-table th,
    .basic-table td {
        padding: 6px 8px;
        font-size: 0.8rem;
        white-space: nowrap; /* حتى لا تتكسر الكلمات بشكل مزعج */
    }

    /* الكارد يحتضن الجدول بدون هوامش كبيرة */
    .card {
        padding: 12px;
    }
}
/* تحسين عرض كرت تسجيل الدخول على الهاتف */
.auth-card {
    width: 100%;
    max-width: 420px;   /* كان 400 – الآن أكبر قليلاً */
    margin: 40px auto;
}

/* على الشاشات الصغيرة جداً (هاتف مثل iPhone mini) */
@media (max-width: 480px) {
    .auth-card {
        margin: 32px auto;
        padding: 20px 16px 22px;
    }
}

/* على الشاشات بين 480 و 768 */
@media (max-width: 768px) {
    .auth-card {
        margin-top: 100px;
        max-width: 90%;
        padding: 28px 22px;
    }
}

/* تحسين الخط داخل الكرت */
.auth-card h1 {
    font-size: 1.4rem;
}

.auth-card input {
    height: 44px;
    font-size: 1rem;
}

.auth-card .btn-primary {
    height: 46px;
    font-size: 1rem;
}

/* ===== صفحات الدخول (عميل + موظف) ===== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--bg-muted);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 26px 24px 28px;
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

/* الهيدر داخل كرت الدخول */
.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-brand {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}

.auth-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* أزرار وأسفل الكرت */
.auth-actions {
    margin-top: 10px;
}

.auth-extra {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 0.85rem;
}

.auth-extra a {
    color: var(--primary);
    text-decoration: none;
}

.auth-extra a:hover {
    text-decoration: underline;
}

/* زر رجوع للصفحة الرئيسية */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    margin-top: 4px;
}

.auth-back-link:hover {
    color: var(--primary-dark);
}

.auth-back-link span {
    font-size: 1rem;
}

/* موبايل */
@media (max-width: 480px) {
    .auth-card {
        padding: 22px 18px 24px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 1.2rem;
    }
}
/* ===== FULLSCREEN FORM WRAPPER ===== */
.fullscreen-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: #f1f5f9; /* رمادي جميل */
}

/* ===== THE MAIN CARD ===== */
.form-card {
    width: 100%;
    max-width: 550px; /* تكبير الكرت */
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* العنوان */
.form-card h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #111827;
}

/* الوصف تحت العنوان */
.form-card .subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 25px;
}

/* ===== INPUTS ===== */
.form-card label {
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #374151;
}

.form-card input,
.form-card select {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* زر */
.form-card button {
    width: 100%;
    padding: 12px;
    border: none;
    font-size: 1rem;
    border-radius: 8px;
    background: #4f46e5;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.form-card button:hover {
    background: #4338ca;
}

/* زر العودة */
.back-btn {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #4f46e5;
    font-size: 0.9rem;
}

.back-btn:hover {
    text-decoration: underline;
}

/* الهاتف */
@media (max-width: 480px) {
    .form-card {
        padding: 25px;
    }

    .form-card h1 {
        font-size: 1.6rem;
    }
}
/* ====== OVERRIDE: حجم كرت الدخول لكل الصفحات ====== */

/* صفحة الدخول (عميل + موظف) */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;           /* مسافة خفيفة عن أطراف الشاشة */
}

/* الكرت نفسه */
.auth-card {
    width: 100%;
    max-width: 640px;        /* أكبر من قبل – يبدو مليان أكثر على اللابتوب */
    margin: 0 auto;
    padding: 30px 28px;
    border-radius: 20px;
}

/* موبايل – خلي الكرت تقريبًا عرض الشاشة كله */
@media (max-width: 768px) {
    .auth-page {
        padding: 12px;
    }

    .auth-card {
        width: 100%;
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 16px;
    }
}

/* شاشات صغيرة جدًا مثل iPhone mini */
@media (max-width: 480px) {
    .auth-page {
        padding: 10px;
    }

    .auth-card {
        padding: 22px 16px;
    }
}

/* تكبير العنوان والحقل */
.auth-card h1 {
    font-size: 1.5rem;
}

.auth-card input,
.auth-card select {
    height: 46px;
    font-size: 1rem;
}

.auth-card .btn-primary {
    height: 48px;
    font-size: 1rem;
}

/* ====== OVERRIDE: صفحة التسجيل (signup_step1) ====== */

/* الغلاف */
.fullscreen-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;           /* مسافة بسيطة من الأطراف */
    background: #f1f5f9;
}

/* الكرت */
.form-card {
    width: 100%;
    max-width: 700px;        /* أعرض من قبل */
    padding: 32px 30px;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.12);
}

/* موبايل – تقريبًا ملء الشاشة مع هوامش لطيفة */
@media (max-width: 768px) {
    .fullscreen-wrapper {
        padding: 12px;
    }

    .form-card {
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .fullscreen-wrapper {
        padding: 10px;
    }

    .form-card {
        padding: 22px 16px;
    }
}

/* ====== LANDING PAGE – تحسين التصميم العام ====== */

/* خلفية عامة للصفحة */
.landing {
    background: radial-gradient(circle at top, #111827 0, #020617 220px, #f5f5f7 220px);
    min-height: 100vh;
}

/* الهيدر أعلى الصفحة */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: #020617;
    color: #f9fafb;
    box-shadow: 0 2px 8px rgba(15,23,42,0.45);
}

.logo {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.15rem;
}

.logo span {
    color: var(--primary);
}

.landing-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.landing-nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 7px 14px;
    border-radius: 999px;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.landing-nav a:hover {
    background: rgba(248,250,252,0.12);
    color: #fff;
    transform: translateY(-1px);
}

/* حاوية المحتوى */
.landing-main {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 18px 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ===== الهيرو ===== */

.hero {
    color: #ffffff;
    border-radius: 26px;
    padding: 40px 40px 34px;
    box-shadow: 0 20px 45px rgba(15,23,42,0.35);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.35);
    color: #e5e7eb;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin: 0 0 10px;
}

.hero-sub {
    max-width: 560px;
    margin: 0 auto 18px;
    color: #e5e7eb;
    font-size: 0.96rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.hero-btn-main {
    min-width: 180px;
}

.hero-btn-ghost {
    min-width: 150px;
}

.hero-note {
    font-size: 0.82rem;
    color: rgba(226,232,240,0.9);
}

/* ===== الأقسام تحت الهيرو ===== */

.section {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 22px 24px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.section-alt {
    background: #f9fafb;
    border-radius: 20px;
    padding: 20px 20px 22px;
}

.section-title {
    text-align: center;
    margin: 0 0 18px;
    font-size: 1.15rem;
}

/* كروت المزايا */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 14px 16px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    border: 1px solid rgba(148,163,184,0.35);
}

.feature-card h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* خطوات */
.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.step-badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.step-content p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* تاجات */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    font-size: 0.8rem;
}

/* CTA في آخر الصفحة */
.cta-section {
    margin-top: 6px;
}

.cta-inner {
    border-radius: 22px;
    padding: 18px 16px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

.cta-inner p {
    margin: 4px 0 12px;
    font-size: 0.9rem;
}

/* فوتر */
.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 14px 18px 18px;
    background: #f9fafb;
}

/* ===== ريسبونسيف (هاتف) ===== */
@media (max-width: 768px) {
    .landing-header {
        padding: 10px 16px;
    }

    .landing-main {
        padding: 20px 14px 40px;
        gap: 22px;
    }

    .hero {
        padding: 30px 18px 28px;
        border-radius: 20px;
    }

    .section,
    .section-alt {
        border-radius: 18px;
        padding-inline: 14px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-sub {
        font-size: 0.9rem;
    }
}
/* ===== كروت المنتجات في صفحة products_public ===== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 40px !important; /* فصل المنتجات عن الهيدر */
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 10px 10px 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.28);
    text-align: center;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.product-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 12px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6b7280;
}

.product-title {
    margin: 4px 0 2px;
    font-size: 0.95rem;
    font-weight: 600;
}

.product-price {
    margin: 0 0 6px;
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

.product-details-btn {
    width: 100%;
    margin-top: 4px;
    font-size: 0.85rem;
}

.product-desc {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: none;
    text-align: start;
}

/* عندما نضغط على الزر نضيف class show-desc للكرت */
.product-card.show-desc .product-desc {
    display: block;
}

/* على الهاتف: كرتان بجانب بعض */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* لو الشاشة صغيرة جداً يظل مريح */
@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 10px;
    }

    .product-card {
        padding: 8px 8px 12px;
    }
}
/* ===== CTA لصفحة المنتجات من صفحة الحجز ===== */

.booking-products-cta {
    margin-bottom: 18px;
}

.booking-products-card {
    background: linear-gradient(135deg, #ffffff, #eef2ff);
    border-radius: 18px;
    padding: 14px 16px 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
    text-align: center;
}

.booking-products-card h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.booking-products-card p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.booking-products-btn {
    min-width: 160px;
    font-weight: 500;
}

/* ===== Booking header clean version ===== */

.booking-header {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 40px 16px 80px;
    min-height: 240px;
    background: #000;      /* خلفية احتياطية لو ما في صورة */
    overflow: hidden;
}

/* إلغاء أي ::before قديم كان يغطي الصورة */
.booking-header::before {
    content: none !important;
}

.booking-header-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

/* المحتوى (اللوغو + الاسم) فوق الصورة */
.booking-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
    pointer-events: none;  /* عشان الكلك يمر من خلاله لو حابب */
}

.booking-header-content h1 {
    margin: 8px 0 2px;
    font-size: 1.6rem;
}

.booking-header-content p {
    max-width: 420px;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.95;
}

.logo-big {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15,23,42,0.3);
}

/* ================= THEMES FOR BOOKING PAGE ================= */

/* 1) الثيم الافتراضي – نتركه يعتمد على :root (لا حاجة لتغييرات كبيرة) */
.booking-public.theme-default {
    /* اختياري: لو حابب تضمن القيم */
    --bg-body: #f5f5f7;
    --bg-muted: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary: #4f46e5;
    --primary-soft: rgba(79, 70, 229, 0.08);
    --primary-dark: #4338ca;
}

/* 2) ثيم داكن (Dark) */
.booking-public.theme-dark {
    --bg-body: #020617;
    --bg-muted: #020617;
    --bg-card: #020617;
    --border-soft: #1e293b;
    --border-subtle: #334155;

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;

    --primary: #f97316;
    --primary-soft: rgba(249, 115, 22, 0.12);
    --primary-dark: #ea580c;
}

/* هيدر وحجز في الثيم الداكن */
.booking-public.theme-dark .booking-header {
    background: radial-gradient(circle at top, #0b1120 0, #020617 260px);
}

.booking-public.theme-dark .booking-form,
.booking-public.theme-dark .booking-products-card {
    background: #020617;
    color: #e5e7eb;
}

.booking-public.theme-dark .booking-form,
.booking-public.theme-dark .booking-products-card {
    border-color: rgba(148, 163, 184, 0.45);
}

.booking-public.theme-dark input,
.booking-public.theme-dark select,
.booking-public.theme-dark textarea {
    background: #020617;
    color: #e5e7eb;
    border-color: #334155;
}

/* 3) ثيم لمحلات الأظافر / البيوتي (Nails) */
.booking-public.theme-nails {
    --bg-body: #fff7fb;
    --bg-muted: #fff1f9;
    --bg-card: #ffffff;
    --border-soft: #f9a8d4;
    --border-subtle: #f472b6;

    --text-main: #1f2933;
    --text-muted: #6b7280;

    --primary: #ec4899;      /* زهري قوي */
    --primary-soft: rgba(236, 72, 153, 0.12);
    --primary-dark: #db2777;
}

/* هيدر رومانسي للأظافر */
.booking-public.theme-nails .booking-header {
    background: radial-gradient(circle at top, #f9a8d4 0, #fce7f3 200px, #fff7fb 200px);
}

.booking-public.theme-nails .booking-header-cover {
    opacity: 0.85; /* خليه ناعم فوق الخلفية */
}

.booking-public.theme-nails .booking-products-card {
    background: linear-gradient(135deg, #ffffff, #ffe4f3);
    border-color: rgba(244, 114, 182, 0.6);
}

.booking-public.theme-nails .booking-form {
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.18);
}

.booking-public.theme-nails .logo-big {
    border-color: #f9a8d4;
}
/* =========================
   THEME BASE
   ========================= */
body.booking-public {
    background: #f3f4f6;
}

/* Pills للتواصل */
.booking-header-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(248, 250, 252, 0.8);
    background: rgba(15,23,42,0.6);
    color: #f9fafb;
    backdrop-filter: blur(10px);
    transition: all 0.18s ease;
}
.contact-pill:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-1px);
}

/* =========================
   THEME: DEFAULT
   ========================= */
body.booking-public.template-default .booking-main-container {
    background: radial-gradient(circle at top, #eef2ff 0, #f9fafb 45%, #e5e7eb 100%);
}

body.booking-public.template-default .booking-products-card {
    background: linear-gradient(to bottom, #f9fafb, #eef2ff);
}

/* =========================
   THEME: DARK
   ========================= */
body.booking-public.template-dark {
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #0b1120 100%);
    color: #e5e7eb;
}

body.booking-public.template-dark .booking-header {
    background: #020617;
}

body.booking-public.template-dark .booking-main-container {
    background: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000 100%);
}

body.booking-public.template-dark .booking-products-card,
body.booking-public.template-dark .booking-form-wrapper {
    background: radial-gradient(circle at top left, #111827, #020617);
    color: #e5e7eb;
}

body.booking-public.template-dark .booking-products-card p {
    color: #cbd5f5;
}

body.booking-public.template-dark .btn-primary {
    background: #4f46e5;
    color: #fff;
}
body.booking-public.template-dark .btn-primary:hover {
    background: #6366f1;
}

body.booking-public.template-dark .btn-secondary,
body.booking-public.template-dark .booking-products-btn {
    background: #020617;
    color: #e5e7eb;
}

/* =========================
   THEME: NAILS / PINK
   ========================= */
body.booking-public.template-nails {
    background: radial-gradient(circle at top, #ffe4f3 0, #fff5f9 45%, #fdf2ff 100%);
}

body.booking-public.template-nails .booking-header {
    background: linear-gradient(135deg, #f9a8d4, #f472b6, #ec4899);
}

body.booking-public.template-nails .booking-main-container {
    background: radial-gradient(circle at top, #ffe4f3 0, #fff7fb 50%, #fee2e2 100%);
}

body.booking-public.template-nails .booking-products-card,
body.booking-public.template-nails .booking-form-wrapper {
    background: linear-gradient(to bottom, #fff7fb, #ffe4f3);
}

body.booking-public.template-nails .btn-primary,
body.booking-public.template-nails .booking-products-btn {
    background: #ec4899;
    color: #fff;
}
body.booking-public.template-nails .btn-primary:hover {
    background: #db2777;
}

/* =========================
   THEME: BARBER / BLUE
   ========================= */
body.booking-public.template-barber {
    background: radial-gradient(circle at top, #1e293b 0, #020617 60%, #000 100%);
    color: #e5e7eb;
}

body.booking-public.template-barber .booking-header {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

body.booking-public.template-barber .booking-main-container {
    background: radial-gradient(circle at top, #1e293b 0, #020617 50%, #000 100%);
}

body.booking-public.template-barber .booking-products-card,
body.booking-public.template-barber .booking-form-wrapper {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

body.booking-public.template-barber .btn-primary,
body.booking-public.template-barber .booking-products-btn {
    background: #1d4ed8;
    color: #fff;
}
body.booking-public.template-barber .btn-primary:hover {
    background: #2563eb;
}
/* ✅ تحسين تصميم صفحة الحجز على الشاشات الصغيرة */
@media (max-width: 768px) {
    /* تقليل ارتفاع الهيدر */
    .booking-header {
        padding: 32px 16px 48px;
        min-height: 230px;
    }

    .booking-header-cover {
        background-position: center top;
        background-size: cover;
    }

    .booking-header-content {
        justify-content: flex-end;
        padding-bottom: 18px;
        gap: 6px;
    }

    .booking-header-content h1 {
        font-size: 1.4rem;
    }

    /* كروت المحتوى والفورم تملا الشاشة تقريباً */
    .booking-main-container {
        padding: 16px 12px 40px;
    }

    .booking-form-wrapper {
        max-width: 100%;
        margin: 16px auto 32px;
    }

    .booking-form,
    .booking-products-card {
        border-radius: 18px;
    }

    /* جعل الأزرار أكبر قليلاً للمس باللمس */
    .booking-form button.btn-primary,
    .booking-products-btn {
        height: 46px;
        font-size: 0.95rem;
    }
}

/* شاشات أصغر جداً (آيفون قديم مثلاً) */
@media (max-width: 480px) {
    .booking-header {
        padding: 24px 12px 40px;
        min-height: 210px;
    }

    .logo-big {
        width: 72px;
        height: 72px;
    }

    .booking-header-contacts {
        flex-direction: column;
        gap: 4px;
    }

    .booking-form {
        padding: 16px 14px 20px;
    }

    .booking-form .form-row {
        flex-direction: column;
        gap: 8px;
    }
}

.products-top-bar {
    position: relative;
    z-index: 20;          /* يتأكد أن اللينك فوق أي طبقة أخرى */
    padding-bottom: 16px;
}

.products-top-bar .btn-outline-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto; /* يتأكد أن الضغط مفعّل */
}

.booking-header {
    position: relative;
    color: #fff;
    padding: 56px 16px 80px;
    text-align: center;
    overflow: hidden;
}

/* صورة الخلفية */
.booking-header-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    filter: blur(0px);

    z-index: 1;           /* 🔹 تحت المحتوى */
    pointer-events: none; /* 🔹 لا تمنع الضغط على العناصر فوقها */
}

/* المحتوى (اللوجو + الاسم + الأزرار) */
.booking-header-content {
    position: relative;
    z-index: 2;           /* 🔹 فوق صورة الخلفية */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.products-top-bar a {
    position: relative;
    z-index: 50 !important;
}

/* ====== Responsive tables ====== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px; /* حتى يظهر scroll عند صغر الشاشة */
}

/* تحسين شكل العناوين في الجداول */
.table-responsive th,
.table-responsive td {
    white-space: nowrap;
}
/* =========================
   LANDING PAGE LAYOUT
   ========================= */

body.landing {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f6fb;
    color: #0f172a;
}

/* --- Header / Navbar --- */

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.85));
    color: #fff;
    box-shadow: 0 10px 30px rgba(15,23,42,0.4);
}

.landing-header-left {
    display: flex;
    align-items: center;
}

/* Logo */
.logo {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.logo span {
    color: #4f46e5;
}

/* Navbar links */
.landing-nav {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
}

.landing-nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.landing-nav a:hover {
    background: rgba(148,163,184,0.18);
    color: #fff;
    transform: translateY(-1px);
}

/* --- Main wrapper --- */

.landing-main {
    padding-top: 110px; /* مساحة تحت الـ header الثابت */
}

/* =========================
   HERO SECTION
   ========================= */

.hero {
    position: relative;
    text-align: center;
    padding: 120px 24px 96px;
    color: #f9fafb;
    overflow: hidden;
    background: radial-gradient(circle at top, #111827, #020617);
}

/* دائرة ديكورية كبيرة خلف النص (مثل تصميم SaaS الحديث) */
.hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(129,140,248,0.55), transparent 60%);
    opacity: 0.8;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(148,163,184,0.5);
    color: #e5e7eb;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 2.6rem;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 28px;
    font-size: 1rem;
    line-height: 1.6;
    color: #e5e7eb;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-note {
    font-size: 0.9rem;
    color: #cbd5f5;
}

/* Buttons */
.btn-primary.hero-btn-main,
.btn-secondary.hero-btn-ghost {
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 22px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary.hero-btn-main {
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    color: #fff;
    box-shadow: 0 12px 30px rgba(129,140,248,0.4);
}

.btn-primary.hero-btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(129,140,248,0.6);
}

.btn-secondary.hero-btn-ghost {
    background: rgba(15,23,42,0.85);
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.6);
}

.btn-secondary.hero-btn-ghost:hover {
    background: #0b1120;
}

/* =========================
   GENERIC SECTIONS
   ========================= */

.section {
    padding: 72px 24px;
}

.section-alt {
    background: #f1f5f9;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    margin: 0 0 32px;
    color: #0f172a;
}

/* Feature grid */

.feature-grid {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 18px 20px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.06);
    border: 1px solid #e5e7eb;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.02rem;
    color: #111827;
}

.feature-card p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #4b5563;
}

/* Steps */

.step-list {
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
}

.step-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(79,70,229,0.35);
}

.step-content h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
}

.step-content p {
    margin: 0;
    font-size: 0.94rem;
    color: #4b5563;
}

/* Tags */

.tag-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tag {
    padding: 6px 14px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1e293b;
    font-size: 0.9rem;
}

/* CTA section */

.cta-section {
    padding: 72px 24px 90px;
}

.cta-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    background: radial-gradient(circle at top left, #4f46e5, #0f172a);
    border-radius: 28px;
    padding: 40px 26px 34px;
    color: #f9fafb;
    box-shadow: 0 28px 70px rgba(15,23,42,0.55);
}

.cta-inner h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.7rem;
}

.cta-inner p {
    margin: 0 0 20px;
    font-size: 0.98rem;
    color: #e5e7eb;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
    padding: 20px 24px 28px;
    background: #020617;
    color: #9ca3af;
}

.footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
}

.footer-logo {
    font-weight: 600;
    color: #e5e7eb;
}

/* =========================
   RESPONSIVE (MOBILE)
   ========================= */

@media (max-width: 768px) {

    .landing-header {
        padding: 10px 16px;
    }

    .landing-nav {
        gap: 10px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 110px 16px 70px;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary.hero-btn-main,
    .btn-secondary.hero-btn-ghost {
        width: 100%;
    }

    .section {
        padding: 52px 16px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        align-items: flex-start;
    }

    .cta-inner {
        padding: 32px 20px 26px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ---------- Booking header contacts – pill icons ---------- */

.booking-header-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.booking-header-contacts a {
    text-decoration: none;
}

/* الشكل الأساسي للزر */

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.18s ease, box-shadow 0.18s ease,
                background 0.18s ease, border-color 0.18s ease;
}

.contact-pill .contact-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.contact-pill .contact-label {
    white-space: nowrap;
}

/* ألوان مخصّصة لكل نوع */

.contact-phone {
    background: linear-gradient(135deg, #ff6584, #ff3d7b);
}

.contact-instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.contact-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Hover / active */

.contact-pill:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.9);
}

.contact-pill:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* موبايل */

@media (max-width: 600px) {
    .contact-pill {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }

    .contact-pill .contact-label {
        /* إذا حابب تظهر فقط الأيقونة على الموبايل احذف التعليق عن السطر التالي */
        /* display: none; */
    }
}
/* --- mini products under booking card --- */

.booking-products-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.booking-products-card {
    max-width: 700px;
    width: 100%;
    padding: 1.5rem 1.75rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.booking-products-mini-grid {
    margin-top: 1.3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
}

.booking-product-mini {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.9rem;
    background: rgba(248, 249, 252, 0.9);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.booking-product-mini .mini-thumb {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.booking-product-mini .mini-info {
    text-align: start;
    flex: 1;
}

.booking-product-mini .mini-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

.booking-product-mini .mini-price {
    font-size: 0.78rem;
    color: #ec4899; /* نفس لون الزر الوردي تقريبا */
}

/* موبايل */
@media (max-width: 600px) {
    .booking-products-card {
        padding: 1.25rem 1rem;
    }
}
.booking-products-mini-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.product-mini-card {
    background: rgba(255,255,255,0.8);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-mini-thumb {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;
}

.product-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-mini-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-mini-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.product-mini-price {
    font-size: 0.85rem;
    color: #e91e63;
}
/* ====== عناصر إضافية استعملناها في صفحة الحجز ====== */

.booking-address {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #444;
    text-decoration: none;
}

.booking-products-mini-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.product-mini-card {
    background: #f8fafc;
    border-radius: 18px;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.product-mini-thumb {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.9);
}

.product-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-mini-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
}

.product-mini-name {
    font-weight: 600;
}

.product-mini-price {
    font-weight: 500;
    font-size: 0.78rem;
}

/* أزرار التواصل (لو لسه مش موجودة عندك) */
.booking-header-contacts {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.contact-icon {
    font-size: 1rem;
}

.contact-label {
    font-weight: 500;
}

/* ========== THEME: DEFAULT (فاتح محايد) ========== */

.booking-public.theme-default {
    background: radial-gradient(circle at top, #e5edff 0, #f9fafb 50%, #ffffff 100%);
    color: #111827;
}

.booking-public.theme-default .booking-header {
    background: transparent;
}

.booking-public.theme-default .booking-header-content h1 {
    color: #111827;
}

.booking-public.theme-default .booking-header-content p {
    color: #4b5563;
}

.booking-public.theme-default .contact-pill {
    background: #ffffff;
    color: #111827;
}

.booking-public.theme-default .btn-primary {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.50);
}

.booking-public.theme-default .btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.booking-public.theme-default .btn-secondary {
    border-color: rgba(79, 70, 229, 0.25);
    color: #4f46e5;
    background: rgba(255,255,255,0.9);
}

.booking-public.theme-default .booking-products-card,
.booking-public.theme-default .booking-form {
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.booking-public.theme-default .lang-switch a.active {
    background: #4f46e5;
    color: #fff;
}

/* ========== THEME: DARK (داكن) ========== */

.booking-public.theme-dark {
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #020617 100%);
    color: #e5e7eb;
}

.booking-public.theme-dark .booking-header {
    background: transparent;
}

.booking-public.theme-dark .booking-header-cover::after {
    /* لو عندك overlay في الـ CSS الأساسي، يمكنك تعديله هنا */
    background: linear-gradient(to bottom, rgba(15,23,42,0.2), rgba(2,6,23,0.95));
}

.booking-public.theme-dark .booking-header-content h1 {
    color: #f9fafb;
}

.booking-public.theme-dark .booking-header-content p,
.booking-public.theme-dark .booking-address {
    color: #4F5678;
}

.booking-public.theme-dark .contact-pill {
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.5);
}

.booking-public.theme-dark .btn-primary {
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: #0f172a;
    box-shadow: 0 20px 45px rgba(56,189,248,0.4);
}

.booking-public.theme-dark .btn-secondary {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(148,163,184,0.7);
}

.booking-public.theme-dark .booking-products-card,
.booking-public.theme-dark .booking-form {
    background: rgba(15,23,42,0.98);
    color:#4F5678;
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 24px 60px rgba(15,23,42,0.8);
}

.booking-public.theme-dark input,
.booking-public.theme-dark select,
.booking-public.theme-dark textarea {
    background: rgba(15,23,42,0.95);
    color: #e5e7eb;
    border-color: rgba(75,85,99,0.9);
}

.booking-public.theme-dark input::placeholder,
.booking-public.theme-dark textarea::placeholder {
    color: #6b7280;
}

.booking-public.theme-dark .lang-switch span {
    color: #9ca3af;
}

.booking-public.theme-dark .lang-switch a {
    color: #9ca3af;
    border-color: rgba(75,85,99,0.9);
}

.booking-public.theme-dark .lang-switch a.active {
    background: #6366f1;
    color: #0b1120;
    border-color: transparent;
}

/* ========== THEME: NAILS (وردي – Pink) ========== */

.booking-public.theme-nails {
    background: radial-gradient(circle at top, #ffe1f0 0, #ffeaf5 40%, #ffffff 100%);
    color: #3b0820;
}

.booking-public.theme-nails .booking-header {
    background: transparent;
}

.booking-public.theme-nails .booking-header-content h1 {
    color: #3b0820;
}

.booking-public.theme-nails .booking-header-content p,
.booking-public.theme-nails .booking-address {
    color: #7f294f;
}

.booking-public.theme-nails .contact-pill {
    background: rgba(255,255,255,0.9);
    color: #9d174d;
    border: 1px solid rgba(244,114,182,0.35);
}

.booking-public.theme-nails .btn-primary {
    background: linear-gradient(135deg, #fb7185, #ec4899);
    color: #fff;
    box-shadow: 0 20px 45px rgba(236, 72, 153, 0.5);
}

.booking-public.theme-nails .btn-secondary {
    border-color: rgba(236,72,153,0.25);
    color: #be185d;
    background: #fff;
}

.booking-public.theme-nails .booking-products-card,
.booking-public.theme-nails .booking-form {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 18px 45px rgba(244,114,182,0.3);
}

.booking-public.theme-nails .booking-products-card {
    border: 1px solid rgba(249,168,212,0.8);
}

.booking-public.theme-nails .product-mini-card {
    background: #fff0f7;
}

.booking-public.theme-nails .product-mini-price {
    color: #db2777;
}

.booking-public.theme-nails .lang-switch a.active {
    background: #ec4899;
    color: #fff;
}

/* ========== THEME: BARBER (أزرق / Barber Blue) ========== */

.booking-public.theme-barber {
    background: radial-gradient(circle at top, #1d4ed8 0, #0f172a 55%, #020617 100%);
    color: #e5e7eb;
}

.booking-public.theme-barber .booking-header {
    background: transparent;
}

.booking-public.theme-barber .booking-header-cover::after {
    background: linear-gradient(to bottom, rgba(15,23,42,0.35), rgba(15,23,42,0.95));
}

.booking-public.theme-barber .booking-header-content h1 {
    color: #e5e7eb;
}

.booking-public.theme-barber .booking-header-content p,
.booking-public.theme-barber .booking-address {
    color: #4F5678;
}

.booking-public.theme-barber .contact-pill {
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    border: 1px solid rgba(59,130,246,0.6);
}

.booking-public.theme-barber .btn-primary {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #0b1120;
    box-shadow: 0 20px 45px rgba(37,99,235,0.55);
}

.booking-public.theme-barber .btn-secondary {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(96,165,250,0.7);
}

.booking-public.theme-barber .booking-products-card,
.booking-public.theme-barber .booking-form {
    background: rgba(15,23,42,0.97);
    border: 1px solid rgba(59,130,246,0.6);
    color:#4F5678;
    box-shadow: 0 24px 60px rgba(15,23,42,0.85);
}

.booking-public.theme-barber input,
.booking-public.theme-barber select,
.booking-public.theme-barber textarea {
    background: rgba(15,23,42,0.98);
    color: #e5e7eb;
    border-color: rgba(37,99,235,0.9);
}

.booking-public.theme-barber input::placeholder,
.booking-public.theme-barber textarea::placeholder {
    color: #9ca3af;
}

.booking-public.theme-barber .lang-switch a {
    border-color: rgba(37,99,235,0.6);
    color: #bfdbfe;
}

.booking-public.theme-barber .lang-switch a.active {
    background: #2563eb;
    color: #0b1120;
}
/* كرت الخطة */
.plan-card {
    display: block;
    cursor: pointer;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 14px 14px 16px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    position: relative;
    transition: 0.18s ease;
}

/* لما يكون الراديو داخل الكرت متعلم */
.plan-card.is-selected {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.18),
                0 10px 25px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}
