/* Ported 1:1 from the original Tailwind/shadcn design tokens. */

/* Values must stay identical to the original app's tokens. */
:root {
  --radius: 0.75rem;

  --background: oklch(0.985 0.006 250);
  --foreground: oklch(0.18 0.05 265);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.05 265);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.18 0.05 265);

  --primary: oklch(0.22 0.09 265);
  --primary-foreground: oklch(0.98 0.01 250);

  --secondary: oklch(0.95 0.012 260);
  --secondary-foreground: oklch(0.22 0.09 265);

  --muted: oklch(0.955 0.008 260);
  --muted-foreground: oklch(0.5 0.03 265);

  --accent: oklch(0.93 0.045 245);
  --accent-foreground: oklch(0.22 0.09 265);

  --gold: oklch(0.78 0.13 85);
  --gold-foreground: oklch(0.2 0.05 265);

  --destructive: oklch(0.58 0.22 27);
  --destructive-foreground: oklch(0.98 0.01 250);

  --border: oklch(0.9 0.015 260);
  --input: oklch(0.9 0.015 260);
  --ring: oklch(0.78 0.13 85);

  --whatsapp: oklch(0.65 0.16 150);

  --shadow-elegant: 0 20px 50px -20px color-mix(in oklab, var(--primary) 45%, transparent);
  --shadow-gold: 0 12px 34px -12px color-mix(in oklab, var(--gold) 55%, transparent);

  --font-sans: "Cairo", "Tajawal", system-ui, sans-serif;

  /* Bootstrap theme overrides -> adopt the same navy + gold palette */
  --bs-primary: var(--primary);
  --bs-primary-rgb: 33, 30, 66;
  --bs-body-font-family: var(--font-sans);
  --bs-body-bg: var(--background);
  --bs-body-color: var(--foreground);
  --bs-border-color: var(--border);
  --bs-link-color: var(--gold);
  --bs-link-hover-color: var(--gold);
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.5rem;
}

* { border-color: var(--border); }
html { background-color: var(--background); scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  background-image:
    radial-gradient(1100px 560px at 100% -10%, color-mix(in oklab, var(--gold) 7%, transparent), transparent 65%),
    radial-gradient(900px 480px at 0% 8%, color-mix(in oklab, var(--primary) 5%, transparent), transparent 62%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
a { text-decoration: none; }

/* Elegant scrollbar */
* { scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--gold) 55%, transparent) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, color-mix(in oklab, var(--gold) 70%, transparent), color-mix(in oklab, var(--primary) 60%, transparent));
  border: 2px solid transparent; background-clip: padding-box; border-radius: 999px;
}

/* ---------- Color / background utilities ---------- */
.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.text-gold-foreground { color: var(--gold-foreground) !important; }
.bg-gold-10 { background-color: color-mix(in oklab, var(--gold) 10%, transparent) !important; }
.bg-gold-15 { background-color: color-mix(in oklab, var(--gold) 15%, transparent) !important; }
.border-gold { border-color: var(--gold) !important; }
.border-gold-40 { border-color: color-mix(in oklab, var(--gold) 40%, transparent) !important; }
.bg-navy { background-color: var(--primary) !important; }
.text-navy { color: var(--primary) !important; }
.text-navy-foreground, .text-primary-fg { color: var(--primary-foreground) !important; }
.bg-navy-90 { background-color: color-mix(in oklab, var(--primary) 90%, transparent) !important; }
.bg-whatsapp { background-color: var(--whatsapp) !important; }
.text-whatsapp { color: var(--whatsapp) !important; }
.bg-card { background-color: var(--card) !important; }
.bg-muted-c { background-color: var(--muted) !important; }
.text-muted-c { color: var(--muted-foreground) !important; }
.bg-secondary-40 { background-color: color-mix(in oklab, var(--primary) 3.5%, var(--background)) !important; }
.border-c { border-color: var(--border) !important; }
.text-destructive { color: var(--destructive) !important; }

