/* =========================================================================
   عيادة أ.د/ أحمد الشامي — style.css
   Premium Dental Clinic — Luxury + Medical + Trust + Precision
   RTL — Arabic
   ========================================================================= */

/* ----------------------------- المتغيرات ----------------------------- */
:root {
  /* الألوان الأساسية (مشتقة من هوية العيادة) */
  --brand: #128792;
  --brand-600: #0E6B74;
  --brand-700: #0B545C;
  --deep: #0A3B43;
  --deep-2: #06242B;
  --gold: #C6A15B;
  --gold-2: #E5CD97;
  --gold-soft: #F6EEDD;

  --bg: #F6FAFB;
  --bg-2: #EDF4F5;
  --white: #FFFFFF;
  --ink: #142F38;
  --ink-2: #2C4A54;
  --muted: #5F737C;
  --line: #DCE9EB;
  --line-2: #EAF2F3;

  --success: #1E9E6B;
  --success-bg: #E4F6EE;
  --danger: #D9534F;
  --danger-bg: #FCEBEA;
  --warning: #D9822B;
  --warning-bg: #FDF2E3;
  --info-bg: #E7F4F6;

  --grad-brand: linear-gradient(135deg, #16A0AC 0%, #0E6B74 60%, #0B545C 100%);
  --grad-deep: linear-gradient(160deg, #0A3B43 0%, #06242B 100%);
  --grad-gold: linear-gradient(135deg, #D9BC7F 0%, #C6A15B 100%);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(10, 59, 67, 0.06);
  --shadow-sm: 0 6px 18px rgba(10, 59, 67, 0.08);
  --shadow-md: 0 14px 34px rgba(10, 59, 67, 0.12);
  --shadow-lg: 0 26px 60px rgba(10, 59, 67, 0.18);
  --shadow-brand: 0 14px 30px rgba(18, 135, 146, 0.35);

  --font-head: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-body: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;

  --nav-h: 78px;
  --topbar-h: 44px;
}

/* ----------------------------- أساسيات ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden; /* يمنع أي تمرير أفقي غير مقصود */
}
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; } /* clip لا ينشئ حاوية تمرير فلا يكسر position: sticky */
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--ink); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.35; color: var(--deep); }

::selection { background: rgba(18, 135, 146, 0.18); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #BFD6DA; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.container { width: min(1200px, 92%); margin-inline: auto; }

section { position: relative; }

/* ----------------------------- أدوات عامة ----------------------------- */
.section { padding: clamp(60px, 8vw, 110px) 0; }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--brand-700);
  background: rgba(18, 135, 146, 0.08);
  border: 1px solid rgba(18, 135, 146, 0.18);
  padding: 7px 18px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--grad-gold); border-radius: 2px; }

.section-title { font-size: clamp(1.65rem, 3.4vw, 2.55rem); font-weight: 800; letter-spacing: -0.01em; }
.section-title .accent { color: var(--brand); position: relative; white-space: nowrap; }
.section-title .accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 9px;
  background: linear-gradient(90deg, rgba(198,161,91,.45), rgba(198,161,91,.05));
  border-radius: 4px; z-index: -1;
}
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  padding: 13px 26px; border-radius: var(--radius-pill);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap; will-change: transform;
}
.btn svg { flex: 0 0 auto; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(18,135,146,.42); }

.btn-gold { background: var(--grad-gold); color: #3A2C0E; box-shadow: 0 12px 26px rgba(198,161,91,.38); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(198,161,91,.5); }

.btn-outline {
  background: #fff; color: var(--brand-700);
  border: 1.6px solid rgba(18,135,146,.4);
}
.btn-outline:hover { border-color: var(--brand); background: rgba(18,135,146,.05); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.btn-white { background: #fff; color: var(--deep); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-whatsapp { background: linear-gradient(135deg, #31C65B, #1FA94A); color: #fff; box-shadow: 0 12px 26px rgba(37, 180, 86, .35); }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(37,180,86,.45); }

/* البطاقات */
.card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(18,135,146,.25); }

/* شارة */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .83rem; font-weight: 600; color: var(--ink-2);
  background: var(--white); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: var(--radius-pill); box-shadow: var(--shadow-xs);
}

/* إطار ظهور عند التمرير */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
[data-reveal].in-view { opacity: 1; transform: none; }

/* =========================================================================
   الشريط العلوي + القائمة
   ========================================================================= */
.topbar {
  background: var(--grad-deep);
  color: #CFE6E9; font-size: .86rem;
  position: relative; z-index: 60;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: var(--topbar-h); padding: 7px 0; flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-hot { color: var(--gold-2); font-weight: 700; }
.topbar .tb-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar svg { flex: 0 0 auto; }

.navbar-wrap {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,233,235,.9);
  transition: box-shadow .3s ease;
}
.navbar-wrap.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.95); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .logo-box {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 6px 10px; box-shadow: var(--shadow-xs); transition: transform .3s ease;
}
.brand:hover .logo-box { transform: scale(1.03); }
.brand img.logo-img { height: 44px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-2);
  padding: 9px 14px; border-radius: var(--radius-pill); position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--brand-700); background: rgba(18,135,146,.07); }
.nav-links a.active { color: var(--brand-700); background: rgba(18,135,146,.1); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--deep); border-radius: 2px; position: relative; transition: .3s; }
.burger span::before, .burger span::after { content: ''; position: absolute; width: 20px; height: 2px; background: var(--deep); border-radius: 2px; right: 0; transition: .3s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

/* قائمة الموبايل */
.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 85;
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
  padding: 26px 5%; overflow-y: auto;
  transform: translateY(-12px); opacity: 0; transition: .3s ease; pointer-events: none;
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--deep);
  padding: 15px 8px; border-bottom: 1px solid var(--line-2);
}
.mobile-menu a svg { color: var(--brand); }
.mobile-menu .mm-cta { margin-top: 22px; }

