:root {
    --bg-pure: #ffffff;
    --bg-card: #f4f4f5;
    --bg-slate: #e8e8eb;
    --border-subtle: #d6d6da;
    --text-dark: #0a0a0a;
    --text-muted: #54545c;
    --accent-theme: #0a0a0a;
    --accent-theme-rgb: 10, 10, 10;
    --accent-theme-light: #2c2c30;
    --accent-contrast: #ffffff;
    --accent-apple-phone: #34c759;
    --card-radius: 12px;
}

[data-theme="dark"] {
    --bg-pure: #000000;
    --bg-card: #0c0c0e;
    --bg-slate: #18181b;
    --border-subtle: #2c2c30;
    --text-dark: #ffffff;
    --text-muted: #a3a3ab;
    --accent-theme: #ffffff;
    --accent-theme-rgb: 255, 255, 255;
    --accent-theme-light: #e4e4e7;
    --accent-contrast: #0a0a0a;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'IBM Plex Sans Arabic', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--bg-pure); color: var(--text-dark); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; transition: background-color 0.3s, color 0.3s; }

/* ================= حافة الضوء (Focus) + احترام تقليل الحركة ================= */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent-theme); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .hero-video-overlay .section-eyebrow,
    .hero-video-overlay .cinematic-logo,
    .hero-video-overlay h1,
    .hero-video-overlay p { opacity: 1 !important; animation: none !important; }
}

/* ================= العنصر المميز: لمسة "نصلة الموسى" الذهبية ================= */
.section-eyebrow { display: block; font-family: 'Bebas Neue', 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 5px; font-size: 0.85rem; color: var(--accent-theme); margin-bottom: 8px; text-transform: uppercase; }
.section-title { position: relative; padding-bottom: 18px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) skewX(-18deg); width: 56px; height: 3px; background: linear-gradient(90deg, transparent, var(--accent-theme), transparent); }

.page-view { display: none; }
.page-view.active-view { display: block; animation: fadeInView 0.4s ease forwards; }
@keyframes fadeInView { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.reading-progress-bar { position: fixed; top: 75px; left: 0; height: 3px; width: 0%; background: var(--accent-theme); z-index: 1001; transition: width 0.12s ease-out; }

/* الهيدر والقائمة */
.main-navbar { background-color: rgba(250, 248, 242, 0.92); border-bottom: 1px solid var(--border-subtle); padding: 10px 4%; display: flex; align-items: center; justify-content: space-between; position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); height: 75px; transition: 0.3s; }
[data-theme="dark"] .main-navbar { background-color: rgba(12, 10, 7, 0.92); }
.nav-logo-section { display: flex; align-items: center; gap: 15px; }

/* أشكال الشعارات */
.logo-wrapper-rectangular { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; padding: 3px; }
.logo-wrapper-rectangular img, .avatar-container-rectangular img, .logo-wrapper-rectangular-large img, .footer-rectangular-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.avatar-container-rectangular { width: 85px; height: 85px; border-radius: 50%; border: 2px solid var(--border-subtle); margin: 0 auto 1rem; background: #fff; padding: 4px; }
.logo-wrapper-rectangular-large { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--border-subtle); background: #fff; padding: 5px; margin: 0 auto; }
.footer-rectangular-logo { width: 90px; height: 90px; border-radius: 50%; border: 2px solid var(--border-subtle); background: #fff; padding: 5px; margin: 0 auto 10px; }

/* الهامبرغر وقائمة الجوال */
.hamburger-menu { font-size: 1.5rem; cursor: pointer; color: var(--text-dark); display: none; }
.nav-actions-section { display: flex; align-items: center; gap: 8px; }
.close-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; margin-bottom: 20px; align-self: flex-start; }

.header-action-btn-nav { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-dark); padding: 8px 14px; font-size: 0.85rem; font-weight: 700; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: 0.3s; }
.header-action-btn-nav:hover, .active-theme-btn { border-color: var(--accent-theme); color: var(--accent-theme); background-color: rgba(var(--accent-theme-rgb), 0.05); }
.highlight-booking-btn { background: var(--accent-theme); color: var(--accent-contrast) !important; border-color: transparent; font-weight: 800; }

