/* NUQT customer portal — premium dark (black + gold), matching nuqt.dev. */
:root {
  --bg: #0A0907;
  --surface: #15120C;
  --surface-2: #1B1710;
  --line: rgba(201, 168, 76, 0.12);
  --line-strong: rgba(201, 168, 76, 0.30);
  --text: #F4F0E6;
  --muted: #A89F8D;
  --faint: #6E675A;
  --gold: #C9A84C;
  --gold-bright: #E4C56B;
  --gold-deep: #8F742E;
  --ok: #5fe39a; --ok-bg: rgba(47, 208, 111, 0.12); --ok-line: rgba(47, 208, 111, 0.25);
  --warn: #e4c56b; --warn-bg: rgba(201, 168, 76, 0.12);
  --bad: #f07a6a; --bad-bg: rgba(240, 122, 106, 0.12);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(120% 80% at 50% -10%, #15120C 0%, var(--bg) 55%);
  background-repeat: no-repeat;
}
[dir="rtl"] body { font-family: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif; }
.hidden { display: none !important; }
::selection { background: rgba(201, 168, 76, 0.85); color: #0A0907; }
:focus-visible { outline: 2px solid rgba(201, 168, 76, 0.7); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
header {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 620px; margin: 0 auto; padding: 22px 18px 0; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 38px; width: auto; transition: opacity .2s; }
.brand:hover img { opacity: .8; }
.brand .wordmark {
  font-size: 14px; font-weight: 700; letter-spacing: .25em; color: var(--text);
}
.header-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- layout ---------- */
main { max-width: 620px; margin: 0 auto; padding: 20px 18px 64px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,0) 100%), var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 24px; margin-bottom: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 50px -34px rgba(0,0,0,.8);
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-head .ico { color: var(--gold); display: inline-flex; }
.card-head .ico svg { width: 18px; height: 18px; }

h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 4px; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 13px; }
.error { color: var(--bad); margin: 8px 0 0; font-size: 14px; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }

/* ---------- forms ---------- */
form { display: flex; flex-direction: column; gap: 12px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 15px; font-family: inherit;
  background: rgba(255,255,255,.02); color: var(--text);
}
input::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(201,168,76,.05);
}
.hp { position: absolute; left: -9999px; height: 0; opacity: 0; }
label.field { display: flex; flex-direction: column; gap: 6px; }
label.field > span { font-size: 12px; color: var(--faint); }

/* ---------- buttons ---------- */
button, .button {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #14110B; border: 0; border-radius: 999px;
  padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  text-align: center; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 2px 16px rgba(201,168,76,.22); transition: transform .15s, box-shadow .15s;
}
button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(201,168,76,.34); }
.btn-ghost {
  background: rgba(255,255,255,.015); color: var(--muted);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); background: rgba(201,168,76,.06); transform: none; }
button.link, .link {
  background: none; color: var(--gold); padding: 4px; box-shadow: none;
  font-weight: 500; font-size: 14px; text-decoration: none; border-radius: 6px;
}
button.link:hover, .link:hover { color: var(--gold-bright); transform: none; box-shadow: none; text-decoration: underline; }
.btn-wa { background: linear-gradient(180deg,#2fd06f,#1fad57); color:#04150D; box-shadow:0 2px 16px rgba(31,173,87,.25); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; background: var(--bg); padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.tab { flex: 1; background: transparent; color: var(--muted); box-shadow: none; padding: 9px; font-size: 14px; }
.tab:hover { transform: none; box-shadow: none; color: var(--text); }
.tab.active { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #14110B; }

/* ---------- account: status / licenses ---------- */
.license-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 14px 0; background: rgba(255,255,255,.015); }
.license-card .big { font-size: 30px; font-weight: 700; color: var(--gold); letter-spacing: -.02em; margin-top: 8px; }
.status-pill { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.status-pill.active { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.status-pill.pending { background: var(--warn-bg); color: var(--warn); border-color: var(--line-strong); }
.status-pill.expired, .status-pill.suspended { background: var(--bad-bg); color: var(--bad); }

.keybox { font-family: ui-monospace, monospace; font-size: 16px; letter-spacing: .06em;
  background: var(--bg); border: 1px dashed var(--line-strong); border-radius: 10px;
  padding: 12px 14px; margin-top: 10px; user-select: all; color: var(--gold); word-break: break-all; }

/* ---------- devices ---------- */
.device-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.device-row:first-child { border-top: 0; }
.device-row .d-main { flex: 1; min-width: 0; }
.device-row .d-name { font-size: 14px; font-weight: 600; }
.device-row .d-meta { font-size: 12px; color: var(--faint); }
.device-row .deact { font-size: 13px; padding: 6px 12px; }

/* ---------- support shortcuts ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.support-grid a { font-size: 13px; padding: 12px 8px; flex-direction: column; gap: 6px; }
.support-grid a svg { width: 18px; height: 18px; }
@media (max-width: 460px) { .support-grid { grid-template-columns: 1fr; } .support-grid a { flex-direction: row; } }

/* ---------- misc ---------- */
.row-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.row-buttons.center { justify-content: center; }
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
details { margin-top: 16px; }
summary { color: var(--muted); cursor: pointer; font-size: 14px; }
ol { padding-inline-start: 22px; margin: 0; color: var(--muted); }
ol li { margin-bottom: 6px; }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--line-strong), transparent); margin: 22px 0; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 8px; }
