:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --card: #16161a;
  --line: #2a2a30;
  --text: #ecebe6;
  --muted: #a3a29b;
  --gold: #d6b25e;
  --gold-2: #f0d48a;
  --gold-dark: #8c6b2a;
  --green: #1f9d55;
  --red: #e0323a;
  --white: #f5f5f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.gold { background: linear-gradient(90deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: #d4d3cc; max-width: 62ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--gold); color: #000; padding: 8px 12px; z-index: 99; border-radius: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 11, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .08em; }
.brand img { border-radius: 10px; }
.brand b { color: var(--gold); }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); background: var(--bg-2); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 38px; padding: 9px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 4px 0; }
.flag-bar { display: grid; grid-template-columns: 1fr 3fr 3fr 3fr; height: 3px; }
.flag-bar i:nth-child(1) { background: var(--red); }
.flag-bar i:nth-child(2) { background: var(--green); }
.flag-bar i:nth-child(3) { background: var(--white); }
.flag-bar i:nth-child(4) { background: #000; }

.sim-banner { background: #2a2108; border-bottom: 1px solid var(--gold-dark); color: #f3e3b5; font-size: .86rem; padding: 7px 0; line-height: 1.45; }
.sim-banner b { color: var(--gold-2); }

/* hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1000px 500px at 80% 20%, rgba(214, 178, 94, .12), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(31, 157, 85, .08), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { position: relative; border-radius: 22%; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(214, 178, 94, .25); }
.glow { position: absolute; inset: 10%; background: radial-gradient(circle, rgba(214, 178, 94, .35), transparent 65%); filter: blur(30px); }
.hero-links { display: flex; gap: 22px; margin-top: 18px; }
.hero-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.hero-links a:hover { color: var(--gold-2); }

/* store buttons */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #555; border-radius: 12px; padding: 8px 18px 8px 14px; text-decoration: none; font-weight: 700; font-size: 1.15rem; line-height: 1.1; min-width: 170px; transition: border-color .15s, transform .15s; }
.store-btn small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .02em; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn:hover { border-color: var(--gold); color: #fff; transform: translateY(-1px); }
.store-btn.is-disabled { opacity: .55; cursor: default; }
.store-btn.small { min-width: 0; font-size: .95rem; padding: 6px 14px 6px 10px; }
.store-btn.small svg { width: 20px; height: 20px; }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 36px; }
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 90% 0%, rgba(214, 178, 94, .1), transparent 60%); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card, aside > * + * { margin-top: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature svg { width: 36px; height: 36px; color: var(--gold); margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.feature { transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--gold-dark); transform: translateY(-2px); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #000; font-weight: 800; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .92rem; }
.trust-grid, .value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-grid .card { margin-top: 0; }
.trust-grid .card { margin-top: 0; }

/* prose / legal */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2em; padding-top: .4em; }
.prose h3 { margin-top: 1.4em; color: var(--gold-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.legal h2 { font-size: 1.35rem; border-top: 1px solid var(--line); padding-top: 1.2em; scroll-margin-top: 90px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.toc ol { columns: 2; margin: 8px 0 0; font-size: .94rem; }
.callout { border-left: 4px solid var(--gold); background: rgba(214, 178, 94, .08); padding: 14px 18px; border-radius: 8px; margin: 1.5em 0; }
.callout.danger { border-color: var(--red); background: rgba(224, 50, 58, .09); }

/* forms */
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.form input, .form select, .form textarea, .filters input, .filters select, .copy-row input {
  display: block; width: 100%; margin-top: 6px; background: #0d0d10; color: var(--text); border: 1px solid #3a3a42; border-radius: 10px; padding: 11px 13px; font: inherit; font-weight: 400;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .filters input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form label.check input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row2 .end { display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #111; }
.btn.primary:hover { filter: brightness(1.08); color: #000; }
.btn.ghost { background: transparent; color: var(--text); border-color: #45454d; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(1.1); color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert.error { background: rgba(224, 50, 58, .12); border: 1px solid rgba(224, 50, 58, .5); }
.alert.ok { background: rgba(31, 157, 85, .12); border: 1px solid rgba(31, 157, 85, .5); }
.support-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; font-size: .94rem; }
ol.num li { margin-bottom: 8px; }
ul.tick, ul.dash { padding-left: 0; list-style: none; }
ul.tick li, ul.dash li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: .94rem; }
ul.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
ul.dash li::before { content: "•"; position: absolute; left: 6px; color: var(--gold); font-weight: 800; }
.success-card { text-align: center; }
.ticket-no { font-size: 2rem; font-weight: 800; letter-spacing: .08em; color: var(--gold-2); margin-bottom: 14px; }
.copy-row { display: flex; gap: 8px; margin-bottom: 12px; }
.copy-row input { margin: 0; font-size: .85rem; }

/* ticket thread */
.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--card); }
.msg.staff { border-left: 4px solid var(--gold); }
.msg.customer { border-left: 4px solid #4a4a52; }
.msg.internal { background: #1d1a10; border-style: dashed; }
.msg-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.msg-head time { margin-left: auto; color: var(--muted); font-size: .82rem; }
.msg-body { overflow-wrap: anywhere; }
.tag { font-size: .72rem; background: var(--gold-dark); color: #fff; padding: 2px 8px; border-radius: 99px; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #333; white-space: nowrap; }
.s-open { background: #1d4ed8; color: #fff; }
.s-in_progress { background: #7c3aed; color: #fff; }
.s-pending { background: #b45309; color: #fff; }
.s-resolved { background: var(--green); color: #fff; }
.s-closed { background: #3f3f46; color: #ddd; }
.prio { font-size: .8rem; font-weight: 700; }
.p-urgent { color: #ff6b6b; }
.p-high { color: #fbbf24; }
.p-low { color: var(--muted); }

/* admin */
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.linkish { background: none; border: 0; color: var(--gold-2); cursor: pointer; font: inherit; text-decoration: underline; }
.stat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.stat b { display: block; font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .82rem; }
.stat.on { border-color: var(--gold); }
.stat.del b { color: #ff8a8a; }
.filters { display: grid; grid-template-columns: 200px 220px 1fr auto; gap: 10px; margin-bottom: 16px; }
.filters input, .filters select { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.tickets { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tickets th, .tickets td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tickets th { background: var(--bg-2); color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.tickets tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.tickets tr.unread a { font-weight: 700; }
.admin-ticket { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
dl.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; overflow-wrap: anywhere; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #070708; padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-grid h4 { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid > div > a:not(.brand) { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.footer-grid > div > a:not(.brand):hover { color: var(--text); }
.footer-grid .muted { font-size: .92rem; margin-top: 12px; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; font-size: .84rem; color: var(--muted); }

/* responsive */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-ticket, .support-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; }
  .trust-grid, .value-grid, .row2 { grid-template-columns: 1fr; }
  .row2 { gap: 0; }
  .toc ol { columns: 1; }
  .filters { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feature-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
  .store-btn { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
