:root {
  --bg: #0c0d10;
  --bg2: #131519;
  --card: #191c22;
  --card-hi: #21252d;
  --line: #2b2f38;
  --text: #f2f3f5;
  --muted: #9aa0ab;
  --red: #e01e26;
  --red-dark: #a5121a;
  --red-soft: rgba(224, 30, 38, .14);
  --silver: #c9ccd3;
  --green: #2fbf71;
  --amber: #e8a13c;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(0,0,0,.45), 0 3px 8px rgba(0,0,0,.35);
  --shadow-red: 0 12px 30px rgba(224,30,38,.30), 0 3px 8px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Cairo', system-ui, sans-serif;
  background:
    radial-gradient(1100px 480px at 85% -8%, rgba(224,30,38,.10), transparent 60%),
    radial-gradient(900px 420px at 0% 108%, rgba(60,70,90,.18), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12,13,16,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-top) * 0);
}
.brand { display: flex; align-items: center; gap: 12px; max-width: 480px; margin: 0 auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 17px; letter-spacing: .5px;
  background: linear-gradient(145deg, #f22630, var(--red-dark) 70%);
  box-shadow: var(--shadow-red), inset 0 1px 0 rgba(255,255,255,.28);
  transform: translateZ(0);
}
.brand-name { font-weight: 900; font-size: 18px; }
.brand-sub { font-size: 12px; color: var(--muted); }

main { max-width: 480px; margin: 0 auto; padding: 16px 16px 0; }
.view { animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card, .hero, .svc {
  background: linear-gradient(160deg, var(--card-hi), var(--card) 55%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 14px;
}
.depth {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  position: relative;
}
h1 { font-size: 22px; font-weight: 900; margin: 0 0 6px; }
h2 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
p { line-height: 1.75; margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* Home hero */
.hero { overflow: hidden; padding: 28px 22px 24px; }
.hero-glow {
  position: absolute; inset: -40% 40% 40% -20%;
  background: radial-gradient(closest-side, rgba(224,30,38,.22), transparent 70%);
  pointer-events: none;
}
.hero-title { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.hero-sub { color: var(--silver); line-height: 1.8; margin-bottom: 18px; max-width: 30ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.about { margin-top: 14px; }

/* Saved requests chips */
.req-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: right; cursor: pointer;
  background: linear-gradient(160deg, var(--card-hi), var(--card));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; margin: 0 0 10px; color: var(--text);
  font-family: inherit; font-size: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .12s ease, border-color .12s ease;
}
.req-chip:active { transform: translateY(2px) scale(.99); border-color: var(--red); }
.req-chip .rc-id { font-weight: 800; direction: ltr; }
.req-chip .rc-device { color: var(--muted); font-size: 12.5px; }
.req-chip .rc-status { font-size: 12.5px; font-weight: 700; color: var(--red); background: var(--red-soft); border-radius: 99px; padding: 4px 11px; white-space: nowrap; }
.section-title { font-size: 15px; font-weight: 800; margin: 18px 2px 10px; color: var(--silver); }

/* Forms */
label { display: block; font-size: 13.5px; font-weight: 700; color: var(--silver); margin-bottom: 14px; }
input[type=text], input[type=tel], input[type=number], input[type=email], input[type=password], textarea, select {
  width: 100%; margin-top: 7px; padding: 12px 14px;
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%239AA0AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
  padding-left: 36px; cursor: pointer;
}
.group { border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 6px; margin: 0 0 14px; }
.group legend { font-size: 14.5px; font-weight: 800; color: var(--red); padding: 0 8px; }

.pay { border: 0; padding: 0; margin: 4px 0 14px; }
.pay legend { font-size: 14.5px; font-weight: 800; color: var(--red); padding: 0 8px 0 0; margin-bottom: 10px; }
.pay-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 600; color: var(--text); }
.pay-opt input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.pay-opt span {
  flex: 1; padding: 11px 14px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.pay-opt input:checked + span { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.pay-opt.disabled { opacity: .55; }
.pay-opt em { font-style: normal; font-size: 12px; color: var(--amber); }

/* Buttons */
.btn {
  font-family: inherit; font-size: 15.5px; font-weight: 800; letter-spacing: .2px;
  padding: 13px 24px; border-radius: 14px; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn.primary {
  background: linear-gradient(180deg, #ff3d47 0%, #e01e26 48%, #b3121a 100%);
  color: #fff; border-color: rgba(255,255,255,.14);
  box-shadow: 0 10px 24px rgba(224,30,38,.35), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.28);
}
.btn.primary:hover { box-shadow: 0 14px 32px rgba(224,30,38,.45), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.28); }
.btn.ghost {
  background: linear-gradient(180deg, #1b1e25, #121419); color: var(--text); border-color: #31363f;
  box-shadow: 0 4px 12px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
}
.btn.ghost:hover { border-color: #3c434f; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--red-soft), 0 10px 24px rgba(224,30,38,.35); }
#book-form .btn.primary, #track-form .btn.primary { width: 100%; margin-top: 6px; }

/* Map */
.map-block { margin: 4px 0 14px; }
.map-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
#map { height: 230px; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.map-actions { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.map-actions .btn { font-size: 13px; padding: 9px 14px; }
.attrib { font-size: 10.5px; color: var(--muted); margin-top: 5px; }

/* States */
.error {
  background: rgba(224,30,38,.12); color: #ff9b9e;
  border: 1px solid rgba(224,30,38,.35); border-radius: 12px;
  padding: 11px 14px; margin: 12px 0; font-size: 13.5px;
}
.success { border-color: rgba(47,191,113,.5); }
.success h2 { color: var(--green); }
.token { background: var(--bg2); padding: 6px 14px; border-radius: 10px; letter-spacing: 1.5px; font-size: 17px; border: 1px solid var(--line); display: inline-block; }
.success .btn { margin-top: 10px; margin-inline-end: 8px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 16px 0; }
.timeline li { display: flex; gap: 12px; padding: 9px 0; align-items: baseline; }
.timeline li::before {
  content: ''; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--line); flex-shrink: 0; transform: translateY(1.5px);
}
.timeline li.done::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 10px rgba(47,191,113,.5); }
.timeline li.current::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 12px rgba(224,30,38,.6); }
.timeline li.current { font-weight: 800; color: var(--red); }
.timeline li.future { color: var(--muted); }
.pay-status { padding: 11px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-weight: 700; }
.pay-status.paid { border-color: rgba(47,191,113,.5); color: var(--green); }

/* Cost estimate (customer) */
.cost-card { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg2); }
.cost-card h3 { margin: 0 0 8px; font-size: 15px; }
.cost-amount { font-size: 26px; font-weight: 900; color: var(--amber); margin-bottom: 6px; }
.cost-currency { font-size: 15px; font-weight: 700; }
#cost-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cost-state { font-weight: 700; font-size: 14px; margin-top: 10px; }
.cost-state.ok { color: var(--green); }
.cost-state.bad { color: #ff9b9e; }
.cancel-card { margin-top: 14px; }
.btn.danger { border-color: rgba(224,30,38,.45); color: #ff9b9e; }

/* Cost estimate + cancellation review (admin) */
.cost-box { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg2); }
.cost-title { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.cost-inputs { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; margin-top: 8px; align-items: center; }
.cancel-req-box { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid rgba(232,161,60,.45); background: rgba(232,161,60,.10); border-radius: 12px; padding: 10px 12px; }
.cancel-req-text { font-weight: 700; color: var(--amber); }
@media (max-width: 520px) { .cost-inputs { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc {
  font-family: inherit; color: var(--text); cursor: pointer; text-align: right;
  display: flex; flex-direction: column; gap: 7px; padding: 18px 16px; margin: 0;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
  transform-style: preserve-3d; perspective: 500px;
}
.svc:hover { transform: translateY(-3px); border-color: rgba(224,30,38,.45); box-shadow: 0 18px 38px rgba(0,0,0,.5), 0 0 0 1px rgba(224,30,38,.25); }
.svc:active { transform: translateY(1px) scale(.985); }
.svc-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 14px rgba(224,30,38,.18);
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-name { font-weight: 800; font-size: 14.5px; }
.svc-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: flex; justify-content: space-around;
  background: rgba(16,18,22,.92); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 700;
  padding: 6px 14px; border-radius: 12px;
  transition: color .15s ease, background .15s ease, transform .1s ease;
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn:active { transform: translateY(2px); }
.nav-btn.active { color: var(--red); background: var(--red-soft); }

@media (min-width: 640px) {
  body { padding-bottom: 84px; }
  main { padding-top: 24px; }
}
.leaflet-container { font-family: inherit; }

/* Admin dashboard */
#dash-view .card, .req { background: linear-gradient(160deg, var(--card-hi), var(--card) 55%); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 14px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 14px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; }
.dash-actions { display: flex; gap: 8px; }
.req-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.req-id { font-weight: 900; font-size: 17px; direction: ltr; }
.badge { font-size: 12.5px; font-weight: 800; color: var(--red); background: var(--red-soft); border-radius: 99px; padding: 5px 12px; }
.d-name { font-weight: 800; font-size: 15.5px; margin: 0; }
.d-phone { direction: ltr; text-align: right; color: var(--silver); margin: 2px 0; font-weight: 600; }
.d-device, .d-issue, .d-address, .d-landmark, .d-pay, .d-created, .d-token { color: var(--muted); font-size: 13.5px; margin: 3px 0; line-height: 1.7; }
.d-token { direction: ltr; text-align: right; font-size: 12px; letter-spacing: 1px; }
.mini-map { height: 150px; border-radius: 12px; border: 1px solid var(--line); margin: 10px 0; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.req-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.status-sel { flex: 1; min-width: 170px; padding: 10px 12px; background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 11px; font-family: inherit; font-size: 14px; font-weight: 600; }
.pay-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--silver); margin: 0; }
.pay-check input { accent-color: var(--green); width: 17px; height: 17px; }
.save-status { font-size: 13.5px; padding: 10px 16px; }
#login-view { max-width: 420px; margin: 40px auto 0; }
#login-view .btn.primary { width: 100%; margin-top: 6px; }
body:has(#login-view:not([hidden])) { padding-bottom: 0; }

/* v3.1 polish */
#track-result { scroll-margin-top: 96px; }
.view { scroll-margin-top: 80px; }
.svc-desc { color: #c3c7cf; font-size: 12.5px; }
.hero-art { display: block; width: 100%; height: auto; border-radius: 14px; margin: 0 0 16px; box-shadow: 0 14px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); border: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.step { background: linear-gradient(160deg, var(--card-hi), var(--card)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05); }
.step .n { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; font-size: 15px; background: var(--red-soft); color: var(--red); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 5px 12px rgba(224,30,38,.2); }
.step .t { font-size: 12px; font-weight: 700; color: var(--silver); line-height: 1.65; }

/* ---------- Contact row ---------- */
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pay-dest { font-size: 12.5px; color: var(--amber); margin: -2px 0 8px 34px; }

/* ---------- Chatbot ---------- */
#bot-fab {
  position: fixed; bottom: calc(96px + env(safe-area-inset-bottom)); left: 16px; z-index: 90;
  width: 56px; height: 56px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(145deg, #f22630, var(--red-dark) 70%);
  background: linear-gradient(145deg, color-mix(in srgb, var(--red) 115%, white 6%), var(--red-dark) 70%);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-red);
}
#bot-fab svg { width: 26px; height: 26px; }
#bot-panel {
  position: fixed; bottom: calc(96px + env(safe-area-inset-bottom)); left: 12px; z-index: 95;
  width: min(360px, calc(100vw - 24px)); height: min(480px, calc(100dvh - 180px));
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--card-hi), var(--card) 60%);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
.bot-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); position: relative; }
.bot-title { font-weight: 900; font-size: 15px; }
.bot-title::before { content: 'مساعد '; }
.bot-title::after { content: ' الآلي'; }
.bot-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
#bot-close {
  position: absolute; top: 10px; left: 12px; border: 0; background: none;
  color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1;
}
#bot-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.bot-msg {
  max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.8;
  white-space: pre-line; word-break: break-word;
}
.bot-msg.bot { background: var(--bg2); border: 1px solid var(--line); align-self: flex-start; border-start-start-radius: 4px; }
.bot-msg.user { background: var(--red); color: #fff; align-self: flex-end; border-start-end-radius: 4px; }
.bot-actions { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 92%; }
.bot-chip {
  background: var(--card-hi); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-family: inherit;
  cursor: pointer; text-decoration: none;
}
.bot-chip:hover { border-color: var(--red); }
#bot-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
#bot-input {
  flex: 1; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); padding: 9px 12px; font-family: inherit; font-size: 13.5px;
}
#bot-input:focus { outline: none; border-color: var(--red); }
.bot-send {
  width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; display: grid; place-items: center;
}
.bot-send svg { width: 18px; height: 18px; transform: scaleX(-1); }

/* ---------- Admin tabs & settings ---------- */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-tabs .tab-btn {
  flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-family: inherit; font-weight: 700;
  font-size: 13.5px; cursor: pointer;
}
.admin-tabs .tab-btn.active { background: var(--red-soft); border-color: var(--red); color: var(--text); }
.set-grid { display: grid; gap: 10px; }
.set-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: center; }
.set-actions { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.set-saved { color: var(--green); font-size: 13px; }
.svc-edit-row { display: grid; grid-template-columns: 1.2fr 1.6fr 0.8fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.mini-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 10px; padding: 7px 12px; font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.color-input { display: flex; gap: 10px; align-items: center; }
.color-input input[type=color] { width: 52px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 2px; }
@media (max-width: 520px) {
  .set-row { grid-template-columns: 1fr; }
  .svc-edit-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Feedback, history, details, receipt ---------- */
.fb-card { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.fb-stars { display: flex; gap: 4px; direction: ltr; margin-bottom: 8px; }
.fb-stars button { background: none; border: none; font-size: 30px; color: #4a4f5a; cursor: pointer; padding: 0 2px; line-height: 1; }
.fb-stars button.on { color: var(--amber); }
#fb-comment { width: 100%; margin-bottom: 8px; }
#wa-order { display: inline-block; text-decoration: none; text-align: center; margin-bottom: 8px; }
.details-edit { display: grid; gap: 8px; margin-top: 10px; }
.details-edit input { width: 100%; }
.fb-view { margin-top: 10px; color: var(--amber); font-size: 14px; }
.hist-box { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.hist-title { font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.hist-row { font-size: 13px; color: var(--muted); padding: 3px 0; }
.req-actions { flex-wrap: wrap; }
#receipt-print { display: none; }

/* Admin request details: label/value grid that stays tidy on narrow screens */
.req dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 14px; margin: 4px 0 0; }
.req dt { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.req dd { margin: 0; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }


/* Daily tips + FAQ cards */
.tips-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.tips-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; line-height: 1.7; }
.tips-list { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.tips-list li { font-size: 13.5px; line-height: 1.8; color: var(--silver); }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.faq-tabs .mini-btn { border-radius: 999px; padding: 8px 16px; background: linear-gradient(180deg, #1b1e25, #121419); border: 1px solid #31363f; color: #9aa0ab; font-weight: 700; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.faq-tabs .mini-btn.selected { background: linear-gradient(180deg, #ff3d47, #b3121a); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: 0 4px 14px rgba(224,30,38,.30); }
.faq-list details { background: #15161b; border: 1px solid #262a32; border-radius: 13px; padding: 2px 14px; margin: 8px 0; transition: border-color .15s ease; }
.faq-list details[open] { border-color: rgba(224,30,38,.38); }
.faq-list summary { font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "＋"; color: #e01e26; font-size: 16px; font-weight: 900; flex: 0 0 auto; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 10px; padding-top: 10px; border-top: 1px dashed #2c313a; font-size: 13px; line-height: 1.9; color: var(--silver); }


/* Cinematic polish: depth, light, coordinated red/black system */
.hero { position: relative; background: linear-gradient(155deg, #1a1b21 0%, #101116 55%, #17090b 100%); border: 1px solid #2a2c34; }
.hero-glow { position: absolute; inset: -40% -30% auto; height: 120%; background: radial-gradient(ellipse 60% 55% at 70% 18%, rgba(224,30,38,.28), transparent 70%); pointer-events: none; animation: heroGlow 7s ease-in-out infinite alternate; }
@keyframes heroGlow { from { opacity: .7; transform: translateY(0); } to { opacity: 1; transform: translateY(10px); } }
.hero-title { font-size: 26px; font-weight: 900; letter-spacing: -.2px; text-shadow: 0 2px 18px rgba(224,30,38,.25); }
.card, .req, .tips-card, .faq-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.35); }
.btn.primary { background: linear-gradient(160deg, #f2323b, #c00e16); box-shadow: 0 6px 18px rgba(224,30,38,.32), inset 0 1px 0 rgba(255,255,255,.22); transition: transform .12s ease, box-shadow .12s ease; }
.btn.primary:active { transform: translateY(1px) scale(.99); box-shadow: 0 2px 8px rgba(224,30,38,.25); }
.tips-title, .faq-card .tips-title { position: relative; padding-inline-start: 12px; }
.tips-title::before, .faq-card .tips-title::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #f2323b, #8f0a10); }


/* 3D nav icons */
.nav-btn img.nav-ic { width: 26px; height: 26px; opacity: .72; transition: opacity .15s ease, filter .15s ease; }
.nav-btn.active img.nav-ic { opacity: 1; filter: drop-shadow(0 0 7px rgba(224,30,38,.55)); }
.tips-wrap-note { list-style: none; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }

@media print {
  body > *:not(#receipt-print) { display: none !important; }
  #receipt-print { display: block; color: #000; background: #fff; direction: rtl; font-family: Cairo, sans-serif; padding: 24px; }
  #receipt-print h1 { font-size: 22px; margin: 0 0 4px; }
  #receipt-print h2 { font-size: 17px; margin: 14px 0 8px; }
  #receipt-print table { width: 100%; border-collapse: collapse; margin: 12px 0; }
  #receipt-print th, #receipt-print td { border: 1px solid #555; padding: 7px 9px; text-align: right; font-size: 13px; }
  #receipt-print th { width: 34%; background: #f0f0f0; }
  .rc-signs { margin-top: 44px; display: grid; gap: 30px; font-size: 13.5px; }
  .rc-muted { color: #555; font-size: 12.5px; }
}

/* 1.7 extras */
.announce{margin:14px 0;background:#1c1a14;border:1px solid #3a3324;color:#e8a13c;border-radius:14px;padding:12px 16px;font-size:14px;font-weight:700;text-align:center}
.stats-real{display:flex;align-items:center;gap:8px;justify-content:center;margin:14px 0;color:#c9cdd3;font-size:14px}
.stats-real b{color:#e8a13c;font-size:18px}
.stats-real svg{color:#e01e26}
#track-extras{display:grid;gap:10px;margin-bottom:12px}
.x-card{background:#171a20;border:1px solid #262a31;border-radius:14px;padding:14px 16px;display:grid;gap:8px}
.x-card .x-title{display:flex;align-items:center;gap:8px;font-weight:900;font-size:15px}
.x-card .x-title svg{color:#e01e26}
.x-card .x-body{font-size:14px;color:#c9cdd3;line-height:1.9}
.x-card.warranty .x-title svg{color:#e8a13c}
.x-card.expired{opacity:.75}
.x-card textarea{width:100%;background:#101318;border:1px solid #2c313a;color:#f2f3f5;border-radius:10px;padding:10px;font-family:inherit;resize:vertical}
.rate-row{display:flex;gap:6px}
.rate-star{background:none;border:0;font-size:30px;color:#3a3f48;cursor:pointer;padding:0 2px}
.rate-star.on{color:#e8a13c}
.stars .on{color:#e8a13c}.stars span{color:#3a3f48;font-size:15px}
.more-list{display:grid;gap:14px;padding-top:14px}
.more-card .x-title{display:flex;align-items:center;gap:8px;font-weight:900;font-size:16px;margin-bottom:6px}
.more-card .x-title svg{color:#e01e26}
.rev-head{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:15px}
.rev-item{border-top:1px dashed #2c313a;padding:10px 0;display:grid;gap:4px}
.rev-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rev-item p{margin:0;font-size:14px;color:#d7dbe0;line-height:1.8}
.brand-item,.faq-item{border-top:1px dashed #2c313a;padding:8px 0}
.brand-item summary,.faq-item summary{cursor:pointer;font-weight:700;font-size:14.5px;padding:4px 0}
.fault{margin:8px 0;padding-inline-start:10px;border-inline-start:2px solid #e01e26}
.fault p{margin:2px 0}
.faq-item p{margin:6px 0;font-size:14px;color:#c9cdd3;line-height:1.9}
.test-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.test-btn{border:1px solid #2c313a;border-radius:10px;padding:12px 4px;font-family:inherit;font-weight:700;font-size:13px;cursor:pointer;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.test-overlay{position:fixed;inset:0;z-index:9999;cursor:pointer}
.channel-item{display:flex;align-items:center;gap:10px;background:#1d2026;border:1px solid #2c313a;border-radius:12px;padding:12px 14px;color:#e7eaee;text-decoration:none;margin-top:8px;font-size:14px}
.channel-item svg{color:#e01e26}

/* admin extras */
.cx-filters{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.rx-item{border:1px solid #262a31;border-radius:12px;padding:12px 14px;margin-bottom:10px;display:grid;gap:6px;background:#171a20}
.rx-item p{margin:0;font-size:14px;color:#d7dbe0}
.rx-rate{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.rx-rate input{background:#101318;border:1px solid #2c313a;color:#f2f3f5;border-radius:8px;padding:8px;font-family:inherit}
.rx-rate .rx-stars-in{width:48px;text-align:center}
.rx-rate .rx-comment-in{flex:1;min-width:160px}
#cx-body textarea{width:100%;background:#101318;border:1px solid #2c313a;color:#f2f3f5;border-radius:10px;padding:10px;font-family:ui-monospace,monospace;font-size:13px}
#cx-body label.cx-tpl{display:grid;gap:6px;margin-bottom:12px}
#cx-body label.cx-tpl textarea{font-family:inherit;font-size:14px}
.cx-actions{display:flex;gap:10px;align-items:center;margin-top:10px}
.mini-btn.active{outline:2px solid #e01e26}

/* ---------- Embed mode (Android WebView): page renders content only ---------- */
body.embed .topbar,
body.embed .sfw-access,
body.embed .bottom-nav,
body.embed #bot-fab,
body.embed #bot-panel { display: none !important; }
body.embed main { padding-bottom: 16px !important; }