/* تخصيص الموبايل للقائمة */
@media (max-width: 900px) {
    .hamburger-menu { display: block; }
    .nav-actions-section { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--bg-pure); flex-direction: column; align-items: stretch; padding: 20px; box-shadow: -5px 0 20px rgba(0,0,0,0.1); transition: 0.4s ease; overflow-y: auto; z-index: 1005; }
    .nav-actions-section.active { right: 0; }
    .close-menu-btn { display: block; }
    .header-action-btn-nav { padding: 15px; font-size: 1.1rem; border: none; border-bottom: 1px solid var(--border-subtle); border-radius: 0; }
    .menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1004; backdrop-filter: blur(3px); }
    .menu-overlay.active { display: block; }
}

.status-badge { font-weight: 700; font-size: 0.75rem; color: #22c55e; background: rgba(34, 197, 94, 0.1); padding: 5px 10px; border-radius: 30px; }
.status-badge.status-closed { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.nav-extra-actions { display: flex; gap: 10px; margin-top: 15px; justify-content: center; }
.lang-toggle-btn { background: transparent; border: 1px solid var(--accent-theme); color: var(--accent-theme); padding: 6px 12px; font-weight: bold; border-radius: 30px; cursor: pointer; }
.modern-lamp-switch { background: transparent; border: none; color: var(--accent-theme); font-size: 1.2rem; cursor: pointer; }
.main-content-padding { margin-top: 100px; padding: 2rem 4%; flex: 1; max-width: 1200px; margin-inline: auto; width: 100%; }

/* قسم عرض الفيديو */
.hero-video-section { position: relative; width: 100%; height: 0; padding-top: 56.25%; overflow: hidden; border-radius: var(--card-radius); background: #000; margin-bottom: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.hero-videos-twin-container { position: absolute; inset: 0; display: flex; }
.hero-video-item-bg { width: 50%; height: 100%; object-fit: cover; opacity: 0.7; }

/* طبقة النويز/الحبيبات (pure CSS) */
.hero-video-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.06;
    mix-blend-mode: overlay;
}

.hero-video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(12,10,7,0.25), rgba(12,10,7,0.72));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fdf8ec; text-align: center;
    z-index: 3;
}

/* ===== أنيميشن تسلسلي للهيرو ===== */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-video-overlay .section-eyebrow {
    opacity: 0;
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: 0.2s;
}
.hero-video-overlay .cinematic-logo {
    opacity: 0;
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: 0.6s;
}
.hero-video-overlay h1 {
    font-size: 2.5rem; font-weight: 700; margin: 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 30px rgba(255,255,255,0.35), 0 0 60px rgba(255,255,255,0.15);
    opacity: 0;
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: 1.0s;
}
.hero-video-overlay p {
    opacity: 0;
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: 1.4s;
}