.gold-line { display: inline-block; width: 56px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--gold) 65%, transparent), transparent); }
.text-gradient-gold {
  background: linear-gradient(135deg, oklch(0.85 0.13 85), oklch(0.68 0.15 62));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bg-luxe {
  background:
    radial-gradient(1200px 500px at 80% -10%, color-mix(in oklab, var(--gold) 18%, transparent), transparent 60%),
    radial-gradient(900px 400px at -10% 30%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 60%);
}
.bg-navy-luxe {
  background:
    radial-gradient(1100px 500px at 85% -10%, color-mix(in oklab, var(--gold) 22%, transparent), transparent 60%),
    linear-gradient(180deg, oklch(0.18 0.07 265), oklch(0.22 0.09 265));
}
.ring-gold { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--gold) 45%, transparent); }
.shadow-elegant { box-shadow: var(--shadow-elegant) !important; }
.shadow-gold { box-shadow: var(--shadow-gold) !important; }

section.bg-navy, .bg-navy-section {
  position: relative;
  background-color: var(--primary);
  background-image:
    radial-gradient(760px 340px at 88% 0%, color-mix(in oklab, var(--gold) 20%, transparent), transparent 65%),
    radial-gradient(620px 300px at 4% 100%, color-mix(in oklab, var(--gold) 12%, transparent), transparent 62%);
  color: var(--primary-foreground);
}

/* Tailwind arbitrary radii used throughout the original markup. */
.rounded-14 { border-radius: 0.875rem !important; }
.rounded-16 { border-radius: 1rem !important; }
.rounded-20 { border-radius: 1.25rem !important; }
.rounded-24 { border-radius: 1.5rem !important; }
.rounded-28 { border-radius: 1.75rem !important; }
.rounded-32 { border-radius: 2rem !important; }

/* ---------- Font-size helpers ---------- */
.fs-10 { font-size: 10px !important; }
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.lh-8 { line-height: 2rem !important; }
.lh-9 { line-height: 2.25rem !important; }

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--gold); color: var(--gold-foreground); font-weight: 800;
  border-radius: 999px; padding: .75rem 1.75rem; border: none;
  box-shadow: var(--shadow-gold); transition: opacity .2s, transform .2s;
}
.btn-gold:hover { opacity: .9; color: var(--gold-foreground); transform: translateY(-1px); }
.btn-outline-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: transparent; color: var(--gold); font-weight: 700;
  border: 1px solid var(--gold); border-radius: 999px; padding: .7rem 1.7rem;
  transition: background .2s, color .2s;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--gold-foreground); }
.btn-navy {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--primary); color: var(--primary-foreground); font-weight: 700;
  border-radius: 999px; padding: .75rem 1.75rem; border: none; transition: opacity .2s;
}
.btn-navy:hover { opacity: .9; color: var(--primary-foreground); }
.btn-ghost-light {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: rgba(255,255,255,.1); color: #fff; font-weight: 700;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .75rem 1.75rem;
  backdrop-filter: blur(6px); transition: background .2s;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-outline-c {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--card); color: var(--foreground); font-weight: 700;
  border: 1px solid var(--border); border-radius: 999px; padding: .7rem 1.4rem;
  transition: border-color .2s, color .2s;
}
.btn-outline-c:hover { border-color: var(--gold); color: var(--gold); }
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--whatsapp); color: #fff; font-weight: 800;
  border-radius: 999px; padding: .75rem 1.75rem; border: none; box-shadow: var(--shadow-elegant);
  transition: transform .2s;
}
.btn-wa:hover { color: #fff; transform: translateY(-1px); }

/* ---------- Badges / pills ---------- */
.pill-badge {
  display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  background: color-mix(in oklab, var(--gold) 10%, transparent);
  color: var(--gold); font-weight: 700; font-size: .75rem; padding: .35rem 1rem;
}
.pill-gold {
  display: inline-flex; align-items: center; border-radius: 999px; background: var(--gold);
  color: var(--gold-foreground); font-weight: 800; font-size: 11px; padding: .25rem .7rem;
  box-shadow: var(--shadow-gold);
}
.badge-chip-primary {
  display: inline-flex; align-items: center; border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 6%, transparent); color: var(--primary);
  font-weight: 700; font-size: 11px; padding: .3rem .65rem;
}
.badge-chip-gold {
  display: inline-flex; align-items: center; border-radius: 999px;
  background: color-mix(in oklab, var(--gold) 12%, transparent); color: var(--gold);
  font-weight: 700; font-size: 11px; padding: .3rem .65rem;
}
.pill-dark {
  display: inline-flex; align-items: center; border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 85%, transparent); color: #fff;
  font-weight: 600; font-size: 11px; padding: .25rem .7rem; backdrop-filter: blur(4px);
}

