/* =========================================================
   Memphis for Advertising — App UI
   Mobile-first, app-like, RTL/LTR, light/dark
   ========================================================= */
:root {
  --navy: #0b132b;
  --primary: #7b2cbf;
  --primary-2: #9d4edd;
  --primary-soft: rgba(123, 44, 191, .10);
  --grad: linear-gradient(135deg, #0b132b 0%, #3a1a6e 55%, #7b2cbf 100%);
  --grad-btn: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);

  --bg: #f5f3fb;
  --surface: #ffffff;
  --surface-2: #f8f6fd;
  --text: #0f172a;
  --muted: #64748b;
  --border: #ebe6f5;
  --shadow: 0 8px 30px rgba(43, 18, 84, .07);
  --shadow-lg: 0 20px 50px rgba(43, 18, 84, .14);
  --appbar: rgba(255, 255, 255, .82);

  --success: #16a34a; --success-bg: #dcfce7;
  --warning: #d97706; --warning-bg: #fef3c7;
  --danger: #dc2626;  --danger-bg: #fee2e2;
  --info: #0284c7;    --info-bg: #e0f2fe;
  --primary-bg: #f3e8ff;

  --radius: 20px;
  --radius-sm: 14px;
  --nav-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #060914;
  --surface: #0f1530;
  --surface-2: #151d3d;
  --text: #f1f5f9;
  --muted: #9aa6c2;
  --border: #1f2a4f;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  --appbar: rgba(10, 14, 32, .82);
  --primary-soft: rgba(157, 78, 221, .16);
  --success-bg: rgba(22, 163, 74, .16);
  --warning-bg: rgba(217, 119, 6, .16);
  --danger-bg: rgba(220, 38, 38, .16);
  --info-bg: rgba(2, 132, 199, .16);
  --primary-bg: rgba(157, 78, 221, .18);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Kufam', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  transition: background .3s, color .3s;
}
a { color: var(--primary); text-decoration: none; }
[data-theme="dark"] a { color: #c39bf0; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { margin: 0 0 .4em; line-height: 1.35; font-weight: 800; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.bold { font-weight: 800; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.center { text-align: center; }
.hidden { display: none !important; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 14px; padding-bottom: 20px; }
.narrow { max-width: 520px; }

/* ---------------- App bar ---------------- */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--appbar);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.appbar .container { display: flex; align-items: center; gap: 10px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 900; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 13px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(123, 44, 191, .35); overflow: hidden; flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-text { line-height: 1.15; }
.brand-text b { display: block; font-size: 1rem; letter-spacing: .5px; }
.brand-text span { font-size: .68rem; color: var(--muted); font-weight: 600; }
.appbar-actions { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 13px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text) !important;
  display: grid; place-items: center; font-size: 1.1rem; cursor: pointer; transition: .2s;
  font-family: inherit; font-weight: 800; font-size: .8rem;
}
.icon-btn i { font-size: 1.1rem; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary) !important; }
.dot-badge {
  position: absolute; top: -5px; inset-inline-end: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--surface);
}
.desk-nav { display: none; gap: 4px; margin-inline-start: 18px; }
.desk-nav a {
  color: var(--muted); font-weight: 700; padding: 8px 14px; border-radius: 12px; font-size: .92rem; transition: .2s;
}
.desk-nav a:hover, .desk-nav a.active { color: var(--primary); background: var(--primary-soft); }
[data-theme="dark"] .desk-nav a.active, [data-theme="dark"] .desk-nav a:hover { color: #d5b4ff; }

/* ---------------- Bottom navigation (mobile app) ---------------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--appbar); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: .7rem; font-weight: 700; position: relative; padding-top: 4px;
}
.bottom-nav a i { font-size: 1.35rem; transition: .25s; }
.bottom-nav a.active { color: var(--primary); }
[data-theme="dark"] .bottom-nav a.active { color: #c79cff; }
.bottom-nav a.active::before {
  content: ''; position: absolute; top: -9px; width: 28px; height: 4px; border-radius: 4px; background: var(--grad-btn);
}
.bottom-nav .fab {
  width: 58px; height: 58px; margin: -30px auto 0; border-radius: 20px; background: var(--grad-btn);
  color: #fff !important; display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(123, 44, 191, .45); border: 4px solid var(--bg);
}
.bottom-nav .fab i { font-size: 1.5rem; }
.bottom-nav .fab-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; color: var(--muted); font-weight: 700; }
.bottom-nav .nav-badge {
  position: absolute; top: -2px; inset-inline-start: calc(50% + 6px); background: #ef4444; color: #fff;
  font-size: .62rem; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}

@media (min-width: 992px) {
  body { padding-bottom: 0; font-size: 16px; }
  .bottom-nav { display: none; }
  .desk-nav { display: flex; }
  .appbar .container { height: 74px; }
  .page { padding-top: 28px; padding-bottom: 50px; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 15px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: .95rem; transition: .2s; line-height: 1.2;
  background: var(--surface-2); color: var(--text) !important; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-btn); color: #fff !important; box-shadow: 0 8px 20px rgba(123, 44, 191, .3); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(123, 44, 191, .45); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff !important; }
.btn-light { background: #fff; color: var(--navy) !important; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text) !important; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary) !important; }
.btn-soft { background: var(--primary-soft); color: var(--primary) !important; }
[data-theme="dark"] .btn-soft { color: #d5b4ff !important; }
.btn-danger { background: var(--danger-bg); color: var(--danger) !important; }
.btn-success { background: var(--success); color: #fff !important; }
.btn-whatsapp { background: #25d366; color: #fff !important; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .82rem; border-radius: 11px; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 18px; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--grad);
  color: #fff; padding: 34px 22px 30px; margin-top: 6px; box-shadow: var(--shadow-lg);
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7;
  animation: float 9s ease-in-out infinite alternate;
}
.hero::before { width: 240px; height: 240px; background: #9d4edd; top: -60px; inset-inline-end: -40px; }
.hero::after { width: 200px; height: 200px; background: #2563eb; bottom: -80px; inset-inline-start: -50px; opacity: .45; animation-delay: -4s; }
@keyframes float { to { transform: translate(30px, 25px) scale(1.15); } }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2); padding: 6px 12px; border-radius: 30px; font-size: .78rem; font-weight: 700;
}
.hero h1 { font-size: clamp(1.7rem, 6vw, 3.2rem); font-weight: 900; margin: 14px 0 6px; }
.hero .sub { color: #e6c9ff; font-weight: 800; font-size: clamp(1rem, 3vw, 1.35rem); margin-bottom: 10px; }
.hero p { color: rgba(255,255,255,.85); max-width: 640px; font-size: .95rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.hero-stats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 12px 6px; text-align: center; }
.hero-stats b { display: block; font-size: 1.35rem; font-weight: 900; }
.hero-stats span { font-size: .72rem; opacity: .85; }
@media (min-width: 992px) {
  .hero { padding: 70px 56px 56px; border-radius: 36px; }
  .hero p { font-size: 1.08rem; }
  .hero-stats { max-width: 520px; }
}

/* ---------------- Sections ---------------- */
.section { margin-top: 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.2rem; margin: 0; }
.section-head .kicker { color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
[data-theme="dark"] .section-head .kicker { color: #c79cff; }
.section-head a { font-size: .85rem; font-weight: 800; white-space: nowrap; }
@media (min-width: 992px) { .section { margin-top: 56px; } .section-head h2 { font-size: 1.6rem; } }

/* ---------------- Cards ---------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card-title { font-size: 1.02rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--primary); }

.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 18px; } }

/* Category chips (horizontal scroll like apps) */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 30px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; font-weight: 700; font-size: .85rem;
  scroll-snap-align: start; transition: .2s;
}
.chip i { color: var(--c, var(--primary)); }
.chip.active { background: var(--grad-btn); color: #fff !important; border-color: transparent; box-shadow: 0 6px 16px rgba(123,44,191,.3); }
.chip.active i { color: #fff; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .cat-tiles { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.cat-tile {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 16px 14px; color: var(--text) !important; transition: .25s; min-height: 128px;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow);
}
.cat-tile::after {
  content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: var(--c);
  opacity: .1; inset-inline-end: -30px; bottom: -40px; transition: .3s;
}
.cat-tile:hover { transform: translateY(-4px); border-color: var(--c); }
.cat-tile:hover::after { transform: scale(1.4); }
.cat-tile .ic {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 1.3rem;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c);
}
.cat-tile b { font-size: .9rem; line-height: 1.4; margin-top: 12px; }
.cat-tile span { font-size: .72rem; color: var(--muted); }

/* Service card */
.svc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; color: var(--text) !important; transition: .25s; box-shadow: var(--shadow); height: 100%;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-2); }
.svc-media {
  position: relative; aspect-ratio: 16/10; background: var(--grad); display: grid; place-items: center; overflow: hidden;
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media .big-ic { font-size: 3rem; color: rgba(255,255,255,.9); }
.svc-media .pattern { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.5px); background-size: 16px 16px; }
.svc-media .tag {
  position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
  color: #fff; font-size: .7rem; padding: 4px 10px; border-radius: 20px; font-weight: 700;
}
.svc-media .star { position: absolute; top: 10px; inset-inline-end: 10px; background: #fbbf24; color: #78350f; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; font-size: .85rem; }
.svc-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc-body h3 { font-size: .98rem; margin: 0; }
.svc-body p { font-size: .82rem; color: var(--muted); margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 6px; }
.price { font-weight: 900; color: var(--primary); font-size: .9rem; }
[data-theme="dark"] .price { color: #c79cff; }
.go { width: 34px; height: 34px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
[dir="rtl"] .go i, [dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* Horizontal scrollers (featured) */
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; }
@media (min-width: 640px) { .h-scroll { grid-auto-columns: 42%; } }
@media (min-width: 992px) { .h-scroll { grid-auto-columns: calc(25% - 14px); gap: 18px; } }

/* List items (settings-like rows) */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text) !important; border-bottom: 1px solid var(--border); transition: .15s; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--surface-2); }
.list-item .li-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
[data-theme="dark"] .list-item .li-ic { color: #c79cff; }
.list-item .li-body { flex: 1; min-width: 0; }
.list-item .li-body b { display: block; font-size: .92rem; }
.list-item .li-body span { font-size: .78rem; color: var(--muted); }
.list-item .chev { color: var(--muted); }
[dir="rtl"] .list-item .chev { transform: scaleX(-1); }
.list-item.unread { background: var(--primary-soft); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--primary-bg); color: var(--primary); }
[data-theme="dark"] .badge-primary { color: #d5b4ff; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: var(--surface-2); color: var(--muted); }

/* ---------------- About / values ---------------- */
.value-card { text-align: start; }
.value-card .vic { width: 50px; height: 50px; border-radius: 16px; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 12px; box-shadow: 0 8px 18px rgba(123,44,191,.3); }
.value-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Approach timeline */
.steps { display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 992px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px; display: flex; gap: 14px; box-shadow: var(--shadow); }
@media (min-width: 992px) { .step { flex-direction: column; } }
.step .num { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; }
.step h4 { font-size: .98rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .85rem; margin: 0; }

/* Partners marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
@keyframes marquee-rtl { to { transform: translateX(calc(50% + 7px)); } }
.partner { width: 150px; height: 86px; background: #fff; border: 1px solid var(--border); border-radius: 18px; display: grid; place-items: center; padding: 10px; flex-shrink: 0; }
.partner img { max-height: 62px; object-fit: contain; }
.partner span { color: #0b132b; font-weight: 800; font-size: .85rem; text-align: center; }

/* Portfolio */
.pf-item { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; background: var(--grad); display: block; color: #fff !important; box-shadow: var(--shadow); }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.pf-item:hover img { transform: scale(1.06); }
.pf-item .pf-cap { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(5,8,20,.88)); }
.pf-item .pf-cap b { display: block; font-size: .95rem; }
.pf-item .pf-cap span { font-size: .74rem; opacity: .8; }
.pf-item .play { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.25); backdrop-filter: blur(6px); display: grid; place-items: center; }
.pf-item .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; opacity: .7; }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 14px; }
.label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 16px; transition: .2s; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary-2); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.textarea { min-height: 110px; resize: vertical; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--muted); pointer-events: none; }
.input-icon .input { padding-inline-start: 42px; }
.input-icon .toggle-pass { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; font-size: 1.05rem; }
.phone-row { display: flex; gap: 8px; direction: ltr; }
.phone-row .select { width: 130px; flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.help { font-size: .75rem; color: var(--muted); margin-top: 5px; }
.err { font-size: .78rem; color: var(--danger); margin-top: 5px; font-weight: 700; }

/* OTP inputs */
.otp { display: flex; gap: 8px; justify-content: center; direction: ltr; margin: 18px 0; }
.otp input {
  width: 48px; height: 58px; text-align: center; font-size: 1.5rem; font-weight: 900; border-radius: 15px;
  border: 2px solid var(--border); background: var(--surface-2); color: var(--text); font-family: inherit; outline: none; transition: .2s;
}
.otp input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); transform: translateY(-2px); }
@media (max-width: 360px) { .otp input { width: 40px; height: 50px; } }