/* ================= فريق العمل (Team Grid) ================= */
.team-showcase-section { margin-bottom: 3rem; text-align: center; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; color: var(--text-dark); text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; padding: 10px; }
.team-member-card { background: var(--bg-card); padding: 20px 10px; border-radius: 16px; border: 1px solid var(--border-subtle); cursor: pointer; transition: 0.3s; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.team-member-card:hover { transform: translateY(-5px); border-color: var(--accent-theme); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.avatar-with-rating { position: relative; width: 100px; height: 100px; margin: 0 auto 20px; }
.avatar-with-rating img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-subtle); }
.star-pill { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); background: var(--accent-theme); color: var(--accent-contrast); font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); border: 1px solid var(--bg-pure); white-space: nowrap; }
[data-theme="dark"] .star-pill { color: var(--accent-contrast); border-color: var(--bg-pure); }
.member-name { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.member-role { font-size: 0.8rem; color: var(--text-muted); }

/* ================= أزرار الـ Pills (القوائم البيضاوية) ================= */
.pill-categories-nav { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 15px; margin-bottom: 1.5rem; justify-content: center; }
@media (max-width: 768px) { .pill-categories-nav { justify-content: flex-start; } }
.pill-btn { background: var(--bg-pure); color: var(--text-dark); border: 1px solid var(--border-subtle); padding: 10px 24px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; cursor: pointer; white-space: nowrap; transition: 0.3s; }
.pill-btn:hover { border-color: var(--accent-theme); }
.pill-btn.active { background: var(--accent-theme); color: var(--accent-contrast); border: 2px solid var(--bg-pure); box-shadow: 0 0 0 2px var(--accent-theme); font-weight: 800; }

/* قائمة الأسعار والحجز */
.price-list-section { max-width: 700px; margin: 0 auto 3rem; }
.price-list-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--card-radius); padding: 1.5rem; }
.price-row { padding: 12px 0; border-bottom: 1px dashed var(--border-subtle); cursor: pointer; transition: 0.2s; }
.price-row:hover { padding-inline: 8px; background: var(--bg-slate); border-radius: 8px; }
.price-row:last-child { border-bottom: none; }
.price-row-main { display: flex; justify-content: space-between; align-items: baseline; }
.price-row-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.price-duration { font-size: 0.78rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.price-includes { font-size: 0.78rem; color: var(--accent-theme); font-weight: 600; }
.price-service { font-weight: 700; font-size: 1rem; }
.price-amount { font-weight: 700; font-size: 1.1rem; color: var(--accent-theme); }
.category-badge { font-size: 0.7rem; background: var(--bg-slate); padding: 3px 8px; border-radius: 10px; margin-inline-start: 8px; color: var(--text-muted); }

/* الكباتن */
.tab-content-panel { display: none; gap: 1.5rem; }
.tab-content-panel.active { display: flex; flex-direction: column; }
@media (min-width: 900px) { .tab-content-panel.active { display: grid; grid-template-columns: 300px 1fr; } }

/* ================= تقييم أعمال الكابتن ================= */
.captain-rating-block { grid-column: 1 / -1; background: var(--bg-slate); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 1.5rem; margin-top: 1.5rem; }
.rating-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.star-rating-input { display: flex; gap: 8px; font-size: 1.7rem; margin-bottom: 14px; }
.star-rating-input i { color: var(--text-muted); cursor: pointer; transition: color 0.2s, transform 0.15s; }
.star-rating-input i:hover { transform: scale(1.15); }
.star-rating-input i.fas { color: var(--accent-theme); }
.rating-textarea { width: 100%; min-height: 80px; padding: 14px; border-radius: 8px; border: 1px solid var(--border-subtle); background: var(--bg-pure); color: var(--text-dark); font-family: inherit; font-size: 0.95rem; resize: vertical; margin-bottom: 14px; outline: none; }
.rating-submit-btn { width: 100%; padding: 14px; background: var(--accent-theme); color: var(--accent-contrast); border: none; border-radius: 8px; font-weight: 800; font-size: 1rem; cursor: pointer; transition: 0.3s; }
.rating-submit-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.barber-profile-side { background: var(--bg-card); padding: 20px; border-radius: 12px; text-align: center; border: 1px solid var(--border-subtle); }
.name-ar { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-top: 4px; }
.name-en { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 4px; }
.captain-bio { color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; margin: 6px 0 4px; }
.captain-book-btn { background: var(--accent-theme); color: var(--accent-contrast); padding: 12px; border-radius: 8px; border: none; width: 100%; font-weight: 800; margin-top: 15px; cursor: pointer; transition: 0.3s; }
.whatsapp-direct-btn { display: block; background: #22c55e; color: #fff; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: bold; margin-top: 10px; transition: 0.3s; }
.whatsapp-direct-btn:hover, .captain-book-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* معرض الفيديو */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-video-item { width: 100%; height: 240px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-subtle); background: #000; }

/* الحجز */
.booking-interaction-box { background: var(--bg-card); padding: 2rem; border-radius: 16px; border: 1px solid var(--border-subtle); }
.booking-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 768px) { .booking-grid { grid-template-columns: 1fr 1fr; } }
.input-container input, .dropdown-container select { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid var(--border-subtle); background: var(--bg-pure); color: var(--text-dark); outline: none; font-size: 1rem; margin-top: 5px; }

.services-header { padding: 15px; background: var(--bg-slate); border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.checkbox-bundle { display: flex; align-items: center; padding: 12px; background: var(--bg-pure); border: 1px solid var(--border-subtle); margin-top: 8px; border-radius: 8px; cursor: pointer; }
.checkbox-bundle span { flex: 1; display: flex; justify-content: space-between; font-size: 0.95rem; margin-inline-start: 10px; }

.calculator-summary-bar { background: var(--bg-pure); padding: 20px; margin-top: 20px; border-radius: 8px; border: 2px solid var(--accent-theme); }
.calculator-summary-content { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; }
.btn-whatsapp-final-row { width: 100%; padding: 15px; background: var(--accent-theme); color: var(--accent-contrast); border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 800; cursor: pointer; margin-top: 20px; transition: 0.3s; }
.btn-call-final-row { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; background: transparent; color: var(--text-dark); border: 2px solid var(--border-subtle); border-radius: 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer; margin-top: 12px; text-decoration: none; transition: 0.3s; }
.btn-call-final-row:hover { border-color: var(--accent-theme); color: var(--accent-theme); }

/* معرض قبل وبعد */
.before-after-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1rem; }
@media (min-width: 768px) { .before-after-grid { grid-template-columns: 1fr 1fr; } }
.slider-wrapper { width: 100%; position: relative; height: 560px; overflow: hidden; border-radius: var(--card-radius); border: 2px solid var(--border-subtle); background: #000; box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.slider-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.img-after { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }
.slider-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--accent-theme); cursor: ew-resize; transform: translateX(-50%); z-index: 3; }
.slider-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; background: var(--bg-pure); border: 2px solid var(--accent-theme); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-theme); font-size: 12px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
[data-theme="dark"] .slider-button { background: var(--bg-card); border-color: var(--accent-theme); color: var(--accent-theme); }
.slider-label { position: absolute; bottom: 12px; background: rgba(0,0,0,0.75); color: #fff; padding: 4px 12px; font-size: 0.75rem; border-radius: 4px; font-weight: 700; z-index: 4; border: 1px solid rgba(255,255,255,0.2); }
.label-before { left: 12px; } .label-after { right: 12px; }

/* ================= قسم الموقع وأوقات الدوام ================= */
.location-hours-section { max-width: 1000px; margin: 0 auto 3rem; }
.location-hours-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--card-radius); padding: 1.8rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 850px) { .location-hours-card { grid-template-columns: 1.3fr 1fr; } }
.location-hours-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; color: var(--text-dark); }
.map-embed-wrapper { width: 100%; height: 280px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-subtle); margin-bottom: 1rem; }
.open-maps-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent-theme); color: var(--accent-contrast); padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 800; font-size: 0.9rem; transition: 0.3s; }
.open-maps-btn:hover { opacity: 0.9; }
.hours-side { display: flex; flex-direction: column; }
.hours-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--border-subtle); }
.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }
.hours-time { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }

/* ================= نافذة اختيار الخدمة (Modal) ================= */
.service-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.service-modal-overlay.active { display: flex; }
.service-modal-box { background: var(--bg-pure); border-radius: 16px; padding: 2rem 1.5rem 1.5rem; max-width: 360px; width: 100%; text-align: center; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: fadeInView 0.3s ease forwards; }
.service-modal-close { position: absolute; top: 14px; inset-inline-end: 14px; background: var(--bg-slate); border: none; width: 32px; height: 32px; border-radius: 50%; color: var(--text-dark); font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.service-modal-close:hover { background: var(--border-subtle); }
.service-modal-title { font-size: 1.2rem; font-weight: 700; color: var(--accent-theme); margin-bottom: 6px; }
.service-modal-question { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.4rem; }
.service-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.service-modal-btn { padding: 13px; border-radius: 8px; border: none; font-weight: 700; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; }
.btn-go-captains { background: var(--bg-slate); color: var(--text-dark); }
.btn-go-captains:hover { background: var(--border-subtle); }
.btn-go-booking { background: var(--accent-theme); color: var(--accent-contrast); }
/* ================= بطاقة الولاء الرقمية ================= */
.btn-go-booking:hover { opacity: 0.9; transform: translateY(-2px); }
.loyalty-card-section { max-width: 600px; margin: 0 auto 3rem; }
.loyalty-card-box { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--card-radius); padding: 1.8rem; text-align: center; }
.loyalty-card-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.4rem; }
.loyalty-stamps-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.loyalty-stamp { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--border-subtle); display: flex; align-items: center; justify-content: center; color: var(--border-subtle); font-size: 1.1rem; transition: 0.3s; }
.loyalty-stamp.filled { border: 2px solid var(--accent-theme); background: var(--accent-theme); color: var(--accent-contrast); }
.loyalty-progress-text { font-weight: 700; color: var(--text-dark); margin-bottom: 1.2rem; font-size: 0.95rem; }
.loyalty-actions-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.loyalty-add-stamp-btn { background: var(--accent-theme); color: var(--accent-contrast); border: none; padding: 12px 22px; border-radius: 8px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.loyalty-add-stamp-btn:hover { opacity: 0.9; }
.loyalty-reset-btn { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-muted); padding: 12px 18px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; transition: 0.3s; }
.loyalty-reset-btn:hover { border-color: var(--accent-theme); color: var(--accent-theme); }