/* ---------- Section headings ---------- */
.section-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: .5rem; }
.section-title { font-size: 1.875rem; font-weight: 800; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-sub { max-width: 42rem; margin: 1rem auto 0; color: var(--muted-foreground); font-size: .9rem; line-height: 1.8; }

/* ---------- Cards ---------- */
.card-hover {
  transition: transform .4s ease, border-color .3s ease, box-shadow .3s ease;
  border: 1px solid var(--border); background: var(--card);
}
.card-hover:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--gold) 50%, transparent); box-shadow: var(--shadow-elegant); }

/* ---------- Header / nav ---------- */

.nav-badge-free {
  margin-inline-start: .35rem; display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--gold); color: var(--gold-foreground); font-size: 10px; font-weight: 800; padding: .1rem .4rem;
}

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: oklch(0.19 0.075 265); color: var(--primary-foreground); border-top: 1px solid rgba(255,255,255,.05); }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .7;
  background: radial-gradient(900px 400px at 90% 0%, color-mix(in oklab, var(--gold) 18%, transparent), transparent 60%),
              radial-gradient(700px 300px at 0% 100%, color-mix(in oklab, var(--gold) 10%, transparent), transparent 60%);
}
.site-footer > * { position: relative; z-index: 1; }
.footer-cta-card { border-radius: 1.5rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); padding: 1.75rem; backdrop-filter: blur(4px); }
.footer-heading { display: flex; align-items: center; gap: .5rem; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); }
.footer-heading .bar { width: 1rem; height: 1px; background: var(--gold); }
.footer-link { color: rgba(255,255,255,.7); font-size: .9rem; transition: color .2s; }
.footer-link:hover { color: var(--gold); }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: .75rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: rgba(255,255,255,.7); transition: .2s; }
.social-btn:hover { border-color: color-mix(in oklab, var(--gold) 60%, transparent); background: color-mix(in oklab, var(--gold) 10%, transparent); color: var(--gold); transform: translateY(-2px); }
.footer-icon-chip { display: flex; height: 1.75rem; width: 1.75rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: .5rem; background: color-mix(in oklab, var(--gold) 10%, transparent); color: var(--gold); }

