/* Global */
:root {
  --bg-web: #0d0f12;
  --surface-web: #15181d;
  --surface-web-2: #1b2026;
  --border-web: #252a31;
  --text-web: #e5e7eb;
  --muted-web: #9aa3af;
  --accent-web: #d4b253;

  --bg-mobile: #f5f6f8;
  --surface-mobile: #ffffff;
  --surface-mobile-2: #f0f2f4;
  --border-mobile: #e2e5ea;
  --text-mobile: #111827;
  --muted-mobile: #6b7280;
  --accent-mobile: #0f766e;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg-web);
  color: var(--text-web);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  background: var(--bg-web);
}

.nav-rail {
  background: var(--surface-web);
  border-right: 1px solid var(--border-web);
}

.nav-rail .nav-link {
  color: var(--muted-web);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  font-weight: 500;
}

.nav-rail .nav-link.active,
.nav-rail .nav-link:hover {
  color: var(--text-web);
  background: var(--surface-web-2);
}

.surface-card {
  background: var(--surface-web);
  border: 1px solid var(--border-web);
  border-radius: var(--radius-lg);
}

.surface-muted {
  background: var(--surface-web-2);
  border: 1px solid var(--border-web);
  border-radius: var(--radius-md);
}

.text-muted {
  color: var(--muted-web) !important;
}

.btn-accent {
  background: var(--accent-web);
  border: 1px solid var(--accent-web);
  color: #0d0f12;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
}

.btn-outline-accent {
  border: 1px solid var(--accent-web);
  color: var(--accent-web);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
}

.badge-soft {
  background: rgba(212, 178, 83, 0.16);
  color: var(--accent-web);
  border: 1px solid rgba(212, 178, 83, 0.25);
  font-weight: 500;
}

.table-dark-compact {
  color: var(--text-web);
  border-color: var(--border-web);
}

.table-dark-compact td,
.table-dark-compact th {
  border-color: var(--border-web);
  padding: 0.65rem;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-web);
}

.input-dark,
.form-select {
  background: var(--surface-web-2);
  border: 1px solid var(--border-web);
  color: var(--text-web);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
}

.input-dark::placeholder {
  color: var(--muted-web);
}

.form-select:focus,
.input-dark:focus {
  box-shadow: none;
  border-color: var(--accent-web);
}

.alert-dark {
  background: var(--surface-web-2);
  border: 1px solid var(--border-web);
  color: var(--text-web);
}

/* Mobile theme */
body.theme-mobile {
  background: var(--bg-mobile);
  color: var(--text-mobile);
}

.theme-mobile .mobile-shell {
  background: var(--bg-mobile);
}

.theme-mobile .surface-card {
  background: var(--surface-mobile);
  border: 1px solid var(--border-mobile);
  color: var(--text-mobile);
}

.theme-mobile .surface-muted {
  background: var(--surface-mobile-2);
  border: 1px solid var(--border-mobile);
}

.theme-mobile .text-muted {
  color: var(--muted-mobile) !important;
}

.theme-mobile .btn-accent {
  background: var(--accent-mobile);
  border-color: var(--accent-mobile);
  color: #fff;
}

.theme-mobile .btn-outline-accent {
  border-color: var(--accent-mobile);
  color: var(--accent-mobile);
}

.theme-mobile .input-dark,
.theme-mobile .form-select {
  background: var(--surface-mobile);
  border: 1px solid var(--border-mobile);
  color: var(--text-mobile);
}

.theme-mobile .badge-soft {
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-mobile);
  border-color: rgba(15, 118, 110, 0.2);
}

.theme-mobile .table-dark-compact {
  color: var(--text-mobile);
  border-color: var(--border-mobile);
}

.theme-mobile .table-dark-compact td,
.theme-mobile .table-dark-compact th {
  border-color: var(--border-mobile);
}

.mobile-nav {
  position: sticky;
  bottom: 0;
  background: var(--surface-mobile);
  border-top: 1px solid var(--border-mobile);
}

.mobile-nav a {
  font-size: 0.8rem;
  color: var(--muted-mobile);
}

.mobile-nav a.active {
  color: var(--accent-mobile);
  font-weight: 600;
}

.small-label {
  font-size: 0.75rem;
  color: var(--muted-mobile);
}
