/* =====================================================================
   VPS Panel — giao diện sáng
   ===================================================================== */
:root {
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;

  --bg: #f5f6fb;
  --bg-glow: radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,.10), transparent 60%),
             radial-gradient(900px 500px at 100% 0%, rgba(168,85,247,.08), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f1f3f9;
  --border: #e6e8f1;
  --border-2: #d9dce8;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --primary: #5b5bf0;
  --primary-2: #8b5cf6;
  --primary-ink: #ffffff;
  --primary-soft: #eef0ff;
  --primary-soft-2: #e0e3ff;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  --ok: #059669; --ok-soft: #e7f8f1;
  --bad: #e11d48; --bad-soft: #fdecf0;
  --warn: #c2410c; --warn-soft: #fff3e6;
  --info: #2563eb; --info-soft: #eaf1ff;
  --code-bg: #f1f3fb;
  --term-bg: #0f1424; --term-text: #d6dbea;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.05);
  --shadow: 0 4px 16px -4px rgba(15,23,42,.08), 0 2px 6px -2px rgba(15,23,42,.05);
  --shadow-lg: 0 24px 48px -16px rgba(30,27,75,.22);
  --ring: 0 0 0 4px rgba(99,102,241,.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 15px/1.6 var(--font); color: var(--text);
  background: var(--bg-glow), var(--bg); background-attachment: fixed;
  transition: background-color .25s, color .25s;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.015em; margin: 0; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 10px; }
code, .mono { font-family: var(--mono); font-size: 13.5px; }
code { background: var(--code-bg); color: var(--text); padding: 2px 7px; border-radius: 6px; word-break: break-all; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.bad { color: var(--bad); } .ok { color: var(--ok); } .nowrap { white-space: nowrap; } .inline { display: inline; }
.mt { margin-top: 20px; } .mb { margin-bottom: 20px; }
.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.i-lg { width: 22px; height: 22px; } .i-sm { width: 15px; height: 15px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-top: 28px; padding-bottom: 56px; }

/* ------------------------------------------------------------ topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; white-space: nowrap; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px -6px rgba(99,102,241,.7); }
.logo .i { width: 19px; height: 19px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.navlink { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14px; white-space: nowrap; }
.navlink:hover { background: var(--surface-3); color: var(--text); }
.navlink.on { background: var(--primary-soft); color: var(--primary); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: .15s; }
.iconbtn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.menu-btn { display: none; }

.usermenu { position: relative; }
.usermenu > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.usermenu > summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.usermenu .uname { font-size: 13.5px; font-weight: 500; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; }
.dropdown .dd-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text-2); background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-3); color: var(--text); }

.mockbar { background: repeating-linear-gradient(45deg, var(--warn-soft), var(--warn-soft) 12px, transparent 12px, transparent 24px), var(--surface);
  color: var(--warn); text-align: center; padding: 7px 16px; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--border); }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--grad); color: var(--primary-ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(99,102,241,.8); transition: transform .12s, box-shadow .15s, filter .15s; text-decoration: none; }
.btn:hover { color: var(--primary-ink); filter: brightness(1.06); box-shadow: 0 10px 24px -10px rgba(99,102,241,.9); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .iconbtn:focus-visible, .cbtn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; gap: 6px; }
.btn-sm .i { width: 15px; height: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: var(--surface); color: var(--text-2); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-soft { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.btn-soft:hover { background: var(--primary-soft-2); color: var(--primary); box-shadow: none; }
.btn-ok { background: var(--ok); box-shadow: none; } .btn-ok:hover { box-shadow: none; }
.btn-bad { background: var(--bad); box-shadow: none; } .btn-bad:hover { box-shadow: none; }
.btn-danger-soft { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.btn-danger-soft:hover { color: var(--bad); box-shadow: none; filter: brightness(.97); }
.linkbtn { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.cbtn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: .15s; vertical-align: middle; flex: none; }
.cbtn .i { width: 14px; height: 14px; }
.cbtn:hover { color: var(--primary); border-color: var(--primary-soft-2); background: var(--primary-soft); }
.cbtn.copied { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }

/* ------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { display: flex; align-items: center; gap: 10px; }
.card-title .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: 1fr 1fr; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 500; margin-bottom: 10px; }
.back:hover { color: var(--text); }

/* ------------------------------------------------------------ flash */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; border: 1px solid transparent; font-size: 14px; }
.flash .i { margin-top: 2px; }
.flash-ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.flash-bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.flash-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.flash-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.flash .linkbtn { color: inherit; text-decoration: underline; }

/* ------------------------------------------------------------ pills & badges */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 4px 11px 4px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-ok .dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); animation: pulse 2s infinite; }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-info .dot { animation: blink 1.2s infinite; }
.pill-muted { background: var(--surface-3); color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px transparent; } }
@keyframes blink { 50% { opacity: .3; } }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; vertical-align: middle; }
.b-ok { background: var(--ok-soft); color: var(--ok); } .b-bad { background: var(--bad-soft); color: var(--bad); }
.b-warn { background: var(--warn-soft); color: var(--warn); } .b-info { background: var(--info-soft); color: var(--info); }
.b-muted { background: var(--surface-3); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); border-radius: 8px; padding: 3px 9px; }

