:root{--bg:#0b1020;--panel:#11182d;--panel-2:#17203b;--text:#edf2ff;--muted:#9fa9c5;--line:#273354;--accent:#7cc4ff;--accent-2:#8ef0cf;--danger:#ff9b9b}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:linear-gradient(180deg,#08101d,#0d1428);color:var(--text)}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:18px 28px;border-bottom:1px solid var(--line);background:rgba(8,14,29,.9);backdrop-filter:blur(6px);position:sticky;top:0;z-index:10}
.brand{display:flex;gap:14px;align-items:center}.brand-mark{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#00111f;font-weight:800;display:flex;align-items:center;justify-content:center}.brand-title{font-weight:800}.brand-subtitle{font-size:12px;color:var(--muted)}
.topnav{display:flex;gap:16px;flex-wrap:wrap}.page-shell{max-width:1200px;margin:0 auto;padding:28px}.page-shell-plain{max-width:860px}.footer{padding:22px 28px;color:var(--muted);text-align:center}
.auth-wrap{min-height:72vh;display:grid;place-items:center}.auth-card,.panel,.stat-card,.hero-panel,.choice-card{background:linear-gradient(180deg,var(--panel),var(--panel-2));border:1px solid var(--line);border-radius:24px;box-shadow:0 20px 50px rgba(0,0,0,.24)}.auth-card{max-width:560px;padding:34px}
.eyebrow{letter-spacing:.14em;text-transform:uppercase;color:var(--accent-2);font-size:12px;font-weight:700}h1,h2,h3{margin:0 0 14px}p{line-height:1.65}.muted{color:var(--muted)}.helper{font-size:13px;color:var(--muted);margin-top:14px}
.stack{display:grid;gap:14px;margin-top:18px}label{display:grid;gap:8px;font-weight:600}input,select,textarea,button{font:inherit}input,select,textarea{padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:#0d1530;color:var(--text)}button{padding:13px 16px;border-radius:14px;border:0;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#04111e;font-weight:800;cursor:pointer}
.alert{margin-top:16px;padding:12px 14px;border:1px solid rgba(255,155,155,.35);border-radius:14px;background:rgba(255,155,155,.09);color:var(--danger)}.hero-panel{padding:26px 28px;margin-bottom:22px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:22px}.stat-card{padding:22px}.stat-value{font-size:34px;font-weight:800}.stat-label{color:var(--muted);margin-top:8px}
.panel-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.panel{padding:22px}.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.data-table th{color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.list{display:grid;gap:12px;padding-left:18px}.list li span{display:block;color:var(--muted);font-size:14px;margin-top:4px}.compact{gap:8px}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:12px 0 20px}.label{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}.buy-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.choice-card{padding:22px}
@media (max-width:900px){.stats-grid,.panel-grid,.buy-grid,.detail-grid{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column;gap:14px}}

.pill{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;text-transform:capitalize}.pill-neutral{background:#223053;color:#cfd8ff}.pill-status{background:#203b31;color:#9af1cf}.pill-developer{background:#2b2f48;color:#d7ddff}.pill-standard{background:#203554;color:#b7deff}.pill-professional{background:#2f234d;color:#d8c0ff}.pill-enterprise{background:#3a2a20;color:#ffd0a3}.button-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:12px;background:#1b6fd6;color:#fff;text-decoration:none}.button-link:hover{text-decoration:none;opacity:.95}.button-muted{background:#374151;color:#fff}.subsection{margin-top:18px}.container-card{display:grid;gap:10px;padding:16px;border-radius:18px;border:1px solid var(--line);background:#0d1530}.container-cmd,.copy-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.copy-row button,.container-cmd button{padding:8px 10px;border-radius:10px;background:#223053;color:#fff}.notes-cell{max-width:260px;color:var(--muted)}.action-stack{display:grid;gap:8px}.order-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.table-wrap{overflow:auto}.data-table .muted{font-size:13px}.support-ticket-item{display:block;color:inherit;text-decoration:none}.support-ticket-item:hover{text-decoration:none}.hero-panel h1{margin-bottom:8px}

/* ==========================================================================
   VNetArmor Portal UI alignment refresh
   - Normalizes page widths
   - Keeps admin/activation tables readable
   - Prevents action columns from drifting outside cards
   - Adds dashboard-specific responsive layout
   ========================================================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 72px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-title {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
}

.page-shell {
  width: 100%;
  max-width: 1500px;
  padding: 32px 28px;
}

.topbar {
  gap: 18px;
}

.topnav {
  justify-content: flex-end;
  align-items: center;
  row-gap: 8px;
}

.hero-panel,
.panel,
.stat-card,
.choice-card,
.auth-card {
  box-sizing: border-box;
}

.hero-panel,
.panel {
  width: 100%;
}

.hero-panel {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.hero-panel.admin-wide,
.panel.wide,
.admin-wide {
  max-width: 1500px;
}

.dashboard-hero {
  max-width: 1180px;
}

.panel {
  overflow: hidden;
}

.panel-head,
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-section-head {
  margin-bottom: 12px;
}

.toolbar,
.admin-toolbar {
  width: 100%;
  margin: 0 0 18px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar input[type="search"],
.admin-toolbar input[type="search"] {
  min-width: 300px;
  flex: 1 1 420px;
}

.toolbar select,
.admin-toolbar select {
  min-width: 150px;
  flex: 0 0 auto;
}

.toolbar button,
.admin-toolbar button,
.button.secondary {
  min-height: 42px;
  flex: 0 0 auto;
}

.button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #0d1530;
  color: var(--text);
}

.button.secondary:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.table-wrap,
.admin-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.03);
}

.data-table,
.admin-table,
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table {
  table-layout: fixed;
}

.admin-licenses-table {
  min-width: 1380px;
}

.activations-table {
  min-width: 1320px;
}

.dashboard-table {
  min-width: 720px;
}

.compact-table {
  min-width: 620px;
}

.data-table th,
.data-table td,
.admin-table th,
.admin-table td,
.dashboard-table th,
.dashboard-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.35;
}

.data-table th,
.admin-table th,
.dashboard-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.data-table tbody tr:hover,
.admin-table tbody tr:hover,
.dashboard-table tbody tr:hover {
  background: rgba(124,196,255,.035);
}

.align-right,
.action-cell {
  text-align: right;
}

.action-cell {
  white-space: nowrap;
}

.action-cell form {
  display: inline-block;
  margin: 0;
}

.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg,#ffb4b4,#ff7b7b);
  color: #210909;
  font-weight: 800;
}

.mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.mono-cell > span,
.mono-cell > a {
  display: inline-block;
  max-width: 100%;
}

.activation-cell {
  font-size: 12px;
  color: var(--muted);
}

.activation-cell div {
  margin-bottom: 4px;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(142,240,207,.25);
}

.status-active,
.status-issued,
.status-open,
.status-in_progress {
  background: rgba(142,240,207,.12);
  color: #8ef0cf;
  border-color: rgba(142,240,207,.25);
}

.status-revoked,
.status-expired,
.status-closed {
  background: rgba(255,155,155,.12);
  color: #ffb4b4;
  border-color: rgba(255,155,155,.25);
}

.status-waiting_customer {
  background: rgba(255,209,138,.12);
  color: #ffd18a;
  border-color: rgba(255,209,138,.25);
}

.status-resolved {
  background: rgba(142,240,207,.12);
  color: #8ef0cf;
  border-color: rgba(142,240,207,.25);
}

/* Admin license table column widths */
.col-license { width: 220px; }
.col-org { width: 140px; }
.col-edition { width: 115px; }
.col-deployment { width: 115px; }
.col-status { width: 100px; }
.col-limits { width: 115px; }
.col-date { width: 115px; }
.col-activations { width: 430px; }
.col-action { width: 130px; }

/* Activation table column widths */
.activation-license-ref { width: 110px; }
.activation-hostname { width: 150px; }
.activation-fingerprint { width: 330px; }
.activation-ip { width: 120px; }
.activation-status { width: 110px; }
.activation-date { width: 180px; }

/* Dashboard */
.dashboard-stats {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .95fr);
  align-items: start;
}

.dashboard-grid-secondary {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
}

.dashboard-panel {
  min-width: 0;
}

.dashboard-panel-large {
  min-height: 370px;
}

.container-card {
  margin-top: 10px;
}

.container-cmd code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.support-list {
  margin-top: 8px;
}

/* Support/admin support */
.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.35fr);
  gap: 18px;
}

.support-ticket-list {
  display: grid;
  gap: 10px;
}

.support-ticket-item {
  display: block;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.support-ticket-item.active,
.support-ticket-item:hover {
  border-color: var(--line);
  background: rgba(124,196,255,.06);
  text-decoration: none;
}

.thread {
  display: grid;
  gap: 12px;
}

.thread-message {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13,21,48,.72);
}

.thread-message.staff {
  border-color: rgba(142,240,207,.28);
  background: rgba(142,240,207,.07);
}

.thread-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.support-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.support-meta-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.sev-critical { color: #ffb4b4; border-color: rgba(255,90,90,.35); }
.sev-high { color: #ffd18a; border-color: rgba(255,190,90,.35); }
.sev-medium { color: #b8d7ff; border-color: rgba(120,170,255,.35); }
.sev-low { color: #b8f7d0; border-color: rgba(110,230,160,.35); }

@media (max-width: 1200px) {
  .dashboard-grid,
  .dashboard-grid-secondary,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-table,
  .compact-table {
    min-width: 680px;
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 20px 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }

  .stats-grid,
  .dashboard-stats,
  .support-layout,
  .support-meta-grid {
    grid-template-columns: 1fr;
  }

  .toolbar input[type="search"],
  .admin-toolbar input[type="search"],
  .toolbar select,
  .admin-toolbar select,
  .toolbar button,
  .admin-toolbar button,
  .toolbar .button,
  .admin-toolbar .button {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .admin-licenses-table {
    min-width: 1220px;
  }

  .activations-table {
    min-width: 1180px;
  }
}


/* Wide-page expansion v2: dashboard + admin license pages */
.page-shell {
  max-width: 1600px;
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

.portal-page.portal-wide,
.hero-panel-wide,
.panel-wide,
.dashboard-stats,
.dashboard-grid {
  width: min(1480px, calc(100vw - 64px));
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-panel-wide {
  margin-bottom: 22px;
}

.panel-wide {
  padding: 26px;
}

.dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.dashboard-grid,
.dashboard-grid-primary,
.dashboard-grid-secondary {
  display: grid;
  gap: 22px;
  align-items: start;
}

.dashboard-grid-primary {
  grid-template-columns: minmax(0, 1.8fr) minmax(430px, .95fr);
}

.dashboard-grid-secondary {
  grid-template-columns: minmax(0, 1.25fr) minmax(430px, .85fr);
  margin-top: 22px;
}

.dashboard-panel,
.admin-license-panel {
  min-width: 0;
}

.dashboard-table-wrap,
.license-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.dashboard-table {
  min-width: 0;
  table-layout: fixed;
}

.dashboard-licenses-table {
  min-width: 760px;
}

.dashboard-downloads-table {
  min-width: 620px;
}

.dashboard-licenses-table th:nth-child(1),
.dashboard-licenses-table td:nth-child(1) { width: 250px; }
.dashboard-licenses-table th:nth-child(2),
.dashboard-licenses-table td:nth-child(2) { width: 120px; }
.dashboard-licenses-table th:nth-child(3),
.dashboard-licenses-table td:nth-child(3) { width: 105px; }
.dashboard-licenses-table th:nth-child(4),
.dashboard-licenses-table td:nth-child(4) { width: 105px; }
.dashboard-licenses-table th:nth-child(5),
.dashboard-licenses-table td:nth-child(5) { width: 100px; }
.dashboard-licenses-table th:nth-child(6),
.dashboard-licenses-table td:nth-child(6) { width: 95px; }

.dashboard-downloads-table th:nth-child(1),
.dashboard-downloads-table td:nth-child(1) { width: 230px; }
.dashboard-downloads-table th:nth-child(2),
.dashboard-downloads-table td:nth-child(2) { width: 140px; }
.dashboard-downloads-table th:nth-child(3),
.dashboard-downloads-table td:nth-child(3) { width: 120px; }
.dashboard-downloads-table th:nth-child(4),
.dashboard-downloads-table td:nth-child(4) { width: 110px; }

.filename-cell,
.license-id-cell,
.mono-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.license-id-cell a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-license-panel .license-toolbar {
  width: 100%;
  max-width: none;
  margin: 0 0 18px 0;
}

.admin-license-panel .license-toolbar input[type="search"] {
  flex: 1 1 auto;
  min-width: 420px;
}

.admin-licenses-table {
  min-width: 1320px;
  table-layout: fixed;
}

.admin-licenses-table .col-license { width: 220px; }
.admin-licenses-table .col-org { width: 145px; }
.admin-licenses-table .col-edition { width: 115px; }
.admin-licenses-table .col-deployment { width: 115px; }
.admin-licenses-table .col-status { width: 100px; }
.admin-licenses-table .col-limits { width: 135px; }
.admin-licenses-table .col-date { width: 110px; }
.admin-licenses-table .col-activations { width: 355px; }
.admin-licenses-table .col-action { width: 105px; }

.activation-cell {
  max-width: 355px;
}

.activation-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-cell,
.align-right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.button-danger {
  background: linear-gradient(135deg,#ff9b9b,#ff7777);
  color: #190707;
}

@media (max-width: 1200px) {
  .portal-page.portal-wide,
  .hero-panel-wide,
  .panel-wide,
  .dashboard-stats,
  .dashboard-grid {
    width: min(100%, calc(100vw - 32px));
  }

  .dashboard-grid-primary,
  .dashboard-grid-secondary {
    grid-template-columns: 1fr;
  }

  .dashboard-downloads-table,
  .dashboard-licenses-table {
    min-width: 720px;
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .admin-license-panel .license-toolbar input[type="search"] {
    min-width: 0;
  }
}


/* ==========================================================================
   Support workflow + dashboard layout update v1.0.7
   ========================================================================== */

.support-page-panel,
.admin-support-panel {
  max-width: 1480px;
}

.support-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.support-card {
  padding: 18px;
  margin: 0 !important;
}

.support-thread-panel {
  min-width: 0;
}

.support-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.support-actions form {
  margin: 0;
}

.support-reply-form {
  margin-top: 18px;
}

.support-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.support-status-list {
  display: grid;
  gap: 12px;
}

.support-status-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13,21,48,.72);
  color: inherit;
}

.support-status-card:hover {
  text-decoration: none;
  border-color: rgba(124,196,255,.5);
  background: rgba(124,196,255,.06);
}

.status-pending_support,
.status-fg-pending_support {
  background: rgba(255,209,138,.14);
  color: #ffd18a;
  border-color: rgba(255,209,138,.32);
}

.status-pending_customer,
.status-fg-pending_customer {
  background: rgba(124,196,255,.14);
  color: #9fd5ff;
  border-color: rgba(124,196,255,.32);
}

.status-in_progress,
.status-fg-in_progress {
  background: rgba(190,160,255,.14);
  color: #d8c0ff;
  border-color: rgba(190,160,255,.32);
}

.status-open,
.status-fg-open {
  background: rgba(142,240,207,.12);
  color: #8ef0cf;
  border-color: rgba(142,240,207,.25);
}

.status-resolved,
.status-fg-resolved {
  background: rgba(142,240,207,.12);
  color: #8ef0cf;
  border-color: rgba(142,240,207,.25);
}

.status-closed,
.status-fg-closed {
  background: rgba(170,180,200,.12);
  color: #cbd5e1;
  border-color: rgba(170,180,200,.25);
}

.status-text {
  display: inline-flex;
  font-weight: 900;
  text-transform: capitalize;
  background: transparent !important;
  border: 0 !important;
  padding: 0;
}

.sev-fg-critical,
.sev-critical {
  color: #ffb4b4;
  border-color: rgba(255,90,90,.35);
}

.sev-fg-high,
.sev-high {
  color: #ffd18a;
  border-color: rgba(255,190,90,.35);
}

.sev-fg-medium,
.sev-medium {
  color: #b8d7ff;
  border-color: rgba(120,170,255,.35);
}

.sev-fg-low,
.sev-low {
  color: #b8f7d0;
  border-color: rgba(110,230,160,.35);
}

.alert-info {
  border-color: rgba(124,196,255,.35);
  background: rgba(124,196,255,.08);
  color: #b8d7ff;
}

.dashboard-grid-primary {
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, .95fr);
}

.dashboard-download-row {
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, .95fr);
}

.support-status-panel {
  min-height: 300px;
}

.container-deployments-panel .container-card {
  margin-top: 12px;
}

.invoices-panel {
  display: none;
}

.badge[class*="status-"] {
  font-weight: 900;
  text-transform: capitalize;
}

@media (max-width: 1200px) {
  .dashboard-grid-primary,
  .dashboard-download-row {
    grid-template-columns: 1fr;
  }
}

/* Secure artifact admin table layout */
.admin-artifacts-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-artifacts-table {
  width: 100%;
  min-width: 1360px;
  table-layout: fixed;
}

.admin-artifacts-table th,
.admin-artifacts-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-artifacts-table .col-id { width: 70px; }
.admin-artifacts-table .col-product { width: 190px; white-space: normal; }
.admin-artifacts-table .col-component { width: 110px; }
.admin-artifacts-table .col-version { width: 110px; }
.admin-artifacts-table .col-kind { width: 140px; }
.admin-artifacts-table .col-channel { width: 95px; }
.admin-artifacts-table .col-state { width: 110px; }
.admin-artifacts-table .col-platform { width: 130px; }
.admin-artifacts-table .col-filename { width: 310px; }
.admin-artifacts-table .col-digest { width: 190px; }
.admin-artifacts-table .col-actions { width: 210px; white-space: normal; }

.admin-artifacts-table code,
.admin-artifacts-table .col-digest code {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* Download action cleanup: portal serves OCI archives; no public docker pull commands. */
.download-actions-inline{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.container-card .download-actions-inline .button,
.container-card .download-actions-inline .button-link{white-space:nowrap}

/* Phase 1–4 download lifecycle polish */
.archived-row {
  opacity: 0.72;
}
.archived-row code,
.archived-row td {
  color: var(--muted, #9aa7c7);
}
.pill-warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.enterprise-pool-panel .dashboard-table td,
.enterprise-pool-panel .dashboard-table th {
  padding: 8px 12px;
}

.enterprise-pool-panel .download-card {
  margin-bottom: 12px;
}

.enterprise-pool-panel .stat-card {
  min-height: 96px;
}

.logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.nav-link-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-link-button:hover {
  text-decoration: underline;
}

.notice.success {
  border: 1px solid rgba(125, 240, 190, 0.55);
  background: rgba(45, 180, 120, 0.12);
  color: #bfffe0;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}

.logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.nav-link-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-link-button:hover {
  text-decoration: underline;
}

.notice.success {
  border: 1px solid rgba(125, 240, 190, 0.55);
  background: rgba(45, 180, 120, 0.12);
  color: #bfffe0;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}

.notice.warning {
  border: 1px solid rgba(255, 200, 90, 0.55);
  background: rgba(255, 180, 60, 0.12);
  color: #ffe2a8;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}


/* ==========================================================================
   VNetArmor portal header/logo fix v1.0.11
   Purpose: keep the real VNetArmor logo in the portal header without allowing
   the 2048x1365 source image/SVG to expand the header or push the navigation.
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  z-index: 1000;
  padding: 8px 12px;
  border-radius: 10px;
  background: #10203a;
  color: var(--accent);
  border: 1px solid var(--line);
}
.topbar {
  min-height: 76px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  overflow: visible;
}
.topbar .brand,
a.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 420px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
}
.topbar .brand:hover,
a.brand:hover {
  text-decoration: none;
}
.topbar .brand-logo,
img.brand-logo {
  display: block;
  width: 64px !important;
  height: 44px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  object-fit: contain;
  object-position: center;
  flex: 0 0 64px;
  border: 0;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}
.brand-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}
.brand-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
}
.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  row-gap: 8px;
}
.topnav a,
.topnav .nav-link-button {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.topnav a:hover,
.topnav .nav-link-button:hover {
  text-decoration: underline;
}
.logout-form {
  margin: 0;
  display: inline-flex;
}
.nav-link-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 400;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .topbar .brand,
  a.brand {
    max-width: 100%;
  }
  .topnav {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .topbar {
    padding: 12px 16px;
  }
  .topbar .brand-logo,
  img.brand-logo {
    width: 56px !important;
    height: 38px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex-basis: 56px;
  }
  .brand-title {
    font-size: 0.98rem;
  }
  .brand-subtitle {
    white-space: normal;
  }
  .topnav {
    gap: 12px;
  }
}


/* ==========================================================================
   VNetArmor portal header/logo/nav refinement v1.0.13
   - Larger logo
   - Brand title + subtitle on one line
   - Only logo/title are clickable
   - Main nav moved in from far right
   - Secondary links grouped under More dropdown
   ========================================================================== */
.topbar {
  min-height: 94px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 36px !important;
  padding: 14px 56px 14px 34px !important;
  overflow: visible !important;
}

.topbar .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  color: var(--text) !important;
}

.brand-main {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  color: var(--accent) !important;
  text-decoration: none !important;
  flex: 0 0 auto !important;
}

.brand-main:hover {
  text-decoration: none !important;
}

.topbar .brand-logo,
img.brand-logo {
  display: block !important;
  width: 96px !important;
  height: 66px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  min-height: 66px !important;
  max-height: 66px !important;
  object-fit: contain !important;
  object-position: center !important;
  flex: 0 0 96px !important;
  border: 0 !important;
}

.brand-title {
  display: inline-block !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.brand-separator {
  display: inline-block;
  width: 1px;
  height: 28px;
  background: rgba(159, 169, 197, 0.35);
  flex: 0 0 1px;
}

.brand-subtitle {
  display: inline-block !important;
  margin: 0 !important;
  font-size: 0.92rem !important;
  color: var(--muted) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 20px !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;
  margin-right: 18px !important;
}

.topnav > a,
.topnav summary,
.topnav .nav-link-button {
  color: var(--accent) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

.topnav > a:hover,
.topnav summary:hover,
.nav-menu a:hover,
.nav-menu .nav-link-button:hover {
  text-decoration: underline !important;
}

.nav-more {
  position: relative;
  display: inline-block;
}

.nav-more summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::before {
  content: "▸";
  margin-right: 6px;
  font-size: 0.78em;
  color: var(--text);
}

.nav-more[open] summary::before {
  content: "▾";
}

.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 100;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #08101d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 4px;
}

.nav-menu a,
.nav-menu .nav-link-button {
  display: block;
  width: 100%;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  text-align: left;
  background: transparent !important;
  font-weight: 600 !important;
}

.nav-menu a:hover,
.nav-menu .nav-link-button:hover {
  background: rgba(124, 196, 255, 0.10) !important;
  text-decoration: none !important;
}

.nav-menu-section {
  display: block;
  margin: 8px 10px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.logout-form {
  margin: 0 !important;
  display: block !important;
}

.nav-link-button {
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
}

@media (max-width: 1250px) {
  .topbar {
    padding-right: 34px !important;
    gap: 22px !important;
  }
  .brand-subtitle {
    max-width: 330px;
  }
  .topnav {
    gap: 14px !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 14px 22px !important;
  }
  .topbar .brand {
    width: 100%;
    gap: 12px !important;
  }
  .topnav {
    width: 100%;
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }
  .nav-menu {
    right: auto;
    left: 0;
  }
}

@media (max-width: 640px) {
  .topbar .brand-logo,
  img.brand-logo {
    width: 72px !important;
    height: 50px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    flex-basis: 72px !important;
  }
  .topbar .brand {
    flex-wrap: wrap;
  }
  .brand-separator {
    display: none;
  }
  .brand-subtitle {
    flex-basis: 100%;
    max-width: none;
    margin-left: 88px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
}
/* Admin central business dashboard v1.0.0 */
.admin-dashboard-page .admin-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard-page .stat-card .small {
  display: block;
  margin-top: 10px;
  font-size: 13px;
}

.admin-dashboard-page .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-dashboard-grid {
  margin-top: 22px;
}

.admin-dashboard-page .ops-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-dashboard-page .ops-status-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13,21,48,.72);
  min-width: 0;
}

.admin-dashboard-page .ops-status-grid h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
}

.admin-dashboard-page .status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.admin-dashboard-page .status-row:first-of-type {
  border-top: 0;
}

.admin-ops-table,
.admin-downloads-table,
.admin-top-table,
.admin-licenses-mini-table,
.admin-activations-table,
.admin-failures-table {
  min-width: 760px;
}

.admin-dashboard-page .support-status-card {
  min-width: 0;
}

.admin-dashboard-page .support-status-card .muted,
.admin-dashboard-page .data-table .muted {
  font-size: 13px;
}

@media (max-width: 1200px) {
  .admin-dashboard-page .admin-kpi-grid,
  .admin-dashboard-page .ops-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-dashboard-page .admin-kpi-grid,
  .admin-dashboard-page .ops-status-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-page .actions {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Admin dashboard layout fix v3
   Prevent grid children from inheriting full-page panel-wide widths.
   The previous wide-page helper made every .panel-wide inside dashboard grids
   behave like a full-width page container, causing overlap/compressed tables.
   ========================================================================== */

.admin-dashboard-page {
  width: min(1480px, calc(100vw - 64px));
  max-width: 1480px;
  margin: 0 auto;
}

.admin-dashboard-page .hero-panel-wide,
.admin-dashboard-page .dashboard-stats,
.admin-dashboard-page .dashboard-grid,
.admin-dashboard-page .admin-kpi-grid,
.admin-dashboard-page .admin-dashboard-grid {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.admin-dashboard-page .dashboard-grid > .panel-wide,
.admin-dashboard-page .admin-dashboard-grid > .panel-wide,
.admin-dashboard-page .dashboard-panel.panel-wide {
  width: auto;
  max-width: none;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

.admin-dashboard-page .admin-dashboard-hero {
  padding: 22px 24px;
}

.admin-dashboard-page .admin-dashboard-hero h1 {
  font-size: clamp(28px, 2vw, 40px);
}

.admin-dashboard-page .admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-dashboard-page .stat-card {
  padding: 18px;
  min-width: 0;
}

.admin-dashboard-page .stat-value {
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1;
}

.admin-dashboard-page .stat-label,
.admin-dashboard-page .small {
  overflow-wrap: anywhere;
}

.admin-dashboard-page .dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.admin-dashboard-page .dashboard-grid-secondary {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
}

.admin-dashboard-page .panel {
  padding: 20px;
  border-radius: 18px;
}

.admin-dashboard-page .panel-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.admin-dashboard-page .panel-head h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.admin-dashboard-page .panel-head .actions,
.admin-dashboard-page .panel-head > .button,
.admin-dashboard-page .panel-head > .button-link,
.admin-dashboard-page .panel-head > a.button {
  flex-shrink: 0;
}

.admin-dashboard-page .dashboard-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.admin-dashboard-page .dashboard-table {
  min-width: 0;
  table-layout: auto;
}

.admin-dashboard-page .admin-downloads-table,
.admin-dashboard-page .admin-licenses-mini-table,
.admin-dashboard-page .admin-activations-table,
.admin-dashboard-page .admin-failures-table {
  min-width: 760px;
}

.admin-dashboard-page .admin-top-table {
  min-width: 560px;
}

.admin-dashboard-page .dashboard-table th,
.admin-dashboard-page .dashboard-table td {
  padding: 10px 12px;
  font-size: 13px;
}

.admin-dashboard-page .filename-cell,
.admin-dashboard-page .license-id-cell,
.admin-dashboard-page .mono-cell {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.admin-dashboard-page .nowrap {
  white-space: nowrap;
}

.ops-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ops-status-grid h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.support-status-list {
  display: grid;
  gap: 10px;
}

.support-status-card {
  display: block;
  color: inherit;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13,21,48,.55);
  text-decoration: none;
}

.support-status-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: rgba(124,196,255,.07);
}

.support-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

@media (min-width: 1700px) {
  .admin-dashboard-page {
    width: min(1560px, calc(100vw - 96px));
    max-width: 1560px;
  }
}

@media (max-width: 1200px) {
  .admin-dashboard-page {
    width: min(100%, calc(100vw - 32px));
  }

  .admin-dashboard-page .dashboard-grid,
  .admin-dashboard-page .dashboard-grid-secondary {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-page .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-dashboard-page {
    width: 100%;
  }

  .admin-dashboard-page .admin-kpi-grid,
  .ops-status-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-page .panel-head {
    flex-direction: column;
  }

  .admin-dashboard-page .panel-head .actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   Admin dashboard overlap hard fix v1.0.16
   Scope: Central Admin Dashboard only.
   Reason: older wide-page helpers apply fixed/full-page widths to .panel-wide
   cards. In a two-column grid this makes the right-hand cards paint over the
   left-hand cards. These rules force dashboard children to size only inside
   their grid cell and keep wide tables scrollable inside the card.
   ========================================================================== */

.admin-dashboard-page {
  width: min(1480px, calc(100vw - 64px)) !important;
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
}

.admin-dashboard-page .admin-dashboard-grid,
.admin-dashboard-page .dashboard-grid,
.admin-dashboard-page .dashboard-grid-primary,
.admin-dashboard-page .dashboard-grid-secondary {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  gap: 22px !important;
  align-items: start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: visible !important;
}

/* Use two safe equal columns. Fixed min widths caused overlap at zoomed and
   medium desktop widths. */
.admin-dashboard-page .dashboard-grid-primary,
.admin-dashboard-page .dashboard-grid-secondary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

/* The critical rule: dashboard panels must not inherit the global .panel-wide
   full-page width. */
.admin-dashboard-page .admin-dashboard-grid > .panel,
.admin-dashboard-page .admin-dashboard-grid > .panel-wide,
.admin-dashboard-page .admin-dashboard-grid > .dashboard-panel,
.admin-dashboard-page .dashboard-grid > .panel,
.admin-dashboard-page .dashboard-grid > .panel-wide,
.admin-dashboard-page .dashboard-grid > .dashboard-panel,
.admin-dashboard-page article.panel.dashboard-panel.panel-wide {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  grid-column: auto !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
}

/* Keep tables inside their own card. */
.admin-dashboard-page .dashboard-table-wrap,
.admin-dashboard-page .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}

.admin-dashboard-page .dashboard-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.admin-dashboard-page .admin-ops-table,
.admin-dashboard-page .admin-downloads-table,
.admin-dashboard-page .admin-top-table,
.admin-dashboard-page .admin-licenses-mini-table,
.admin-dashboard-page .admin-activations-table,
.admin-dashboard-page .admin-failures-table {
  min-width: 720px !important;
}

.admin-dashboard-page .dashboard-table th,
.admin-dashboard-page .dashboard-table td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: top !important;
}

/* Allow important first-column values to wrap/clip cleanly instead of
   expanding the whole card. */
.admin-dashboard-page .filename-cell,
.admin-dashboard-page .license-id-cell,
.admin-dashboard-page .mono-cell {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-dashboard-page .support-status-list,
.admin-dashboard-page .ops-status-grid {
  min-width: 0 !important;
  max-width: 100% !important;
}

.admin-dashboard-page .support-status-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 1250px) {
  .admin-dashboard-page {
    width: min(100%, calc(100vw - 32px)) !important;
  }

  .admin-dashboard-page .dashboard-grid-primary,
  .admin-dashboard-page .dashboard-grid-secondary {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .admin-dashboard-page {
    width: 100% !important;
  }

  .admin-dashboard-page .admin-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   Admin dashboard business metric navigation v1.0.17
   - KPI cards are now clickable drill-down tiles
   - Revenue separates captured/paid value from projected pipeline
   - Generic admin list pages support customer, revenue, download and activation drill-downs
   ========================================================================== */
.admin-dashboard-page .stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.admin-dashboard-page .stat-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(124, 196, 255, .65);
  background: linear-gradient(180deg, rgba(124,196,255,.08), var(--panel-2));
}

.admin-dashboard-page .stat-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.admin-list-page {
  width: min(1480px, calc(100vw - 64px));
  max-width: 1480px;
  margin: 0 auto;
}

.admin-list-page .hero-panel-wide,
.admin-list-page .panel-wide {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.admin-list-panel {
  overflow: hidden;
}

.admin-list-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.admin-list-table {
  min-width: 980px;
  table-layout: auto;
}

.admin-list-table th,
.admin-list-table td {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-list-page {
    width: 100%;
  }
}
/* ==========================================================================
   Downloads page go-live polish
   ========================================================================== */
.downloads-hero {
  max-width: 1180px;
}

.downloads-panel {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.downloads-panel-head h2,
.download-group-head h3 {
  margin-bottom: 6px;
}

.download-group-grid {
  display: grid;
  gap: 18px;
}

.download-group-card {
  border: 1px solid rgba(124,196,255,.18);
  border-radius: 20px;
  background: rgba(8,14,29,.24);
  padding: 18px;
}

.download-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

.download-card-list {
  display: grid;
  gap: 12px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(13,21,48,.82);
}

.download-card-recommended {
  border-color: rgba(142,240,207,.42);
  background: linear-gradient(90deg, rgba(142,240,207,.10), rgba(13,21,48,.82));
}

.download-card-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-width: 0;
}

.download-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #1a2748;
  border: 1px solid rgba(124,196,255,.22);
  font-size: 20px;
}

.download-meta {
  min-width: 0;
}

.download-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.download-filename {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #dfe7ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-subtle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.download-checksum {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.download-checksum code {
  color: #dfe7ff;
}

.copy-mini {
  padding: 5px 8px;
  border-radius: 9px;
  background: #223053;
  color: #fff;
  font-size: 12px;
}

.download-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.pill-recommended {
  background: rgba(142,240,207,.18);
  color: #a8ffe2;
  border: 1px solid rgba(142,240,207,.32);
}

@media (max-width: 760px) {
  .download-card {
    grid-template-columns: 1fr;
  }
  .download-actions {
    justify-content: flex-start;
  }
  .download-filename {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Downloads page table-card polish */
.downloads-panel-wide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.download-products-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.download-product-panel {
  border: 1px solid rgba(124, 196, 255, .18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 21, 48, .96), rgba(12, 18, 38, .96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  overflow: hidden;
}

.download-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(124, 196, 255, .04);
}

.download-product-head h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.download-product-head .muted {
  margin: 0;
  font-size: .92rem;
}

.download-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.download-tile-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0 10px;
  padding: 8px 12px 12px;
}

.download-tile-table th {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: left;
  white-space: nowrap;
}

.download-tile-table td {
  padding: 14px 12px;
  background: rgba(15, 24, 52, .92);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}

.download-tile-table td:first-child {
  border-left: 1px solid rgba(255,255,255,.06);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.download-tile-table td:last-child {
  border-right: 1px solid rgba(255,255,255,.06);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.download-package-row.is-recommended td {
  background: linear-gradient(90deg, rgba(142,240,207,.14), rgba(15,24,52,.94) 38%);
  border-color: rgba(142,240,207,.28);
}

.download-package-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.download-os-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(124,196,255,.12);
  border: 1px solid rgba(124,196,255,.18);
  font-size: 18px;
  flex: 0 0 auto;
}

.download-package-name {
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.download-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(124,196,255,.28);
  background: rgba(124,196,255,.10);
  color: #cfe7ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.download-badge.recommended {
  border-color: rgba(142,240,207,.38);
  background: rgba(142,240,207,.16);
  color: #aef7dd;
}

.download-platform,
.download-version {
  display: block;
  white-space: nowrap;
}

.download-platform {
  color: var(--text);
  font-weight: 700;
}

.download-version {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.download-filename-code {
  display: inline-block;
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
  color: #dce7ff;
  line-height: 1.35;
}

.download-checksum-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.download-checksum-cell code {
  display: inline-block;
  min-width: 150px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
  color: #dce7ff;
}

.download-copy-btn {
  padding: 8px 10px;
  border-radius: 10px;
  color: #06131f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 12px;
  font-weight: 900;
}

.download-actions-col,
.download-actions-row {
  text-align: right;
}

.download-actions-row {
  display: flex;
  justify-content: flex-end;
}

.download-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b6fd6, #2f8cff);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(27,111,214,.22);
}

.download-primary-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .download-tile-table {
    min-width: 820px;
  }
  .downloads-panel-wide {
    max-width: 100%;
  }
}


/* ==========================================================================
   Downloads page final table alignment v1.0.18
   Mirrors Container OCI Archives table and adds product/package separators.
   ========================================================================== */
.downloads-panel-wide {
  width: min(1280px, calc(100vw - 64px));
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.downloads-host-wrap {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(8,14,29,.18);
}

.downloads-host-table {
  min-width: 1120px;
  table-layout: fixed;
}

.downloads-host-table th,
.downloads-host-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.downloads-host-table th:nth-child(1),
.downloads-host-table td:nth-child(1) { width: 190px; }
.downloads-host-table th:nth-child(2),
.downloads-host-table td:nth-child(2) { width: 95px; }
.downloads-host-table th:nth-child(3),
.downloads-host-table td:nth-child(3) { width: 140px; }
.downloads-host-table th:nth-child(4),
.downloads-host-table td:nth-child(4) { width: 190px; }
.downloads-host-table th:nth-child(5),
.downloads-host-table td:nth-child(5) { width: 310px; }
.downloads-host-table th:nth-child(6),
.downloads-host-table td:nth-child(6) { width: 230px; }
.downloads-host-table th:nth-child(7),
.downloads-host-table td:nth-child(7) { width: 125px; }

.download-product-section-row td {
  padding: 16px 14px 10px !important;
  background: rgba(124,196,255,.055);
  border-top: 1px solid rgba(124,196,255,.20);
  border-bottom: 1px solid rgba(124,196,255,.16);
}

.download-product-section {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.download-product-title {
  font-weight: 900;
  color: var(--text);
  font-size: 1.02rem;
}

.download-product-desc {
  color: var(--muted);
  font-size: 13px;
}

.download-host-row td {
  background: rgba(15,24,52,.58);
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.download-host-row:hover td {
  background: rgba(124,196,255,.055);
}

.download-host-row.is-recommended td {
  background: linear-gradient(90deg, rgba(142,240,207,.11), rgba(15,24,52,.60) 42%);
}

.download-family-separator td {
  height: 8px;
  padding: 0 !important;
  background: transparent;
  border-bottom: 1px solid rgba(124,196,255,.13);
}

.download-product-cell {
  color: #dfe7ff;
  font-weight: 700;
}

.download-platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(124,196,255,.24);
  background: rgba(124,196,255,.10);
  color: #d5ecff;
}

.download-platform-pill.platform-windows {
  border-color: rgba(142,240,207,.30);
  background: rgba(142,240,207,.12);
  color: #b9ffe8;
}

.download-package-cell {
  display: grid;
  gap: 6px;
}

.download-package-main {
  font-weight: 900;
  color: var(--text);
}

.download-package-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.download-mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(124,196,255,.28);
  background: rgba(124,196,255,.10);
  color: #cfe7ff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.download-mini-badge.recommended {
  border-color: rgba(142,240,207,.38);
  background: rgba(142,240,207,.16);
  color: #aef7dd;
}

.downloads-host-table .filename-cell code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  background: transparent;
  color: #dfe7ff;
}

.download-sha-row {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.download-sha-row code {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-sha-row button {
  padding: 7px 10px;
  border-radius: 10px;
  min-height: 0;
  background: #223053;
  color: #fff;
}

.downloads-host-table .button-link {
  min-width: 96px;
  text-align: center;
}

@media (max-width: 900px) {
  .downloads-panel-wide {
    width: 100%;
    max-width: 100%;
  }
  .downloads-host-table {
    min-width: 1040px;
  }
}

/* Downloads page width final polish */
.downloads-hero,
.downloads-panel,
.downloads-panel-wide {
  width: min(1500px, calc(100vw - 96px)) !important;
  max-width: 1500px !important;
}

.downloads-host-table,
.downloads-oci-table,
.downloads-archive-table {
  min-width: 1180px;
}

.downloads-panel .table-wrap,
.downloads-panel .download-table-wrap {
  overflow-x: auto;
}