/* ---------- Floating WhatsApp + Compare bar ---------- */
.floating-wa {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 1050;
  width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-elegant);
  font-size: 1.5rem; transition: transform .2s;
}
.floating-wa:hover { color: #fff; transform: scale(1.1); }
/* زر واتساب كان مستخبّي بالكامل تحت زر المساعد الذكي (نفس الركن) — بيطلع فوقه لما المساعد موجود (FE-02) */
body:has(#awnLauncher) .floating-wa { bottom: 88px; }
@media (max-width: 640px) { body:has(#awnLauncher) .floating-wa { bottom: 78px; width: 52px; height: 52px; } }
/* القائمة المفتوحة على الموبايل: الأزرار العائمة ما تترسمش فوقها (FE-08) */
html.th-lock .floating-wa, html.th-lock .awn-launcher, html.th-lock .sg-rail { visibility: hidden; }

/* ---------- Property card ---------- */
.property-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 2rem; border: 1px solid var(--border); background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .4s, border-color .4s, box-shadow .4s; }
.property-card:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--gold) 50%, transparent); box-shadow: var(--shadow-elegant); }
.property-card .pc-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--muted); }
.property-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.property-card:hover .pc-media img { transform: scale(1.08); }
.property-card .pc-overlay { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in oklab, var(--primary) 82%, transparent), color-mix(in oklab, var(--primary) 10%, transparent) 60%, transparent); }
.property-card .pc-badges { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; flex-wrap: wrap; gap: .5rem; }
.property-card .pc-price-row { position: absolute; bottom: 12px; inset-inline: 12px; display: flex; align-items: flex-end; justify-content: space-between; color: #fff; }
.property-card .pc-compare-btn {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.85); color: var(--primary); backdrop-filter: blur(4px);
}
.property-card .pc-compare-btn.active { border-color: color-mix(in oklab, var(--gold) 60%, transparent); background: var(--gold); color: var(--gold-foreground); }
.property-card .pc-body { display: flex; flex: 1; flex-direction: column; gap: .75rem; padding: 1.25rem; }
.property-card .pc-title { font-size: 1rem; font-weight: 800; line-height: 1.7; color: var(--foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-card .pc-title:hover { color: var(--gold); }
.property-card .pc-meta { display: flex; align-items: center; gap: .35rem; font-size: 12px; color: var(--muted-foreground); }
.property-card .pc-facts { display: flex; flex-wrap: wrap; gap: .75rem; border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent); padding: .75rem 0; font-size: 12px; color: var(--muted-foreground); }
.property-card .pc-actions { margin-top: auto; display: grid; gap: .5rem; padding-top: .25rem; grid-template-columns: 1fr 1fr; }
.property-card .pc-actions .full { grid-column: 1 / -1; }
.btn-pc-primary { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 12px; font-weight: 700; padding: .6rem .7rem; border: none; }
.btn-pc-gold { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border-radius: 999px; background: var(--gold); color: var(--gold-foreground); font-size: 12px; font-weight: 700; padding: .6rem .7rem; border: none; }
.btn-pc-outline { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); font-size: 12px; font-weight: 700; padding: .6rem .7rem; }
.btn-pc-outline:hover { border-color: var(--whatsapp); color: var(--whatsapp); }
.btn-pc-compare { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border-radius: 999px; border: 1px solid var(--border); background: var(--background); color: var(--muted-foreground); font-size: 12px; font-weight: 700; padding: .6rem .7rem; }
.btn-pc-compare.active { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 10%, transparent); color: var(--gold); }