/* ------------------------------------------------------------ OS icon */
.osi { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; flex: none; }
.osi svg { width: 20px; height: 20px; }
.osi.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
.osi.lg svg { width: 28px; height: 28px; }
.osi.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.osi.sm svg { width: 16px; height: 16px; }
.osi-ubuntu { background: linear-gradient(135deg, #f0702f, #d9411e); }
.osi-debian { background: linear-gradient(135deg, #d70a53, #a80030); }
.osi-centos { background: linear-gradient(135deg, #a34b9c, #6b2a7a); }
.osi-alma { background: linear-gradient(135deg, #2b80d6, #0f4c8a); }
.osi-rocky { background: linear-gradient(135deg, #14b88a, #0b7a5c); }
.osi-win { background: linear-gradient(135deg, #1a9bf0, #0060c0); }
.osi-linux { background: linear-gradient(135deg, #475569, #1e293b); }

/* ------------------------------------------------------------ forms */
label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 13.5px; color: var(--text-2); }
input, select, textarea { display: block; width: 100%; margin-top: 7px; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 400; font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b93ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
input::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover { border-color: var(--border-2); }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
input[readonly] { background: var(--surface-2); color: var(--muted); }
label small { font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); margin-top: 3.5px; }
.input-icon input { padding-left: 40px; }

/* ------------------------------------------------------------ auth */
.auth-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 20px 0; }
.auth { width: 100%; max-width: 430px; padding: 34px; box-shadow: var(--shadow-lg); }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .logo { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 16px; }
.auth-head .logo .i { width: 24px; height: 24px; }
.auth-head h1 { font-size: 24px; }
.auth-head p { color: var(--muted); margin: 6px 0 0; }
.auth-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.auth .row-between label { margin: 0; }

/* ------------------------------------------------------------ landing */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 36px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.eyebrow .i { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 17px; color: var(--text-2); margin: 18px 0 28px; max-width: 540px; }
.hero-act { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-feats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--text-2); font-size: 14px; }
.hero-feats span { display: inline-flex; align-items: center; gap: 8px; }
.hero-feats .i { color: var(--ok); }
.term { background: var(--term-bg); color: var(--term-text); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.06); font-family: var(--mono); font-size: 13px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; color: #7d86a5; font-size: 12px; }
.term-body { padding: 18px 18px 22px; line-height: 1.85; white-space: pre-wrap; word-break: break-all; }
.t-p { color: #8b8cff; } .t-g { color: #4ade80; } .t-m { color: #7d86a5; } .t-y { color: #fbbf24; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: -30px -20px; background: var(--grad); filter: blur(70px); opacity: .22; border-radius: 50%; z-index: -1; }
.float-card { position: absolute; left: -26px; bottom: -22px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 13.5px; }
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }

.section { padding: 28px 0; }
.sec-head { text-align: center; margin-bottom: 30px; }
.sec-head h2 { font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
.sec-head p { color: var(--muted); margin: 8px 0 0; }
.plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft-2); }
.plan.hot { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-weight: 700; font-size: 16px; color: var(--text-2); }
.plan-price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 18px; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.spec { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 11px; flex: 1; }
.spec li { display: flex; align-items: center; gap: 11px; color: var(--text-2); font-size: 14.5px; }
.spec li .i { color: var(--primary); }
.spec b { color: var(--text); }
.oses { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.os-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.os-tile b { display: block; font-size: 14.5px; font-weight: 600; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step-card { padding: 26px; }
.step-n { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.step-card h3 { font-size: 16px; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 14px; margin: 0; }
.cta { margin-top: 36px; padding: 40px; border-radius: var(--r-xl); background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta h2 { font-size: 24px; font-weight: 750; }
.cta p { margin: 6px 0 0; opacity: .85; }
.cta .btn { background: #fff; color: #4f46e5; box-shadow: none; }

/* ------------------------------------------------------------ dashboard */
.vms { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.vmcard { display: flex; flex-direction: column; gap: 14px; color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s; }
.vmcard:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft-2); }
.vm-top { display: flex; align-items: center; gap: 12px; }
.vm-name { font-weight: 700; font-size: 16.5px; }
.vm-sub { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.vm-specs { display: flex; gap: 8px; flex-wrap: wrap; }
.vm-specs span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 9px; border-radius: 8px; }
.vm-specs .i { width: 14px; height: 14px; color: var(--muted); }
.vm-conn { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 13px; }
.vm-foot .go { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; }
.empty { text-align: center; padding: 56px 24px; }
.empty .big { width: 64px; height: 64px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 16px; }
.empty .big .i { width: 30px; height: 30px; }
.empty h2 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* ------------------------------------------------------------ order */
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.step { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; font-size: 18px; }
.step .n { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.order-sec { margin-bottom: 30px; }
.os-group { font-weight: 700; margin: 4px 0 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.pick { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pickcard { margin: 0; cursor: pointer; font-weight: 400; color: var(--text); position: relative; }
.pickcard input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.pc-body { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 14px; padding: 13px 14px; background: var(--surface); height: 100%; transition: .15s; }
.pc-body:hover { border-color: var(--border-2); background: var(--surface-2); }
.pc-txt { display: flex; flex-direction: column; min-width: 0; }
.pc-txt b { font-weight: 600; font-size: 14.5px; }
.pc-txt small { color: var(--muted); font-size: 12.5px; }
.pc-check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-2); display: grid; place-items: center; color: transparent; flex: none; transition: .15s; }
.pc-check .i { width: 13px; height: 13px; stroke-width: 3; }
.pickcard input:checked + .pc-body { border-color: var(--primary); background: var(--primary-soft); box-shadow: var(--ring); }
.pickcard input:checked + .pc-body .pc-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.pickcard input:focus-visible + .pc-body { box-shadow: var(--ring); }
.pickcard.disabled { cursor: not-allowed; }
.pickcard.disabled .pc-body { opacity: .45; background: var(--surface-2); }
.plan-pick .pc-body { flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; }
.plan-pick .pp-top { display: flex; align-items: center; justify-content: space-between; }
.plan-pick .pp-price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.plan-pick .pp-price span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.plan-pick .pp-specs { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-pick .pp-specs span { font-size: 12px; color: var(--text-2); background: var(--surface-3); padding: 2px 8px; border-radius: 6px; }
.pc-warn { display: none; color: var(--bad) !important; font-size: 12px; }
.pickcard.disabled .pc-warn { display: block; }
.summary { position: sticky; top: 88px; }
.summary h2 { margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.sum-row span:first-child { color: var(--muted); }
.sum-row span:last-child { font-weight: 600; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 18px; }
.sum-total b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sum-note { display: flex; gap: 8px; color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* ------------------------------------------------------------ vm detail */
.vm-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.vm-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vm-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.vm-meta span { display: inline-flex; align-items: center; gap: 6px; }
.vm-meta .i { width: 15px; height: 15px; }
.creds { display: grid; gap: 8px; }
.cred { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.cred .ci { width: 32px; height: 32px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); flex: none; }
.cred .ci .i { width: 16px; height: 16px; }
.cred .cl { font-size: 12px; color: var(--muted); }
.cred .cv { font-family: var(--mono); font-size: 14px; font-weight: 600; word-break: break-all; }
.cred .cb { min-width: 0; flex: 1; }
.cred .acts { display: flex; gap: 6px; }
.termline { margin-top: 14px; background: var(--term-bg); color: var(--term-text); border-radius: 12px; padding: 12px 14px; font-family: var(--mono); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.termline .t-p { flex: none; }
.termline code { background: none; color: inherit; padding: 0; flex: 1; font-size: 13px; }
.termline .cbtn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #aab2cc; }
.termline + .termline { margin-top: 8px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.meters { display: grid; gap: 14px; margin: 4px 0 18px; }
.meter-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.meter-top span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-weight: 500; }
.meter-top .i { width: 15px; height: 15px; color: var(--muted); }
.bar { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .6s ease; }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv td { padding: 9px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.kv tr:last-child td { border-bottom: 0; }
.kv td:first-child { color: var(--muted); width: 42%; padding-right: 10px; }
.kv td:last-child { font-weight: 500; }
.pwform { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.pwform .input-icon { flex: 1; }
.pwform input { height: 36px; margin: 0; font-size: 13.5px; }
.pwform .input-icon .i { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); align-items: center; }
.paybox { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin-bottom: 22px; border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.pay-qr { background: #fff; padding: 12px; border-radius: 16px; border: 1px solid var(--border); }
.pay-qr img { display: block; width: 240px; height: 240px; max-width: 100%; object-fit: contain; }
.pay-info h2 { font-size: 20px; margin-bottom: 6px; }
.pay-amt { font-size: 20px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-code { font-size: 15px; font-weight: 700; color: var(--primary); background: var(--primary-soft); }
.pay-wait { display: flex; align-items: center; gap: 10px; color: var(--warn); background: var(--warn-soft); padding: 10px 14px; border-radius: 10px; margin: 16px 0 14px; font-size: 14px; font-weight: 500; }
.spinner { width: 16px; height: 16px; border: 2px solid color-mix(in srgb, var(--warn) 30%, transparent); border-top-color: var(--warn); border-radius: 50%; animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay { background: var(--surface-2); border: 1px dashed var(--border-2); padding: 14px; border-radius: 10px; white-space: pre-wrap; font: inherit; }
.note-card { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); margin-bottom: 22px; }
.renew { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.renew select { width: auto; min-width: 240px; margin: 0; }
.warnnote { display: flex; gap: 8px; color: var(--warn) !important; background: var(--warn-soft); padding: 10px 12px; border-radius: 10px; margin-top: 10px; font-weight: 500; font-size: 13px; }
.warnnote:empty { display: none; }
details.card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
details.card[open] > summary { margin-bottom: 18px; }
details.card[open] > summary .chev { transform: rotate(180deg); }
.timeline { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow: auto; }
.timeline li { position: relative; padding: 0 0 14px 24px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1.5px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline li.internal { color: var(--muted); }
.timeline li.internal::before { border-color: var(--warn); }
.timeline .t { display: block; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.extend { display: inline-flex; align-items: center; gap: 6px; }
.extend .days { display: inline-block; width: 74px; height: 34px; margin: 0; padding: 0 8px; }
.admin-card { border-style: dashed; }

/* ------------------------------------------------------------ admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.stat .ic .i { width: 22px; height: 22px; }
.stat .ic.c1 { background: var(--warn-soft); color: var(--warn); } .stat .ic.c2 { background: var(--primary-soft); color: var(--primary); }
.stat .ic.c3 { background: var(--info-soft); color: var(--info); } .stat .ic.c4 { background: var(--ok-soft); color: var(--ok); }
.stat-l { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-n { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 20px; overflow-x: auto; max-width: 100%; box-shadow: var(--shadow-sm); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--muted); border-radius: 10px; white-space: nowrap; font-weight: 500; font-size: 14px; }
.tabs a:hover { color: var(--text); background: var(--surface-3); }
.tabs a.on { color: var(--primary-ink); background: var(--grad); box-shadow: 0 6px 14px -8px rgba(99,102,241,.9); }
.tabs .cnt { background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; line-height: 18px; }
.tblwrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.tbl th:first-child { border-top-left-radius: 10px; } .tbl th:last-child { border-top-right-radius: 10px; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td, .tbl tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.tbl td form { margin: 2px; }
.tbl td.acts-cell { min-width: 220px; }
.tbl td.acts-cell form { display: inline-flex; margin: 3px 2px; }
.tbl .cell-vm { display: flex; align-items: center; gap: 10px; }
.tbl .cell-vm b { display: block; font-weight: 600; }
.foot { color: var(--muted); font-size: 13px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .float-card { left: 12px; }
  .order-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .topbar.open .nav { display: flex; }
  .usermenu .uname { display: none; }
  .usermenu > summary { padding: 4px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .two, .form-grid { grid-template-columns: 1fr; }
  .paybox { grid-template-columns: 1fr; justify-items: center; }
  .pay-info { width: 100%; }
  h1 { font-size: 24px; }
  .card { padding: 18px; }
  .tblwrap { margin: 0 -18px; padding: 0 18px; }
  .vms { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
  .kv td:first-child { width: 46%; }
  .auth { padding: 26px 22px; }
}

/* thanh kéo cấu hình */
.custom-box { margin-top: 4px; }
.custom-box h3 { font-size: 15.5px; }
.slider-row { margin-bottom: 18px; }
.slider-row .meter-top b { font-size: 15px; }
.range-lim { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; padding: 0; margin: 6px 0 0; border: 0; border-radius: 999px;
  background: var(--surface-3); box-shadow: none; cursor: pointer; }
input[type=range]:focus { box-shadow: none; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(99,102,241,.35); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); cursor: grab; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
.resize-sum { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; margin: 4px 0 14px; font-size: 14px; }
.resize-sum b { font-size: 16px; }
.resize-sum .due b { color: var(--primary); font-size: 18px; }

/* hỗ trợ */
textarea { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; min-height: 110px; }
textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.tk-list { display: grid; gap: 10px; }
.tk-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: var(--text); transition: .15s; }
.tk-item:hover { color: var(--text); border-color: var(--primary-soft-2); box-shadow: var(--shadow); }
.tk-main { flex: 1; min-width: 0; }
.tk-subj { font-weight: 600; font-size: 15.5px; margin-bottom: 2px; }
.tk-form { max-width: 860px; }
.tk-grid3 { grid-template-columns: 1fr 1fr 1fr; }
.tk-layout { grid-template-columns: 1fr 300px; align-items: start; }
.tk-side h3 { margin-bottom: 10px; }
.tk-acts { display: grid; gap: 8px; margin-top: 16px; }
.stepper-card { margin-bottom: 18px; padding: 18px 26px; }
.stepper { display: flex; align-items: flex-start; }
.stp { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 80px; color: var(--muted); font-size: 13px; font-weight: 500; }
.stp-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); border: 2px solid var(--border); }
.stp.done .stp-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stp.cur .stp-dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--ring); }
.stp.done, .stp.cur { color: var(--text); }
.stp-line { flex: 1; height: 3px; background: var(--border); border-radius: 3px; margin: 18px 6px 0; }
.stp-by { font-size: 12px; font-weight: 600; color: var(--text); max-width: 120px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stp-at { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.stp-line.done { background: var(--ok); }
.thread { display: grid; gap: 12px; margin-bottom: 18px; }
.msg { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); max-width: 92%; }
.msg-user { justify-self: end; background: var(--primary-soft); border-color: var(--primary-soft-2); }
.msg-admin { justify-self: start; background: var(--surface); }
.msg-note { justify-self: stretch; max-width: 100%; background: var(--warn-soft); border-style: dashed; border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.msg-h { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.msg-b, .ev-b { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.ev { font-size: 13.5px; }
.ev-status { text-align: center; color: var(--muted); padding: 2px 0; }
.ev-step { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.ev-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.ev-h { font-weight: 600; color: var(--ok); margin-bottom: 2px; }
.reply { border-top: 1px solid var(--border); padding-top: 16px; display: grid; gap: 10px; }
.reply textarea { margin: 0; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.seg label { margin: 0; font-weight: 500; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; color: var(--muted); font-size: 13.5px; }
.seg input:checked + span { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.inline-sel { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.inline-sel select { width: auto; margin: 0; height: 38px; }
.vm-head > .btn { margin-left: auto; }
@media (max-width: 980px) { .tk-layout, .tk-grid3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .stp-line { margin-top: 15px; } .stp { min-width: 0; } .stp-l { font-size: 11.5px; text-align: center; } .stp-dot { width: 32px; height: 32px; } .stepper-card { padding: 14px; } }
.lbl { display: block; margin-bottom: 16px; font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.transfer { margin-top: 14px; }
/* ảnh đính kèm */
.attach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 14px; }
.att-prev { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.att-prev:empty { display: none; }
.att-item { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.att-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15,23,42,.7); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.att-gal { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.att-gal a { display: block; width: 140px; height: 100px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.att-gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.att-gal a:hover img { transform: scale(1.04); }
.reply .attach { margin: 0; }
.reply-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* ứng dụng & tên miền */
.sub-h { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 6px 0 12px; }
.app-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 12px; align-items: center; }
.app-form input { margin: 0; height: 40px; }
.dns-box { margin-top: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 12px; font-size: 13.5px; line-height: 1.9; }
@media (max-width: 720px) { .app-form { grid-template-columns: 1fr; } }