/* ================= اختبار لاقي إطلالتك ================= */
.style-quiz-section { max-width: 560px; margin: 0 auto 3rem; }
.quiz-box { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--card-radius); padding: 1.8rem; text-align: center; min-height: 160px; display: flex; flex-direction: column; justify-content: center; }
.quiz-question { font-weight: 700; font-size: 1.05rem; color: var(--text-dark); margin-bottom: 1.2rem; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quiz-options button { background: var(--bg-pure); border: 1.5px solid var(--border-subtle); color: var(--text-dark); padding: 12px 20px; border-radius: 30px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: 0.3s; }
.quiz-options button:hover { border-color: var(--accent-theme); color: var(--accent-theme); }
.quiz-result-label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; }
#quizResultName { font-size: 1.3rem; font-weight: 800; color: var(--accent-theme); margin-bottom: 1.3rem; }
.quiz-result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.quiz-book-btn { background: var(--accent-theme); color: var(--accent-contrast); border: none; padding: 12px 22px; border-radius: 8px; font-weight: 800; cursor: pointer; transition: 0.3s; }
.quiz-book-btn:hover { opacity: 0.9; }
.quiz-retry-btn { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-muted); padding: 12px 18px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; transition: 0.3s; }
.quiz-retry-btn:hover { border-color: var(--accent-theme); color: var(--accent-theme); }

/* ================= شريط الحجز الثابت بالموبايل ================= */
.mobile-sticky-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1006; background: var(--bg-pure); border-top: 1px solid var(--border-subtle); padding: 10px 16px; gap: 10px; align-items: center; box-shadow: 0 -4px 15px rgba(0,0,0,0.1); }
.mobile-sticky-call { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-apple-phone); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; text-decoration: none; }
.mobile-sticky-book { flex: 1; padding: 14px; border: none; border-radius: 8px; background: var(--accent-theme); color: var(--accent-contrast); font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
@media (max-width: 768px) {
    .mobile-sticky-bar { display: flex; }
    .floating-phone-apple-btn { display: none; }
    body { padding-bottom: 72px; }
}

/* ================= بانر تثبيت التطبيق (PWA) ================= */
.pwa-install-banner { display: none; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2200; background: var(--text-dark); color: var(--bg-pure); border-radius: 14px; padding: 14px 18px; max-width: 92%; width: 420px; align-items: center; justify-content: space-between; gap: 14px; box-shadow: 0 12px 35px rgba(0,0,0,0.3); }
.pwa-install-banner.active { display: flex; }
.pwa-install-text { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; line-height: 1.4; }
.pwa-install-text i { font-size: 1.3rem; color: var(--accent-theme); flex-shrink: 0; }
.pwa-install-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pwa-install-actions button:first-child { background: var(--accent-theme); color: var(--accent-contrast); border: none; padding: 8px 16px; border-radius: 8px; font-weight: 800; font-size: 0.8rem; cursor: pointer; }
.pwa-dismiss-btn { background: none; border: none; color: var(--bg-pure); opacity: 0.7; cursor: pointer; font-size: 0.9rem; padding: 4px; }
.pwa-dismiss-btn:hover { opacity: 1; }
@media (max-width: 768px) { .pwa-install-banner { bottom: 84px; } }

/* ================= نافذة سياسة الاستخدام ================= */
.terms-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); z-index: 2100; align-items: center; justify-content: center; padding: 20px; }
.terms-modal-overlay.active { display: flex; }
.terms-modal-box { background: var(--bg-pure); border-radius: 16px; padding: 2rem 1.6rem 1.6rem; max-width: 540px; width: 100%; max-height: 80vh; overflow-y: auto; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: fadeInView 0.3s ease forwards; }
.terms-modal-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.3rem; text-align: center; color: var(--text-dark); padding-inline-end: 30px; }
.terms-modal-body h4 { font-size: 1rem; font-weight: 700; margin: 1.1rem 0 6px; color: var(--accent-theme); }
.terms-modal-body h4:first-child { margin-top: 0; }
.terms-modal-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }

