:root {
  --ws-bg: #eef4f7;
  --ws-surface: #ffffff;
  --ws-surface-soft: #f5fafc;
  --ws-text: #173042;
  --ws-muted: #5f7584;
  --ws-border: #d8e4ea;
  --ws-primary: #1d5c7a;
  --ws-primary-strong: #14465d;
  --ws-accent: #28a7a1;
  --ws-success: #2f855a;
  --ws-warning: #d69e2e;
  --ws-danger: #c05621;
  --ws-shadow: 0 14px 40px rgba(17, 48, 66, 0.08);
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", Aptos, Calibri, sans-serif;
  color: var(--ws-text);
  background: linear-gradient(180deg, #f6fbfd 0%, var(--ws-bg) 100%);
}

a {
  color: var(--ws-primary);
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.shell-navbar {
  background: rgba(14, 49, 68, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-wordmark {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-shell {
  position: relative;
  z-index: 1;
}

.shell-background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(40, 167, 161, 0.10), transparent 24%),
    radial-gradient(circle at bottom left, rgba(29, 92, 122, 0.08), transparent 28%);
  pointer-events: none;
}

.footer-shell {
  padding: 1.2rem 0 2rem;
  color: var(--ws-muted);
  font-size: 0.95rem;
}

.glass-card,
.stats-card,
.panel-card,
.chart-card,
.table-card,
.hero-panel {
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: 1.25rem;
  box-shadow: var(--ws-shadow);
}

.hero-panel {
  overflow: hidden;
}

.hero-band {
  background: linear-gradient(135deg, #14394f 0%, #1f607f 55%, #28a7a1 100%);
  color: white;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ws-accent);
}

.hero-band .eyebrow,
.text-on-dark .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.section-title {
  font-size: 1.55rem;
  font-weight: 700;
}

.muted-label {
  color: var(--ws-muted);
}

.stats-card {
  padding: 1.1rem 1.2rem;
  height: 100%;
}

.stats-value {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
}

.stats-caption {
  font-size: 0.95rem;
  color: var(--ws-muted);
}

.panel-card,
.chart-card,
.table-card {
  padding: 1.5rem;
}

.chart-canvas-wrap {
  position: relative;
  min-height: 320px;
}

.partner-banner {
  background: linear-gradient(130deg, #ecf8fb 0%, #ffffff 55%, #edf7f5 100%);
}

.token-pill,
.metric-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.token-pill,
.metric-pill {
  background: var(--ws-surface-soft);
  border: 1px solid var(--ws-border);
}

.status-pill.active {
  background: rgba(47, 133, 90, 0.12);
  color: var(--ws-success);
}

.status-pill.inactive {
  background: rgba(192, 86, 33, 0.12);
  color: var(--ws-danger);
}

.btn-primary {
  background: var(--ws-primary);
  border-color: var(--ws-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--ws-primary-strong);
  border-color: var(--ws-primary-strong);
}

.btn-outline-primary {
  color: var(--ws-primary);
  border-color: var(--ws-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background: var(--ws-primary);
  border-color: var(--ws-primary);
  color: #ffffff;
}

.btn-outline-primary:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(29, 92, 122, 0.18);
}

.table thead th {
  font-size: 0.84rem;
  color: var(--ws-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table tbody td {
  vertical-align: middle;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.admin-grid > .main-column {
  grid-column: span 8;
}

.admin-grid > .side-column {
  grid-column: span 4;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--ws-border);
  background: var(--ws-surface-soft);
}

.code-chip {
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
  background: #f0f6f8;
  border: 1px solid var(--ws-border);
  border-radius: 0.9rem;
  padding: 0.75rem 0.95rem;
}

.partner-roster-table {
  min-width: 1120px;
}

.partner-roster-table .roster-pan-col {
  min-width: 10.5rem;
}

.code-chip-pan {
  display: inline-block;
  min-width: 10ch;
  white-space: nowrap;
  word-break: normal;
  text-align: center;
}

.landing-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.landing-card {
  max-width: 880px;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.feature-list li::before {
  content: "•";
  color: var(--ws-accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
}

.qr-box {
  border: 1px dashed var(--ws-border);
  border-radius: 1rem;
  background: var(--ws-surface-soft);
  padding: 1rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .admin-grid,
  .dashboard-hero-grid {
    display: block;
  }

  .admin-grid > .main-column,
  .admin-grid > .side-column {
    grid-column: auto;
  }
}