/* PriceHQ email manager + order page (my.pricehq.tech/email/). Matches the pricehq.tech redesign. */
@font-face { font-family: "Jakarta"; src: url(/themes/huraga/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/themes/huraga/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/themes/huraga/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/themes/huraga/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --brand: #2448e0; --brand-d: #1a35b3; --brand-l: #e8edff; --navy: #0b1240; --ink: #0f1733; --body: #2c3654; --muted: #5b6684;
  --line: #e2e7f2; --line-2: #cfd7e8; --soft: #f5f7fc; --ok: #0e8a5f; --ok-l: #e3f7ef; --bad: #b42318; --bad-l: #fdecec; --warn: #9a6200; --warn-l: #fff4d6;
  --grad: linear-gradient(120deg, #0b1240 0%, #1a35b3 45%, #6a3cf2 100%);
  --r: 14px; --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--body); background: var(--soft); }
a { color: var(--brand); }
h1, h2 { color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 6px 0 8px; }
h2 { font-size: 19px; font-weight: 700; margin: 0 0 12px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 1040px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.strip { background: var(--navy); color: #dbe2ff; font-size: 13.5px; }
.strip .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.strip a { color: #fff; text-decoration: none; margin-left: 16px; } .strip a:hover { text-decoration: underline; }
.hdr { background: #fff; border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.brand b { color: var(--brand); }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 19px; box-shadow: 0 4px 12px rgba(36,72,224,.35); }
.hnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hnav a:not(.btn) { color: var(--body); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.hnav a[aria-current] { color: var(--brand); background: var(--brand-l); }
main { padding: 28px 0 56px; min-height: 60vh; }
.ftr { border-top: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--muted); }
.ftr .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.ftr a { color: var(--muted); }
.crumbs { margin: 0; font-size: 14px; color: var(--muted); } .crumbs a { color: var(--muted); }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 22px; max-width: 62ch; }
.muted { color: var(--muted); } .right { text-align: right; } .ok-text { color: var(--ok); font-weight: 600; } .bad-text { color: var(--bad); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); } .btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.btn-block { width: 100%; }
.btn:focus-visible, .field:focus, a:focus-visible, button:focus-visible { outline: 3px solid rgba(36,72,224,.3); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.field { width: 100%; min-height: 46px; padding: 10px 14px; font: 400 16px var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; }
.field:focus { border-color: var(--brand); }
.field.small { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14.5px; }
.field[aria-invalid=true] { border-color: var(--bad); }
.field-label { display: block; font-weight: 600; color: var(--ink); font-size: 14.5px; margin: 14px 0 6px; }
.field-err { color: var(--bad); font-size: 14px; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
textarea.field { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; cursor: pointer; flex-wrap: wrap; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.row { display: flex; gap: 14px; flex-wrap: wrap; } .row .col { flex: 1 1 240px; } .row .col.narrow { flex: 0 1 260px; }
.addr { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.addr:focus-within { border-color: var(--brand); outline: 3px solid rgba(36,72,224,.3); }
.addr .field { border: 0; border-radius: 0; outline: 0; min-width: 0; }
.addr span { padding: 0 14px; color: var(--muted); white-space: nowrap; background: var(--soft); align-self: stretch; display: flex; align-items: center; border-left: 1px solid var(--line); font-size: 15px; }
.pw { display: flex; gap: 8px; } .pw .field { flex: 1; }
.meter { height: 6px; background: var(--line); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s; }
.meter span[data-s="2"] { background: #d79a00; } .meter span[data-s="3"], .meter span[data-s="4"] { background: var(--ok); }

.note { background: var(--brand-l); border: 1px solid #c9d4ff; color: var(--ink); padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; }
.note.bad { background: var(--bad-l); border-color: #f3b4b4; color: #7a1a12; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--body); }
.pill.ok { background: var(--ok-l); border-color: #a8e3cb; color: #075e40; }
.pill.bad { background: var(--bad-l); border-color: #f3b4b4; color: #8a1c12; }
.pill.wait { background: var(--warn-l); border-color: #f0d68a; color: #6b4600; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin: 18px 0 0; box-shadow: 0 1px 2px rgba(15,23,51,.05); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.card-head h2 { margin: 0; }
.empty { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 36px; text-align: center; max-width: 640px; margin: 20px auto; }

/* manager */
.mgr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mgr-head h1 { word-break: break-word; }
.mgr-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 4px; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; font: 600 15px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--brand); border-bottom-color: var(--brand); }
.panel { padding-top: 14px; }
.usage { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; margin: 4px 0 12px; }
.use { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 14.5px; }
.use b { color: var(--ink); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
table.list td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; } td.actions .btn { margin-left: 4px; }
.usage-cell { min-width: 160px; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; max-width: 220px; }
.bar span { display: block; height: 100%; background: var(--brand); } .bar span.hot { background: var(--bad); }
.usage-cell small { color: var(--muted); }
table.kv { border-collapse: collapse; margin: 10px 0; width: 100%; }
table.kv th { text-align: left; padding: 9px 14px 9px 0; color: var(--muted); font-weight: 600; width: 34%; vertical-align: top; }
table.kv td { padding: 9px 0; border-bottom: 1px solid var(--line); }
ul.plain { list-style: none; padding: 0; margin: 10px 0 0; } ul.plain li { padding: 6px 0; }
.dns td.val { max-width: 420px; } .dns td.val code { display: inline; }
.dns tr.is-bad td:first-child { box-shadow: inset 4px 0 0 var(--bad); }
.dns tr.is-ok td:first-child { box-shadow: inset 4px 0 0 var(--ok); }
.dns tr.is-warn td:first-child { box-shadow: inset 4px 0 0 #d79a00; }
.ns code { margin: 0 6px 6px 0; display: inline-block; font-size: 15px; }
.toast { position: sticky; top: 10px; z-index: 5; background: var(--ok-l); border: 1px solid #a8e3cb; color: #075e40; padding: 12px 16px; border-radius: 12px; margin: 12px 0; font-weight: 600; }
.toast.bad { background: var(--bad-l); border-color: #f3b4b4; color: #8a1c12; }

/* order page */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.order-main { min-width: 0; }
.step { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 20px 22px 22px; margin: 0 0 16px; min-width: 0; }
.step legend { font-weight: 800; color: var(--ink); font-size: 17px; padding: 0 6px; margin-left: -6px; display: flex; align-items: center; gap: 10px; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-size: 14px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.tier, .period { position: relative; cursor: pointer; }
.tier input, .period input { position: absolute; opacity: 0; inset: 0; }
.tier-body, .period span { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 14px 16px; height: 100%; background: #fff; }
.tier input:checked + .tier-body, .period input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36,72,224,.18); background: var(--brand-l); }
.tier input:focus-visible + .tier-body, .period input:focus-visible + span { outline: 3px solid rgba(36,72,224,.35); outline-offset: 2px; }
.tier-name { font-weight: 800; color: var(--ink); } .tier-size b { color: var(--ink); } .tier-price { font-size: 14px; color: var(--muted); } .tier-price b { color: var(--ink); font-size: 18px; }
.tier.off { opacity: .55; cursor: not-allowed; } .tier-off { color: var(--bad); font-size: 13px; font-weight: 600; }
.periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; max-width: 460px; }
.period small { color: var(--muted); font-size: 13.5px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; margin-top: 8px; background: #fff; }
.stepper input { width: 70px; text-align: center; border: 0; font: 700 18px var(--font); min-height: 46px; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.step-btn { width: 48px; min-height: 46px; border: 0; background: var(--soft); font: 700 22px var(--font); color: var(--ink); cursor: pointer; }
.step-btn:hover { background: var(--brand-l); color: var(--brand); }
.summary { position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: 0 6px 24px rgba(15,23,51,.08); }
.summary h2 { font-size: 17px; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; color: var(--body); font-size: 15px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin: 0 0 12px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; color: var(--ink); font-weight: 600; }
.sum-total b { font-size: 30px; font-weight: 800; }
.sum-renew { color: var(--muted); font-size: 14px; margin: 2px 0 16px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; }
.ticks li { padding: 4px 0 4px 24px; position: relative; } .ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

@media (max-width: 900px) {
  .order { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .tiers { grid-template-columns: 1fr; }
  .strip .wrap span:first-child { display: none; }
  td.actions { white-space: normal; } td.actions .btn { margin: 2px 0 2px 4px; }
  table.list th:nth-child(2), table.list td.usage-cell { display: none; }
  .pw { flex-direction: column; }
  .card { padding: 18px; }
}
