/* NAVIRU user app — black & gold, Getir-style. No inline styles (strict CSP). */
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(fonts/vazirmatn-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 600; font-display: swap; src: url(fonts/vazirmatn-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url(fonts/vazirmatn-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 900; font-display: swap; src: url(fonts/vazirmatn-arabic-900-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(fonts/vazirmatn-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url(fonts/vazirmatn-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #06060a; --card: rgba(255,255,255,.04); --card-2: rgba(255,255,255,.07); --line: rgba(255,255,255,.09);
  --text: #f5f2ea; --muted: #b9b4a8; --dim: #8d887c; --gold: #f0cf7f; --gold-1: #ffe27a; --gold-2: #d9a640; --ink: #1a1200;
  --green: #5ee69b; --amber: #ffd27a; --red: #ff7b7b;
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.8;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); min-height: 100%; }
button, input { font: inherit; color: inherit; }
a { color: var(--gold); text-decoration: none; }
[hidden] { display: none !important; }
b { font-weight: 800; }
small { display: block; color: var(--dim); font-size: 12.5px; }
em { font-style: normal; font-size: .62em; font-weight: 600; opacity: .8; }
.app { position: relative; max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100svh; overflow-x: hidden;
  padding: max(16px, env(safe-area-inset-top)) 18px calc(110px + env(safe-area-inset-bottom)); }
.glow { position: absolute; top: -200px; right: -160px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(226,178,80,.22) 0%, transparent 65%); }
.app > :not(.glow):not(.tabbar) { position: relative; }
.mt { margin-top: 12px; }
.gold { color: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; padding: 12px 18px;
  font-weight: 800; cursor: pointer; transition: transform .12s ease, filter .12s ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.block { width: 100%; }
.btn.lg { padding: 16px; border-radius: 16px; font-size: 17px; }
.btn.sm { padding: 9px 14px; border-radius: 12px; font-size: 13px; }
.btn.xs { padding: 7px 12px; border-radius: 10px; font-size: 12px; }
.btn.gold { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: var(--ink); box-shadow: 0 12px 30px rgba(217,166,64,.28); }
.btn.dark { background: #0b0b10; color: var(--gold); }
.btn.soft { background: var(--card-2); color: var(--text); font-weight: 600; }
.btn.amber { background: var(--amber); color: var(--ink); }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.who { display: flex; align-items: center; gap: 12px; color: var(--text); }
.who b { display: block; font-size: 17px; line-height: 1.3; }
.who small { line-height: 1.2; }
.avatar { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: var(--ink);
  background: linear-gradient(135deg, var(--gold-1), #c8902a); flex-shrink: 0; }
.avatar.lg { width: 56px; height: 56px; border-radius: 18px; font-size: 22px; }
.brand svg { width: 38px; height: 38px; display: block; }

/* wallet card */
.wallet { position: relative; overflow: hidden; border-radius: 26px; padding: 20px; color: var(--ink);
  background: radial-gradient(circle at 15% 0%, #fff4cf 0%, rgba(255,244,207,0) 45%), linear-gradient(135deg, #f3d27f 0%, #d9a640 55%, #a8741f 100%);
  box-shadow: 0 24px 60px rgba(217,166,64,.3); animation: rise .35s ease both; }
.wallet small { color: rgba(26,18,0,.72); font-size: 13px; }
.wallet > b { display: block; font-size: 30px; font-weight: 900; margin: 2px 0 14px; }
.w-mark { position: absolute; left: -26px; bottom: -40px; width: 170px; height: 170px; opacity: .16; filter: grayscale(1) brightness(0); }
.w-mark svg { width: 100%; height: 100%; }
.w-actions { display: flex; gap: 8px; position: relative; }
.wallet .btn.soft { background: rgba(26,18,0,.12); color: var(--ink); font-weight: 700; }

/* quick actions */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 6px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); font-size: 12px; font-weight: 600; text-align: center; }
.qa span { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line);
  transition: transform .15s ease, border-color .15s ease; }
.qa:active span { transform: scale(.94); }
.qa.gold span { background: rgba(240,207,127,.10); border-color: rgba(240,207,127,.28); color: var(--gold); }

.sec-title { display: flex; justify-content: space-between; align-items: center; margin: 20px 2px 10px; }
.sec-title b { font-size: 16px; }
.sec-title a { font-size: 13px; }

/* service */
.svc { padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; animation: rise .35s ease both; }
.svc-top { display: flex; gap: 14px; align-items: center; }
.gauge { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.g-txt { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; line-height: 1.15; }
.g-txt b { font-size: 17px; }
.g-txt small { font-size: 10px; }
.svc-info { flex: 1; min-width: 0; }
.svc-name { display: flex; align-items: center; gap: 8px; }
.svc-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--card-2); color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--green); background: rgba(94,230,155,.12); }
.chip.warn { color: var(--amber); background: rgba(255,210,122,.12); }
.chip.bad { color: var(--red); background: rgba(255,123,123,.12); }

/* alerts / banners */
.alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; margin-top: 12px;
  background: rgba(255,191,71,.07); border: 1px solid rgba(255,191,71,.28); color: var(--text); }
.alert b { color: var(--amber); font-size: 14px; }
.banner { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 18px; margin: 16px 0; border-radius: 22px;
  border: 1px solid rgba(240,207,127,.4); background: linear-gradient(135deg, rgba(240,207,127,.12), rgba(200,144,42,.04)); }
.banner .b-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(240,207,127,.14); color: var(--gold); }
.banner h3 { margin: 0 0 4px; font-size: 16px; }
.banner p { margin: 0; color: var(--muted); font-size: 13.5px; }
.banner .btn { grid-column: 1 / -1; }

/* cards (profile) */
.card { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.r-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--card-2); color: var(--gold); flex-shrink: 0; }
.me-card { display: flex; align-items: center; gap: 14px; }
.me-card small { text-align: right; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.qr { display: block; width: 180px; margin: 10px auto; border-radius: 14px; background: #fff; padding: 8px; }
.code-box { font-family: ui-monospace, monospace; font-size: 13px; background: var(--card-2); border-radius: 12px; padding: 10px; word-break: break-all; color: var(--muted); }
.code-input { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; outline: none; }

/* invoices */
.inv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; }
.inv-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* segmented control */
.seg { display: flex; padding: 5px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 16px; }
.seg button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 12px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg button.on { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: var(--ink); font-weight: 800; }

/* auth */
.auth { max-width: 420px; margin: 0 auto; padding-top: 36px; animation: rise .4s ease both; }
.auth-mark { width: 78px; height: 78px; margin: 0 auto 8px; filter: drop-shadow(0 10px 30px rgba(217,166,64,.5)); }
.auth-mark svg { width: 100%; height: 100%; }
.auth h1 { text-align: center; font-size: 28px; font-weight: 900; margin: 6px 0 0; }
.auth .sub { text-align: center; color: var(--muted); margin: 2px 0 22px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.field input { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: var(--card); color: var(--text); font-size: 15px; outline: none; }
.field input:focus { border-color: rgba(240,207,127,.6); box-shadow: 0 0 0 4px rgba(240,207,127,.10); }
.field input[dir="ltr"] { text-align: left; }
.captcha { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; margin-bottom: 10px; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: all .25s ease; }
.captcha .tick { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; border: 2px solid var(--dim); color: transparent; }
.captcha.done { background: rgba(94,230,155,.06); border-color: rgba(94,230,155,.28); color: #a8e9c3; }
.captcha.done .tick { background: var(--green); border-color: var(--green); color: #04210f; }
.error { color: var(--red); font-size: 13.5px; min-height: 1.3em; margin: 0 4px 8px; }
.foot-note { text-align: center; color: var(--dim); font-size: 13px; margin-top: 18px; }

/* bottom tab bar with a floating buy button */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  max-width: 560px; margin: 0 auto; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); text-align: center;
  background: rgba(10,10,14,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--dim); font-size: 11px; }
.tabbar a.on { color: var(--gold); font-weight: 700; }
.tabbar .fab { justify-self: center; margin-top: -30px; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); box-shadow: 0 14px 34px rgba(217,166,64,.45); }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); border-radius: 22px; background: var(--card); border: 1px dashed var(--line); }
.empty svg { color: var(--gold); }
.empty p { margin: 8px 0 14px; }
.toast { position: fixed; bottom: calc(100px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 30;
  background: var(--gold); color: var(--ink); padding: 10px 18px; border-radius: 14px; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: rise .25s ease both; }
.skeleton { height: 96px; border-radius: 22px; margin-bottom: 12px; background: linear-gradient(90deg, #121216, #1c1c22, #121216); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton.tall { height: 170px; }
.boot { margin-top: 80px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
/* ================= tech layer ================= */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.nv-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 14px;
  background: radial-gradient(circle at 50% 45%, rgba(226,178,80,.16), transparent 55%), #06060a; transition: opacity .3s ease, visibility .3s ease; }
.nv-loader.hide { opacity: 0; visibility: hidden; }
.nv-loader svg, .mini-loader svg { overflow: visible; filter: drop-shadow(0 0 20px rgba(240,190,90,.55)); }
.nv-loader svg { width: 88px; height: 88px; }
.ld-path { fill: none; stroke: url(#ldg); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ld-draw 1.1s cubic-bezier(.65,0,.35,1) infinite alternate; }
.ld-start { fill: url(#ldg); }
.ld-ring { fill: none; stroke: url(#ldg); stroke-width: 8; transform-box: fill-box; transform-origin: center; animation: ld-ring 1.1s ease-in-out infinite alternate; }
.nv-loader span { font-family: Syne, Vazirmatn, sans-serif; font-weight: 800; letter-spacing: .4em; padding-left: .4em; font-size: 14px; color: var(--gold);
  animation: ld-blink 1.1s ease-in-out infinite alternate; }
.mini-loader { display: grid; place-items: center; gap: 10px; padding: 48px 0; color: var(--dim); font-size: 13px; }
.mini-loader svg { width: 54px; height: 54px; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-ring { from { transform: scale(.6); opacity: .4; } to { transform: scale(1.1); opacity: 1; } }
@keyframes ld-blink { from { opacity: .35; } to { opacity: 1; } }
/* a button that is working: its label fades and a small spinning ring appears */
.btn.busy { color: transparent !important; pointer-events: none; }
.btn.busy::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(26,18,0,.25);
  border-top-color: var(--ink); animation: spin .7s linear infinite; }
.btn.soft.busy::before, .btn.dark.busy::before { border-color: rgba(240,207,127,.25); border-top-color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* light grid */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(240,207,127,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(240,207,127,.05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 65%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 65%); }
.app { z-index: 1; }

/* neon buttons */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn.gold { box-shadow: 0 0 0 1px rgba(255,226,122,.35) inset, 0 12px 32px rgba(217,166,64,.32), 0 0 22px rgba(255,214,110,.16); }
.btn.gold::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%); transform: translateX(-120%); animation: sweep 3.8s ease-in-out infinite; }
.btn.soft { border: 1px solid transparent;
  background: linear-gradient(#111116, #111116) padding-box,
              conic-gradient(from var(--ang), rgba(255,255,255,.08), rgba(255,226,122,.7), rgba(255,255,255,.08) 30%, rgba(255,255,255,.08) 70%, rgba(255,226,122,.7), rgba(255,255,255,.08)) border-box;
  animation: spin-border 7s linear infinite; }
@keyframes spin-border { to { --ang: 360deg; } }
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.tabbar .fab { animation: fab-glow 2.8s ease-in-out infinite; }
@keyframes fab-glow { 0%, 100% { box-shadow: 0 14px 34px rgba(217,166,64,.45); } 50% { box-shadow: 0 14px 34px rgba(217,166,64,.45), 0 0 0 8px rgba(255,214,110,.12); } }
.qa span { position: relative; }
.qa:hover span { border-color: rgba(240,207,127,.45); box-shadow: 0 0 20px rgba(240,190,90,.18); }
.svc, .card, .inv { transition: border-color .25s ease, box-shadow .25s ease; }
.svc:hover, .card:hover { border-color: rgba(240,207,127,.28); }
.wallet::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 5s ease-in-out 1s infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