/* =========================================================================
   الهيرو
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(18,135,146,.14), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(198,161,91,.14), transparent 60%),
    linear-gradient(180deg, #F4FAFB 0%, #FDFEFE 100%);
  padding: clamp(48px, 6vw, 84px) 0 clamp(72px, 8vw, 110px);
}
.hero::before { /* شبكة خفيفة */
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(18,135,146,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(18,135,146,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.hero-blob.b1 { width: 340px; height: 340px; background: rgba(18,135,146,.16); top: -80px; right: -90px; }
.hero-blob.b2 { width: 300px; height: 300px; background: rgba(198,161,91,.18); bottom: -70px; left: -60px; }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(28px, 5vw, 60px); align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 9px 18px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--brand-700);
  margin-bottom: 22px;
}
.hero-badge .pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); position: relative; }
.hero-badge .pulse-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(30,158,107,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.15rem); font-weight: 900; line-height: 1.3; letter-spacing: -0.015em; }
.hero h1 .accent { color: var(--brand); }

.hero-sub { font-family: var(--font-head); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--ink-2); margin-top: 14px; }
.hero-sub .sep { color: var(--gold); margin: 0 8px; }

.hero-exp {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 12px; color: var(--muted); font-size: 1rem; font-weight: 500;
}
.hero-exp svg { color: var(--gold); }

.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* بطاقة الحجز الزجاجية بجوار الهيرو */
.hero-visual { position: relative; }
.hero-photo-frame { position: relative; max-width: 420px; margin-inline-start: auto; }
.hero-photo-frame::before {
  content: ''; position: absolute; inset: -14px -14px auto auto; width: 78%; height: 78%;
  border: 2px dashed rgba(198,161,91,.55); border-radius: 32px; z-index: 0;
}
.hero-photo {
  position: relative; z-index: 1;
  aspect-ratio: 3 / 4; border-radius: 32px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
  transform-style: preserve-3d;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(6,36,43,0) 55%, rgba(6,36,43,.5) 100%);
  border-radius: 26px;
}
.hero-photo .photo-tag {
  position: absolute; bottom: 18px; right: 18px; z-index: 2; color: #fff;
  font-family: var(--font-head); font-weight: 700;
}
.hero-photo .photo-tag small { display: block; font-weight: 500; color: rgba(255,255,255,.85); font-size: .8rem; }

.float-card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-md);
  border-radius: var(--radius-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; animation: floaty 5.5s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.float-card.fc-1 { bottom: 8%; right: -8%; }
.float-card.fc-2 { top: 10%; left: -9%; animation-delay: 1.6s; }
.float-card.fc-1 .fc-icon { background: var(--info-bg); color: var(--brand); }
.float-card.fc-2 .fc-icon { background: var(--gold-soft); color: #A87E2E; }
.float-card b { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--deep); line-height: 1.3; }
.float-card span { font-size: .8rem; color: var(--muted); }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* بطاقة "الحجز المسبق شرط أساسي" */
.prebook-card {
  margin-top: 26px; max-width: 460px; margin-inline-start: auto;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.85); border-radius: 20px;
  box-shadow: var(--shadow-md); padding: 20px 22px;
  display: flex; gap: 16px; align-items: flex-start;
}
.prebook-card .pc-icon {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px;
  background: var(--grad-gold); color: #4A3A12; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px rgba(198,161,91,.4);
}
.prebook-card h4 { font-size: 1.02rem; font-weight: 800; color: var(--deep); display: flex; align-items: center; gap: 8px; }
.prebook-card p { font-size: .92rem; color: var(--ink-2); margin-top: 4px; }
.prebook-card .pc-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.prebook-card .pc-phone { font-family: var(--font-head); font-weight: 800; color: var(--brand-700); font-size: 1.02rem; direction: ltr; display: inline-block; }

/* =========================================================================
   بطاقات المعلومات السريعة
   ========================================================================= */