/* Auth screens */
.auth-wrap { min-height: calc(100vh - 160px); display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.auth-card { width: 100%; max-width: 440px; }
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-head .ic { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 22px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 12px 30px rgba(123,44,191,.35); }
.auth-head h1 { font-size: 1.4rem; }
.auth-head p { color: var(--muted); font-size: .9rem; margin: 0; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Steps indicator for verification */
.progress-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.progress-steps span { flex: 1; height: 5px; border-radius: 5px; background: var(--border); }
.progress-steps span.on { background: var(--grad-btn); }

/* ---------------- Booking: date strip & slots ---------------- */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-pill {
  flex-shrink: 0; width: 64px; padding: 10px 0; border-radius: 18px; text-align: center; cursor: pointer;
  background: var(--surface-2); border: 1.5px solid var(--border); transition: .2s; user-select: none;
}
.date-pill small { display: block; font-size: .68rem; color: var(--muted); font-weight: 700; }
.date-pill b { display: block; font-size: 1.25rem; font-weight: 900; }
.date-pill.off { opacity: .4; pointer-events: none; }
.date-pill.active { background: var(--grad-btn); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(123,44,191,.35); }
.date-pill.active small { color: rgba(255,255,255,.85); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .slots { grid-template-columns: repeat(5, 1fr); } }
.slot { padding: 11px 4px; border-radius: 13px; text-align: center; font-weight: 800; font-size: .85rem; cursor: pointer; background: var(--surface-2); border: 1.5px solid var(--border); transition: .2s; }
.slot.off { opacity: .35; text-decoration: line-through; pointer-events: none; }
.slot.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Service details */
.svc-hero { position: relative; border-radius: 28px; overflow: hidden; background: var(--grad); aspect-ratio: 16/9; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.svc-hero img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero .big-ic { font-size: 5rem; color: rgba(255,255,255,.9); }
.svc-hero .pattern { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.feature-list li i { color: var(--success); font-size: 1.1rem; margin-top: 2px; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 55;
  background: var(--appbar); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border); padding: 10px 16px;
}
.sticky-cta .container { display: flex; align-items: center; gap: 12px; padding: 0; }
@media (min-width: 992px) { .sticky-cta { position: static; background: none; border: 0; padding: 0; backdrop-filter: none; } }
.layout-2 { display: grid; gap: 18px; }
@media (min-width: 992px) { .layout-2 { grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; } .layout-2 .side { position: sticky; top: 96px; } }

/* Profile header */
.profile-head { background: var(--grad); color: #fff; border-radius: 28px; padding: 22px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.profile-head::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: #9d4edd; filter: blur(60px); opacity: .6; top: -80px; inset-inline-end: -60px; }
.profile-head > * { position: relative; z-index: 1; }
.avatar { width: 62px; height: 62px; border-radius: 20px; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; flex-shrink: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.mini-stats div { background: rgba(255,255,255,.12); border-radius: 15px; padding: 10px; text-align: center; }
.mini-stats b { display: block; font-size: 1.3rem; }
.mini-stats span { font-size: .72rem; opacity: .85; }

/* Booking card */
.bk-card { display: flex; gap: 12px; align-items: flex-start; }
.bk-card .bk-ic { width: 50px; height: 50px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.bk-meta i { color: var(--primary-2); }

/* Status tracker */
.tracker { display: flex; justify-content: space-between; position: relative; margin: 10px 0 4px; }
.tracker::before { content: ''; position: absolute; top: 15px; left: 8%; right: 8%; height: 3px; background: var(--border); }
.tracker .ts { position: relative; z-index: 1; text-align: center; flex: 1; font-size: .68rem; color: var(--muted); font-weight: 700; }
.tracker .ts i { width: 32px; height: 32px; margin: 0 auto 4px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); display: grid; place-items: center; font-size: .85rem; }
.tracker .ts.done { color: var(--primary); }
.tracker .ts.done i { background: var(--grad-btn); color: #fff; border-color: transparent; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .9rem; }
.msg small { display: block; font-size: .68rem; opacity: .7; margin-top: 4px; }
.msg.me { align-self: flex-end; background: var(--grad-btn); color: #fff; border-end-end-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-end-start-radius: 6px; }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.chat-form .input { flex: 1; }

/* Toasts */
.toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 200; width: min(94vw, 440px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .88rem; font-weight: 700;
  animation: toastIn .35s cubic-bezier(.2,.9,.3,1.3);
}
.toast i { font-size: 1.2rem; }
.toast.success i { color: var(--success); } .toast.error i { color: var(--danger); } .toast.warning i { color: var(--warning); } .toast.info i { color: var(--info); }
.toast.success { border-inline-start: 4px solid var(--success); } .toast.error { border-inline-start: 4px solid var(--danger); }
.toast.warning { border-inline-start: 4px solid var(--warning); } .toast.info { border-inline-start: 4px solid var(--info); }
.toast .x { margin-inline-start: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.toast.hide { opacity: 0; transform: translateY(-10px); transition: .3s; }

/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 28px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 2.2rem; }
.empty h3 { color: var(--text); font-size: 1.05rem; }

/* Segmented tabs */
.seg { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); padding: 5px; border-radius: 16px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { flex: 1; text-align: center; padding: 9px 12px; border-radius: 12px; color: var(--muted); font-weight: 800; font-size: .82rem; white-space: nowrap; }
.seg a.active { background: var(--grad-btn); color: #fff; }

/* Contact tiles */
.contact-tile { display: flex; align-items: center; gap: 12px; }
.contact-tile .ct-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--grad-btn); flex-shrink: 0; }

/* Install banner */
.install-banner { display: none; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 14px; margin-top: 12px; box-shadow: var(--shadow); }
.install-banner.show { display: flex; }

/* Footer */
.site-footer { margin-top: 50px; background: #050814; color: rgba(255,255,255,.7); padding: 36px 0 24px; border-top: 3px solid var(--primary); }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.socials a { width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 1.05rem; }
.socials a:hover { background: var(--primary); }

/* Floating WhatsApp */
.wa-float { position: fixed; inset-inline-end: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 58; width: 52px; height: 52px; border-radius: 18px; background: #25d366; color: #fff !important; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 25px rgba(37,211,102,.4); }
@media (min-width: 992px) { .wa-float { bottom: 24px; } }
body.has-cta .wa-float { display: none; }
@media (min-width: 992px) { body.has-cta .wa-float { display: grid; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero::before, .hero::after, .marquee-track { animation: none; } }

/* Search */
.search-box { position: relative; }
.search-box i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 16px; color: var(--muted); }
.search-box .input { padding-inline-start: 44px; border-radius: 18px; background: var(--surface); }

/* Stars rating */
.rating { display: flex; gap: 4px; direction: ltr; justify-content: center; }
.rating input { display: none; }
.rating label { font-size: 2rem; color: var(--border); cursor: pointer; }
.rating label:hover, .rating label:hover ~ label, .rating input:checked ~ label { color: #fbbf24; }
.rating { flex-direction: row-reverse; }
.stars-view { color: #fbbf24; }

/* Small-screen tweaks */
.d-desk { display: none !important; }
@media (min-width: 992px) { .d-desk { display: grid !important; } }
@media (max-width: 400px) {
  .brand-text span { display: none; }
  .appbar-actions { gap: 4px; }
  .icon-btn { width: 36px; height: 36px; border-radius: 12px; }
}
button.list-item { color: var(--text) !important; }

/* =========================================================
   ADMIN
   ========================================================= */
body.admin { padding-bottom: 0; }
.adm { display: flex; min-height: 100vh; }
.adm-side {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 270px; z-index: 90;
  background: #0a0f24; color: rgba(255,255,255,.75); display: flex; flex-direction: column;
  transform: translateX(-105%); transition: transform .3s ease; overflow-y: auto;
}
[dir="rtl"] .adm-side { transform: translateX(105%); }
.adm-side.open { transform: none !important; }
.adm-side .brand { color: #fff !important; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.adm-side .brand-text span { color: rgba(255,255,255,.5); }
.adm-nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.adm-nav .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.35); padding: 14px 12px 6px; font-weight: 800; }
.adm-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; color: rgba(255,255,255,.72); font-weight: 700; font-size: .9rem; transition: .2s; }
.adm-nav a i { font-size: 1.1rem; width: 22px; text-align: center; }
.adm-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-nav a.active { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 20px rgba(123,44,191,.35); }
.adm-nav a .cnt { margin-inline-start: auto; background: #ef4444; color: #fff; font-size: .68rem; padding: 1px 8px; border-radius: 10px; }
.adm-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 85; display: none; }
.adm-backdrop.show { display: block; }
.adm-main { flex: 1; min-width: 0; }
.adm-top { position: sticky; top: 0; z-index: 50; background: var(--appbar); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.adm-top h1 { font-size: 1.05rem; margin: 0; }
.adm-content { padding: 18px 16px 40px; max-width: 1400px; }
@media (min-width: 1100px) {
  .adm-side { transform: none !important; }
  .adm-main { margin-inline-start: 270px; }
  .adm-top .menu-btn { display: none; }
  .adm-content { padding: 26px 28px 50px; }
}

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 992px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat .s-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: var(--c, var(--primary)); margin-bottom: 10px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.2; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 700; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: start; padding: 13px 14px; background: var(--surface-2); color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 800; border-bottom: 1px solid var(--border); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface-2); }
.thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--grad); display: grid; place-items: center; color: #fff; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--border); padding: 10px 4px; }
  .table td { border: 0; padding: 6px 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; text-align: end; }
  .table td::before { content: attr(data-label); font-weight: 800; color: var(--muted); font-size: .75rem; text-align: start; }
  .table td.no-label::before { display: none; }
}
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 160px; flex: 1; padding: 10px 14px; }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: .88rem; }
.switch input { appearance: none; width: 46px; height: 26px; background: var(--border); border-radius: 20px; position: relative; cursor: pointer; transition: .2s; flex-shrink: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { inset-inline-start: 23px; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 180px; overflow-y: auto; padding: 4px; }
.icon-pick label { cursor: pointer; }
.icon-pick input { display: none; }
.icon-pick span { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); font-size: 1.15rem; background: var(--surface-2); }
.icon-pick input:checked + span { background: var(--grad-btn); color: #fff; border-color: transparent; }
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(5,8,20,.6); backdrop-filter: blur(4px); display: none; align-items: flex-end; justify-content: center; }
.modal.show { display: flex; }
.modal-box { background: var(--surface); width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 20px; animation: sheetUp .3s ease; }
@media (min-width: 768px) { .modal { align-items: center; } .modal-box { border-radius: 26px; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart .bar div { width: 100%; max-width: 38px; background: var(--grad-btn); border-radius: 8px 8px 4px 4px; min-height: 4px; transition: height .6s; }
.bar-chart .bar span { font-size: .68rem; color: var(--muted); font-weight: 700; }
.bar-chart .bar em { font-style: normal; font-size: .72rem; font-weight: 800; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: .85rem; color: var(--text); }
.pagination .on { background: var(--grad-btn); color: #fff; border-color: transparent; }