/* ================= آراء الزبائن ================= */
.testimonials-section { max-width: 1000px; margin: 0 auto 3rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--card-radius); padding: 1.6rem; text-align: center; transition: transform 0.3s; }
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-stars { color: var(--accent-theme); margin-bottom: 12px; font-size: 1rem; letter-spacing: 2px; }
.testimonial-quote { color: var(--text-dark); font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.testimonial-author { color: var(--text-muted); font-weight: 700; font-size: 0.85rem; }

/* ================= الأسئلة الشائعة ================= */
.faq-section { max-width: 760px; margin: 0 auto 1rem; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; background: none; border: none; cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--text-dark); text-align: start; font-family: inherit; }
.faq-question i { transition: transform 0.3s; color: var(--accent-theme); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 18px; }
.faq-item.open .faq-answer { max-height: 220px; padding: 0 18px 16px; }
.faq-answer p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.floating-phone-apple-btn { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background: var(--accent-apple-phone); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: none; cursor: pointer; z-index: 999; transition: transform 0.3s; }
.floating-phone-apple-btn:hover { transform: scale(1.1); }
footer { background: var(--bg-card); text-align: center; padding: 2rem; border-top: 1px solid var(--border-subtle); margin-top: auto; }

/* ================= زر الحجز في الفوتر ================= */
.footer-cta-block { margin: 0 auto 1.8rem; }
.footer-cta-tagline { font-size: 1rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.footer-whatsapp-cta { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; padding: 14px 32px; border-radius: 50px; font-size: 1.05rem; font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px rgba(37,211,102,0.35); transition: transform 0.25s, box-shadow 0.25s; }
.footer-whatsapp-cta i { font-size: 1.3rem; }
.footer-whatsapp-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(37,211,102,0.45); }
@media (max-width: 480px) { .footer-whatsapp-cta { width: 100%; justify-content: center; border-radius: 12px; } }

