:root {
  --bg: #07090e;
  --panel: #0f1622;
  --panel-2: #131c2b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e6edf5;
  --muted: #8b9ab0;
  --accent: #22d3ee;
  --accent-2: #1c9ad6;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --font: "Cairo", "Plus Jakarta Sans", Tahoma, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.7; }
body { min-height: 100vh; background: radial-gradient(1200px 600px at 80% -10%, rgba(34, 211, 238, 0.10), transparent 60%), var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: rgba(7, 9, 14, 0.85); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.topbar .brand img { height: 40px; width: auto; display: block; }
.topbar nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.topbar nav a, .topbar nav button { color: var(--text); padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.topbar nav a.active { background: rgba(34, 211, 238, 0.12); color: var(--accent); }

.wrap { width: min(1100px, 100% - 32px); margin: 28px auto 60px; }
.narrow { width: min(460px, 100% - 32px); margin: 48px auto; }
h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 8px; line-height: 1.3; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; background: linear-gradient(90deg, var(--accent-2), var(--accent)); color: #04121c; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); font-weight: 600; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; border: 1px solid var(--line); }
.alert.ok { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); }
.alert.bad { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); }
.alert.info { background: rgba(34, 211, 238, 0.08); border-color: rgba(34, 211, 238, 0.3); }
.hidden { display: none !important; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, 0.08); white-space: nowrap; }
.badge.quote_requested, .badge.payment_review { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.badge.awaiting_payment { background: rgba(34, 211, 238, 0.15); color: var(--accent); }
.badge.paid, .badge.in_progress, .badge.completed { background: rgba(52, 211, 153, 0.15); color: var(--ok); }
.badge.cancelled { background: rgba(248, 113, 113, 0.15); color: var(--bad); }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: start; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-wrap { overflow-x: auto; }

.svc { display: flex; flex-direction: column; gap: 8px; }
.svc h3 { margin: 0; font-size: 1rem; line-height: 1.5; }
.svc .cat { font-size: 12.5px; color: var(--muted); }
.svc .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; color: var(--accent); }

.methods { display: grid; gap: 10px; }
.method { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.method input { width: auto; margin-top: 6px; }
.method.selected { border-color: var(--accent); background: rgba(34, 211, 238, 0.06); }
.instructions { white-space: pre-line; font-size: 14px; }

.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.steps span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.steps span.done { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); }
.steps span.now { color: var(--accent); border-color: var(--accent); }

dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); width: min(520px, 100% - 32px); padding: 22px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }

/* Offers */
.topbar nav a.nav-offers { background: linear-gradient(90deg, #f59e0b, #f97316); color: #1a0f00; font-weight: 800; }
.topbar nav a.nav-offers.active, .topbar nav a.nav-offers:hover { filter: brightness(1.08); text-decoration: none; color: #1a0f00; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.tabs button.on { background: rgba(34, 211, 238, 0.12); border-color: var(--accent); color: var(--accent); }
.tabs button.offers-tab.on { background: linear-gradient(90deg, #f59e0b, #f97316); border-color: transparent; color: #1a0f00; }
.offer-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.offer { position: relative; display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.10), rgba(15, 22, 34, 0.9) 45%); }
.offer.featured { border-color: #f59e0b; box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.4), 0 18px 40px -20px rgba(245, 158, 11, 0.45); }
.offer .ribbon { align-self: flex-start; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: #f59e0b; color: #1a0f00; }
.offer h3 { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.offer .hl { color: #fbbf24; font-weight: 700; font-size: 14.5px; }
.offer .old { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-inline-start: 8px; }
.offer .ends { font-size: 12.5px; color: var(--muted); }
.offer .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.btn.hot { background: linear-gradient(90deg, #f59e0b, #f97316); color: #1a0f00; }

/* Brand workspace */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--text); font-size: 14px; }
.chip input { width: auto; }
.chip:has(input:checked) { border-color: var(--accent); background: rgba(34, 211, 238, 0.10); color: var(--accent); }
.method input[type="checkbox"], .method input[type="radio"] { width: auto; }
