/* LCert visual system */
:root {
  --bg: #f4f7f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --ink: #0d1826;
  --ink-2: #253347;
  --muted: #66758a;
  --muted-2: #94a3b8;
  --line: #e3e9ec;
  --line-strong: #d3dde2;
  --navy: #0b1524;
  --navy-2: #102033;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #d9f3ef;
  --teal-ink: #115e59;
  --blue: #2563eb;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --green: #059669;
  --green-soft: #d1fae5;
  --violet: #7c3aed;
  --shadow-sm: 0 1px 2px rgba(10, 25, 40, .05);
  --shadow-md: 0 10px 30px -12px rgba(10, 25, 40, .16);
  --shadow-lg: 0 24px 70px -20px rgba(8, 20, 35, .3);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 258px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
}
body.no-scroll { overflow: hidden; }
.clipboard-helper { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code, .mono { font-family: var(--mono); }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.muted { color: var(--muted); }
.mono { font-size: .86em; letter-spacing: -.01em; }
.text-danger { color: var(--red); }
.text-warn { color: var(--amber); }
.text-success { color: var(--green); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-soft); border-color: #c3ced5; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(13, 148, 136, .7);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-soft { background: var(--teal-soft); border-color: transparent; color: var(--teal-ink); }
.btn-soft:hover { background: #c9ece7; border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef3f4; border-color: transparent; color: var(--ink); }
.btn-danger { background: #fff; border-color: #f3c9c9; color: var(--red); }
.btn-danger:hover { background: #fff5f5; border-color: #eeb4b4; }
.btn-danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger-solid:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-sm { min-height: 31px; padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 12px 20px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon-only { padding: 8px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  transition: .16s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.icon-btn.spinning .icon { animation: spin 1s linear infinite; }
.btn .spinner { width: 15px; height: 15px; border-width: 2px; }

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(13, 148, 136, .18);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-primary .spinner { border-color: rgba(255, 255, 255, .34); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ shell ------------------------------ */
.app-body { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  padding: 24px 18px 18px;
  color: #c8d5e3;
  background:
    radial-gradient(520px 340px at -20% 5%, rgba(20, 184, 166, .18), transparent 65%),
    linear-gradient(180deg, #0c1829 0%, #08111d 100%);
  border-right: 1px solid rgba(148, 163, 184, .12);
  transition: transform .24s ease;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #eafffb;
  background: linear-gradient(145deg, #14b8a6, #0f766e);
  box-shadow: 0 8px 20px -8px rgba(20, 184, 166, .9), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.brand-mark .icon { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; letter-spacing: .02em; color: #f5ffff; }
.brand-text small { margin-top: 3px; font-size: 9px; letter-spacing: .19em; text-transform: uppercase; color: #6b8199; }
.nav { margin-top: 30px; flex: 1; }
.nav-label {
  margin: 19px 12px 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #4d637a;
}
.nav-label:first-child { margin-top: 0; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  margin: 3px 0;
  padding: 9px 12px;
  border-radius: 10px;
  color: #91a5ba;
  font-size: 13.5px;
  font-weight: 550;
  transition: .16s ease;
}
.nav-item .icon { width: 18px; height: 18px; color: #6f859b; transition: .16s ease; }
.nav-item:hover { color: #e6f1f7; background: rgba(148, 163, 184, .08); }
.nav-item:hover .icon { color: #9eb3c6; }
.nav-item.active {
  color: #f2fffd;
  background: linear-gradient(90deg, rgba(20, 184, 166, .19), rgba(20, 184, 166, .06));
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .12);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: #2dd4bf;
  box-shadow: 0 0 12px rgba(45, 212, 191, .7);
}
.nav-item.active .icon { color: #5eead4; }
.nav-count, .nav-dot { margin-left: auto; }
.nav-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 20px;
  background: rgba(148, 163, 184, .12);
  color: #9fb2c4;
  font-size: 10.5px;
  font-weight: 700;
}
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: #fb7185; box-shadow: 0 0 0 3px rgba(251, 113, 133, .14); }
.sidebar-foot { padding-top: 14px; border-top: 1px solid rgba(148, 163, 184, .1); }
.acme-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 4px 12px;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 8px;
  background: rgba(148, 163, 184, .05);
  color: #7f95aa;
  font-size: 10.5px;
  line-height: 1.35;
}
.acme-badge.production { color: #81e6d9; border-color: rgba(45, 212, 191, .17); background: rgba(20, 184, 166, .07); }
.pulse-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .14); }
.acme-badge.production .pulse-dot { background: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, .13); }
.user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c4d2df;
  text-align: left;
}
.user-row:hover { background: rgba(148, 163, 184, .08); }
.avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: linear-gradient(145deg, #334155, #1e293b);
  color: #a5f3ec;
  font-size: 11px;
  font-weight: 800;
}
.user-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.user-meta strong { overflow: hidden; text-overflow: ellipsis; color: #dce6ef; font-size: 12px; }
.user-meta small { font-size: 9.5px; color: #5e7489; }
.user-row > .icon { width: 15px; height: 15px; color: #53687d; }
.version-line { margin: 10px 8px 0; color: #405468; font-size: 9px; letter-spacing: .06em; }

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: var(--sidebar-w);
  background:
    radial-gradient(900px 400px at 75% -10%, rgba(13, 148, 136, .055), transparent 65%),
    var(--bg);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 78px;
  padding: 14px 34px;
  border-bottom: 1px solid rgba(211, 221, 226, .72);
  background: rgba(244, 247, 247, .84);
  backdrop-filter: blur(16px);
}
.page-heading { min-width: 0; }
.eyebrow {
  color: var(--teal-dark);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.page-heading h1 { margin-top: 2px; font-size: 23px; line-height: 1.2; letter-spacing: -.03em; font-weight: 720; }
.topbar-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.menu-btn { display: none; }
.view-root { width: 100%; max-width: 1460px; padding: 28px 34px 46px; }

/* ------------------------------ common ------------------------------ */
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 21px 15px;
}
.card-head.bordered { border-bottom: 1px solid var(--line); }
.card-title { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.card-sub { margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.card-action { margin-left: auto; }
.card-body { padding: 0 21px 20px; }
.card-body.flush { padding: 0; }
.section-gap { margin-top: 20px; }
.stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.divider { height: 1px; background: var(--line); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #eef3f4;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status { color: var(--muted); background: #eef3f4; }
.status-active { color: #047857; background: var(--green-soft); }
.status-issuing, .status-renewing { color: #0e7490; background: #cffafe; }
.status-issuing .dot, .status-renewing .dot { animation: blink 1.2s infinite; }
.status-pending { color: #475569; background: #e9eef3; }
.status-failed, .status-expired { color: #b91c1c; background: var(--red-soft); }
.status-renewal_failed { color: #b45309; background: var(--amber-soft); }
@keyframes blink { 50% { opacity: .25; } }
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #f0f5f8;
  color: #476074;
  font-size: 10.5px;
  font-weight: 700;
}
.provider-badge .icon { width: 13px; height: 13px; }
.provider-dnspod { color: #1d4ed8; background: #e7eeff; }
.provider-westcn { color: #a16207; background: #fef6dc; }

.loading-state {
  display: grid;
  place-items: center;
  min-height: 45vh;
  color: var(--muted);
  text-align: center;
}
.loading-state .spinner { width: 28px; height: 28px; }
.loading-state p { margin-top: 12px; font-size: 12px; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 22px;
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.empty-icon .icon { width: 25px; height: 25px; }
.empty-state h3 { margin-top: 14px; font-size: 14px; }
.empty-state p { max-width: 360px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.empty-state .btn { margin-top: 17px; }

/* ------------------------------ stats ------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, .06), transparent 68%);
}
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.stat-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #edf6f5; color: var(--teal-dark); }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-card[data-tone="amber"] .stat-icon { background: #fff7e7; color: var(--amber); }
.stat-card[data-tone="red"] .stat-icon { background: #fff1f1; color: var(--red); }
.stat-card[data-tone="blue"] .stat-icon { background: #eef3ff; color: var(--blue); }
.stat-value { margin-top: 9px; font-size: 29px; font-weight: 730; line-height: 1; letter-spacing: -.05em; }
.stat-bottom { margin-top: 8px; color: var(--muted-2); font-size: 10.5px; }
.stat-bottom strong { color: var(--ink-2); font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 18px; margin-top: 20px; }
.dashboard-grid > *, .settings-grid > *, .account-grid > * { min-width: 0; }
.dashboard-side { display: flex; flex-direction: column; gap: 18px; }
.jobs-stack { padding: 0 20px 18px; }

/* ------------------------------ tables ------------------------------ */
.table-wrap { overflow-x: auto; max-width: 100%; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
table.data td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f3;
  vertical-align: middle;
  font-size: 12.5px;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .14s ease; }
table.data tbody tr:hover { background: #fbfcfc; }
.domain-name { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; }
.domain-name .icon { color: var(--teal); width: 15px; height: 15px; }
.domain-sub { margin-top: 2px; color: var(--muted-2); font-size: 10.5px; }
.cell-expiry { min-width: 125px; }
.expiry-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.expiry-label strong { color: var(--ink-2); font-weight: 600; }
progress.expiry-bar { display: block; width: 100%; height: 4px; border: 0; border-radius: 4px; overflow: hidden; background: #eaf0f1; appearance: none; }
progress.expiry-bar::-webkit-progress-bar { background: #eaf0f1; border-radius: 4px; }
progress.expiry-bar::-webkit-progress-value { border-radius: 4px; background: var(--teal); }
progress.expiry-bar::-moz-progress-bar { border-radius: 4px; background: var(--teal); }
progress.expiry-bar[data-tone="amber"]::-webkit-progress-value { background: #f59e0b; }
progress.expiry-bar[data-tone="red"]::-webkit-progress-value { background: #ef4444; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.row-actions .icon-btn { width: 30px; height: 30px; border-color: transparent; background: transparent; }
.row-actions .icon-btn:hover { background: #eef4f4; border-color: transparent; }
.row-actions .icon { width: 15px; height: 15px; }
.table-toolbar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.search-wrap { position: relative; flex: 1; max-width: 340px; }
.search-wrap .icon { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.search-wrap input { width: 100%; height: 35px; padding: 8px 12px 8px 33px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); font-size: 12px; outline: none; }
.search-wrap input:focus { border-color: #8bd3ca; background: #fff; box-shadow: 0 0 0 3px rgba(13, 148, 136, .08); }
.filter-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: #eef3f4; }
.filter-tab { padding: 5px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10.5px; font-weight: 650; }
.filter-tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15, 23, 42, .08); }
.toolbar-end { margin-left: auto; }
.toolbar-count { color: var(--muted-2); font-size: 10.5px; }

/* ------------------------------ switch ------------------------------ */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 34px;
  height: 19px;
  padding: 2px;
  border: 0;
  border-radius: 20px;
  background: #d8e1e5;
  transition: background .18s ease;
  vertical-align: middle;
}
.switch::after { content: ""; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .2); transition: transform .18s ease; }
.switch.on { background: var(--teal); }
.switch.on::after { transform: translateX(15px); }
.switch:disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------ alerts / lists ------------------------------ */
.alert-list { display: flex; flex-direction: column; }
.alert-item {
  display: flex;
  gap: 11px;
  padding: 13px 20px;
  border-bottom: 1px solid #edf1f3;
  transition: background .14s ease;
}
.alert-item:last-child { border-bottom: 0; }
.alert-item:hover { background: #fbfcfc; }
.alert-item.unread { background: #fcfdfb; }
.alert-symbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #fff0f0;
  color: var(--red);
}
.alert-symbol .icon { width: 15px; height: 15px; }
.alert-symbol.warning { background: #fff7e6; color: var(--amber); }
.alert-symbol.info { background: #edf7f6; color: var(--teal-dark); }
.alert-copy { min-width: 0; flex: 1; }
.alert-title-row { display: flex; align-items: center; gap: 7px; }
.alert-title { font-size: 12px; font-weight: 700; }
.alert-time { margin-left: auto; color: var(--muted-2); font-size: 9.5px; white-space: nowrap; }
.alert-message { display: -webkit-box; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.unread-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--teal); }
.expiry-list { display: flex; flex-direction: column; }
.expiry-row { display: flex; align-items: center; gap: 10px; padding: 11px 20px; border-bottom: 1px solid #edf1f3; }
.expiry-row:last-child { border-bottom: 0; }
.expiry-row .domain-name { font-size: 12px; }
.expiry-row .domain-name .icon { width: 14px; height: 14px; }
.expiry-row-side { margin-left: auto; text-align: right; }
.expiry-days { font-size: 11px; font-weight: 700; }
.expiry-days.warn { color: var(--amber); }
.expiry-days.danger { color: var(--red); }

/* ------------------------------ toolbar/page ------------------------------ */
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.page-intro h2 { font-size: 18px; letter-spacing: -.025em; }
.page-intro p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.page-intro .btn { flex: 0 0 auto; }
.content-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }

/* ------------------------------ accounts ------------------------------ */
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.account-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.account-top { display: flex; align-items: flex-start; gap: 10px; }
.account-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #eef5f7; color: #31566c; }
.account-logo .icon { width: 18px; height: 18px; }
.account-name { min-width: 0; flex: 1; }
.account-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-name span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.account-status { display: flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--muted); font-size: 10.5px; }
.account-status.ok { color: var(--green); }
.account-status.error { color: var(--red); }
.account-status .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.account-foot { display: flex; align-items: center; gap: 5px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #edf1f3; }
.account-foot .btn { margin-left: auto; }
.account-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  border: 1px dashed #cbd8dc;
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
  color: var(--muted);
  font-size: 12px;
  transition: .16s ease;
}
.account-add .icon { width: 24px; height: 24px; color: var(--teal); margin-bottom: 8px; }
.account-add:hover { border-color: #8bd3ca; background: #fbfefe; color: var(--ink-2); }

/* ------------------------------ modals / drawers ------------------------------ */
.modal-root:empty, .toast-root:empty { display: none; }
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 18, 30, .48);
  backdrop-filter: blur(3px);
  animation: fade-in .16s ease;
}
.modal-backdrop { align-items: flex-start; padding-top: 6vh; }
.modal {
  width: min(680px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in .22s cubic-bezier(.2, .8, .2, 1);
}
.modal.modal-wide { width: min(790px, 100%); }
.modal.modal-sm { width: min(430px, 100%); }
.modal > form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
.modal-head { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; letter-spacing: -.025em; }
.modal-head p { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.modal-close { margin-left: auto; }
.modal-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 19px 22px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfcfc; }
.modal-foot .foot-left { margin-right: auto; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.99); } }

.drawer-backdrop { justify-content: flex-end; padding: 0; background: rgba(8, 18, 30, .4); }
.drawer {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  height: 100%;
  background: var(--surface);
  box-shadow: -20px 0 70px rgba(8, 20, 35, .24);
  animation: drawer-in .24s cubic-bezier(.2, .8, .2, 1);
}
@keyframes drawer-in { from { transform: translateX(32px); opacity: .6; } }
.drawer-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer-title { min-width: 0; }
.drawer-title h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; letter-spacing: -.03em; }
.drawer-title .row { margin-top: 6px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; background: #fcfdfd; }
.drawer-foot { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); background: #fff; }
.drawer-foot .spacer { flex: 1; }

/* ------------------------------ forms ------------------------------ */
.form-section { margin-bottom: 20px; }
.form-section:last-child { margin-bottom: 0; }
.section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.section-heading::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 11.5px; font-weight: 650; }
.field-label .req { color: var(--red); }
.field-hint { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-full { grid-column: 1 / -1; }
input[type="text"], input[type="password"], input[type="number"], input[type="email"], textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"], input[type="password"], input[type="number"], input[type="email"], select { height: 38px; padding: 8px 11px; }
textarea { min-height: 82px; padding: 10px 11px; line-height: 1.6; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #76c8bf; box-shadow: 0 0 0 3px rgba(13, 148, 136, .08); }
input:disabled, textarea:disabled, select:disabled { background: #f4f7f8; color: var(--muted); cursor: not-allowed; }
select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #7b8b99 50%), linear-gradient(135deg, #7b8b99 50%, transparent 50%); background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--muted-2); pointer-events: none; }
.input-wrap > input { padding-left: 33px; }
.input-wrap .input-action { position: absolute; right: 5px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-2); }
.input-wrap .input-action:hover { background: #eef4f4; color: var(--ink); }
.input-wrap .input-action .icon { width: 15px; height: 15px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 50px; }
.input-suffix span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 10px; }
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #f4cccc;
  border-radius: 9px;
  background: #fff6f6;
  color: #a61b1b;
  font-size: 11.5px;
  line-height: 1.55;
}
.form-alert.error { border-color: #f4cccc; background: #fff6f6; color: #a61b1b; }
.form-alert.success { border-color: #b9e6d9; background: #f0fbf7; color: #08705b; }
.form-alert.warn { border-color: #f3dfb0; background: #fffaf0; color: #946200; }
.form-alert .icon { width: 15px; height: 15px; margin-top: 1px; }
.form-alert p { margin: 0; }
.checkline { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--ink-2); font-size: 11.5px; cursor: pointer; }
.checkline input[type="checkbox"] { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--teal); }
.checkline span small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; border-radius: 9px; background: #eef3f4; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: 6px 11px; border-radius: 7px; color: var(--muted); font-size: 10.5px; font-weight: 650; cursor: pointer; }
.segmented input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15, 23, 42, .08); }
.domain-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.domain-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 7px; border-radius: 6px; background: #eff7f6; color: #276c65; font-family: var(--mono); font-size: 10px; }
.domain-chip .icon { width: 11px; height: 11px; }
.wildcard-chip { background: #f2efff; color: #5b44b8; }
.inline-row { display: flex; align-items: center; gap: 9px; }
.inline-row .field { flex: 1; }

/* ------------------------------ detail ------------------------------ */
.detail-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbfb, #fff);
}
.detail-hero-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 15px; background: var(--teal-soft); color: var(--teal-dark); }
.detail-hero-icon .icon { width: 27px; height: 27px; }
.detail-hero-main { min-width: 0; flex: 1; }
.detail-hero-main h3 { overflow-wrap: anywhere; font-size: 19px; letter-spacing: -.025em; }
.detail-hero-main p { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.detail-expiry { flex: 0 0 118px; }
.detail-expiry strong { display: block; font-size: 12px; }
.detail-expiry span { color: var(--muted); font-size: 10px; }
.detail-section { margin-top: 18px; }
.detail-section-title { margin-bottom: 9px; color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.detail-cell { min-width: 0; padding: 12px 13px; background: #fff; }
.detail-cell span { display: block; color: var(--muted-2); font-size: 9.5px; }
.detail-cell strong { display: block; overflow: hidden; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 650; }
.detail-cell code { font-size: 10px; overflow-wrap: anywhere; white-space: normal; }
.domain-list { display: flex; flex-wrap: wrap; gap: 6px; }
.domain-list .domain-chip { padding: 5px 8px; font-size: 10.5px; }
.job-panel { padding: 13px 15px; border: 1px solid #d8ebe8; border-radius: 11px; background: #f8fdfc; }
.job-panel.error { border-color: #f1d2d2; background: #fff9f9; }
.job-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 650; }
.job-top .spinner { width: 14px; height: 14px; }
.job-progress { margin-top: 5px; color: var(--muted); font-size: 10.5px; }
.job-meta { margin-top: 7px; color: var(--muted-2); font-size: 9.5px; }
.job-error { margin-top: 8px; padding: 8px 10px; border-radius: 7px; background: #fff1f1; color: #a61b1b; font-size: 10.5px; line-height: 1.55; overflow-wrap: anywhere; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.download-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  text-align: left;
  transition: .15s ease;
}
.download-card:hover { border-color: #9ad5ce; background: #fbfefe; transform: translateY(-1px); }
.download-card:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.download-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; background: #eef6f5; color: var(--teal-dark); }
.download-icon .icon { width: 16px; height: 16px; }
.download-copy { min-width: 0; flex: 1; }
.download-copy strong { display: block; font-size: 11px; line-height: 1.35; }
.download-copy span { display: block; color: var(--muted-2); font-size: 9px; }
.download-card > .icon { width: 15px; height: 15px; color: var(--muted-2); }
.auto-renew-panel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.auto-renew-copy { flex: 1; }
.auto-renew-copy strong { display: block; font-size: 11.5px; }
.auto-renew-copy span { color: var(--muted); font-size: 10px; }

/* ------------------------------ settings ------------------------------ */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 18px; }
.settings-stack { display: flex; flex-direction: column; gap: 18px; }
.access-card { margin-bottom: 18px; }
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.access-block { min-width: 0; padding: 17px 20px 20px; background: #fff; }
.access-block-title { font-size: 12px; font-weight: 750; letter-spacing: -.01em; }
.access-desc { min-height: 44px; margin-top: 4px; color: var(--muted); font-size: 10.5px; line-height: 1.65; }
.access-label { color: var(--muted); font-size: 11px; }
.access-link-row { display: flex; gap: 6px; margin-top: 9px; }
.access-link-row input { height: 32px; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafb; color: var(--muted); font-family: var(--mono); font-size: 9.5px; }
.access-link-row .btn { min-height: 32px; padding: 5px 8px; font-size: 10px; }
.guest-order-table td:last-child { width: 45px; }
.guest-stat-grid { margin-bottom: 20px; }
@media (max-width: 1180px) {
  .access-grid { grid-template-columns: 1fr; }
  .access-desc { min-height: 0; }
}
@media (max-width: 720px) {
  .access-block { padding: 14px 15px 16px; }
  .guest-order-table th:nth-child(3), .guest-order-table td:nth-child(3),
  .guest-order-table th:nth-child(4), .guest-order-table td:nth-child(4),
  .guest-order-table th:nth-child(5), .guest-order-table td:nth-child(5) { display: none; }
}
.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: flex-start; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #edf1f3; font-size: 11.5px; }
.info-row:last-child { border-bottom: 0; }
.info-key { flex: 0 0 140px; color: var(--muted); }
.info-value { min-width: 0; flex: 1; color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.info-value code { padding: 2px 5px; border-radius: 5px; background: #f2f6f6; color: #38525e; font-size: 10px; }
.tool-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 650; }
.tool-status.ok { color: var(--green); }
.tool-status.bad { color: var(--red); }
.security-note { display: flex; gap: 10px; padding: 13px 15px; border: 1px solid #e5e1c9; border-radius: 11px; background: #fffdf5; color: #6f5c1b; font-size: 10.5px; line-height: 1.65; }
.security-note .icon { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.audit-table td { font-size: 11px; }

/* ------------------------------ alerts page ------------------------------ */
.alert-page-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.alert-page-list .alert-item { padding: 15px 20px; }
.alert-page-list .alert-title { font-size: 12.5px; }
.alert-page-list .alert-message { font-size: 11.5px; }
.alert-page-list .alert-symbol { width: 34px; height: 34px; }

/* ------------------------------ toast ------------------------------ */
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: flex; flex-direction: column; gap: 9px; width: min(360px, calc(100vw - 36px)); }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 12px 30px -10px rgba(8, 20, 35, .22);
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.5;
  animation: toast-in .2s ease;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.out { opacity: 0; transform: translateY(6px); }
.toast .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--teal); }
.toast.error .icon { color: var(--red); }
.toast.error { border-color: #f1d2d2; }
.toast.warn .icon { color: var(--amber); }
.toast strong { display: block; margin-bottom: 1px; font-size: 11.5px; }
.toast p { color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------ mobile scrim ------------------------------ */
.mobile-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(8, 18, 30, .4); }
@media (min-width: 981px) { .mobile-scrim { display: none !important; } }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  :root { --sidebar-w: 0px; }
  .sidebar { width: 260px; transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 22px 0 60px rgba(8, 20, 35, .28); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 13px 20px; }
  .view-root { padding: 22px 20px 40px; }
  .drawer { width: min(680px, 100%); }
}
@media (max-width: 720px) {
  .topbar { min-height: 68px; gap: 12px; }
  .page-heading h1 { font-size: 20px; }
  .page-heading .eyebrow { display: none; }
  .topbar-actions .btn-primary span { display: none; }
  .topbar-actions .btn-primary { width: 38px; padding: 0; }
  .view-root { padding: 17px 14px 34px; }
  .stat-grid { gap: 10px; }
  .stat-card { min-height: 104px; padding: 14px; }
  .stat-value { font-size: 25px; }
  .card-head { padding: 15px 15px 11px; }
  .card-body { padding: 0 15px 15px; }
  .table-toolbar { flex-wrap: wrap; padding: 11px 14px; }
  .search-wrap { max-width: none; flex-basis: 100%; }
  .filter-tabs { overflow-x: auto; max-width: 100%; }
  .toolbar-end { margin-left: 0; }
  table.data th, table.data td { padding-left: 9px; padding-right: 9px; }
  .recent-table th:nth-child(3), .recent-table td:nth-child(3) { display: none; }
  .cert-table th:nth-child(4), .cert-table td:nth-child(4),
  .cert-table th:nth-child(5), .cert-table td:nth-child(5) { display: none; }
  .cert-table .cell-expiry { min-width: 92px; }
  .row-actions .icon-btn { width: 27px; height: 27px; }
  .account-grid { grid-template-columns: 1fr; }
  .field-grid, .field-grid.three { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 10px; padding-top: 3vh; }
  .modal { max-height: 93vh; border-radius: 14px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 17px; padding-right: 17px; }
  .detail-hero { align-items: flex-start; flex-wrap: wrap; }
  .detail-expiry { flex-basis: 100%; }
  .toast-root { right: 14px; bottom: 14px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* ------------------------------ login ------------------------------ */
.login-body {
  min-height: 100vh;
  background: #f1f5f5;
  overflow-x: hidden;
}
.login-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr); min-height: 100vh; }
.login-brand {
  position: relative;
  overflow: hidden;
  color: #dbe8f1;
  background:
    radial-gradient(760px 520px at 12% 8%, rgba(20, 184, 166, .19), transparent 62%),
    radial-gradient(500px 500px at 90% 82%, rgba(37, 99, 235, .13), transparent 65%),
    linear-gradient(145deg, #0a1524 0%, #0d1c2e 58%, #0a1829 100%);
}
.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(148, 163, 184, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .16) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 40% 42%, #000 0%, transparent 68%);
  pointer-events: none;
}
.login-brand-inner { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 100vh; padding: 38px 52px 28px; }
.brand-light .brand-text strong { color: #f4ffff; }
.brand-light .brand-text small { color: #617a90; }
.login-copy { max-width: 570px; margin-top: clamp(38px, 8vh, 94px); }
.eyebrow.light { color: #5eead4; }
.login-copy h1 { margin-top: 13px; color: #f5ffff; font-size: clamp(33px, 3.8vw, 51px); line-height: 1.14; letter-spacing: -.045em; font-weight: 660; }
.login-lead { max-width: 490px; margin-top: 17px; color: #93a9ba; font-size: 14px; line-height: 1.8; }
.cert-visual { position: relative; width: min(430px, 82%); margin-top: clamp(38px, 7vh, 76px); }
.cert-visual-glow { position: absolute; inset: -40px -50px; background: radial-gradient(ellipse, rgba(45, 212, 191, .18), transparent 65%); filter: blur(14px); }
.cert-card {
  position: relative;
  z-index: 2;
  padding: 20px;
  border: 1px solid rgba(148, 214, 208, .25);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(19, 43, 59, .9), rgba(11, 27, 42, .86));
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}
.cert-card-top { display: flex; align-items: center; justify-content: space-between; }
.cert-seal { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(20, 184, 166, .16); color: #5eead4; }
.cert-seal .icon { width: 20px; height: 20px; }
.cert-live { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid rgba(45, 212, 191, .2); border-radius: 20px; color: #5eead4; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; }
.cert-live i { width: 4px; height: 4px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 8px #2dd4bf; }
.cert-domain { margin-top: 23px; color: #f4ffff; font-family: var(--mono); font-size: clamp(20px, 2vw, 27px); letter-spacing: -.03em; }
.cert-line { display: flex; gap: 5px; margin-top: 13px; }
.cert-line span { height: 3px; border-radius: 3px; background: rgba(148, 163, 184, .2); }
.cert-line span:first-child { width: 58%; background: rgba(45, 212, 191, .5); }
.cert-line span:last-child { width: 22%; }
.cert-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(148, 163, 184, .12); }
.cert-meta span { color: #557086; font-size: 7.5px; letter-spacing: .15em; }
.cert-meta strong { color: #a9c0d0; font-size: 9.5px; font-weight: 600; }
.cert-row { display: flex; justify-content: space-between; margin-top: 10px; color: #6f879a; font-size: 9px; }
.cert-chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.mini-chip { padding: 3px 6px; border-radius: 4px; background: rgba(148, 163, 184, .09); color: #7c96aa; font-family: var(--mono); font-size: 7.5px; }
.orbit { position: absolute; z-index: 1; border: 1px solid rgba(94, 234, 212, .12); border-radius: 50%; }
.orbit-one { width: 180px; height: 180px; right: -66px; top: -46px; }
.orbit-two { width: 320px; height: 320px; right: -130px; top: -116px; border-color: rgba(148, 163, 184, .07); }
.login-footnote { margin-top: auto; padding-top: 30px; color: #486176; font-size: 9.5px; letter-spacing: .05em; }
.login-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(30px, 5vw, 76px) 24px; background: #fff; }
.login-form-wrap { width: 100%; max-width: 390px; margin: 0 auto; }
.mobile-brand { display: none; align-items: center; gap: 9px; margin-bottom: 30px; }
.mobile-brand strong { font-size: 18px; }
.login-panel h2 { margin-top: 7px; font-size: clamp(25px, 2.6vw, 32px); letter-spacing: -.045em; line-height: 1.2; }
.login-panel .muted { margin-top: 8px; font-size: 12px; line-height: 1.65; }
.login-form { display: flex; flex-direction: column; gap: 15px; margin-top: 26px; }
.login-form .field-label { font-size: 11.5px; }
.login-form input { height: 43px; border-radius: 10px; background: #fbfcfc; }
.login-form input:focus { background: #fff; }
.login-form .btn-lg { margin-top: 4px; height: 46px; }
.login-security { display: flex; align-items: flex-start; gap: 8px; margin-top: 25px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9.5px; line-height: 1.65; }
.login-security .icon { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; color: #8aa4a0; }
.login-footer { display: flex; justify-content: space-between; width: 100%; max-width: 390px; margin: 30px auto 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9px; letter-spacing: .04em; }
.setup-box { display: flex; gap: 11px; margin-top: 20px; padding: 13px; border: 1px solid #f0dfb8; border-radius: 11px; background: #fffbf1; color: #7a5a0b; font-size: 11px; line-height: 1.6; }
.setup-box strong { display: block; color: #64490a; font-size: 11.5px; }
.setup-box p { margin-top: 2px; }
.setup-box code { display: inline-block; margin-top: 6px; padding: 4px 7px; border-radius: 5px; background: #fff5dd; color: #75520a; font-size: 10px; }
.setup-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: #fff0c9; color: #b37a00; }
.setup-icon .icon { width: 16px; height: 16px; }
.login-body .form-alert { margin-top: 18px; }
@media (max-width: 1000px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 28px 22px; }
  .mobile-brand { display: flex; }
}
@media (max-width: 420px) {
  .login-panel { padding: 22px 16px; }
  .login-footer { gap: 10px; }
}