/* أيقونات التواصل الاجتماعي بالفوتر */
.footer-social-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin: 0.5rem 0 1rem; }
.footer-policy-badge { display: inline-flex; align-items: center; gap: 8px; margin: 1.2rem 0 0.8rem; padding: 9px 20px; border: 1.5px solid var(--accent-theme); border-radius: 30px; color: var(--accent-theme); font-weight: 700; font-size: 0.85rem; text-decoration: none; transition: 0.3s; }
.footer-policy-badge:hover { background: var(--accent-theme); color: var(--accent-contrast); }
.footer-location-line { font-size: 0.85rem; color: var(--text-muted); margin: 0.6rem 0; }
.footer-social-icons { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 0.8rem; flex-wrap: wrap; }
.social-icon-btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: transform 0.3s, box-shadow 0.3s; }
.social-icon-btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 18px rgba(0,0,0,0.22); }
.social-whatsapp { background: #25d366; }
.social-facebook { background: #1877f2; }
.social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-snapchat { background: #fffc00; color: #050608; }
.social-phone { background: var(--accent-apple-phone); }
.offers-banner { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto 2.5rem; padding: 18px 22px; background: var(--accent-theme); color: var(--accent-contrast); border-radius: var(--card-radius); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.offers-banner-icon { font-size: 2.1rem; flex-shrink: 0; }
.offers-banner-text h3 { font-size: 1.15rem; margin: 0 0 4px; }
.offers-banner-text p { font-size: 0.95rem; margin: 0; opacity: 0.85; }

/* صف العروض الجديد (بدل الشريط المتحرك) */
.home-offers-row { display: flex; flex-wrap: wrap; gap: 1.2rem; max-width: 900px; margin: 0 auto 2.5rem; justify-content: center; }
.offer-card-mini { flex: 1 1 320px; max-width: 420px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--accent-theme); color: var(--accent-contrast); border-radius: var(--card-radius); box-shadow: 0 10px 25px rgba(0,0,0,0.16); transition: transform 0.3s; position: relative; }
.offer-share-btn { position: absolute; top: 10px; inset-inline-end: 10px; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(255,255,255,0.25); color: inherit; font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.offer-share-btn:hover { background: rgba(255,255,255,0.4); }
.offer-card-mini:hover { transform: translateY(-4px); }
.offer-card-mini .offer-icon { font-size: 1.7rem; flex-shrink: 0; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: rgba(28,19,5,0.12); border-radius: 50%; }
.offer-card-mini .offer-text h3 { font-size: 1rem; margin: 0 0 3px; }
.offer-card-mini .offer-text p { font-size: 0.85rem; margin: 0; opacity: 0.85; line-height: 1.4; }
.group-booking-btn { margin-top: 10px; background: rgba(28,19,5,0.12); border: 1.5px solid currentColor; color: inherit; padding: 7px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
.group-booking-btn:hover { background: rgba(28,19,5,0.22); }

/* ================= تحسينات الموبايل الشاملة ================= */
@media (max-width: 480px) {
    /* المحتوى الرئيسي */
    .main-content-padding { margin-top: 85px; padding: 1.2rem 4%; }

    /* قسم الفيديو الرئيسي – ارتفاع ثابت بدل نسبة 16:9 */
    .hero-video-section { padding-top: 0; height: 380px; border-radius: 10px; margin-bottom: 1.5rem; }
    .hero-video-item-bg:first-child { width: 100%; }
    .hero-video-item-bg:last-child { display: none; }
    .logo-wrapper-rectangular-large { width: 80px; height: 80px; border-width: 2px; }
    .hero-video-overlay h1 { font-size: 1.9rem; margin: 6px 0; }
    .hero-video-overlay .section-eyebrow { font-size: 0.68rem; letter-spacing: 2px; }
    .hero-video-overlay p { font-size: 0.9rem; }

    /* بطاقات العروض */
    .offer-card-mini { flex: 1 1 260px; padding: 14px 16px; }

    /* معرض الفيديو عمود واحد في الموبايل الصغير */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-video-item { height: 200px; }

    /* قائمة الأسعار */
    .price-service { font-size: 0.9rem; }
    .price-amount { font-size: 1rem; }

    /* عناوين الأقسام */
    .section-title { font-size: 1.4rem; }

    /* قسم الحجز */
    .booking-interaction-box { padding: 1.2rem; }
    .calculator-summary-content { font-size: 1rem; }

    /* شريط الدوام والموقع */
    .location-hours-card { padding: 1.2rem; gap: 1.4rem; }
    .map-embed-wrapper { height: 220px; }

    /* قبل وبعد */
    .slider-wrapper { height: 460px; }

    /* الكباتن – بروفايل */
    .barber-profile-side { padding: 16px; }
    .avatar-container-rectangular { width: 70px; height: 70px; }

    /* آراء الزبائن */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* نافذة الخدمات */
    .service-modal-box { padding: 1.4rem 1rem 1rem; }
}

@media (max-width: 768px) {
    /* المحتوى الرئيسي */
    .main-content-padding { margin-top: 90px; }

    /* قسم الفيديو الرئيسي */
    .hero-video-section { padding-top: 0; height: 340px; }
    .hero-video-item-bg:first-child { width: 100%; }
    .hero-video-item-bg:last-child { display: none; }
    .logo-wrapper-rectangular-large { width: 90px; height: 90px; }
    .hero-video-overlay h1 { font-size: 2.1rem; }

    /* معرض الفيديو – عمود واحد على الشاشات الصغيرة */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-video-item { height: 220px; }

    /* بطاقات العروض */
    .home-offers-row { gap: 0.8rem; }
    .offer-card-mini { flex: 1 1 280px; }

    /* نافذة الشروط */
    .terms-modal-box { padding: 1.5rem 1.2rem 1.2rem; }

    /* الكباتن – بطاقة البروفايل */
    .barber-profile-side { padding: 18px; }

    /* شريط بانر PWA */
    .pwa-install-banner { padding: 12px 14px; gap: 10px; }
    .pwa-install-text { font-size: 0.8rem; }
}
/* ===== صور الكباتن ===== */
/* التيم (دائرة): الوجه بيتوسّط، وحسن من فوق حتى راسه يبين كامل جوا الدائرة */
.avatar-with-rating img.captain-avatar { object-position: center 20%; }
.avatar-with-rating img.head-top { object-position: center 6%; }
.avatar-with-rating img.is-logo { object-fit: contain; background: #fff; padding: 6px; }

/* صفحة الكباتن: بورتريه مستطيل بشكل عصري أنيق */
.captain-portrait {
    width: 200px; height: 252px; margin: 0 auto 1.2rem;
    border-radius: 22px; overflow: hidden; position: relative;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}
.captain-portrait::after {
    content: ''; position: absolute; inset: 0; border-radius: 22px;
    box-shadow: inset 0 -70px 60px -34px rgba(0,0,0,0.40);
    pointer-events: none;
}
.captain-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; display: block; }
.captain-portrait img.head-top { object-position: center 6%; }
.captain-portrait.is-logo { background: #fff; }
.captain-portrait.is-logo::after { display: none; }
.captain-portrait.is-logo img { object-fit: contain; padding: 22px; }
@media (max-width: 600px) { .captain-portrait { width: 180px; height: 228px; } }

/* زر الاتصال بالكابتن */
.captain-call-btn {
    display: block; background: #2563eb; color: #fff; padding: 12px;
    border-radius: 8px; text-decoration: none; font-weight: bold;
    margin-top: 10px; transition: 0.3s;
}
.captain-call-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* ملاحظة "قريباً" لمعرض كابتن بدون فيديوهات */
.c-empty-note { color: var(--text-muted); font-size: 0.92rem; text-align: center; padding: 34px 12px; opacity: 0.85; }

/* ===== معرض فيديو الحلاقين: تشغيل بالضغط + زر تشغيل ===== */
.gallery-video-wrap { position: relative; height: 240px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-subtle); background: #000; cursor: pointer; }
.gallery-video-wrap .gallery-video-item { width: 100%; height: 100%; border: none; border-radius: 0; }
.video-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.30); transition: opacity .25s ease; }
.video-play-overlay i { color: #fff; font-size: 1.35rem; width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; padding-left: 4px; box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.gallery-video-wrap.playing .video-play-overlay { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .gallery-video-wrap { height: 200px; } }

/* ============ تحسينات قسم الحلاقين ============ */
/* دخول ناعم عند فتح صفحة أي كابتن */
.tab-content-panel.active { animation: capFadeUp .45s ease; }
@keyframes capFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* تأثير عند مرور الماوس على الفيديو + نبض زر التشغيل ليشجّع الضغط */
.gallery-video-wrap { transition: transform .25s ease, box-shadow .25s ease; }
.gallery-video-wrap:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.28); }
.video-play-overlay i { transition: transform .25s ease, background .25s ease, color .25s ease; animation: playPulse 2.6s ease-in-out infinite; }
.gallery-video-wrap:hover .video-play-overlay i { transform: scale(1.14); background: var(--accent-theme); color: var(--accent-contrast); }
.gallery-video-wrap.playing:hover { transform: none; }
@keyframes playPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.30); } 50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }

/* ============ تحسينات قسم قبل / بعد ============ */
/* حركة ناعمة للمقبض (تتوقف أثناء السحب لاستجابة فورية) */
.slider-handle, .slider-img.img-after { transition: left .12s ease, clip-path .12s ease; }
.slider-wrapper.dragging .slider-handle, .slider-wrapper.dragging .slider-img.img-after { transition: none; }
/* تكبير المقبض عند المرور + مؤشر يد */
.slider-wrapper { cursor: ew-resize; }
.slider-button { transition: transform .2s ease, box-shadow .2s ease; animation: dragHint 1.8s ease-in-out 4; }
.slider-wrapper:hover .slider-button { transform: scale(1.12); }
.slider-wrapper.touched .slider-button { animation: none; }
@keyframes dragHint {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.45); }
    50% { transform: scale(1.18); box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}

/* ===== نافذة الفيديو المكبّرة (Lightbox) ===== */
.video-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.92);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.video-lightbox.open { display: flex; animation: vlbFade .2s ease; }
@keyframes vlbFade { from { opacity: 0; } to { opacity: 1; } }
.vlb-video {
    max-width: 92vw; max-height: 88vh;
    border-radius: 12px; background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.vlb-close {
    position: absolute; top: 18px; right: 22px;
    width: 46px; height: 46px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.15); color: #fff;
    font-size: 1.9rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.vlb-close:hover { background: rgba(255,255,255,0.30); }

/* ===== ظهور أقسام الصفحة الرئيسية بحركة أنيقة عند التمرير ===== */
.reveal-sec { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.22,.7,.2,1), transform .8s cubic-bezier(.22,.7,.2,1); will-change: opacity, transform; }
.reveal-sec.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-sec { opacity: 1 !important; transform: none !important; transition: none; } }

/* ألوان حالة دوام الكابتن (مربوطة بحالة المحل) */
.barber-work-status.status-online { color: #22c55e; }
.barber-work-status.status-offline { color: #ef4444; }