/* ---------- Tokens ---------- */
:root {
  --bg: #f3f8f7;
  --bg-2: #e8f2f0;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e4e7ef;
  --brand: #0d9488;
  --brand-2: #0ea5e9;
  --brand-soft: #e6f7f5;
  --ok: #059669;
  --ok-soft: #e8faf2;
  --warn: #b45309;
  --warn-soft: #fff7e6;
  --danger: #dc2626;
  --danger-soft: #fdeeee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(13, 148, 136, .18);
  --frame-bg: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c13; --bg-2: #10131d; --card: #141823; --text: #e6e8ef; --muted: #8e97ab; --line: #232838;
    --brand: #2dd4bf; --brand-2: #38bdf8; --brand-soft: #0f2e2c;
    --ok: #34d399; --ok-soft: #0c2a20; --warn: #fbbf24; --warn-soft: #2b2108; --danger: #f87171; --danger-soft: #2c1215;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c13; --bg-2: #10131d; --card: #141823; --text: #e6e8ef; --muted: #8e97ab; --line: #232838;
  --brand: #2dd4bf; --brand-2: #38bdf8; --brand-soft: #0f2e2c;
  --ok: #34d399; --ok-soft: #0c2a20; --warn: #fbbf24; --warn-soft: #2b2108; --danger: #f87171; --danger-soft: #2c1215;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55; font-size: 15px;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 48px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 10px; }
.brand { font-weight: 800; font-size: 19px; color: var(--text); display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px rgba(13, 148, 136, .35);
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav .user { color: var(--muted); font-size: 14px; padding: 0 6px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  display: inline-grid; place-items: center; cursor: pointer; font-size: 15px; color: var(--text); padding: 0;
}
.icon-btn:hover { border-color: var(--brand); }
.lang-btn { width: auto; padding: 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .nav .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 62px; left: 0; right: 0; padding: 12px 16px 16px;
    background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open .nav-links .btn { justify-content: flex-start; }
  .menu-toggle { display: inline-grid; }
}
.nav-links { display: flex; gap: 4px; align-items: center; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 9px 15px; border-radius: var(--radius-sm); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; line-height: 1.2;
}
.btn:hover { border-color: var(--brand); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(13, 148, 136, .28); }
.btn-primary:hover { filter: brightness(1.07); border-color: transparent; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--bg-2); border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn-ok { background: var(--ok); color: #fff; border-color: transparent; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-width: 0;
}
input::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 16px; padding: 6px; color: var(--muted); }

/* ---------- Layout helpers ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card h2 { margin: 0 0 14px; font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.section-title { text-align: center; font-size: clamp(22px, 3.4vw, 30px); margin: 56px 0 6px; letter-spacing: -.02em; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 24px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 34px 0 6px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -40px -16px auto; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 260px at 50% 10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
}
.eyebrow {
  display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(30px, 5.6vw, 52px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.035em; }
.grad { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 17px; margin: 0 auto 26px; max-width: 640px; }

.addrbar {
  max-width: 760px; margin: 0 auto; padding: 8px; display: flex; gap: 6px; align-items: center;
  border-radius: 18px; box-shadow: var(--shadow-lg);
}
.addrbar input { border: 0; font-size: 17px; padding: 12px 14px; flex: 1.5; background: transparent; }
.addrbar input:focus { outline: none; }
.addrbar .at { color: var(--muted); font-weight: 700; font-size: 17px; }
.addrbar select { border: 0; background: var(--bg-2); flex: 1; font-size: 15px; padding: 12px; font-weight: 600; }
.addrbar .btn { padding: 13px 20px; font-size: 15px; border-radius: 12px; }
@media (max-width: 620px) {
  .addrbar { flex-wrap: wrap; padding: 10px; }
  .addrbar input { flex-basis: 100%; border-bottom: 1px solid var(--line); border-radius: 0; }
  .addrbar .at { display: none; }
  .addrbar select { flex: 1 1 55%; }
  .addrbar .btn { flex: 1 1 35%; }
}
.hero-actions { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 13px; max-width: 620px; margin: 14px auto 0; }
.recent { max-width: 760px; margin: 22px auto 0; }
.recent-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.recent-note { font-size: 12px; color: var(--muted); margin: -4px 0 10px; }
.recent-clear { background: none; border: 0; padding: 0 0 0 8px; color: var(--muted); font: inherit; text-transform: none; letter-spacing: 0; font-weight: 500; text-decoration: underline; cursor: pointer; }
.recent-clear:hover { color: var(--text, inherit); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600;
}
.chip:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }

.step { padding: 22px; position: relative; }
.step-n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 12px;
}
.step h3, .feature h3 { margin: 0 0 6px; font-size: 16px; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature { padding: 22px; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 18px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* ---------- Inbox ---------- */
.inbox-top { padding: 18px 20px; margin-bottom: 16px; display: grid; grid-template-columns: 1fr auto; gap: 14px 18px; align-items: center; }
.addr-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.addr-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.addr { font-size: clamp(17px, 2.6vw, 22px); font-weight: 700; word-break: break-all; }
.addr-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.addr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.addr-actions select { width: auto; padding: 6px 10px; font-size: 13px; font-weight: 600; border-radius: 9px; }
@media (max-width: 760px) {
  .inbox-top { grid-template-columns: 1fr; }
  .addr-actions { justify-content: flex-start; }
}
.live { display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.live.on::before { background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }

.inbox { display: grid; grid-template-columns: 370px 1fr; gap: 16px; min-height: 560px; }
.list { overflow: hidden; display: flex; flex-direction: column; }
.list-head { padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-weight: 700; }
.list-body { overflow-y: auto; max-height: 72vh; flex: 1; }
.item { padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; gap: 12px; color: var(--text); transition: background .12s; }
.item:hover { background: var(--bg-2); }
.item.active { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.item-main { min-width: 0; flex: 1; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff; text-transform: uppercase;
}
.item-top { display: flex; justify-content: space-between; gap: 8px; }
.item-from { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.item-subj { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.item.unread .item-subj { color: var(--text); font-weight: 600; }
.item.unread .item-from::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: 6px; vertical-align: middle; }
.item-otp { margin-top: 6px; }

.waiting { padding: 56px 24px; text-align: center; color: var(--muted); }
.waiting .env { font-size: 42px; display: inline-block; animation: float 2.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.waiting h3 { color: var(--text); margin: 12px 0 6px; font-size: 16px; }
.waiting p { margin: 0 auto; max-width: 280px; font-size: 14px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.viewer { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.viewer-back { display: none; }
.viewer-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.viewer-head h2 { margin: 0 0 12px; font-size: 19px; word-break: break-word; line-height: 1.35; }
.sender { display: flex; gap: 12px; align-items: center; }
.sender-name { font-weight: 700; font-size: 14px; }
.sender-meta { font-size: 13px; color: var(--muted); word-break: break-all; }
.otp-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px;
  background: var(--ok-soft); border: 1px dashed color-mix(in srgb, var(--ok) 45%, transparent); border-radius: 12px;
}
.otp-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--ok); }
.otp-code { font-family: ui-monospace, Menlo, monospace; font-size: 24px; font-weight: 800; letter-spacing: .14em; color: var(--ok); }
.viewer-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mail-frame { width: 100%; flex: 1; min-height: 520px; border: 0; background: var(--frame-bg); }
.mail-text { white-space: pre-wrap; word-break: break-word; padding: 20px; margin: 0; font-family: inherit; }
.atts { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .inbox { grid-template-columns: 1fr; min-height: 0; }
  .inbox.show-viewer .list { display: none; }
  .inbox:not(.show-viewer) .viewer { display: none; }
  .viewer-back { display: inline-flex; }
  .list-body { max-height: none; }
  .mail-frame { min-height: 70vh; }
}

/* ---------- Auth ---------- */
.auth { max-width: 420px; margin: 28px auto; }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head .brand-mark { margin: 0 auto 12px; width: 46px; height: 46px; font-size: 20px; border-radius: 14px; }
.auth h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; }
.auth .auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin: 2px 0 10px; }

/* ---------- Me ---------- */
.page-title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.quota { min-width: 180px; }
.quota-bar { height: 7px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-top: 4px; }
.quota-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
.claim-row { display: grid; grid-template-columns: 1.4fr auto 1fr; gap: 8px; align-items: center; }
.claim-row .at { color: var(--muted); font-weight: 700; }
@media (max-width: 620px) { .claim-row { grid-template-columns: 1fr; } .claim-row .at { display: none; } }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mb-item { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.mb-item .addr-link { font-weight: 700; font-size: 15px; word-break: break-all; color: var(--text); }
.mb-item .addr-link:hover { color: var(--brand); }
.mb-note { font-size: 13px; color: var(--muted); }
.mb-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Tables / admin ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.stat { padding: 18px 20px; }
.stat .n { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 13px; }
.pre-detail { white-space: pre-wrap; font-size: 12px; color: var(--muted); margin: 6px 0 0; font-family: ui-monospace, Menlo, monospace; }
.dom-card { padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: start; }
.dom-card + .dom-card { margin-top: 12px; }
.dom-name { font-weight: 800; font-size: 16px; }
.dom-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .dom-card { grid-template-columns: 1fr; } .dom-actions { justify-content: flex-start; } }
ol.steps { padding-left: 20px; margin: 8px 0 16px; }
ol.steps li { margin-bottom: 5px; }
.copyable { cursor: pointer; border-bottom: 1px dashed var(--muted); }
.copyable:hover { color: var(--brand); border-color: var(--brand); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 14px; margin-bottom: 14px; }
.notice-info { background: var(--brand-soft); color: var(--brand); }

/* ---------- Toast / modal / footer ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); animation: toastIn .2s ease-out;
}
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.modal { position: fixed; inset: 0; background: rgba(2, 6, 23, .55); z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal-box { background: var(--card); border-radius: var(--radius); width: 100%; max-width: 780px; max-height: 90vh; overflow: auto; padding: 24px; position: relative; box-shadow: var(--shadow-lg); }
.modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.footer { color: var(--muted); font-size: 13px; padding: 22px 0; border-top: 1px solid var(--line); text-align: center; }
.av-0 { background: #14b8a6; } .av-1 { background: #ec4899; } .av-2 { background: #f59e0b; } .av-3 { background: #10b981; }
.av-4 { background: #3b82f6; } .av-5 { background: #0ea5e9; } .av-6 { background: #ef4444; } .av-7 { background: #14b8a6; }
.mt-xs { margin-top: 8px; }
.settings { max-width: 520px; }

/* ---------- Khu thành viên / quản trị (dashboard) ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.dash-side { padding: 14px; position: sticky; top: 80px; }
.dash-user { display: flex; gap: 10px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.dash-user-t { display: flex; flex-direction: column; min-width: 0; }
.dash-user-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-menu { display: flex; flex-direction: column; gap: 2px; }
.dash-link { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.dash-link .ic { width: 20px; text-align: center; }
.dash-link:hover { background: var(--bg-2); text-decoration: none; }
.dash-link.active { background: var(--brand-soft); color: var(--brand); }
.dash-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.dash-main { min-width: 0; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; gap: 14px; }
  .dash-side { position: static; padding: 6px; }
  .dash-user { display: none; }
  .dash-menu { flex-direction: row; overflow-x: auto; }
  .dash-link { white-space: nowrap; }
  .dash-sep { width: 1px; height: auto; margin: 4px; }
}

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 0 14px; }
.toolbar input[type="search"] { flex: 1 1 240px; }
select.per { width: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.seg-btn { border: 0; background: none; padding: 9px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn.active { background: var(--brand-soft); color: var(--brand); }
.quota-card { padding: 14px 18px; display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 16px; align-items: center; }
@media (max-width: 620px) { .quota-card { grid-template-columns: 1fr; } }
.mb-table .addr-link { font-weight: 700; color: var(--text); word-break: break-all; }
.mb-table .addr-link:hover { color: var(--brand); }
.nowrap { flex-wrap: nowrap; white-space: nowrap; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pager-btns { display: flex; gap: 4px; align-items: center; }
.pager-btns .btn { min-width: 34px; }
.click-rows tbody tr { cursor: pointer; }
.click-rows tbody tr:hover td { background: var(--bg-2); }
td .avatar { width: 28px; height: 28px; font-size: 12px; }
.nav .user { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; text-decoration: none; }
.nav .user .avatar { width: 26px; height: 26px; font-size: 12px; }
.nav .user:hover { color: var(--brand); text-decoration: none; }

/* Hộp thoại */
.dlg h2 { margin: 0 0 10px; font-size: 19px; padding-right: 28px; }
.dlg h3 { font-size: 15px; margin: 18px 0 8px; }
.dlg-body p { margin: 0 0 12px; }
.dlg-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.btn-danger-solid { background: var(--danger); border-color: transparent; color: #fff; }
.btn-danger-solid:hover { filter: brightness(1.08); border-color: transparent; }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.m0 { margin: 0; }
.d-block { display: block; }
.w-small { max-width: 160px; }
.secret { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line); }
.secret .mono { font-size: 16px; word-break: break-all; }

/* Bảo mật */
.sec-grid { align-items: start; }
.sec-sessions { grid-column: 1 / -1; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.sess-list { display: flex; flex-direction: column; }
.sess { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.sess-ic { font-size: 22px; }
.sess-main { flex: 1; min-width: 0; }

/* Cài đặt */
.settings-wrap { display: grid; gap: 16px; max-width: 860px; }
.settings-wrap h3 { font-size: 15px; margin: 18px 0 4px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; cursor: pointer; font-size: 14px; color: var(--text); margin: 0; }
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.slider { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .15s; }
.slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--brand); outline-offset: 2px; }
.kv-copy { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; word-break: break-all; }
.dns-content { max-width: 380px; word-break: break-all; }
.stat-ic { font-size: 18px; margin-bottom: 4px; }

/* Google */
.btn-google { background: var(--card); color: var(--text); border-color: var(--line); font-weight: 600; }
.btn-google:hover { background: var(--bg-2); }
.g-ic { width: 18px; height: 18px; vertical-align: -3px; }
h2 .g-ic { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- API / docs ---------- */
pre.code { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.55; margin: 10px 0 14px; }
pre.code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
pre.code code { background: none; padding: 0; }
.docs { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.docs-toc { position: sticky; top: 80px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.docs-toc a { padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 600; }
.docs-toc a:hover { background: var(--bg-2); text-decoration: none; }
.docs-body { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.docs-body h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.docs-body h3 { font-size: 14px; margin: 14px 0 0; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lead-sm { color: var(--muted); margin: 0; font-size: 16px; }
.tips { margin: 6px 0 0; padding-left: 20px; }
.tips li { margin-bottom: 6px; }
.method { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, Menlo, monospace; }
.m-get { background: var(--ok-soft); color: var(--ok); }
.m-post { background: var(--brand-soft); color: var(--brand); }
.m-delete { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .docs-toc { position: static; flex-direction: row; overflow-x: auto; } .docs-toc a { white-space: nowrap; } }
.checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--text); font-size: 14px; margin: 0; }
.check input { width: auto; margin-top: 3px; }
.token-box { padding: 14px; border-radius: 10px; background: var(--bg-2); border: 1px dashed var(--brand); word-break: break-all; font-size: 14px; user-select: all; margin-top: 10px; }
.recent-list { display: flex; flex-direction: column; }
.recent-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.recent-row .addr-link { color: var(--text); font-weight: 600; word-break: break-all; }

/* ---------- Popup ---------- */
.modal { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .15s ease-out; }
.modal-box { border: 1px solid var(--line); }
.modal-box.modal-sm { max-width: 520px; }
.modal-box.pop { animation: popIn .18s cubic-bezier(.2, .9, .3, 1.2); }
body.modal-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@media (max-width: 560px) {
  .modal { place-items: end center; padding: 0; }
  .modal-box, .modal-box.modal-sm { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; padding: 20px 16px; }
  .dlg-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .modal, .modal-box.pop { animation: none; } }

/* ---------- VIP ---------- */
.tier-badge { color: #fff; }
.tier-1 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tier-2 { background: linear-gradient(135deg, #06b6d4, #14b8a6); }
.tier-3 { background: linear-gradient(135deg, #84cc16, #ec4899); }
.vip-current { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.vip-cur-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.vip-cur-stats { display: flex; gap: 24px; }
.vip-cur-stats div { display: flex; flex-direction: column; align-items: center; }
.vip-cur-stats b { font-size: 22px; }
.period-row { justify-content: center; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0 10px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan-current { outline: 2px solid var(--brand); }
.plan-hot { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan-ribbon { position: absolute; top: -10px; right: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.plan-head { display: flex; align-items: center; gap: 8px; }
.plan-head h3 { margin: 0; font-size: 17px; }
.plan-ic { font-size: 22px; }
.plan-price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.plan-feats { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.plan-feats li { padding-left: 24px; position: relative; }
.plan-feats li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.tiers-table input { max-width: 120px; padding: 7px 10px; }

/* ---------- Icon SVG (Lucide) ---------- */
.i { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .i, .badge .i, .chip .i { vertical-align: middle; }
.badge .i { width: 13px; height: 13px; }
h1 .i, h2 .i { color: var(--brand); margin-right: 4px; }
.brand-mark .i { width: 18px; height: 18px; color: #fff; }
.auth-head .brand-mark .i { width: 22px; height: 22px; }
.icon-btn .i { width: 18px; height: 18px; }
.modal-x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.modal-x:hover { background: var(--bg-2); }
.modal-x .i { width: 20px; height: 20px; }
.empty .big .i { width: 44px; height: 44px; color: var(--muted); stroke-width: 1.6; }
.empty .big { line-height: 1; }
.waiting .env .i { width: 46px; height: 46px; color: var(--brand); stroke-width: 1.6; }
.feature .ic .i { width: 22px; height: 22px; color: var(--brand); }
.dash-link .ic { display: inline-grid; place-items: center; }
.dash-link .ic .i { width: 18px; height: 18px; }
.stat-ic .i { width: 22px; height: 22px; color: var(--brand); }
.plan-ic .i { width: 24px; height: 24px; color: var(--brand); }
.sess-ic .i { width: 24px; height: 24px; color: var(--muted); }
.vip-cur-name .i { color: var(--brand); }
.tier-badge .i { color: #fff; }
.eyebrow .i { width: 14px; height: 14px; }
.pw-eye .i { width: 18px; height: 18px; }
.pager-btns .btn .i { width: 16px; height: 16px; }

.confirm-page { max-width: 640px; margin: 60px auto; }
.confirm-page h1 { font-size: 22px; display: flex; gap: 10px; align-items: center; }
.confirm-page h1 .i { width: 26px; height: 26px; color: var(--brand); }

/* ---------- Sửa tràn ngang trên điện thoại ---------- */
.dash { grid-template-columns: 240px minmax(0, 1fr); }
.dash-side, .dash-main, .docs-body { min-width: 0; }
@media (max-width: 860px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-menu { scrollbar-width: none; }
  .dash-menu::-webkit-scrollbar { display: none; }
}
.docs { grid-template-columns: 210px minmax(0, 1fr); }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } }
.hide-narrow { display: none; }
.plan-price { white-space: nowrap; font-size: 26px; }
@media (max-width: 1100px) and (min-width: 1001px) { .plan-price { font-size: 22px; } }
.kv-copy .mono, .dns-content { overflow-wrap: anywhere; }

/* ---------- Domain ---------- */
.dom-main { min-width: 0; }
a.dom-name { color: var(--text); }
a.dom-name:hover { color: var(--brand); }
.dom-head { gap: 8px; }
.back-link { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.back-link:hover { border-color: var(--brand); text-decoration: none; }
.back-link .i { color: var(--text); margin: 0; }
.dom-stat.ok .stat-ic .i { color: var(--ok); }
.dom-stat.bad .stat-ic .i { color: var(--danger); }
.dom-stat.bad { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.rec-group { display: flex; gap: 8px; align-items: center; font-size: 15px; margin: 20px 0 2px; }
.rec-group .i { color: var(--brand); }
.rec-table td { vertical-align: top; }
.rec-fail td { background: color-mix(in srgb, var(--danger-soft) 55%, transparent); }
.dns-found { max-width: 300px; word-break: break-all; color: var(--muted); }
.rec-note { color: var(--danger); font-family: inherit; font-size: 12.5px; margin-top: 6px; display: flex; gap: 5px; align-items: flex-start; }
.rec-note .i { flex-shrink: 0; margin-top: 2px; }
.rec-warn .rec-note { color: var(--warn); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.danger-zone h2 .i { color: var(--danger); }

/* ---------- Admin: thư đã nhận ---------- */
.mail-doms { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.mail-dom { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 14px; }
.mail-dom b { font-size: 13px; background: var(--bg-2); padding: 1px 8px; border-radius: 99px; }
.mail-dom:hover { border-color: var(--brand); text-decoration: none; }
.mail-dom.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.mail-dom.active b { background: var(--brand); color: #fff; }
.mail-table td { vertical-align: top; }
.mail-table tr.unread td:last-child { font-weight: 600; }
.admin-viewer { min-height: 600px; }
.admin-viewer .mail-frame { min-height: 620px; }

/* ---------- Chia sẻ hộp thư ---------- */
.mb-item[data-open], tr[data-open] { cursor: pointer; }
.mb-item[data-open]:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.mb-shared { border-style: dashed; }
.invite-card { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 50%, var(--card)); }
.share-dlg h3 { display: flex; gap: 6px; align-items: center; }
.share-dlg .row.nowrap input { flex: 1; }
.share-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.share-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.share-row + .share-row { border-top: 1px solid var(--line); }
.share-row .avatar { width: 30px; height: 30px; font-size: 13px; }
.share-main { flex: 1; min-width: 0; }
.share-row select.per { padding: 6px 8px; font-size: 13px; }
.center { text-align: center; }
.share-join .brand-mark .i { width: 22px; height: 22px; }
@media (max-width: 560px) { .share-dlg .row.nowrap { flex-wrap: wrap; } }

/* ---------- Tổng hộp thư ---------- */
.menu-badge { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.um-toolbar { margin-bottom: 10px; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.fchips-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; max-width: 100%; }
.fchip .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.fchip b { background: var(--brand); color: #fff; font-size: 11px; padding: 0 6px; border-radius: 99px; }
.fchip:hover { border-color: var(--brand); }
.fchip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.fchip-clear { color: var(--muted); border-style: dashed; }
.um-newbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }
.um-newbar[hidden] { display: none; }
.um-group { position: sticky; top: 0; z-index: 1; padding: 6px 16px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.um-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.um-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; min-width: 0; }
.um-box { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: inline-flex; gap: 3px; align-items: center; }
.um-box .i { width: 12px; height: 12px; }
.um-otp { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.um-pager { padding: 8px 12px; border-top: 1px solid var(--line); }
.um-pager .pager { margin-top: 0; }
.um-wrap { min-height: 600px; }
.um-group .mono { text-transform: none; letter-spacing: 0; font-size: 12px; }
@media (max-width: 640px) {
  .fchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .fchips::-webkit-scrollbar { display: none; }
  .fchip { flex-shrink: 0; }
}
#claim-area { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-highlight { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.wh-url { font-size: 13px; font-weight: 700; word-break: break-all; }
.wh-row { flex-wrap: wrap; }
details summary { cursor: pointer; }
input[type="radio"], input[type="checkbox"] { width: auto; padding: 0; accent-color: var(--brand); }

/* ---------- Trang extension ---------- */
.ext-page { max-width: 960px; margin: 0 auto; }
.ext-hero { display: flex; gap: 20px; align-items: center; }
.ext-hero h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.ext-hero-ic { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow-lg); }
.ext-hero-ic .i { width: 36px; height: 36px; color: #fff; }
@media (max-width: 620px) { .ext-hero { flex-direction: column; text-align: center; } .ext-hero .row { justify-content: center; } }
#dm-role, #sh-perm { min-width: 140px; }

/* ---------- Thống kê (biểu đồ) ---------- */
:root { --chart-1: #0d9488; --chart-2: #eb6834; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart-1: #7b7cf2; --chart-2: #d95926; } }
:root[data-theme="dark"] { --chart-1: #7b7cf2; --chart-2: #d95926; }
.chart-wrap { position: relative; margin-top: 10px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .s1 { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .s2 { fill: none; stroke: var(--chart-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dlabel { font-size: 12px; font-weight: 700; fill: var(--text); }
.chart .xhair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot1 { fill: var(--chart-1); stroke: var(--card); stroke-width: 2; }
.chart .dot2 { fill: var(--chart-2); stroke: var(--card); stroke-width: 2; }
.chart-tip { position: absolute; top: 6px; min-width: 150px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; box-shadow: var(--shadow); pointer-events: none; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 5px 0 8px; vertical-align: -1px; }
.s1b { background: var(--chart-1); } .s2b { background: var(--chart-2); }
.legend { font-size: 12.5px; color: var(--muted); margin-right: 8px; }
.delta { font-size: 12px; font-weight: 700; color: var(--muted); }
.delta.up { color: var(--ok); } .delta.down { color: var(--danger); }
.delta .i { width: 12px; height: 12px; }
.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .st-grid { grid-template-columns: minmax(0, 1fr); } }
.st-list h3 { font-size: 14px; margin: 0 0 10px; display: flex; gap: 6px; align-items: center; }
.bl-row { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; font-size: 13px; border-radius: 6px; margin-bottom: 3px; }
.bl-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--chart-1) 16%, transparent); border-radius: 6px; }
.bl-k, .bl-n { position: relative; }
.bl-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bl-n { font-weight: 700; color: var(--text); }

/* ---------- Trang giới thiệu ---------- */
.feature-link { color: var(--text); display: block; transition: border-color .15s, transform .15s; }
.feature-link:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.feature .more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--brand); }
.feature .more .i { width: 14px; height: 14px; }
.promo-grid { margin-top: 56px; }
.promo { background: linear-gradient(135deg, color-mix(in srgb, var(--brand-soft) 70%, var(--card)), var(--card)); }
.promo h3 { margin: 10px 0 6px; font-size: 18px; }
.promo p { color: var(--muted); margin: 0 0 14px; }
.promo-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.promo-ic .i { width: 24px; height: 24px; color: #fff; }
.small-code { font-size: 12px; padding: 10px 12px; }
.price-grid { max-width: 860px; margin: 0 auto; }
.price-grid h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.who-grid .feature h3 { font-size: 15px; }
.order-last { order: 99; }
.item-route { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.item-route .badge { font-size: 11px; }
.grow-sel { flex: 1; min-width: 0; }

/* Thông báo đẩy — danh sách thiết bị */
.wp-list { display: flex; flex-direction: column; gap: 8px; }
.wp-dev { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.wp-dev-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wp-dev-main > svg { flex: none; color: var(--muted); }
.wp-dev-act { display: flex; align-items: center; gap: 6px; }
.wp-dev-act select { width: auto; padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
.dns-found .rec-note { word-break: normal; overflow-wrap: break-word; font-family: inherit; min-width: 120px; }

/* Email nhận thông báo */
.em-current { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.em-addr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; word-break: break-all; }
.em-form { gap: 8px; flex-wrap: wrap; }
.em-form .grow, .sm-test .grow { flex: 1 1 220px; min-width: 0; }
.em-cats, .sm-cats { display: flex; flex-direction: column; gap: 2px; }
.em-cat.is-off { opacity: .6; }
.sm-addrs { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-addrs .chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); }
.sm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.sm-kpis > div { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sm-kpis b { font-size: 20px; }
.sm-test { gap: 8px; flex-wrap: wrap; }
.sm-log .ellip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }

.wp-warn { color: var(--warn); display: flex; gap: 5px; align-items: flex-start; margin-top: 4px; }
.wp-help summary { cursor: pointer; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.wp-help ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }

/* Liên kết 2fa.ws */
.twofa-tip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.twofa-tip > svg { flex: none; color: var(--brand); width: 22px; height: 22px; }
.twofa-tip > div { flex: 1 1 220px; min-width: 0; }
.twofa-tip .small { color: var(--muted); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); }

/* ---------- Hero trang chủ (tech) ---------- */
body { overflow-x: clip; }
.hx {
  --hx-bg: radial-gradient(1100px 520px at 18% -10%, rgba(20, 184, 166, .16), transparent 60%), radial-gradient(900px 600px at 100% 30%, rgba(34, 211, 238, .10), transparent 60%), linear-gradient(180deg, #f5fbfa, #eef7f6);
  --hx-grid: rgba(13, 148, 136, .075); --hx-digit: rgba(13, 148, 136, .26); --hx-head: rgba(13, 148, 136, .75); --hx-packet: #14b8a6;
  --hx-text: #0b1124; --hx-muted: #556079; --hx-card: rgba(255, 255, 255, .72); --hx-line: rgba(13, 148, 136, .16); --hx-chip: rgba(255, 255, 255, .7);
  --hx-cyan: #65a30d; --hx-grad: linear-gradient(100deg, #0d9488, #0284c7 45%, #65a30d);
  position: relative; overflow: hidden; isolation: isolate;
  margin: -24px calc(50% - 50vw) 0; padding: 72px 0 64px;
  background: var(--hx-bg); color: var(--hx-text); border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hx {
    --hx-bg: radial-gradient(1000px 560px at 22% -12%, rgba(20, 184, 166, .32), transparent 60%), radial-gradient(800px 600px at 100% 40%, rgba(34, 211, 238, .14), transparent 62%), linear-gradient(180deg, #071816, #06110f);
    --hx-grid: rgba(45, 212, 191, .085); --hx-digit: rgba(45, 212, 191, .34); --hx-head: #99f6e4; --hx-packet: #22d3ee;
    --hx-text: #eef1fb; --hx-muted: #9aa5c2; --hx-card: rgba(20, 26, 44, .72); --hx-line: rgba(45, 212, 191, .2); --hx-chip: rgba(20, 26, 44, .6);
    --hx-cyan: #22d3ee; --hx-grad: linear-gradient(100deg, #2dd4bf, #38bdf8 45%, #22d3ee);
  }
}
:root[data-theme="dark"] .hx {
  --hx-bg: radial-gradient(1000px 560px at 22% -12%, rgba(20, 184, 166, .32), transparent 60%), radial-gradient(800px 600px at 100% 40%, rgba(34, 211, 238, .14), transparent 62%), linear-gradient(180deg, #071816, #06110f);
  --hx-grid: rgba(45, 212, 191, .085); --hx-digit: rgba(45, 212, 191, .34); --hx-head: #99f6e4; --hx-packet: #22d3ee;
  --hx-text: #eef1fb; --hx-muted: #9aa5c2; --hx-card: rgba(20, 26, 44, .72); --hx-line: rgba(45, 212, 191, .2); --hx-chip: rgba(20, 26, 44, .6);
  --hx-cyan: #22d3ee; --hx-grad: linear-gradient(100deg, #2dd4bf, #38bdf8 45%, #22d3ee);
}
.hx-canvas { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 45%, transparent 100%); mask-image: radial-gradient(120% 90% at 50% 30%, #000 45%, transparent 100%); }
.hx-glow { position: absolute; z-index: -2; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hx-glow-1 { width: 420px; height: 420px; left: -80px; top: -120px; background: #14b8a6; animation: hx-float 18s ease-in-out infinite; }
.hx-glow-2 { width: 360px; height: 360px; right: -60px; top: 120px; background: #22d3ee; opacity: .28; animation: hx-float 22s ease-in-out infinite reverse; }
.hx-glow-3 { width: 300px; height: 300px; left: 40%; bottom: -160px; background: #84cc16; opacity: .25; animation: hx-float 26s ease-in-out infinite; }
@keyframes hx-float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, 30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }
.hx-inner { max-width: 1160px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hx-line); background: var(--hx-chip);
  font-size: 12.5px; font-weight: 600; color: var(--hx-muted); backdrop-filter: blur(8px); }
.hx-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: hx-ping 2s infinite; flex: none; }
@keyframes hx-ping { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.hx-title { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -.045em; margin: 18px 0 18px; font-weight: 850; }
.hx-grad { background: var(--hx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: hx-sheen 8s ease-in-out infinite; }
.hx-grad-2 { animation-delay: -4s; }
@keyframes hx-sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hx-lead { color: var(--hx-muted); font-size: 17px; line-height: 1.65; margin: 0 0 18px; max-width: 590px; }
.hx-term { display: flex; align-items: center; gap: 8px; max-width: 590px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--hx-line); background: var(--hx-chip);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--hx-text); overflow: hidden; white-space: nowrap; backdrop-filter: blur(8px); }
.hx-prompt { display: inline-flex; align-items: center; color: var(--hx-muted); }
.hx-prompt .i { width: 14px; height: 14px; }
.hx-dollar { color: #10b981; font-weight: 700; }
#hx-term-text { overflow: hidden; text-overflow: clip; }
.hx-caret { width: 8px; height: 16px; background: var(--hx-cyan); animation: hx-blink 1s steps(1) infinite; flex: none; }
@keyframes hx-blink { 50% { opacity: 0; } }
.hx-addr { display: flex; align-items: center; gap: 6px; margin-top: 18px; max-width: 590px; padding: 6px; border-radius: 16px; border: 1px solid var(--hx-line);
  background: var(--hx-card); backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(13, 148, 136, .16); }
.hx-addr:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18), 0 18px 50px rgba(13, 148, 136, .2); }
.hx-addr input { border: 0; background: transparent; font-size: 16px; padding: 12px 12px; flex: 1.5; min-width: 0; color: var(--hx-text); }
.hx-addr input:focus { outline: none; }
.hx-addr .at { color: var(--hx-muted); font-weight: 700; font-size: 17px; }
.hx-addr select { border: 0; background: var(--bg-2); flex: 1; min-width: 0; font-size: 14.5px; padding: 11px 10px; font-weight: 600; border-radius: 10px; color: var(--text); }
.hx-addr .btn { padding: 12px 18px; border-radius: 12px; }
.hx-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.hx-btn-ghost { background: var(--hx-chip); border-color: var(--hx-line); color: var(--hx-text); backdrop-filter: blur(8px); }
.hx-btn-ghost:hover { border-color: var(--brand); text-decoration: none; }
.hx-hint { color: var(--hx-muted); font-size: 13.5px; margin: 12px 0 0; }
.hx-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--hx-line); background: var(--hx-chip); font-size: 12.5px; font-weight: 600; color: var(--hx-text); }
.hx-badge .i { width: 14px; height: 14px; color: var(--brand); }
.hx-recent { max-width: 590px; margin: 22px 0 0; }
.hx-recent .chips { justify-content: flex-start; }
.hx-right { display: flex; flex-direction: column; gap: 14px; }
.hx-card { position: relative; border-radius: 20px; padding: 18px; border: 1px solid var(--hx-line); background: var(--hx-card); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .18), 0 0 0 1px rgba(255, 255, 255, .04) inset; animation: hx-hover 7s ease-in-out infinite; }
.hx-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(20, 184, 166, .6), transparent 35%, transparent 65%, rgba(34, 211, 238, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes hx-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hx-card-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.hx-card-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.hx-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #10b981; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(16, 185, 129, .4); background: rgba(16, 185, 129, .1); }
.hx-card-addr { margin: 10px 0 12px; font-size: 13px; color: var(--hx-muted); }
.hx-otp { border-radius: 14px; padding: 14px; border: 1px solid var(--hx-line); background: rgba(20, 184, 166, .06); }
.hx-otp-top { display: flex; justify-content: space-between; gap: 10px; }
.hx-otp-from { font-weight: 700; font-size: 14px; }
.hx-otp-subj { font-size: 12.5px; color: var(--hx-muted); }
.hx-otp-copy { color: var(--hx-muted); }
.hx-otp-code { font-size: clamp(30px, 4.2vw, 42px); font-weight: 800; letter-spacing: .12em; margin: 8px 0 10px; color: var(--hx-text); }
.hx-bar { height: 4px; border-radius: 99px; background: var(--hx-line); overflow: hidden; }
.hx-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--hx-grad); }
.hx-bar span.run { animation: hx-bar 4.2s linear forwards; }
@keyframes hx-bar { to { width: 100%; } }
.hx-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; min-height: 166px; }
.hx-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--hx-line); background: var(--hx-chip); }
.hx-row.is-new { animation: hx-in .5s cubic-bezier(.2, .8, .2, 1); border-color: rgba(20, 184, 166, .45); }
@keyframes hx-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.hx-av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.hx-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hx-row-t b { font-size: 13px; }
.hx-row-t span { font-size: 11.5px; color: var(--hx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-row-code { font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--hx-muted); }
.hx-row.is-new .hx-row-code { color: #10b981; }
.hx-card-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--hx-muted); }
.hx-accent { color: var(--hx-cyan); }
.hx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hx-stats > div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hx-line); background: var(--hx-chip); backdrop-filter: blur(8px); display: flex; flex-direction: column; }
.hx-stats b { font-size: 20px; color: var(--hx-text); }
.hx-stats span { font-size: 12px; color: var(--hx-muted); }
@media (max-width: 980px) {
  .hx { padding: 48px 0 44px; }
  .hx-inner { grid-template-columns: 1fr; gap: 34px; }
  .hx-right { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .hx-addr { flex-wrap: wrap; }
  .hx-addr input { flex: 1 1 100%; }
  .hx-addr select { flex: 1 1 0; width: auto; }
  .hx-addr .at { padding-left: 8px; }
  .hx-addr .btn { flex: 1 1 100%; justify-content: center; }
  .hx-term { font-size: 12px; }
  .hx-glow { filter: blur(50px); }
}
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; }
  .hx-bar span { width: 60%; }
}

/* Các mục bên dưới hero: nhãn kiểu code + thẻ sáng viền khi rê chuột */
main.wrap { counter-reset: hxsec; }
.hx ~ .section-title { counter-increment: hxsec; }
.hx ~ .section-title::before { content: "// " counter(hxsec, decimal-leading-zero); display: block; margin-bottom: 6px; font: 700 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .14em; color: var(--brand); }
.hx ~ section .card, .hx ~ .grid .card { transition: border-color .2s, box-shadow .2s, transform .2s; }
.hx ~ section .card:hover { border-color: rgba(20, 184, 166, .45); box-shadow: 0 16px 40px rgba(13, 148, 136, .14); }
.hx ~ section .feature .ic { background: linear-gradient(135deg, var(--brand-soft), rgba(34, 211, 238, .12)); }
.promo-grid > *, .grid > * { min-width: 0; }
.promo pre.code { overflow-x: auto; max-width: 100%; }

/* ---------- Khung tạo hộp thư (nổi bật) ---------- */
@property --hx-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.hx-addr-label { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--brand); }
.hx-addr-label .i { width: 14px; height: 14px; }
.hx-addr { position: relative; margin-top: 8px; padding: 8px; border: 0; border-radius: 18px; max-width: 620px;
  animation: hx-glowpulse 5s ease-in-out infinite; }
.hx-addr::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--hx-a), #14b8a6, #22d3ee, #84cc16, #14b8a6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hx-spin 5s linear infinite; }
@keyframes hx-spin { to { --hx-a: 360deg; } }
@keyframes hx-glowpulse { 0%, 100% { box-shadow: 0 18px 60px rgba(20, 184, 166, .28), 0 0 0 0 rgba(20, 184, 166, 0); } 50% { box-shadow: 0 18px 70px rgba(34, 211, 238, .30), 0 0 0 6px rgba(20, 184, 166, .06); } }
.hx-addr:focus-within { box-shadow: 0 0 0 5px rgba(20, 184, 166, .22), 0 22px 70px rgba(13, 148, 136, .35); animation: none; }
.hx-addr input { font-size: 18px; font-weight: 600; padding: 14px 14px; }
.hx-addr input::placeholder { color: var(--hx-muted); font-weight: 500; }
.hx-addr .at { font-size: 19px; }
.hx-addr select { padding: 13px 10px; font-size: 15px; }
.hx-addr .btn { position: relative; overflow: hidden; padding: 14px 22px; font-size: 15.5px; font-weight: 700; border-radius: 13px; box-shadow: 0 10px 26px rgba(13, 148, 136, .4); }
.hx-addr .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: hx-shine 3.6s ease-in-out infinite; }
@keyframes hx-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* ---------- Hiện dần khi cuộn ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .2s; }
.rv.in { opacity: 1; transform: none; }
.rv.in.feature-link:hover, .rv.in.flow-step:hover { transform: translateY(-4px); }

/* ---------- 3 bước nối nhau ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; }
.flow-step { padding: 22px; height: 100%; }
.flow-step:hover { border-color: rgba(20, 184, 166, .5); box-shadow: 0 18px 44px rgba(13, 148, 136, .16); }
.flow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.flow-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #14b8a6, #22d3ee); box-shadow: 0 10px 24px rgba(13, 148, 136, .3); }
.flow-ic .i { width: 22px; height: 22px; }
.flow-n { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: var(--brand); }
.flow-step h3 { margin: 0 0 6px; font-size: 17px; }
.flow-step p { margin: 0; color: var(--muted); font-size: 14px; }
.flow-link { position: relative; height: 2px; margin: 0 6px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: flow-dash 1s linear infinite; }
.flow-link::after { content: ""; position: absolute; right: -3px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--brand); border-right: 0; }
.flow-link.rv { opacity: 1; transform: scaleX(0); transform-origin: left center; transition: transform .8s cubic-bezier(.2, .7, .2, 1) .25s; }
.flow-link.rv.in { transform: scaleX(1); }
.flow-dot { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 12px #22d3ee, 0 0 0 3px rgba(34, 211, 238, .2); animation: flow-move 2.2s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes flow-dash { to { background-position: 24px 0; } }
@keyframes flow-move { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; }
  .flow-link { width: 2px; height: 40px; margin: 6px auto; background: repeating-linear-gradient(180deg, var(--brand) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation-name: flow-dash-v; }
  .flow-link::after { right: auto; left: -4px; top: auto; bottom: -3px; border: 5px solid transparent; border-top: 7px solid var(--brand); border-bottom: 0; }
  .flow-link.rv { transform: scaleY(0); transform-origin: center top; }
  .flow-link.rv.in { transform: scaleY(1); }
  .flow-dot { left: -4px; top: 0; animation-name: flow-move-v; }
}
@keyframes flow-dash-v { to { background-position: 0 24px; } }
@keyframes flow-move-v { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }

/* ---------- FAQ ---------- */
.faqx { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 44px; margin-top: 80px; align-items: start; }
.faqx-side { position: sticky; top: 88px; }
.faqx-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.faqx-side h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -.03em; margin: 8px 0 10px; }
.faqx-side > p { margin: 0; }
.faqx-search { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.faqx-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20, 184, 166, .14); }
.faqx-search .i { color: var(--muted); }
.faqx-search input { flex: 1; border: 0; background: transparent; padding: 12px 0; font-size: 15px; min-width: 0; }
.faqx-search input:focus { outline: none; }
.faqx-count { margin-top: 8px; }
.faqx-help { margin-top: 20px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--brand-soft), rgba(34, 211, 238, .08)); }
.faqx-help p { margin: 4px 0 10px; }
.faqx-help .row { flex-wrap: wrap; gap: 8px; }
.faqx-list { display: flex; flex-direction: column; gap: 10px; }
.faqx-item { border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.faqx-item:hover { border-color: rgba(20, 184, 166, .35); }
.faqx-item.open { border-color: rgba(20, 184, 166, .55); box-shadow: 0 14px 34px rgba(13, 148, 136, .13); }
.faqx-q { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; font-weight: 650; font-size: 15.5px; color: var(--text); }
.faqx-n { flex: none; font-size: 12px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 4px 7px; }
.faqx-qt { flex: 1; }
.faqx-pm { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); transition: transform .3s, background .3s, border-color .3s; }
.faqx-pm::before, .faqx-pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 2px; background: var(--muted); transition: background .3s; }
.faqx-pm::after { transform: rotate(90deg); }
.faqx-item.open .faqx-pm { transform: rotate(135deg); background: var(--brand); border-color: var(--brand); }
.faqx-item.open .faqx-pm::before, .faqx-item.open .faqx-pm::after { background: #fff; }
.faqx-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .7, .2, 1); }
.faqx-a > div { overflow: hidden; }
.faqx-item.open .faqx-a { grid-template-rows: 1fr; }
.faqx-a p { margin: 0; padding: 0 20px 18px 62px; color: var(--muted); line-height: 1.7; }
@media (max-width: 860px) {
  .faqx { grid-template-columns: 1fr; gap: 22px; margin-top: 56px; }
  .faqx-side { position: static; }
  .faqx-a p { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .flow-link.rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .flow-link, .flow-dot, .hx-addr, .hx-addr::before, .hx-addr .btn::after { animation: none !important; }
}

/* ---------- Hero thu gọn (trang giới thiệu) ---------- */
.hx-mini { padding: 64px 0 56px; text-align: center; }
.hx-mini-inner { max-width: 820px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; align-items: center; }
.hx-mini .hx-title { font-size: clamp(32px, 5.4vw, 56px); }
.hx-mini .hx-lead { margin-left: auto; margin-right: auto; max-width: 660px; }
.hx-actions-c { justify-content: center; margin-top: 8px; }
.hx-mini .btn-lg { padding: 13px 22px; font-size: 15.5px; }
.prc-toggle { background: var(--hx-chip); border: 1px solid var(--hx-line); border-radius: 12px; padding: 4px; gap: 4px; }
.prc-toggle .seg-btn { border: 0; background: transparent; color: var(--hx-text); padding: 9px 16px; border-radius: 9px; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.prc-toggle .seg-btn.on { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(13, 148, 136, .35); }

/* ---------- Spotlight theo con trỏ cho thẻ ---------- */
.spot { position: relative; isolation: isolate; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(20, 184, 166, .16), rgba(34, 211, 238, .06) 40%, transparent 70%); }
.spot:hover::before { opacity: 1; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(20, 184, 166, .9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::after { opacity: 1; }
.feature .ic { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .3s, box-shadow .3s; }
.feature:hover .ic { transform: translateY(-3px) rotate(-6deg) scale(1.08); background: linear-gradient(135deg, #14b8a6, #22d3ee); box-shadow: 0 10px 24px rgba(13, 148, 136, .35); }
.feature:hover .ic .i { color: #fff; }
.feature .ic .i { transition: color .3s; }
.feature-link .more .i { transition: transform .25s; }
.feature-link:hover .more .i { transform: translateX(4px); }

/* ---------- Mục 04: Miễn phí để bắt đầu ---------- */
.plans-home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.plan2 { padding: 26px; display: flex; flex-direction: column; }
.plan2-top { display: flex; gap: 14px; align-items: center; }
.plan2-top h3 { margin: 0; font-size: 18px; }
.plan2-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.plan2-ic .i { width: 24px; height: 24px; }
.plan2-ic-hot { background: linear-gradient(135deg, #14b8a6, #84cc16, #22d3ee); color: #fff; box-shadow: 0 10px 26px rgba(20, 184, 166, .4); }
.plan2-price { display: flex; align-items: baseline; gap: 4px; color: var(--muted); font-size: 13px; }
.plan2-price b { font-size: 30px; color: var(--text); letter-spacing: -.02em; }
.plan2-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan2-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.plan2-list li .i { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.plan2-hot { border-color: transparent; }
.plan2-hot::after { opacity: 1 !important; background: conic-gradient(from var(--hx-a), #14b8a6, #22d3ee, #84cc16, #14b8a6) !important; animation: hx-spin 6s linear infinite; padding: 2px !important; }
.plan2-flag { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 800; letter-spacing: .14em; padding: 4px 9px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #14b8a6, #84cc16); }
.plan2-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.plan2-tier { font-size: 12px; padding: 4px 9px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.plan2-tier b { color: var(--text); }
.btn-block { width: 100%; justify-content: center; }
@media (max-width: 760px) { .plans-home { grid-template-columns: 1fr; } }

/* ---------- Trang Gói VIP ---------- */
.prc-soon { max-width: 900px; margin: 28px auto 0; }
.prc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; align-items: stretch; }
.prc { padding: 24px; display: flex; flex-direction: column; }
.prc-name { font-weight: 800; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.prc-price { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; color: var(--muted); }
.prc-price b { font-size: 38px; letter-spacing: -.03em; color: var(--text); }
.prc-note { min-height: 20px; }
.prc .plan2-list { margin-bottom: 20px; }
.prc-hot { border-color: transparent; transform: translateY(-6px); box-shadow: 0 26px 60px rgba(13, 148, 136, .22); }
.prc-hot.rv.in { transform: translateY(-6px); }
.prc-hot::after { opacity: 1 !important; background: conic-gradient(from var(--hx-a), #14b8a6, #22d3ee, #84cc16, #14b8a6) !important; animation: hx-spin 6s linear infinite; padding: 2px !important; }
.prc-flag { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #14b8a6, #84cc16); }
.prc-table-wrap { padding: 6px; }
.prc-table th, .prc-table td { text-align: center; }
.prc-table th:first-child, .prc-table td:first-child { text-align: left; font-weight: 600; }
.prc-table .hot { background: rgba(20, 184, 166, .07); }
.ok-ic .i { width: 18px; height: 18px; color: var(--ok); }
.no-ic { color: var(--muted); }
.prc-trust { margin-top: 40px; }
.prc-faq { max-width: 820px; margin: 0 auto; }
@media (max-width: 1000px) { .prc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prc-grid { grid-template-columns: 1fr; } .prc-hot, .prc-hot.rv.in { transform: none; } }

/* ---------- Dải kêu gọi hành động ---------- */
.cta-band { margin: 64px 0 8px; padding: 34px; border-radius: 22px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  color: #fff; background: radial-gradient(600px 300px at 10% 0%, rgba(34, 211, 238, .35), transparent 60%), linear-gradient(120deg, #0d9488, #0369a1 60%, #0e7490); box-shadow: 0 30px 70px rgba(13, 148, 136, .3); }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.cta-band p { margin: 0; opacity: .85; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: #0f766e; border-color: #fff; }
.cta-band .hx-btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }

/* ---------- Trang Domain riêng ---------- */
.od-dns { max-width: 900px; margin: 34px auto 0; padding: 0; overflow: hidden; }
.od-dns-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 12.5px; color: var(--muted); }
.od-dots { display: inline-flex; gap: 6px; }
.od-dots i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.od-dots i:nth-child(2) { background: #fbbf24; }
.od-dots i:nth-child(3) { background: #34d399; }
.od-dns-table { font-size: 13px; }
.od-dns-table td { white-space: nowrap; }
.od-type { font-weight: 800; color: var(--brand); }
.od-dns > p { padding: 0 16px 14px; margin: 10px 0 0; }
.od-dns .badge .i { width: 12px; height: 12px; }
/* Viền gradient xoay của gói nổi bật (độc lập với spotlight để chạy cả trên điện thoại) */
.plan2, .prc { position: relative; }
.plan2-hot::after, .prc-hot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* ---------- Trang Extension ---------- */
.xe-notes { text-align: center; margin: 14px auto 0; max-width: 760px; }
/* Demo trình duyệt giả */
.xd { max-width: 980px; margin: 0 auto; }
.xd-browser { position: relative; border-radius: 16px; border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: 0 30px 80px rgba(15, 23, 42, .18); }
.xd-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.xd-url { flex: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; }
.xd-url .i { width: 12px; height: 12px; color: var(--ok); }
.xd-ext { position: relative; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #14b8a6, #0ea5e9); transition: transform .15s; }
.xd-ext .i { width: 15px; height: 15px; }
.xd-ext b { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 10px; display: grid; place-items: center; animation: xd-pop .3s; }
.xd-page { padding: 34px 20px 40px; min-height: 430px; display: grid; place-items: center;
  background: radial-gradient(500px 240px at 20% 0%, rgba(20, 184, 166, .08), transparent 60%), var(--card); }
.xd-form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; }
.xd-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--brand); font-size: 14px; }
.xd-logo .i { width: 16px; height: 16px; }
.xd-form h3 { margin: 4px 0 10px; font-size: 20px; }
.xd-form label { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.xd-input { min-height: 40px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-family: ui-monospace, Menlo, monospace; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.xd-ph { color: var(--muted); font-family: inherit; opacity: .7; }
.xd-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.xd-otp span { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; font: 800 18px ui-monospace, Menlo, monospace; transition: border-color .2s, background .2s, transform .2s; }
.xd-otp span.fill { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); transform: translateY(-2px); }
.xd-btn { margin-top: 12px; padding: 11px; border-radius: 10px; text-align: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); transition: transform .15s, background .3s; }
.xd-btn.ok { background: linear-gradient(135deg, #059669, #10b981); }
.xd-ok { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--ok); font-weight: 700; font-size: 14px; animation: xd-pop .35s; }
.xd-ok .i { width: 18px; height: 18px; }
.press { transform: scale(.94); }
/* Popup extension */
.xd-pop { position: absolute; top: 52px; right: 12px; width: 260px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28); display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity .25s, transform .25s; }
.xd-pop.show { opacity: 1; transform: none; }
.xd-pop-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; }
.xd-pop-head span:first-child { display: inline-flex; gap: 6px; align-items: center; }
.xd-pop-head .i { width: 14px; height: 14px; color: var(--brand); }
.xd-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .08em; color: #10b981; }
.xd-live i { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.xd-pop-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); transition: transform .15s; }
.xd-pop-btn .i { width: 13px; height: 13px; }
.xd-pop-fill { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }
.xd-addr { padding: 8px 10px; border-radius: 9px; background: var(--brand-soft); font-size: 12px; font-weight: 700; min-height: 32px; overflow: hidden; white-space: nowrap; }
/* Thông báo OTP */
.xd-toast { position: absolute; right: 14px; bottom: 14px; width: 300px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px;
  background: #0f172a; color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); opacity: 0; transform: translateX(30px); transition: opacity .3s, transform .3s; pointer-events: none; }
.xd-toast.show { opacity: 1; transform: none; }
.xd-toast-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #14b8a6, #22d3ee); flex: none; }
.xd-toast-ic .i { width: 16px; height: 16px; }
.xd-toast > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xd-toast b { font-size: 13.5px; letter-spacing: .04em; }
.xd-toast > div span { font-size: 11.5px; opacity: .7; }
.xd-toast-btn { padding: 6px 10px; border-radius: 8px; background: #10b981; font-size: 12px; font-weight: 700; white-space: nowrap; transition: transform .15s; }
/* Con trỏ chuột giả */
.xd-cur { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; pointer-events: none; transition: transform .65s cubic-bezier(.4, .1, .2, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.xd-cur svg { width: 22px; height: 22px; fill: #fff; stroke: #0f172a; stroke-width: 1.5; stroke-linejoin: round; }
.xd-cur::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; }
.xd-cur.click::after { animation: xd-ripple .4s ease-out; }
@keyframes xd-ripple { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
@keyframes xd-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
/* Thanh bước */
.xd-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.xd-steps li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--muted); transition: all .3s; }
.xd-steps li span { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--bg-2); }
.xd-steps li.on { color: var(--text); border-color: var(--brand); box-shadow: 0 10px 24px rgba(13, 148, 136, .16); }
.xd-steps li.on span { background: var(--brand); color: #fff; }
.xd-steps li.done span { background: var(--ok); color: #fff; }
/* Ảnh chụp thật */
.xe-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.xe-shot { margin: 0; }
.xe-frame { border-radius: 18px; padding: 8px; background: linear-gradient(140deg, rgba(20, 184, 166, .5), rgba(34, 211, 238, .35)); box-shadow: 0 26px 60px rgba(15, 23, 42, .22); transition: transform .3s; }
.xe-shot:nth-child(2) .xe-frame { transform: translateY(-14px); }
.xe-shot:hover .xe-frame { transform: translateY(-6px) rotate(-.6deg); }
.xe-frame img { display: block; width: 100%; height: auto; border-radius: 12px; background: #071816; }
.xe-shot figcaption { margin-top: 14px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.xe-shot figcaption span { color: var(--muted); font-size: 13.5px; }
/* Phím tắt + quyền */
.xe-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.xe-two h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0 0 12px; }
.xe-keys { display: flex; flex-direction: column; gap: 12px; }
.xe-keys > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; }
.xe-keys p { margin: 0; color: var(--muted); font-size: 14px; }
kbd { display: inline-block; min-width: 26px; padding: 3px 7px; margin: 0 2px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--bg-2); font: 700 12px ui-monospace, Menlo, monospace; text-align: center; color: var(--text); }
.xe-menu { margin-top: 18px; max-width: 290px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 16px 40px rgba(15, 23, 42, .16); font-size: 13px; }
.xe-menu > div { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; }
.xe-menu .i { width: 14px; height: 14px; color: var(--brand); }
.xe-menu-dim { color: var(--muted); }
.xe-menu-hi { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.xe-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.xe-code { font-size: 12.5px; line-height: 1.7; margin: 12px 0 0; background: #071816 !important; color: #e2e8f0; border-color: #1e293b; overflow-x: auto; }
.xe-code code { background: none; padding: 0; color: inherit; }
.tk-k { color: #93c5fd; } .tk-s { color: #86efac; } .tk-c { color: #64748b; font-style: italic; }
/* Cài đặt */
.xe-install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.xe-timeline { list-style: none; counter-reset: xs; margin: 0; padding: 0; position: relative; }
.xe-timeline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--brand), #22d3ee); opacity: .4; }
.xe-timeline li { counter-increment: xs; position: relative; padding: 9px 0 9px 52px; min-height: 52px; font-size: 14.5px; }
.xe-timeline li::before { content: counter(xs); position: absolute; left: 0; top: 6px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #14b8a6, #22d3ee); box-shadow: 0 8px 18px rgba(13, 148, 136, .3); }
.xe-chrome { border-radius: 16px; border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, .16); }
.xe-chrome-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13px; }
.xe-dev { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.xe-toggle { display: inline-block; width: 34px; height: 18px; border-radius: 99px; background: var(--brand); position: relative; flex: none; }
.xe-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.xe-chrome-act { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; }
.xe-chrome-btn { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.xe-chrome-btn.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); animation: hx-glowpulse 3s ease-in-out infinite; }
.xe-chrome-card { display: flex; gap: 12px; align-items: flex-start; margin: 4px 16px 16px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); }
.xe-chrome-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #14b8a6, #0ea5e9); flex: none; }
.xe-chrome-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.xe-chrome-card > div span { color: var(--muted); font-size: 12px; }
.xe-chrome-card p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.xe-upd h3 { display: flex; gap: 8px; align-items: center; margin-top: 0; }
@media (max-width: 900px) {
  .xe-shots { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .xe-shot:nth-child(2) .xe-frame { transform: none; }
  .xe-two, .xe-install { grid-template-columns: 1fr; }
  .xd-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .xd-page { padding: 24px 14px 120px; min-height: 0; }
  .xd-pop { width: 220px; }
  .xd-toast { left: 10px; right: 10px; width: auto; }
  .xe-keys > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .xd-cur { display: none; } }
.xe-two > *, .xe-install > *, .xe-shots > * { min-width: 0; }
.xd-ok { min-height: 22px; }
.xd-ok.off { visibility: hidden; animation: none; }

/* ---------- Thành viên domain: vai trò + nhận mọi thư ---------- */
.dm-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px; }
.dm-role { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 3px; }
.dm-role b { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.dm-role b .i { width: 15px; height: 15px; color: var(--brand); }
.dm-role span { font-size: 12.5px; color: var(--muted); }
.dm-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dm-add input[type="text"], .dm-add #dm-user { flex: 1 1 200px; min-width: 0; }
.dm-recv-new, .dm-recv { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.dm-recv-new input, .dm-recv input { width: auto; accent-color: var(--brand); }
.dm-recv .i { width: 14px; height: 14px; color: var(--brand); }
.dm-recv.is-off { opacity: .45; cursor: not-allowed; }
.dm-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dm-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.dm-main { flex: 1 1 160px; min-width: 0; }
.dm-row select { width: auto; }
.fchip-domain { border-style: dashed; }
.md-recv { margin-bottom: 12px; padding-top: 6px; padding-bottom: 6px; }
.md-use-addr { --hx-card: var(--card); --hx-line: var(--line); --hx-text: var(--text); --hx-muted: var(--muted); margin-top: 14px; max-width: 640px; }
.md-use-addr .at { white-space: nowrap; font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
@media (max-width: 760px) { .dm-roles { grid-template-columns: 1fr; } }

/* ---------- Địa chỉ tạm đã mở / theo dõi 6 giờ ---------- */
.wt-head { gap: 10px; flex-wrap: wrap; }
.wt-card .toolbar { margin: 10px 0; }
.wt-table td { vertical-align: middle; }
.wt-table .addr-link { word-break: break-all; }
.wt-act { text-align: right; }
.wt-act .btn { margin-left: 4px; }
.wt-on .i, .wt-chip .i { animation: wt-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes wt-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 95% { transform: rotate(6deg); } }
.wt-chip { margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .wt-on .i, .wt-chip .i { animation: none; } }
.wt-table .addr-link { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.wt-list { display: flex; flex-direction: column; gap: 8px; }
.wt-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.wt-row.is-on { border-color: rgba(5, 150, 105, .35); }
.wt-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wt-main .addr-link { font-weight: 700; overflow-wrap: anywhere; white-space: normal; }
.wt-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.wt-meta .badge .i { width: 13px; height: 13px; }
.wt-times { flex: 0 1 260px; display: flex; flex-direction: column; gap: 2px; }
.wt-act { display: flex; gap: 6px; align-items: center; margin-left: auto; }

/* ---------- Mail tạm vs địa chỉ đã giữ ---------- */
.kind-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.kind-tag .i { width: 13px; height: 13px; }
.kind-temp { color: #b45309; background: rgba(245, 158, 11, .14); }
.kind-mine { color: var(--ok); background: var(--ok-soft); }
.kind-shared { color: var(--brand); background: var(--brand-soft); }
.inbox-top.is-temp { border: 1.5px dashed rgba(245, 158, 11, .7); background: linear-gradient(135deg, rgba(245, 158, 11, .06), transparent 45%), var(--card); }
.inbox-top.is-owned { border-color: rgba(5, 150, 105, .45); box-shadow: inset 4px 0 0 var(--ok), var(--shadow); }
.temp-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .08); }
.temp-banner-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(245, 158, 11, .18); color: #b45309; flex: none; }
.temp-banner-ic .i { width: 18px; height: 18px; animation: tmp-flip 4s ease-in-out infinite; }
@keyframes tmp-flip { 0%, 80% { transform: rotate(0); } 90%, 100% { transform: rotate(180deg); } }
.temp-banner-t { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.temp-banner-t span { color: var(--muted); }
.temp-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(245, 158, 11, .6); background: rgba(245, 158, 11, .07); }
.temp-strip > .i { width: 18px; height: 18px; color: #b45309; flex: none; }
.temp-strip > div { flex: 1 1 200px; display: flex; flex-direction: column; font-size: 13px; }
.temp-strip > div span { color: var(--muted); font-size: 12.5px; }
.tmp-badge { margin-left: 6px; }
.tmp-badge .i { width: 12px; height: 12px; }
.tmp-keep-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tmp-keep-list li { display: flex; gap: 8px; align-items: flex-start; }
.tmp-keep-list .i { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kind-temp, :root:not([data-theme="light"]) .temp-banner-ic, :root:not([data-theme="light"]) .temp-strip > .i { color: #fbbf24; } }
:root[data-theme="dark"] .kind-temp, :root[data-theme="dark"] .temp-banner-ic, :root[data-theme="dark"] .temp-strip > .i { color: #fbbf24; }
@media (prefers-reduced-motion: reduce) { .temp-banner-ic .i { animation: none; } }

/* ---------- OTPlane: hero 2 cột (nội dung trái, thẻ "boarding pass" phải) ---------- */
.hx-inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; }
.hx-title { font-size: clamp(36px, 5.6vw, 64px); }
.brand-mark { background: linear-gradient(135deg, #14b8a6, #0284c7); }
/* Đường băng chạy dưới khối nội dung */
.hx-left::after { content: ""; display: block; width: min(360px, 70%); height: 3px; margin-top: 26px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 22px, transparent 22px 40px); background-size: 40px 3px; animation: runway 1.2s linear infinite; opacity: .55; }
@keyframes runway { to { background-position: 40px 0; } }

/* Thẻ inbox = vé lên máy bay */
.hx-card { padding: 0; overflow: visible; border-radius: 22px; }
.hx-card-head { padding: 14px 18px; border-radius: 22px 22px 0 0; color: #fff;
  background: linear-gradient(120deg, #0f766e, #0284c7); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.hx-card-head .i { color: #fff; }
.hx-card-head .hx-live { color: #d9f99d; border-color: rgba(217, 249, 157, .5); background: rgba(217, 249, 157, .12); }
.hx-card-addr { margin: 0; padding: 12px 18px 0; display: flex; justify-content: space-between; gap: 10px; }
.hx-card-addr::before { content: "PASSENGER"; font-size: 10px; letter-spacing: .16em; color: var(--hx-muted); }
.hx-otp { position: relative; margin: 10px 18px 0; border-radius: 14px; border: 1px dashed var(--hx-line); background: transparent; }
.hx-otp::before { content: "GATE CODE"; position: absolute; top: -8px; left: 14px; padding: 0 6px; font: 700 10px ui-monospace, Menlo, monospace; letter-spacing: .16em; color: var(--brand); background: var(--hx-card); }
.hx-otp-code { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: .18em; }
/* Đường đục lỗ + 2 khuyết tròn */
.hx-list { position: relative; margin: 18px 0 0; padding: 18px 18px 0; border-top: 2px dashed var(--hx-line); min-height: 170px; }
.hx-list::before, .hx-list::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--hx-line); }
.hx-list::before { left: -13px; } .hx-list::after { right: -13px; }
.hx-card-foot { padding: 12px 18px 16px; margin: 0; }
.hx-row { border-style: solid; }
.hx-row.is-new { border-color: rgba(20, 184, 166, .55); }
.hx-right { gap: 16px; }
@media (max-width: 980px) { .hx-inner { grid-template-columns: 1fr; } }

/* Các mục bên dưới: thẻ có vạch màu ở cạnh trên (khác FlyMailX) */
.hx ~ section .feature, .hx ~ section .flow-step { background: linear-gradient(90deg, #14b8a6, #0284c7) top / 100% 3px no-repeat, var(--card); }
.hx ~ .section-title::before { content: "✈ " counter(hxsec, decimal-leading-zero); }

/* ---------- OTPlane: mây trôi thay cho đốm sáng ---------- */
.hx-glow { border-radius: 999px; filter: blur(46px); }
.hx-glow-1 { width: 560px; height: 150px; left: -200px; top: 6%; background: #14b8a6; opacity: .32; animation: cloud-drift 46s linear infinite; }
.hx-glow-2 { width: 460px; height: 120px; left: -260px; top: 52%; background: #38bdf8; opacity: .22; animation: cloud-drift 62s linear infinite; animation-delay: -24s; }
.hx-glow-3 { width: 380px; height: 110px; left: -220px; bottom: 6%; top: auto; background: #84cc16; opacity: .16; animation: cloud-drift 54s linear infinite; animation-delay: -40s; }
@keyframes cloud-drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 600px)); } }
.hx-canvas { -webkit-mask-image: radial-gradient(130% 100% at 60% 45%, #000 55%, transparent 100%); mask-image: radial-gradient(130% 100% at 60% 45%, #000 55%, transparent 100%); }

/* Thẻ tính năng: icon + tiêu đề cùng 1 hàng, mô tả bên dưới (thẻ thấp gọn hơn) */
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; align-content: start; }
.feature .ic { margin-bottom: 0; width: 38px; height: 38px; }
.feature h3 { margin: 0; line-height: 1.3; }
.feature > p, .feature > .more { grid-column: 1 / -1; }
.feature > p { margin-top: 10px; }
.feature > .more { margin-top: 8px; justify-self: start; }

/* Nội dung dựng sẵn cho công cụ tìm kiếm (hiện trong khoảnh khắc trước khi app tải xong) */
.seo-pre { max-width: 780px; margin: 40px auto; line-height: 1.7; color: var(--text); }
.seo-pre h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; line-height: 1.15; }
.seo-pre h2 { margin-top: 28px; font-size: 20px; }
.seo-pre h3 { margin: 18px 0 4px; font-size: 16px; }
.seo-pre p, .seo-pre li { color: var(--muted); }
.seo-links { margin-top: 28px; font-size: 14px; }