/* ---------- Forms ---------- */
.form-field label, .field-label { display: block; margin-bottom: .35rem; font-size: 12px; font-weight: 700; color: var(--foreground); }
.form-control, .form-select, textarea.form-control {
  width: 100%; border-radius: .8rem; border: 1px solid var(--border); background: var(--background);
  padding: .65rem .9rem; font-size: .875rem; color: var(--foreground); outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 18%, transparent); outline: none;
}
.form-control-dark { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); color: #fff; }
.form-control-dark::placeholder { color: rgba(255,255,255,.4); }
.form-control-dark:focus { border-color: var(--gold); }
.input-icon-wrap { position: relative; }
.input-icon-wrap i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: .9rem; color: var(--muted-foreground); pointer-events: none; }
.input-icon-wrap .form-control, .input-icon-wrap .form-select { padding-inline-end: 2.5rem; }
.segmented { display: grid; grid-auto-flow: column; border-radius: .8rem; border: 1px solid var(--border); background: var(--background); padding: .25rem; }
.segmented button { border: none; background: transparent; border-radius: .6rem; padding: .5rem .75rem; font-size: 12px; font-weight: 700; color: var(--muted-foreground); }
.segmented button.active { background: var(--gold); color: var(--gold-foreground); box-shadow: var(--shadow-gold); }
.feature-chip { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); font-size: 12px; font-weight: 600; padding: .5rem 1rem; transition: .2s; }
.feature-chip.active { border-color: var(--gold); background: var(--gold); color: var(--gold-foreground); box-shadow: var(--shadow-gold); }
.feature-chip:hover:not(.active) { border-color: color-mix(in oklab, var(--gold) 50%, transparent); color: var(--gold); }
.stepper-dot { display: flex; height: 2.25rem; width: 2.25rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: 800; background: var(--muted); color: var(--muted-foreground); }
.stepper-dot.active { background: var(--gold); color: var(--gold-foreground); box-shadow: var(--shadow-gold); }
.stepper-dot.done { background: color-mix(in oklab, var(--gold) 20%, transparent); color: var(--gold); }
.stepper-line { height: 2px; flex: 1; border-radius: 999px; background: var(--border); margin: 0 4px; }
.stepper-line.done { background: var(--gold); }

/* ---------- Misc UI blocks ---------- */
.stat-tile { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1rem; text-align: center; transition: .2s; }
.stat-tile:hover { border-color: color-mix(in oklab, var(--gold) 60%, transparent); box-shadow: var(--shadow-elegant); }
.testimonial-card { position: relative; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.icon-circle-gold { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in oklab, var(--gold) 15%, transparent); color: var(--gold); }
.icon-square-gold { display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; background: color-mix(in oklab, var(--gold) 15%, transparent); color: var(--gold); }
.icon-square-navy { display: inline-flex; align-items: center; justify-content: center; border-radius: .8rem; background: var(--primary); color: var(--primary-foreground); }
.hover-lift { transition: transform .3s, box-shadow .3s, border-color .3s; }
.hover-lift:hover { transform: translateY(-4px); }
.glass-panel { border-radius: 1.5rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); backdrop-filter: blur(16px); }

.fw-black { font-weight: 900; }

.hero-media-wrap { position: relative; overflow: hidden; isolation: isolate; }
.hero-media-wrap .hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-media-wrap .hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, color-mix(in oklab, var(--primary) 85%, transparent), color-mix(in oklab, var(--primary) 60%, transparent), color-mix(in oklab, var(--primary) 90%, transparent)); }

/* An iframe can't object-fit, so it's oversized and centred instead. */
.hero-media-wrap .hero-yt { overflow: hidden; pointer-events: none; background: var(--primary); }
.hero-media-wrap .hero-yt iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: 100vw; height: 56.25vw; /* 16:9 */
  min-height: 100%; min-width: 177.78vh; /* 16:9 */
  transform: translate(-50%, -50%);
}

.chip-outline-light { display: inline-flex; align-items: center; gap: .4rem; border-radius: .8rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); padding: .5rem .75rem; font-size: 12px; font-weight: 600; }
.chip-outline { display: inline-flex; align-items: center; gap: .4rem; border-radius: .8rem; border: 1px solid var(--border); background: var(--card); padding: .5rem .75rem; font-size: 12px; font-weight: 600; }

.thumb-btn { overflow: hidden; border-radius: .75rem; border: 2px solid transparent; opacity: .75; transition: .2s; padding: 0; background: none; }
.thumb-btn.active { border-color: var(--gold); opacity: 1; box-shadow: var(--shadow-gold); }
.thumb-btn img { height: 4rem; width: 100%; object-fit: cover; }

/* Mirrors sonner from the original design. */

.toast-item { background: var(--card); border: 1px solid var(--border); border-inline-start: 4px solid var(--gold); border-radius: .75rem; padding: .75rem 1rem; box-shadow: var(--shadow-elegant); font-size: .85rem; color: var(--foreground); }

