:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: #101f33;
  --surface-2: #152942;
  --surface-3: #1b3351;
  --border: rgba(255,255,255,.11);
  --text: #eef5ff;
  --muted: #9db0c7;
  --primary: #42d6a4;
  --primary-strong: #20b984;
  --primary-soft: rgba(66,214,164,.13);
  --secondary: #5aa9ff;
  --danger: #ff6b7d;
  --warning: #ffca58;
  --success: #42d6a4;
  --info: #5aa9ff;
  --shadow: 0 18px 55px rgba(0,0,0,.28);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(90,169,255,.12), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(66,214,164,.10), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
body.light {
  --bg: #f4f7fb;
  --bg-soft: #eaf0f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #edf3f9;
  --border: rgba(16,37,63,.12);
  --text: #142235;
  --muted: #61738a;
  --shadow: 0 18px 55px rgba(25,53,83,.12);
  color-scheme: light;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.main { min-height: calc(100vh - var(--header-h)); }
.section { padding: 82px 0; }
.section-sm { padding: 46px 0; }
.section-title { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.section-subtitle { margin: 0 auto 34px; color: var(--muted); max-width: 720px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.spacer { height: 28px; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 26px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  color: #06131d; font-weight: 900;
  background: linear-gradient(135deg,var(--primary),#7df0ca);
  box-shadow: 0 10px 25px rgba(66,214,164,.22);
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { color: var(--muted); padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.mobile-nav-only { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); display: grid; place-items: center;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.btn-primary { color: #06131d; background: linear-gradient(135deg,var(--primary),#7df0ca); box-shadow: 0 10px 25px rgba(66,214,164,.18); }
.btn-secondary { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.btn-outline { color: var(--text); background: transparent; border-color: var(--border); }
.btn-danger { color: white; background: var(--danger); }
.btn-warning { color: #171109; background: var(--warning); }
.btn-back-attention {
  color: #3f260d;
  background: linear-gradient(135deg, #f8d4a4, #efb66e);
  border-color: rgba(255, 190, 112, .78);
  box-shadow: 0 10px 24px rgba(239, 168, 84, .18);
}
.btn-back-attention:hover {
  background: linear-gradient(135deg, #ffe0b8, #f5c17f);
  border-color: rgba(255, 204, 139, .95);
}
body.light .btn-back-attention {
  color: #4a2a0b;
  background: linear-gradient(135deg, #ffe0b8, #f6c27d);
  border-color: rgba(190, 112, 28, .38);
}
.btn-more-attention {
  color: #4a2a0b;
  background: linear-gradient(135deg, #ffd9a8, #f0b56d);
  border-color: rgba(255, 183, 93, .82);
  box-shadow: 0 10px 24px rgba(240, 166, 82, .20);
}
.btn-more-attention:hover {
  background: linear-gradient(135deg, #ffe3bf, #f7c381);
  border-color: rgba(255, 199, 126, .98);
}
body.light .btn-more-attention {
  color: #4a2a0b;
  background: linear-gradient(135deg, #ffe2bd, #f7c988);
  border-color: rgba(190, 112, 28, .38);
}
.btn-sm { padding: 8px 12px; min-height: 36px; font-size: .9rem; }
.btn-block { width: 100%; }

.hero { position: relative; overflow: hidden; min-height: 610px; display: flex; align-items: center; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,rgba(7,17,31,.95) 0%,rgba(7,17,31,.75) 46%,rgba(7,17,31,.32) 100%);
  z-index: 1;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; background-position: center; background-size: cover; }
.hero-slide.active { opacity: 1; }
.hero-fallback { background: linear-gradient(120deg,#0b1e32 0%,#123957 55%,#11624b 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 72px 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.hero h1 { font-size: clamp(2.6rem,6vw,5.2rem); line-height: 1.02; margin: 20px 0; letter-spacing: -.06em; }
.hero p { font-size: 1.12rem; color: #c7d6e7; max-width: 610px; }
.hero-dots { position: absolute; z-index: 3; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border: none; border-radius: 999px; background: rgba(255,255,255,.4); padding: 0; }
.hero-dot.active { width: 30px; background: var(--primary); }

.card {
  background: linear-gradient(180deg,color-mix(in srgb,var(--surface) 96%,white 4%),var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 18px 24px; border-top: 1px solid var(--border); }
.package-card { overflow: hidden; display: flex; flex-direction: column; min-height: 430px; }
.package-image { aspect-ratio: 16/8; object-fit: cover; width: 100%; background: linear-gradient(135deg,#153c5f,#117253); }
.package-image-placeholder { aspect-ratio: 16/8; display: grid; place-items: center; overflow: hidden; font-size: 3rem; background: linear-gradient(135deg,#153c5f,#117253); }
.package-image-placeholder .package-image { width: 100%; height: 100%; object-fit: cover; }
.package-image-preview { margin-top: 12px; width: min(100%, 480px); aspect-ratio: 16/8; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--border); border-radius: 14px; background: var(--bg-deep); color: var(--muted); }
.package-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.package-card .card-body { flex: 1; display: flex; flex-direction: column; }
.package-price { font-size: 2.15rem; font-weight: 850; letter-spacing: -.04em; margin: 10px 0; }
.package-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 18px 0 24px; }
.meta-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.meta-box strong { display: block; font-size: 1.08rem; }
.meta-box span { color: var(--muted); font-size: .82rem; }
.package-card .btn { margin-top: auto; }

.admin-packages-grid { margin-top: 16px; align-items: start; }
.admin-package-card { min-height: 0; box-shadow: none; }
.admin-package-card .package-image-placeholder { aspect-ratio: 16/5; font-size: 2rem; }
.admin-package-card .card-body { padding: 14px 16px 15px; }
.admin-package-title-row { align-items: flex-start; flex-wrap: nowrap; gap: 10px; }
.admin-package-title-row h3 { margin: 0; font-size: 1.03rem; line-height: 1.35; }
.admin-package-price {
  margin-top: 10px;
  font-size: 1.48rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.03em;
}
.admin-package-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .82rem;
}
.admin-package-facts strong { color: var(--text); }
.admin-package-actions { margin-top: 12px; gap: 8px; }
.admin-package-card .btn { margin-top: 0; }
.admin-package-notice { margin-top: 10px; padding: 9px 11px; font-size: .78rem; line-height: 1.45; }

.admin-investments-card { margin-top: 14px; box-shadow: none; }
.admin-investments-card .card-body { padding: 12px; }
.admin-investments-table { width: 100%; min-width: 0; table-layout: fixed; }
.admin-investments-table th,
.admin-investments-table td { padding: 10px 8px; overflow-wrap: anywhere; }
.admin-investments-table th:nth-child(1) { width: 8%; }
.admin-investments-table th:nth-child(2) { width: 21%; }
.admin-investments-table th:nth-child(3) { width: 19%; }
.admin-investments-table th:nth-child(4) { width: 13%; }
.admin-investments-table th:nth-child(5) { width: 10%; }
.admin-investments-table th:nth-child(6) { width: 11%; }
.admin-investments-table th:nth-child(7) { width: 13%; }
.admin-investments-table th:nth-child(8) { width: 5%; }
.admin-investments-table td:nth-child(1),
.admin-investments-table td:nth-child(4),
.admin-investments-table td:nth-child(6),
.admin-investments-table td:nth-child(7),
.admin-investments-table td:nth-child(8) { white-space: nowrap; }
.admin-investments-table td:last-child .btn { min-height: 30px; padding: 5px 7px; font-size: .72rem; }

.rich-content { color: var(--muted); font-size: 1.02rem; }
.rich-content h1,.rich-content h2,.rich-content h3 { color: var(--text); line-height: 1.2; }
.rich-content a { color: var(--primary); text-decoration: underline; }
.rich-content img { border-radius: 14px; margin: 18px 0; }

.form-card { width: min(100%,620px); margin: 48px auto; }
.form-card.wide { width: min(100%,860px); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-group { display: grid; gap: 8px; }
.form-group.full { grid-column: 1/-1; }
label { font-weight: 700; font-size: .92rem; }
.required::after { content: " *"; color: var(--danger); }
.input, input, select, textarea {
  width: 100%; color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; outline: none; min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus,select:focus,textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input-hint { color: var(--muted); font-size: .82rem; }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; }
.alert { border-radius: 12px; padding: 13px 15px; border: 1px solid var(--border); background: var(--surface-2); }
.alert-danger { border-color: rgba(255,107,125,.35); background: rgba(255,107,125,.08); color: #ffc1ca; }
.alert-success { border-color: rgba(66,214,164,.35); background: rgba(66,214,164,.08); color: #a8f2d8; }
.alert-warning { border-color: rgba(255,202,88,.35); background: rgba(255,202,88,.08); color: #ffe1a0; }

.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th,td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(255,255,255,.02); }
.compact-reference { white-space: nowrap; font-size: .88rem; font-weight: 800; letter-spacing: .02em; }
.admin-finance-table { width: 100%; min-width: 0; table-layout: fixed; }
.admin-finance-table th,
.admin-finance-table td { padding: 10px 8px; overflow-wrap: anywhere; }
.admin-finance-batches-table th:nth-child(1) { width: 10%; }
.admin-finance-batches-table th:nth-child(2) { width: 24%; }
.admin-finance-batches-table th:nth-child(3) { width: 12%; }
.admin-finance-batches-table th:nth-child(4) { width: 12%; }
.admin-finance-batches-table th:nth-child(5) { width: 15%; }
.admin-finance-batches-table th:nth-child(6) { width: 12%; }
.admin-finance-batches-table th:nth-child(7) { width: 15%; }
.admin-finance-withdrawals-table th:nth-child(1) { width: 8%; }
.admin-finance-withdrawals-table th:nth-child(2) { width: 20%; }
.admin-finance-withdrawals-table th:nth-child(3) { width: 8%; }
.admin-finance-withdrawals-table th:nth-child(4) { width: 11%; }
.admin-finance-withdrawals-table th:nth-child(5) { width: 11%; }
.admin-finance-withdrawals-table th:nth-child(6) { width: 10%; }
.admin-finance-withdrawals-table th:nth-child(7) { width: 14%; }
.admin-finance-withdrawals-table th:nth-child(8) { width: 18%; }
.admin-finance-table td:nth-child(1),
.admin-finance-table td:nth-child(3),
.admin-finance-table td:nth-child(4),
.admin-finance-table td:nth-child(6) { white-space: nowrap; }
.admin-finance-table td:last-child .btn { min-height: 30px; padding: 5px 7px; font-size: .72rem; }
.admin-settings-table { width: 100%; min-width: 0; table-layout: fixed; }
.admin-settings-table th,
.admin-settings-table td { padding: 10px 8px; }
.admin-settings-table th:nth-child(1) { width: 25%; }
.admin-settings-table th:nth-child(2) { width: 28%; }
.admin-settings-table th:nth-child(3) { width: 8%; }
.admin-settings-table th:nth-child(4) { width: 15%; }
.admin-settings-table th:nth-child(5) { width: 8%; }
.admin-settings-table th:nth-child(6) { width: 9%; }
.admin-settings-table th:nth-child(7) { width: 7%; }
.setting-key-preview,
.setting-group-preview {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setting-key-preview {
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: .8rem;
}
.setting-value-preview {
  display: -webkit-box;
  max-height: 2.9em;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: .86rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.setting-group-preview { font-size: .82rem; }
.setting-updated { white-space: nowrap; font-size: .8rem; }
.admin-settings-table td:last-child .btn {
  min-height: 30px;
  padding: 5px 8px;
  font-size: .75rem;
}
.settings-mobile-meta { display: none; }
.audit-mobile-summary { display: none; }
.admin-audit-table { width: 100%; min-width: 0; table-layout: fixed; }
.admin-audit-table th,
.admin-audit-table td { padding: 10px 8px; }
.admin-audit-table th:nth-child(1) { width: 15%; }
.admin-audit-table th:nth-child(2) { width: 12%; }
.admin-audit-table th:nth-child(3) { width: 13%; }
.admin-audit-table th:nth-child(4) { width: 20%; }
.admin-audit-table th:nth-child(5) { width: 20%; }
.admin-audit-table th:nth-child(6) { width: 12%; }
.admin-audit-table th:nth-child(7) { width: 8%; }
.audit-date,
.audit-actor,
.audit-ip { white-space: nowrap; font-size: .82rem; }
.audit-cell-preview {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .86rem;
}
.admin-audit-table td:last-child .btn {
  min-height: 30px;
  padding: 5px 8px;
  font-size: .75rem;
}
.reports-list { overflow: hidden; box-shadow: none; }
.report-download-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.report-download-row:last-child { border-bottom: 0; }
.report-download-row h3 { margin: 0 0 4px; font-size: 1rem; }
.report-download-row p { margin: 0; font-size: .86rem; }
.report-download-row .btn { min-width: 150px; }
@media (max-width: 640px) {
  .report-download-row { grid-template-columns: 1fr; gap: 12px; }
  .report-download-row .btn { width: 100%; }
}
.diagnostics-list { display: grid; }
.diagnostic-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
}
.diagnostic-row p { margin: 3px 0 0; font-size: .84rem; line-height: 1.45; }
.diagnostics-passed > summary {
  cursor: pointer;
  padding: 13px 2px 4px;
  color: var(--primary);
  font-weight: 750;
  list-style-position: inside;
}
.diagnostics-passed > div { margin-top: 4px; }
.diagnostics-passed .diagnostic-row:last-child { border-bottom: 0; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--surface-3); color: var(--muted); }
.badge-success { color: #a8f2d8; background: rgba(66,214,164,.12); }
.badge-danger { color: #ffc1ca; background: rgba(255,107,125,.12); }
.badge-warning { color: #ffe1a0; background: rgba(255,202,88,.12); }
.badge-info { color: #b9d8ff; background: rgba(90,169,255,.12); }

.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.stat-card { padding: 21px; }
.stat-card .stat-label { color: var(--muted); font-size: .85rem; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 850; letter-spacing: -.03em; margin-top: 6px; }
.stat-card .stat-note { color: var(--muted); font-size: .76rem; line-height: 1.45; margin-top: 7px; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }

.dashboard-contract-summary { display: grid; gap: 16px; }
.dashboard-contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.dashboard-contract-head h3 { margin: 10px 0 0; }
.dashboard-contract-head > strong { white-space: nowrap; }
.dashboard-contract-facts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin: 0;
}
.dashboard-contract-facts > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
}
.dashboard-contract-facts dt { color: var(--muted); font-size: .76rem; }
.dashboard-contract-facts dd { margin: 4px 0 0; font-weight: 750; line-height: 1.3; }

.contract-summary-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.contract-summary-head h3 { margin: 10px 0 5px; }
.contract-summary-head .package-price { margin: 0; white-space: nowrap; }
.contract-facts {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px 22px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.contract-facts dt { color: var(--muted); font-size: .76rem; }
.contract-facts dd { margin: 4px 0 0; font-weight: 750; }

.admin-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  overflow: hidden;
  box-shadow: none;
}
.admin-stat-item {
  min-width: 0;
  min-height: 118px;
  padding: 16px 17px;
  border-right: 1px solid var(--border);
}
.admin-stat-item:last-child { border-right: 0; }
.admin-stat-item .row-between { align-items: flex-start; flex-wrap: nowrap; gap: 9px; }
.admin-stat-item .stat-label { color: var(--muted); font-size: .79rem; line-height: 1.35; }
.admin-stat-item .stat-value {
  margin-top: 6px;
  font-size: 1.36rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.admin-stat-item .stat-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; }
.admin-dashboard-details { margin-top: 16px; }
.admin-dashboard-details .card { box-shadow: none; }
.admin-dashboard-details .card-header { padding: 12px 16px; }
.admin-dashboard-details .card-body { padding: 14px 16px; }
.admin-dashboard-details .empty-state { padding: 22px 12px; }

.dashboard-shell { display: grid; grid-template-columns: 270px minmax(0,1fr); min-height: 100vh; font-size: 15px; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--border); background: #081422; padding: 18px 14px;
}
.light .sidebar { background: #fff; }
.sidebar .brand { padding: 8px 10px 22px; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav button,
.sidebar-nav a {
  border: 0; width: 100%; text-align: left; color: var(--muted); background: transparent;
  border-radius: 11px; padding: 11px 13px; display: flex; align-items: center; gap: 11px; font-weight: 650;
  text-decoration: none;
}
.sidebar-nav button:hover,
.sidebar-nav button.active,
.sidebar-nav a:hover { color: var(--text); background: var(--surface-2); }
.sidebar-group-label { color: #68809a; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: 20px 13px 8px; }
.dashboard-main { min-width: 0; }
.dashboard-topbar { position: sticky; top: 0; z-index: 50; height: 64px; border-bottom: 1px solid var(--border); background: color-mix(in srgb,var(--bg) 88%,transparent); backdrop-filter: blur(18px); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.dashboard-topbar h1 { font-size: 1.55rem; line-height: 1.2; }
.dashboard-content { padding: 20px; width: min(100%,1440px); margin: 0 auto; }
.dashboard-content .grid { gap: 16px; }
.dashboard-content .stack { gap: 12px; }
.dashboard-content .card-header { padding: 15px 18px; }
.dashboard-content .card-body { padding: 18px; }
.dashboard-content .card-footer { padding: 14px 18px; }
.dashboard-content .btn { min-height: 40px; padding: 9px 15px; }
.dashboard-content input,
.dashboard-content select,
.dashboard-content textarea { min-height: 42px; padding: 10px 12px; }
.dashboard-view > .row-between:first-child h2 { font-size: 1.35rem; line-height: 1.25; }
.dashboard-view > .row-between:first-child p { margin: 5px 0 16px; }
.dashboard-view { display: none; }
.dashboard-view.active { display: block; animation: fadeIn .22s ease; }
.profile-security-grid { align-items: start; }
.profile-security-grid > .stack { min-width: 0; }
.settings-disclosure { overflow: hidden; }
.settings-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}
.settings-disclosure > summary::-webkit-details-marker { display: none; }
.settings-disclosure > summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
}
.settings-disclosure[open] > summary::after { content: "−"; }
.settings-disclosure:not([open]) > summary { border-bottom-color: transparent; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mobile-sidebar-toggle { display: none; }

.tabs { display: flex; gap: 7px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tab { border: 0; border-radius: 10px; background: transparent; color: var(--muted); padding: 9px 12px; font-weight: 700; }
.tab.active,.tab:hover { background: var(--surface-2); color: var(--text); }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.65); display: grid; place-items: center; padding: 20px; }
.modal { width: min(100%,720px); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.modal-header,.modal-footer { padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.modal-header { border-bottom: 1px solid var(--border); }
.modal-footer { border-top: 1px solid var(--border); }
.modal-body { padding: 22px; }

.toast-container { position: fixed; z-index: 500; right: 20px; top: 92px; display: grid; gap: 10px; width: min(92vw,390px); }
.toast { border: 1px solid var(--border); background: var(--surface); border-radius: 13px; padding: 14px 16px; box-shadow: var(--shadow); animation: toastIn .22s ease; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 10px; min-height: 18px; }
.skeleton::after { content:""; position:absolute; inset:0; transform:translateX(-100%); background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.loading-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(3,10,18,.68); display: grid; place-items: center; backdrop-filter: blur(4px); }
.spinner { width: 48px; height: 48px; border: 4px solid rgba(255,255,255,.16); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.pagination button { min-width: 38px; height: 38px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 10px; }
.pagination button.active { background: var(--primary); color: #06131d; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-links { display: grid; gap: 9px; color: var(--muted); }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.social-links { display: flex; gap: 9px; flex-wrap: wrap; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }

.blog-card { overflow: hidden; }
.blog-image { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--surface-2); }
.blog-card .card-body { min-height: 190px; display: flex; flex-direction: column; }
.blog-card .btn { margin-top: auto; align-self: flex-start; }

.ticket-thread { display: grid; gap: 14px; }
.ticket-message { max-width: 82%; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.ticket-message.mine { margin-left: auto; background: var(--primary-soft); border-color: rgba(66,214,164,.25); }
.ticket-message .meta { font-size: .76rem; color: var(--muted); margin-bottom: 6px; }

.notification-list-shell { margin-top: 16px; overflow: hidden; }
.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  background: transparent;
}
.notification-item + .notification-item { border-top: 1px solid var(--border); }
.notification-item.unread { background: rgba(66,214,164,.045); }
.notification-copy { min-width: 0; }
.notification-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.notification-type {
  color: var(--secondary);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.notification-new { color: var(--success); font-size: .76rem; font-weight: 800; }
.notification-item h3 { margin: 2px 0; font-size: 1rem; }
.notification-message { color: var(--muted); overflow-wrap: anywhere; }
.notification-item small { display: block; margin-top: 3px; }
.notification-read-action {
  flex: 0 0 auto;
  border: 0;
  padding: 5px 0;
  color: var(--primary);
  background: transparent;
  font-weight: 750;
}
.notification-read-action:hover { text-decoration: underline; }

.kv-list { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.profile-kv-list dt,
.profile-kv-list dd { align-self: center; }
.code-box { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; background: #05101c; color: #b7f7df; border: 1px dashed rgba(66,214,164,.36); border-radius: 12px; padding: 13px; overflow-wrap: anywhere; }
.light .code-box { background: #eff7f4; color: #0d5d46; }
.wallet-address-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.wallet-address-value {
  display: block;
  min-width: 0;
  padding: 10px 12px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: .88rem;
  line-height: 1.4;
}
.wallet-copy-button {
  flex: 0 0 auto;
  min-width: 78px;
  align-self: stretch;
}
.user-number-value {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-weight: 800;
  letter-spacing: .06em;
}

@media (max-width: 1040px) {
  .grid-4,.stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-stat-item { border-bottom: 1px solid var(--border); }
  .admin-stat-item:nth-child(2n) { border-right: 0; }
  .admin-stat-item:last-child { border-bottom: 0; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 120; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .mobile-sidebar-toggle { display: grid; }
}
@media (max-width: 820px) {
  .admin-investments-table { min-width: 980px; table-layout: auto; }
  .admin-finance-table { min-width: 980px; table-layout: auto; }
  .nav { position: fixed; left: 18px; right: 18px; top: calc(var(--header-h) + 8px); display: none; padding: 14px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav .mobile-nav-only { display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); margin-top: 4px; }
  .nav .mobile-nav-primary { color: #06131d; border-color: transparent; background: linear-gradient(135deg,var(--primary),#7df0ca); }
  .menu-toggle { display: grid; }
  .header-actions .desktop-only { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
  .hero { min-height: 560px; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px),var(--container)); }
  .section { padding: 58px 0; }
  .hero { min-height: 520px; align-items: flex-start; }
  .hero::before {
    background: linear-gradient(180deg,rgba(7,17,31,.97) 0%,rgba(7,17,31,.91) 58%,rgba(7,17,31,.62) 100%);
  }
  .hero-slide { background-position: 68% center; }
  .hero-content { max-width: 100%; padding: 54px 0 82px; }
  .hero-kicker { font-size: .68rem; letter-spacing: .09em; }
  .hero h1 {
    max-width: 100%;
    margin: 15px 0 14px;
    font-size: clamp(2rem,10vw,2.65rem);
    line-height: 1.07;
    letter-spacing: -.045em;
    text-shadow: 0 2px 18px rgba(0,0,0,.42);
  }
  .hero p { max-width: 100%; font-size: .95rem; line-height: 1.55; }
  .hero-content .row { gap: 10px; flex-wrap: wrap; }
  .hero-content .btn { min-height: 44px; padding: 10px 14px; }
  .grid-2,.grid-3,.grid-4,.stats-grid,.form-grid { grid-template-columns: 1fr; }
  [data-view="dashboard"] .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  [data-view="dashboard"] .stat-card { min-width: 0; padding: 15px; }
  [data-view="dashboard"] .stat-card .row-between { align-items: flex-start; gap: 8px; }
  [data-view="dashboard"] .stat-card .stat-value { font-size: 1.22rem; line-height: 1.25; }
  [data-view="dashboard"] .stat-card .stat-label { font-size: .76rem; line-height: 1.35; }
  [data-view="dashboard"] .stat-card .stat-note { font-size: .67rem; }
  [data-view="dashboard"] .stat-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; }
  .dashboard-contract-summary { gap: 13px; }
  .dashboard-contract-head { align-items: flex-end; }
  .dashboard-contract-head h3 { margin-top: 7px; font-size: 1rem; }
  .dashboard-contract-head > strong { font-size: .86rem; }
  .dashboard-contract-facts { gap: 7px; }
  .dashboard-contract-facts > div { padding: 9px 8px; }
  .dashboard-contract-facts dt { font-size: .67rem; }
  .dashboard-contract-facts dd { font-size: .76rem; overflow-wrap: anywhere; }
  .contract-summary-card .card-body { padding: 16px; }
  .contract-summary-head { align-items: flex-start; gap: 12px; }
  .contract-summary-head h3 { margin-top: 8px; font-size: 1rem; }
  .contract-summary-head .package-price { font-size: 1.22rem; }
  .contract-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 14px; padding-top: 13px; }
  .contract-facts dt { font-size: .68rem; }
  .contract-facts dd { font-size: .82rem; }
  .admin-dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-stat-item {
    min-height: 82px;
    padding: 13px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .admin-stat-item:nth-child(2n) { border-right: 0; }
  .admin-stat-item:last-child {
    grid-column: 1/-1;
    min-height: 72px;
    border-right: 0;
    border-bottom: 0;
  }
  .admin-stat-item .stat-value { font-size: 1.05rem; }
  .admin-stat-item .stat-icon { flex-basis: 30px; width: 30px; height: 30px; }
  .admin-dashboard-details [data-pending-summary] .kv-list {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 9px 14px;
  }
  #userFilter {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  #userFilter input {
    grid-column: 1/-1;
    max-width: none !important;
  }
  #userFilter select { max-width: none !important; }
  #userFilter .btn { grid-column: 1/-1; width: 100%; }
  #kycFilter {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
  }
  #kycFilter input {
    grid-column: 1/-1;
    max-width: none !important;
  }
  #kycFilter select { max-width: none !important; }
  .admin-countries-wrap { overflow: visible; border: 0; }
  .admin-countries-table { min-width: 0; }
  .admin-countries-table thead { display: none; }
  .admin-countries-table tbody { display: grid; gap: 8px; }
  .admin-countries-table tr {
    display: grid;
    grid-template-columns: auto auto minmax(0,1fr) auto;
    gap: 5px 12px;
    align-items: center;
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-2);
  }
  .admin-countries-table td {
    padding: 0;
    border: 0;
    min-width: 0;
    font-size: .78rem;
  }
  .admin-countries-table td:first-child {
    grid-column: 1/4;
    font-size: .86rem;
    font-weight: 750;
  }
  .admin-countries-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .admin-countries-table td:nth-child(3) { grid-column: 2; grid-row: 2; }
  .admin-countries-table td:nth-child(4) { grid-column: 3; grid-row: 2; }
  .admin-countries-table td:nth-child(5) { display: none; }
  .admin-countries-table td:last-child {
    grid-column: 4;
    grid-row: 1/3;
  }
  .admin-countries-table td:nth-child(2)::before,
  .admin-countries-table td:nth-child(3)::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
  }
  .admin-countries-table .btn { min-height: 32px; padding: 6px 9px; font-size: .72rem; }
  .admin-countries-table td[colspan] { display: block; grid-column: 1/-1; }
  .package-meta { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .dashboard-content { padding: 18px 12px; }
  .dashboard-topbar { padding: 0 12px; }
  .dashboard-topbar h1 { font-size: 1.1rem; }
  .card-body,.card-header,.card-footer { padding-left: 17px; padding-right: 17px; }
  .kv-list { grid-template-columns: 1fr; gap: 3px 0; }
  .profile-kv-list { grid-template-columns: 105px minmax(0,1fr); gap: 10px 12px; }
  .profile-kv-list .profile-wallet-label,
  .profile-kv-list .profile-wallet-content { grid-column: 1/-1; }
  .profile-kv-list .profile-wallet-content { margin-top: -5px; }
  .ticket-message { max-width: 95%; }
  .hide-mobile { display: none !important; }
  .wallet-address-row { grid-template-columns: 1fr; }
  .wallet-copy-button { width: 100%; }
  .notification-item { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mobile-history-wrap { overflow: visible; border: 0; border-radius: 0; }
  .mobile-history-table { min-width: 0; }
  .mobile-history-table thead { display: none; }
  .mobile-history-table tbody { display: grid; gap: 10px; }
  .mobile-history-table tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
  }
  .mobile-history-table td {
    display: grid;
    grid-template-columns: 74px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 11px;
    overflow-wrap: anywhere;
  }
  .mobile-history-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .mobile-history-table td[colspan] { display: block; }
  .mobile-history-table td[colspan]::before { content: none; }
  .mobile-history-table .history-action-empty { display: none; }
  .admin-accounts-table tr {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .admin-accounts-table td {
    display: block;
    min-width: 0;
    padding: 9px 11px;
  }
  .admin-accounts-table td::before {
    display: block;
    margin-bottom: 4px;
  }
  .admin-accounts-table td:nth-child(1),
  .admin-accounts-table td:nth-child(2),
  .admin-accounts-table td:nth-child(6),
  .admin-accounts-table td:nth-child(8) { grid-column: 1/-1; }
  .admin-accounts-table td:nth-child(8) .row { gap: 7px; }
  .admin-accounts-table td:nth-child(8) .btn { flex: 1 1 auto; }
  .admin-accounts-table td[colspan] { grid-column: 1/-1; }
  .admin-settings-wrap { overflow: visible; border: 0; }
  .admin-settings-table { min-width: 0; table-layout: auto; }
  .admin-settings-table thead { display: none; }
  .admin-settings-table tbody { display: grid; gap: 9px; }
  .admin-settings-table tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 7px 10px;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-2);
  }
  .admin-settings-table td {
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .admin-settings-table td:first-child { grid-column: 1; grid-row: 1; }
  .admin-settings-table td:nth-child(2) { grid-column: 1/-1; grid-row: 2; }
  .admin-settings-table td:nth-child(3),
  .admin-settings-table td:nth-child(4),
  .admin-settings-table td:nth-child(5),
  .admin-settings-table td:nth-child(6) { display: none; }
  .admin-settings-table td:last-child { grid-column: 2; grid-row: 1; }
  .admin-settings-table .setting-key-preview {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    font-weight: 800;
  }
  .admin-settings-table .setting-value-preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
  }
  .admin-settings-table td:last-child .btn {
    min-height: 32px;
    padding: 6px 10px;
    font-size: .72rem;
  }
  .settings-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 9px;
    margin-top: 6px;
    color: var(--muted);
    font-size: .64rem;
  }
  .settings-mobile-meta span:not(:last-child)::after {
    content: " ·";
    margin-left: 6px;
  }
  .admin-settings-table td[colspan] { display: block; grid-column: 1/-1; }
  .admin-audit-wrap { overflow: visible; border: 0; }
  .admin-audit-table { min-width: 0; table-layout: auto; }
  .admin-audit-table thead { display: none; }
  .admin-audit-table tbody { display: grid; gap: 8px; }
  .admin-audit-table tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px 10px;
    align-items: start;
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-2);
  }
  .admin-audit-table td {
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .admin-audit-table td:first-child { grid-column: 1; grid-row: 1; }
  .admin-audit-table td:nth-child(2),
  .admin-audit-table td:nth-child(3),
  .admin-audit-table td:nth-child(4),
  .admin-audit-table td:nth-child(5),
  .admin-audit-table td:nth-child(6) { display: none; }
  .admin-audit-table td:last-child { grid-column: 2; grid-row: 1; }
  .admin-audit-table td:last-child .btn {
    min-height: 31px;
    padding: 5px 9px;
    font-size: .7rem;
  }
  .admin-audit-table .audit-date {
    display: block;
    width: auto;
    white-space: normal;
    font-weight: 800;
    font-size: .76rem;
  }
  .audit-mobile-summary {
    display: grid;
    gap: 5px;
    margin-top: 6px;
    color: var(--muted);
    font-size: .69rem;
    line-height: 1.4;
  }
  .audit-mobile-summary > div {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 10px;
  }
  .audit-mobile-summary strong { color: var(--text); }
  .audit-mobile-summary span:not(:last-child)::after {
    content: " ·";
    margin-left: 7px;
  }
  .admin-audit-table td[colspan] { display: block; grid-column: 1/-1; }
  .admin-backups-table td:first-child { overflow-wrap: anywhere; }
  .admin-backups-table td:last-child .row { gap: 7px; }
  .admin-backups-table td:last-child .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  [data-view="dashboard"] .stats-grid { grid-template-columns: 1fr; }
  [data-view="dashboard"] .stat-card { padding: 13px 14px; }
  [data-view="dashboard"] .stat-card .stat-value { font-size: 1.12rem; }
  .dashboard-contract-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dashboard-contract-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-contract-facts > div:last-child { grid-column: 1/-1; }
  .contract-summary-head { flex-direction: column; }
  .profile-kv-list { grid-template-columns: 1fr; gap: 3px 0; }
  .profile-kv-list dd { margin-bottom: 8px; }
}

.captcha-box {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}
.upgrade-activation-notice {
  margin: 0;
  padding: 14px 16px;
  border: 3px solid #ff2d3f;
  border-radius: 0;
  color: #ffd21f;
  font-weight: 800;
  line-height: 1.55;
  background: rgba(255, 45, 63, 0.035);
}


.package-suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  max-height: 132px;
  overflow: auto;
  padding-right: 4px;
}
.package-suggestion-list .btn {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.latest-record {
  display: grid;
  gap: 12px;
}
.latest-record-highlight {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(66,214,164,.28);
  border-radius: 16px;
  background: var(--primary-soft);
}
.latest-record-highlight span {
  color: var(--muted);
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.latest-record-highlight strong {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
}
.latest-record-list {
  display: grid;
  gap: 0;
}
.latest-record-row {
  display: grid;
  grid-template-columns: minmax(130px,.75fr) minmax(0,1.25fr);
  align-items: center;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
}
.latest-record-row:last-child { border-bottom: 0; }
.latest-record-row > span {
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .02em;
}
.latest-record-row strong,
.latest-record-row > div {
  justify-self: end;
  text-align: right;
  overflow-wrap: anywhere;
}
.latest-record-code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
}

.latest-record-action {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}
.latest-record-action .btn {
  min-height: 54px;
  font-size: 1rem;
}
.latest-record-action-note {
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 640px) {
  .latest-record { gap: 10px; }
  .latest-record-highlight { padding: 14px 15px; border-radius: 13px; }
  .latest-record-highlight strong { font-size: 1.45rem; }
  .latest-record-list { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 14px; }
  .latest-record-row { grid-template-columns: 1fr; align-content: start; gap: 3px; padding: 8px 1px; }
  .latest-record-row strong,
  .latest-record-row > div {
    justify-self: start;
    text-align: left;
  }
  .latest-record-action .btn { min-height: 44px; font-size: .88rem; }
  .dashboard-content .btn-more-attention { min-height: 42px; }
}

@media (max-width: 380px) {
  .latest-record-list { grid-template-columns: 1fr; }
}