.quick { margin-top: -46px; position: relative; z-index: 5; padding-bottom: 10px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-card {
  background: var(--white); border-radius: 20px; padding: 26px 22px;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-md);
  position: relative; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease;
}
.quick-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 4px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: right; transition: transform .4s ease;
}
.quick-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.quick-card:hover::before { transform: scaleX(1); }
.quick-card .qc-icon {
  width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--info-bg); color: var(--brand); margin-bottom: 16px;
}
.quick-card:nth-child(2) .qc-icon { background: var(--gold-soft); color: #A87E2E; }
.quick-card:nth-child(3) .qc-icon { background: #E9F1F3; color: var(--deep); }
.quick-card:nth-child(4) .qc-icon { background: #F2EEF7; color: #6E5BA8; }
.quick-card h3 { font-size: 1.08rem; font-weight: 800; }
.quick-card .qc-price { font-family: var(--font-head); font-size: 1.75rem; font-weight: 900; color: var(--brand-700); margin-top: 4px; line-height: 1.2; }
.quick-card .qc-price small { font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.quick-card p { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.quick-card .qc-badge {
  display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 700; color: var(--brand-700);
  background: rgba(18,135,146,.08); padding: 4px 12px; border-radius: var(--radius-pill);
}

/* =========================================================================
   قسم الدكتور
   ========================================================================= */
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px, 5vw, 64px); align-items: center; }

.about-photo { position: relative; max-width: 430px; }
.about-photo .ap-frame {
  position: relative; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 3 / 3.6;
}
.about-photo .ap-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about-photo .ap-ring {
  position: absolute; inset: -18px; border: 2px solid rgba(18,135,146,.25); border-radius: 40px;
  transform: rotate(-3deg); z-index: -1;
}
.about-photo .ap-badge {
  position: absolute; bottom: 22px; left: -18px; z-index: 3;
  background: var(--grad-deep); color: #fff; border-radius: 16px; padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.about-photo .ap-badge svg { color: var(--gold-2); }
.about-photo .ap-badge b { display: block; font-family: var(--font-head); font-size: .98rem; }
.about-photo .ap-badge span { font-size: .8rem; color: #BFD9DD; }

.about-info .doc-name { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
.about-info .doc-role { font-family: var(--font-head); font-weight: 700; color: var(--brand-700); margin-top: 6px; font-size: 1.06rem; }
.about-info .doc-spec { font-weight: 600; color: #A87E2E; margin-top: 2px; }

.about-list { margin-top: 22px; display: grid; gap: 13px; }
.about-list li { display: flex; gap: 13px; align-items: flex-start; }
.about-list .al-check {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; margin-top: 2px;
  background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center;
}
.about-list b { color: var(--deep); font-family: var(--font-head); }
.about-list p { color: var(--muted); font-size: .96rem; }

.about-note {
  margin-top: 24px; background: var(--bg-2); border: 1px dashed rgba(18,135,146,.35);
  border-radius: var(--radius-md); padding: 16px 18px; font-size: .95rem; color: var(--ink-2);
  display: flex; gap: 12px; align-items: flex-start;
}
.about-note svg { color: var(--brand); flex: 0 0 auto; margin-top: 2px; }

/* =========================================================================
   قسم زراعة الأسنان
   ========================================================================= */
.implant { background: var(--grad-deep); color: #D9E9EC; overflow: hidden; }
.implant::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 360px at 92% 10%, rgba(18,135,146,.28), transparent 60%),
    radial-gradient(520px 340px at 6% 95%, rgba(198,161,91,.14), transparent 60%);
  pointer-events: none;
}
.implant-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }

.implant .eyebrow { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: var(--gold-2); }
.implant .section-title { color: #fff; }
.implant .section-sub { color: #B7CFD4; }
.implant h3.i-title { color: #fff; font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.implant h3.i-title svg { color: var(--gold-2); }

.i-steps { display: grid; gap: 16px; margin-top: 26px; }
.i-step { display: flex; gap: 16px; align-items: flex-start; }
.i-step .is-num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 15px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--gold-2);
}
.i-step b { color: #fff; font-family: var(--font-head); display: block; font-size: 1rem; }
.i-step p { color: #B7CFD4; font-size: .93rem; margin-top: 2px; }

.implant-note {
  margin-top: 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md); padding: 16px 18px; display: flex; gap: 12px; font-size: .94rem; color: #D7E6E9;
}
.implant-note svg { color: var(--gold-2); flex: 0 0 auto; }

.implant-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* بطاقة ميزة على اليمين */
.implant-feature-card {
  position: relative; border-radius: 28px; overflow: hidden;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px); padding: 34px 30px; box-shadow: var(--shadow-lg);
}
.implant-feature-card .ifc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.implant-feature-card .ifc-icon {
  width: 58px; height: 58px; border-radius: 18px; background: var(--grad-gold);
  color: #4A3A12; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px rgba(198,161,91,.4);
}
.implant-feature-card h4 { color: #fff; font-size: 1.15rem; font-weight: 800; }
.implant-feature-card p { color: #B7CFD4; font-size: .94rem; }
.implant-feature-card .ifc-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.09); align-items: flex-start; }
.implant-feature-card .ifc-item:last-child { border-bottom: 0; }
.implant-feature-card .ifc-item svg { color: var(--gold-2); flex: 0 0 auto; margin-top: 3px; }
.implant-feature-card .ifc-item b { color: #EAF4F5; font-family: var(--font-head); font-size: .98rem; display: block; }
.implant-feature-card .ifc-item span { color: #AEC6CB; font-size: .88rem; }

/* =========================================================================
   الخدمات
   ========================================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { padding: 30px 26px; border-radius: 22px; position: relative; overflow: hidden; }
.service-card::after {
  content: ''; position: absolute; top: -46px; left: -46px; width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(18,135,146,.09), transparent 70%); border-radius: 50%;
  transition: transform .4s ease;
}
.service-card:hover::after { transform: scale(1.9); }
.service-card .sv-icon {
  width: 58px; height: 58px; border-radius: 17px; background: var(--info-bg); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; position: relative; z-index: 1;
  transition: transform .35s ease;
}
.service-card:hover .sv-icon { transform: scale(1.08) rotate(-4deg); }
.service-card h3 { font-size: 1.1rem; font-weight: 800; position: relative; z-index: 1; }
.service-card p { color: var(--muted); font-size: .92rem; margin-top: 8px; position: relative; z-index: 1; }
.service-card .sv-tag {
  display: inline-block; margin-top: 14px; font-size: .76rem; font-weight: 700; color: #A87E2E;
  background: var(--gold-soft); padding: 4px 12px; border-radius: var(--radius-pill); position: relative; z-index: 1;
}

.services-note {
  margin-top: 34px; text-align: center;
  background: var(--white); border: 1px dashed rgba(198,161,91,.6); border-radius: var(--radius-md);
  padding: 16px 20px; color: var(--ink-2); font-size: .96rem; box-shadow: var(--shadow-xs);
  display: inline-flex; align-items: center; gap: 10px;
}
.services-note-wrap { text-align: center; }
.services-note svg { color: var(--warning); flex: 0 0 auto; }

/* =========================================================================
   الأسعار
   ========================================================================= */
.pricing { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }

.price-card { border-radius: 24px; padding: 36px 30px; position: relative; overflow: hidden; }
.price-card.featured {
  background: var(--grad-deep); color: #E6F1F2; border: none; transform: none;
  box-shadow: var(--shadow-lg);
}
.price-card.featured::before {
  content: ''; position: absolute; top: -70px; left: -70px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(18,135,146,.4), transparent 70%);
}
.price-card.featured:hover { transform: translateY(-6px); }
.price-card .pc-label {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  color: var(--brand-700); background: rgba(18,135,146,.08); padding: 6px 14px; border-radius: var(--radius-pill);
}
.price-card.featured .pc-label { color: var(--gold-2); background: rgba(255,255,255,.08); }
.price-card .pc-price { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--brand-700); line-height: 1.15; margin-top: 14px; }
.price-card.featured .pc-price { color: #fff; }
.price-card .pc-price .cur { font-size: 1.3rem; font-weight: 700; color: var(--ink-2); margin-inline-start: 6px; }
.price-card.featured .pc-price .cur { color: var(--gold-2); }
.price-card .pc-includes { margin-top: 18px; display: grid; gap: 11px; }
.price-card .pc-includes li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.price-card .pc-includes svg { flex: 0 0 auto; margin-top: 4px; color: var(--success); }
.price-card.featured .pc-includes svg { color: var(--gold-2); }
.price-card.featured .pc-includes li { color: #D8E8EB; }
.price-card .pc-foot {
  margin-top: 20px; font-size: .88rem; color: var(--muted);
  background: var(--warning-bg); border: 1px dashed rgba(217,130,43,.5);
  border-radius: 12px; padding: 11px 14px; display: flex; gap: 9px; align-items: flex-start;
}
.price-card.featured .pc-foot { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: #CFE2E5; }
.price-card .pc-foot svg { color: var(--warning); flex: 0 0 auto; margin-top: 3px; }
.price-card.featured .pc-foot svg { color: var(--gold-2); }
.price-card .pc-cta { margin-top: 24px; }

/* =========================================================================
   المواعيد
   ========================================================================= */
.appointments-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: start; }

.appt-box { padding: 30px 28px; border-radius: 24px; }
.appt-box .ab-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.appt-box .ab-icon {
  width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: var(--info-bg); color: var(--brand);
}
.appt-box h3 { font-size: 1.2rem; font-weight: 800; }
.appt-box .ab-sub { color: var(--muted); font-size: .9rem; }

.appt-clinic { background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.appt-clinic .ab-big { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--brand-700); }
.appt-clinic .ab-days { margin-top: 8px; color: var(--ink-2); font-weight: 600; }
.appt-warn {
  margin-top: 18px; display: flex; gap: 12px; align-items: flex-start;
  background: var(--warning-bg); border: 1px solid rgba(217,130,43,.4); border-radius: 14px; padding: 14px 16px;
}
.appt-warn svg { color: var(--warning); flex: 0 0 auto; margin-top: 2px; }
.appt-warn b { color: #8A5316; }
.appt-warn p { color: #7A5A30; font-size: .92rem; }

.appt-doctor { background: var(--grad-deep); border: none; color: #E6F1F2; box-shadow: var(--shadow-lg); }
.appt-doctor .ab-icon { background: rgba(255,255,255,.1); color: var(--gold-2); }
.appt-doctor h3 { color: #fff; }
.appt-doctor .ab-sub { color: #B7CFD4; }

.schedule-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.schedule-table td { padding: 13px 16px; background: rgba(255,255,255,.06); }
.schedule-table tr td:first-child { border-radius: 12px 0 0 12px; font-family: var(--font-head); font-weight: 700; color: #fff; width: 44%; }
.schedule-table tr td:last-child { border-radius: 0 12px 12px 0; color: #C9DEE2; }
.schedule-table .st-today { background: rgba(198,161,91,.18); }
.schedule-table .st-today td:first-child { color: var(--gold-2); }
.schedule-table .st-today td:last-child { color: var(--gold-2); font-weight: 700; }

/* =========================================================================
   الحجز — الويزارد
   ========================================================================= */
.booking { background: linear-gradient(180deg, var(--bg) 0%, #EFF7F8 100%); }
.booking-grid { display: grid; grid-template-columns: .85fr 1.5fr; gap: 26px; align-items: start; }

/* طريقة الهاتف */
.phone-method { position: sticky; top: calc(var(--nav-h) + 20px); }
.phone-method .pm-card {
  background: var(--grad-deep); border-radius: 26px; padding: 34px 28px; color: #E6F1F2;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.phone-method .pm-card::before {
  content: ''; position: absolute; top: -60px; left: -60px; width: 190px; height: 190px;
  background: radial-gradient(circle, rgba(18,135,146,.5), transparent 70%);
}
.phone-method .pm-icon {
  width: 60px; height: 60px; border-radius: 18px; background: var(--grad-gold); color: #4A3A12;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px rgba(198,161,91,.4);
}
.phone-method h3 { color: #fff; font-size: 1.25rem; font-weight: 800; margin-top: 18px; }
.phone-method p { color: #B7CFD4; font-size: .95rem; margin-top: 8px; }
.phone-method .pm-phone {
  display: block; direction: ltr; text-align: center; font-family: var(--font-head);
  font-size: 1.7rem; font-weight: 900; color: #fff; letter-spacing: .02em;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; padding: 14px; margin: 20px 0 6px;
}
.phone-method .pm-actions { display: grid; gap: 12px; margin-top: 18px; }
.phone-method .pm-note { margin-top: 16px; font-size: .84rem; color: #9DBDC2; display: flex; gap: 8px; align-items: flex-start; }
.phone-method .pm-note svg { color: var(--gold-2); flex: 0 0 auto; margin-top: 2px; }

/* الويزارد */
.wizard { background: var(--white); border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); overflow: hidden; }

.wizard-steps { display: flex; padding: 22px 26px 0; gap: 4px; }
.w-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.w-step .ws-dot {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: .95rem;
  background: var(--bg-2); color: var(--muted); border: 2px solid var(--line);
  transition: all .35s ease; z-index: 2; position: relative;
}
.w-step .ws-label { font-size: .74rem; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .3s; }
.w-step::before {
  content: ''; position: absolute; top: 19px; right: 50%; width: 100%; height: 2px;
  background: var(--line); z-index: 1;
}
.w-step:first-child::before { display: none; }
.w-step.done .ws-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.w-step.done::before { background: var(--brand); }
.w-step.active .ws-dot {
  background: var(--grad-brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 0 0 6px rgba(18,135,146,.14); transform: scale(1.1);
}
.w-step.active .ws-label { color: var(--brand-700); }
.w-step.done .ws-label { color: var(--brand-600); }

.wizard-body { padding: 28px 30px 30px; }
.wp { display: none; animation: wpIn .45s cubic-bezier(.22,.61,.36,1); }
.wp.active { display: block; }
@keyframes wpIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.wp-title { font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.wp-title .wp-num {
  width: 38px; height: 38px; border-radius: 12px; background: var(--info-bg); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto;
}
.wp-sub { color: var(--muted); font-size: .94rem; margin-bottom: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.form-group label .req { color: var(--danger); }
.form-group .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }

.field {
  width: 100%; border: 1.6px solid var(--line); border-radius: 13px; padding: 12px 15px;
  background: #FBFDFD; transition: border-color .25s, box-shadow .25s, background .25s;
  font-size: .97rem;
}
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(18,135,146,.12); background: #fff; }
.field.err { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217,83,79,.1); }
textarea.field { resize: vertical; min-height: 84px; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23128792' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 38px; }

.field-error { color: var(--danger); font-size: .8rem; font-weight: 600; display: none; }
.field-error.show { display: block; animation: wpIn .3s ease; }

.radio-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .rc-box {
  display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 14px;
  border: 1.6px solid var(--line); background: #FBFDFD; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink-2);
  transition: all .25s ease; user-select: none;
}
.radio-card .rc-box .rc-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #BFD6DA; position: relative; flex: 0 0 auto; transition: border-color .25s; }
.radio-card input:checked + .rc-box { border-color: var(--brand); background: rgba(18,135,146,.06); color: var(--brand-700); }
.radio-card input:checked + .rc-box .rc-dot { border-color: var(--brand); }
.radio-card input:checked + .rc-box .rc-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.radio-card input:focus-visible + .rc-box { box-shadow: 0 0 0 4px rgba(18,135,146,.15); }

/* اختيار الخدمة */
.service-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-option { position: relative; }
.service-option input { position: absolute; opacity: 0; pointer-events: none; }
.service-option .so-box {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 15px;
  border: 1.6px solid var(--line); background: #FBFDFD; cursor: pointer;
  transition: all .25s ease; height: 100%;
}
.service-option .so-box svg { color: var(--brand); flex: 0 0 auto; opacity: .75; transition: opacity .25s; }
.service-option .so-box span { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.service-option input:checked + .so-box { border-color: var(--brand); background: rgba(18,135,146,.06); box-shadow: 0 4px 14px rgba(18,135,146,.12); }
.service-option input:checked + .so-box svg { opacity: 1; }
.service-option input:focus-visible + .so-box { box-shadow: 0 0 0 4px rgba(18,135,146,.15); }

/* التقويم */
.calendar-shell { max-width: 520px; margin: 0 auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; color: var(--deep); }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 38px; height: 38px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; color: var(--brand-700);
  display: flex; align-items: center; justify-content: center; transition: all .25s;
}
.cal-nav button:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); }
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--muted); padding: 8px 0; }
.cal-day {
  aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .93rem; color: var(--ink-2);
  background: var(--white); border: 1.5px solid var(--line-2); cursor: pointer; position: relative;
  transition: all .25s ease; padding-top: 12px;
}
.cal-day:hover:not(.disabled):not(.selected) { border-color: var(--brand); color: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cal-day.disabled { opacity: .38; cursor: not-allowed; background: var(--bg-2); }
.cal-day.other { border-style: dashed; }
.cal-day.selected { background: var(--grad-brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-brand); }
.cal-day.today:not(.selected) { border-color: var(--gold); color: #A87E2E; }
.cal-day .cal-dot { position: absolute; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.cal-day.selected .cal-dot { background: #fff; }
.cal-day.disabled .cal-dot { background: var(--muted); }
.cal-legend { display: flex; justify-content: center; gap: 22px; margin-top: 14px; font-size: .8rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend .lg-dot { width: 9px; height: 9px; border-radius: 3px; }

/* أوقات المواعيد */
.slots-wrap { text-align: center; }
.slots-date-info { font-family: var(--font-head); font-weight: 800; color: var(--brand-700); font-size: 1.05rem; margin-bottom: 18px; }
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; margin: 0 auto; }
.slot-btn {
  padding: 12px 8px; border-radius: 13px; border: 1.6px solid var(--line); background: #FBFDFD;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--ink-2); direction: ltr;
  transition: all .25s ease; position: relative;
}
.slot-btn:hover:not(:disabled):not(.selected) { border-color: var(--brand); color: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.slot-btn.selected { background: var(--grad-brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-brand); }
.slot-btn:disabled { opacity: .35; cursor: not-allowed; background: var(--bg-2); text-decoration: line-through; }
.slots-empty { padding: 34px 10px; color: var(--muted); }
.slots-empty svg { margin-bottom: 10px; color: var(--gold); }
.slots-note { margin-top: 16px; font-size: .84rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; }

/* المراجعة */
.review-card { border: 1.5px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); font-size: .96rem; }
.review-row:last-child { border-bottom: 0; }
.review-row .rr-k { color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 9px; }
.review-row .rr-k svg { color: var(--brand); }
.review-row .rr-v { font-family: var(--font-head); font-weight: 800; color: var(--deep); text-align: left; }

.booking-rule {
  margin-top: 20px; display: flex; gap: 14px; align-items: flex-start;
  background: var(--warning-bg); border: 1.5px solid rgba(217,130,43,.45);
  border-radius: 15px; padding: 15px 18px;
}
.booking-rule svg { color: var(--warning); flex: 0 0 auto; margin-top: 3px; }
.booking-rule b { color: #8A5316; font-family: var(--font-head); }
.booking-rule p { color: #7A5A30; font-size: .93rem; }

.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); }
.wizard-nav .wn-right { display: flex; gap: 10px; }
.wn-step-info { font-size: .85rem; color: var(--muted); font-family: var(--font-head); font-weight: 700; }

/* نجاح الحجز */
.success-box { text-align: center; padding: 10px 0 4px; }
.success-ring {
  width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--success-bg); display: flex; align-items: center; justify-content: center;
  animation: successPop .6s cubic-bezier(.34,1.56,.64,1);
}
.success-ring .sr-inner {
  width: 66px; height: 66px; border-radius: 50%; background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px rgba(30,158,107,.4);
}
@keyframes successPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-box h3 { font-size: 1.5rem; font-weight: 900; color: var(--success); }
.success-box .sb-sub { color: var(--muted); margin-top: 6px; }
.booking-ticket {
  max-width: 560px; margin: 26px auto 0; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 20px; overflow: hidden; text-align: right;
}
.booking-ticket .bt-head {
  background: var(--grad-deep); color: #fff; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.booking-ticket .bt-head b { font-family: var(--font-head); font-size: 1.02rem; }
.booking-ticket .bt-id { direction: ltr; font-family: var(--font-head); font-weight: 900; letter-spacing: .04em; color: var(--gold-2); }
.booking-ticket .bt-rows { padding: 8px 22px; }
.booking-ticket .bt-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.booking-ticket .bt-row:last-child { border-bottom: 0; }
.booking-ticket .bt-row .bt-k { color: var(--muted); }
.booking-ticket .bt-row .bt-v { font-family: var(--font-head); font-weight: 800; color: var(--deep); text-align: left; }
.success-contact {
  margin: 24px auto 0; max-width: 560px; background: var(--info-bg); border: 1px solid rgba(18,135,146,.25);
  border-radius: 16px; padding: 16px 20px; font-size: .96rem; color: var(--ink-2);
  display: flex; gap: 12px; align-items: flex-start;
}
.success-contact svg { color: var(--brand); flex: 0 0 auto; margin-top: 3px; }
.success-contact .sc-phone { font-family: var(--font-head); font-weight: 900; color: var(--brand-700); font-size: 1.1rem; direction: ltr; display: inline-block; }
.success-actions { margin-top: 24px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* =========================================================================
   التواصل
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: stretch; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.contact-card { padding: 26px 24px; border-radius: 22px; display: flex; flex-direction: column; }
.contact-card .cc-icon {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--info-bg); color: var(--brand); margin-bottom: 16px;
}
.contact-card:nth-child(2) .cc-icon { background: var(--gold-soft); color: #A87E2E; }
.contact-card:nth-child(3) .cc-icon { background: #E9F1F3; color: var(--deep); }
.contact-card:nth-child(4) .cc-icon { background: var(--success-bg); color: var(--success); }
.contact-card h3 { font-size: 1.02rem; font-weight: 800; }
.contact-card p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.contact-card .cc-phone { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; color: var(--deep); direction: ltr; text-align: left; margin-top: 10px; }
.contact-card .cc-link { margin-top: auto; padding-top: 14px; }
.contact-card a.cc-link { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--brand-700); display: inline-flex; align-items: center; gap: 8px; }

/* Whatsapp card animation */
.whatsapp-card {
  animation: whatsappPulse 1.8s ease-in-out infinite;
}
.whatsapp-card .cc-icon {
  background: var(--success-bg) !important;
  color: var(--success) !important;
  animation: whatsappIconPop 1.5s cubic-bezier(0.36, 0, 0.66, 1) infinite;
  position: relative;
}
.whatsapp-card .cc-icon svg {
  animation: whatsappLogoFloat 2.5s ease-in-out infinite;
}
.whatsapp-card .cc-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 14px;
  border: 2px solid var(--success);
  opacity: 0;
  animation: whatsappRing 1.5s ease-out infinite;
}
@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@keyframes whatsappIconPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes whatsappLogoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
  75% { transform: translateY(-4px) rotate(2deg); }
}
@keyframes whatsappRing {
  0% { 
    transform: scale(0.8);
    opacity: 1;
  }
  100% { 
    transform: scale(1.4);
    opacity: 0;
  }
}

.contact-cta-card {
  background: var(--grad-deep); border-radius: 26px; padding: 36px 30px; color: #E6F1F2;
  display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.contact-cta-card::before {
  content: ''; position: absolute; top: -70px; right: -70px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(18,135,146,.45), transparent 70%);
}
.contact-cta-card h3 { color: #fff; font-size: 1.5rem; font-weight: 900; position: relative; }
.contact-cta-card p { color: #B7CFD4; font-size: .96rem; margin-top: 10px; position: relative; }
.contact-cta-card .ccc-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; position: relative; }
.contact-cta-card .ccc-hot { margin-top: 20px; position: relative; font-size: .92rem; color: #C9DEE2; }
.contact-cta-card .ccc-hot b { font-family: var(--font-head); font-weight: 900; color: var(--gold-2); font-size: 1.15rem; }

/* =========================================================================
   الموقع
   ========================================================================= */
.map-wrap { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.map-placeholder {
  position: relative; height: clamp(340px, 46vw, 480px); overflow: hidden;
  background: linear-gradient(160deg, #EAF3F4 0%, #D7E9EB 100%);
}
.map-placeholder .map-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(18,135,146,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(18,135,146,.14) 1px, transparent 1px);
  background-size: 56px 56px;
}
.map-placeholder .map-roads { position: absolute; inset: 0; }
.map-roads::before, .map-roads::after {
  content: ''; position: absolute; background: rgba(255,255,255,.9); box-shadow: 0 0 30px rgba(18,135,146,.08);
}
.map-roads::before { width: 46%; height: 10px; border-radius: 8px; top: 30%; right: -6%; transform: rotate(-18deg); }
.map-roads::after { width: 42%; height: 8px; border-radius: 8px; bottom: 24%; left: -4%; transform: rotate(14deg); }
.map-pin {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; z-index: 3;
}
.map-pin .pin-ic {
  width: 56px; height: 56px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--grad-brand); box-shadow: var(--shadow-brand);
  display: flex; align-items: center; justify-content: center; color: #fff;
  animation: pinBounce 2.4s ease-in-out infinite;
}
.map-pin .pin-ic svg { transform: rotate(45deg); }
@keyframes pinBounce { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }
.map-pin .pin-label {
  margin-top: 14px; background: var(--white); box-shadow: var(--shadow-md);
  border-radius: 14px; padding: 10px 18px; font-family: var(--font-head); font-weight: 800; font-size: .92rem;
  color: var(--deep); text-align: center; white-space: nowrap;
}
.map-overlay {
  position: absolute; inset: auto 0 0 0; z-index: 4; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(180deg, transparent, rgba(6,36,43,.55));
}
.map-overlay .mo-addr { color: #fff; font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.map-overlay .mo-addr svg { color: var(--gold-2); }
.map-note {
  margin-top: 16px; text-align: center; font-size: .86rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* =========================================================================
   الفوتر
   ========================================================================= */
.footer { background: var(--grad-deep); color: #B7CFD4; position: relative; overflow: hidden; }
.footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 90% 0%, rgba(18,135,146,.22), transparent 60%);
  pointer-events: none;
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.15fr 1.15fr; gap: 36px; padding: 64px 0 44px; }
.footer .flogo {
  background: #fff; border-radius: 16px; padding: 10px 14px; display: inline-block;
  box-shadow: var(--shadow-md); margin-bottom: 18px;
}
.footer .flogo img { height: 46px; width: auto; }
.footer .f-about { font-size: .94rem; line-height: 1.9; }
.footer h4 { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-gold); }
.footer ul { display: grid; gap: 10px; }
.footer ul a { display: inline-flex; align-items: center; gap: 9px; font-size: .93rem; transition: color .2s, transform .2s; }
.footer ul a:hover { color: var(--gold-2); transform: translateX(-4px); }
.footer ul a svg { color: var(--brand); font-size: 0; flex: 0 0 auto; opacity: .9; }
.footer .f-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; line-height: 1.6; }
.footer .f-contact svg { color: var(--gold-2); flex: 0 0 auto; margin-top: 4px; }
.footer .f-phone { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.05rem; direction: ltr; display: inline-block; }
.footer .f-sched { font-size: .9rem; display: grid; gap: 7px; }
.footer .f-sched b { color: #EAF4F5; font-family: var(--font-head); font-size: .93rem; }
.footer .f-sched .fs-warn { color: var(--gold-2); font-weight: 700; margin-top: 6px; display: inline-flex; align-items: center; gap: 7px; }

.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom .fb-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--gold-2); }

/* =========================================================================
   الأزرار العائمة + زر الصعود
   ========================================================================= */
.fab-dock {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); color: #fff; position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab .fab-tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--deep); color: #fff; font-size: .8rem; font-family: var(--font-head); font-weight: 700;
  padding: 6px 12px; border-radius: 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .25s ease;
}
.fab:hover .fab-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.fab-book { width: 60px; height: 60px; background: var(--grad-brand); }
.fab-call { background: linear-gradient(135deg, #1E9E6B, #16865B); }
.fab-wa { background: linear-gradient(135deg, #31C65B, #1FA94A); }
.fab-book::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(18,135,146,.45); animation: pulse 2.2s infinite;
}

.to-top {
  position: fixed; bottom: 22px; left: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 14px; background: var(--white); color: var(--brand-700);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: all .3s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* شريط الحجز السفلي للموبايل */
.mobile-bookbar {
  display: none;
}

/* =========================================================================
   التوست (الإشعارات)
   ========================================================================= */
.toast-stack {
  position: fixed; top: calc(var(--topbar-h) + 12px); left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; width: min(94vw, 430px);
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; font-size: .93rem; font-weight: 600; color: var(--ink-2);
  animation: toastIn .45s cubic-bezier(.22,.61,.36,1); pointer-events: auto;
}
.toast.out { animation: toastOut .35s ease forwards; }
.toast .t-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.toast.success .t-icon { background: var(--success-bg); color: var(--success); }
.toast.error .t-icon { background: var(--danger-bg); color: var(--danger); }
.toast.warning .t-icon { background: var(--warning-bg); color: var(--warning); }
.toast.info .t-icon { background: var(--info-bg); color: var(--brand); }
.toast .t-body { flex: 1; padding-top: 3px; }
.toast .t-title { font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--deep); display: block; }
.toast .t-msg { font-weight: 500; color: var(--muted); font-size: .86rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px) scale(.96); } }

/* =========================================================================
   حساب المريض / المواعيد الشخصية
   ========================================================================= */
.account-section { padding-top: 10px; }
.user-account-card { padding: clamp(22px, 3vw, 36px); }
.account-header {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.account-header .section-title { margin-top: 8px; margin-bottom: 0; }
.user-status-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px;
}
.user-status-item {
  display: flex; align-items: center; gap: 12px; background: rgba(18,135,146,.04); border: 1px solid rgba(18,135,146,.15); border-radius: 16px; padding: 18px; color: var(--ink-2); font-weight: 600;
}
.user-status-item svg { color: var(--brand); }
.user-logged-in { margin-top: 6px; }
.user-profile-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, rgba(18,135,146,.06), rgba(198,161,91,.09)); border: 1px solid rgba(18,135,146,.12); border-radius: 20px; padding: 18px; flex-wrap: wrap;
}
.user-avatar {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand);
}
.user-profile-box h3 { font-size: 1.3rem; margin-bottom: 4px; }
.user-profile-box p { color: var(--muted); }
.my-appointments-wrap { margin-top: 20px; }
.my-appts-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.my-appts-head h4 { font-size: 1.1rem; }
.badge-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; background: rgba(18,135,146,.1); color: var(--brand-700); border-radius: 999px; font-weight: 800; font-size: .82rem; padding: 0 10px;
}
.my-appointments-list { display: grid; gap: 12px; }
.appointment-item {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-xs);
}
.appointment-item h5 {
  font-size: 1rem; margin-bottom: 3px; color: var(--deep);
}
.appointment-item p { font-size: .9rem; color: var(--muted); }
.appointment-item .app-status {
  display: inline-flex; align-items: center; justify-content: center; min-width: 92px; padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: rgba(18,135,146,.08); color: var(--brand-700);
}
.appointment-item .app-status.confirmed { background: rgba(30,158,107,.12); color: var(--success); }
.appointment-item .app-status.cancelled { background: rgba(217,83,79,.12); color: var(--danger); }
.appointment-item .app-status.new { background: rgba(198,161,91,.15); color: #7E5C1D; }
.appointment-item .app-status.completed { background: rgba(18,135,146,.12); color: var(--brand-700); }
.empty-appointments {
  background: rgba(18,135,146,.04); border: 1px dashed rgba(18,135,146,.2); border-radius: 16px; padding: 22px; color: var(--muted); text-align: center; font-weight: 600;
}
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,36,43,.5); display: flex; align-items: center; justify-content: center; z-index: 220; padding: 18px;
}
.modal-panel {
  position: relative; width: min(480px, 92vw); background: var(--white); border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid rgba(18,135,146,.1); padding: 28px 24px 24px;
}
.modal-close {
  position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(18,135,146,.08); color: var(--brand-700); font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.auth-head { margin-bottom: 18px; }
.auth-head h3 { font-size: 1.6rem; margin-top: 6px; }
.auth-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: rgba(18,135,146,.04); padding: 8px; border-radius: 14px; margin-bottom: 18px;
}
.auth-tab {
  border-radius: 10px; padding: 12px 10px; font-family: var(--font-head); font-weight: 700; color: var(--muted); background: transparent;
}
.auth-tab.active {
  background: var(--white); color: var(--brand-700); box-shadow: var(--shadow-xs); border: 1px solid rgba(18,135,146,.15);
}
.auth-form .form-group { margin-bottom: 12px; }
.auth-form .field { width: 100%; }

/* =========================================================================
   الاستجابة (Responsive)
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin-inline: auto; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .implant-grid, .contact-grid, .appointments-grid { grid-template-columns: 1fr; }
  .about-photo { margin-inline: auto; }
  .phone-method { position: static; }
  .booking-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: block; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .float-card.fc-2 { left: 0; }
  .float-card.fc-1 { right: 0; }
}

@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .about-photo .ap-ring { display: none; }
  .topbar .tb-hide-sm { display: none; }
  .topbar-inner { justify-content: center; }
  .brand img.logo-img { height: 36px; }
  .quick-grid, .services-grid, .contact-cards, .form-grid, .service-picker { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .wizard-steps { padding: 18px 14px 0; gap: 0; }
  .w-step .ws-label { font-size: .62rem; }
  .w-step .ws-dot { width: 32px; height: 32px; font-size: .82rem; }
  .w-step::before { top: 16px; }
  .wizard-body { padding: 22px 18px 24px; }
  .wizard-nav { flex-direction: column; align-items: stretch; }
  .wizard-nav .wn-right { justify-content: space-between; }
  .hero-cta .btn { width: 100%; }
  .prebook-card { flex-direction: column; }
  .float-card { padding: 10px 13px; }
  .float-card .fc-icon { width: 38px; height: 38px; }
  .float-card b { font-size: .82rem; }
  .float-card span { font-size: .72rem; }
  .hero-photo { border-width: 4px; border-radius: 24px; }
  .hero-photo-frame::before { border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .fab { width: 46px; height: 46px; }
  .fab-book { width: 54px; height: 54px; }
  .fab .fab-tip { display: none; }
  .to-top { width: 42px; height: 42px; }
  .schedule-table tr td { padding: 11px 12px; }
  .contact-cta-card { padding: 28px 22px; }
  .map-overlay { justify-content: center; text-align: center; }
  .cal-grid { gap: 4px; }
  .cal-day { font-size: .85rem; border-radius: 10px; }
}

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