/* RTL/LTR helpers */
[dir="rtl"] .flip-x { transform: scaleX(-1); }
.dir-ltr { direction: ltr; }

/* Utility: line clamps */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Table (compare page) */
.compare-table th { width: 11rem; background: color-mix(in oklab, var(--primary) 5%, var(--background)); font-size: 12px; font-weight: 700; color: var(--muted-foreground); padding: 1rem 1.25rem; border-inline-start: 1px solid var(--border); text-align: start; }
.compare-table td { padding: 1rem 1.25rem; border-inline-start: 1px solid var(--border); font-size: .9rem; font-weight: 500; }
.compare-table tr.highlight { background: color-mix(in oklab, var(--gold) 5%, transparent); }
.compare-table tr:nth-child(even):not(.highlight) { background: color-mix(in oklab, var(--primary) 3%, transparent); }

@media (max-width: 767.98px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* style.css القديم بيبني تدرّجاته وظلاله على --gold اللي لونه فعليًا
   سماوي (درجة 215)، فمكوّنات ke-* كانت بتطلع سماوية. إعادة تعريف
   المتغيّرات المشتقّة هنا بتصلّحها كلها من غير لمس ماركب الصفحات.
   ⚠️ يتشال مع style.css لما كل الصفحات تتحوّل للتصميم الجديد. */
:root {
    --primary-soft: oklch(0.34 0.09 265);

    --gradient-gold: linear-gradient(135deg,
        oklch(0.88 0.10 88) 0%,
        oklch(0.78 0.13 85) 50%,
        oklch(0.66 0.13 82) 100%);

    --gradient-hero: linear-gradient(135deg,
        oklch(0.16 0.07 265) 0%,
        oklch(0.26 0.09 265) 60%,
        oklch(0.36 0.08 262) 100%);

    --gradient-overlay: linear-gradient(180deg,
        oklch(0.18 0.05 265 / 0.25) 0%,
        oklch(0.18 0.05 265 / 0.88) 100%);

    --shadow-soft: 0 4px 20px -4px oklch(0.22 0.09 265 / 0.18);
    --shadow-gold: 0 12px 34px -12px oklch(0.78 0.13 85 / 0.50);

    --ring: oklch(0.78 0.13 85);
}

/* الأزرار العائمة على الموبايل: «اسأل عون» دايرة أيقونة بنفس مقاس الواتساب (كانت كبسولة بنص
   بتغطي المحتوى)، والاتنين بيختفوا وانت بتكتب فى فورم أو عند الفوتر (mk-fab-off — footer.blade.php) */
@media (max-width: 640px) {
    .awn-launcher { width: 52px; height: 52px; padding: 0 !important; justify-content: center; gap: 0; }
    .awn-launcher > span:not(.awn-launcher-badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.floating-wa, .awn-launcher { transition: opacity .2s ease, transform .2s ease; }
html.mk-fab-off .floating-wa, html.mk-fab-off .awn-launcher { opacity: 0; transform: translateY(14px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .floating-wa, .awn-launcher { transition: none; } }

/* RTL — حقول الإيميل/الرابط/الجوال: المتصفح بيفرض عليها direction:ltr، فـ text-align:start
   كان بيرمي البليس هولدر والكتابة فى أقصى الشمال. فى العربي كل الحقول يمين (الإيميل نفسه
   بيفضل يتكتب LTR بس محاذي يمين)، والبليس هولدر العربي بيتقري صح من اليمين. */
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="url"], html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"], html[dir="rtl"] input[type="search"], html[dir="rtl"] input[type="password"] { text-align: right; }
html[dir="rtl"] input[type="email"]:placeholder-shown, html[dir="rtl"] input[type="url"]:placeholder-shown,
html[dir="rtl"] input[type="tel"]:placeholder-shown { direction: rtl; }
html[dir="rtl"] input::placeholder, html[dir="rtl"] textarea::placeholder { text-align: right; }
