:root {
  --bg:        #0d0d0d;
  --bg-card:   #141414;
  --border:    #1f1f1f;
  --gold:      #c9a840;
  --gold-dim:  #a88a32;
  --cream:     #ede8d8;
  --muted:     #7a7670;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────── */

body > nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-logo .icon {
  width: 36px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .icon svg {
  width: 36px;
  height: 36px;
}

.nav-logo .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo .precision {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-transform: uppercase;
}

.nav-logo .scripts {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cream);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-login {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(237,232,216,0.25);
  transition: border-color 0.2s, color 0.2s;
}

.nav-login:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-user {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(237,232,216,0.25);
  border-radius: 6px;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.nav-user-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--muted);
}

.nav-user.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.nav-user.open .nav-dropdown {
  display: block;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 5px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-item:hover {
  background: rgba(237,232,216,0.06);
  color: var(--cream);
}

.nav-dropdown-logout {
  color: #fca5a5;
}

.nav-dropdown-logout:hover {
  background: rgba(220,38,38,0.1);
  color: #fca5a5;
}

/* ─── HERO ────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Radial glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(201,168,64,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,64,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,64,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(201,168,64,0.35);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
  color: var(--cream);
  position: relative;
  z-index: 1;
}

.hero h1 span {
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-desc {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.75rem;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ─── BUTTONS ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gold);
  color: #0d0d0d;
}

.btn-primary:hover {
  background: #dbb94a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,64,0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(237,232,216,0.25);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,64,0.1);
}

.btn-outline:active {
  transform: translateY(0);
}

/* ─── GAMES STRIP ─────────────────────────────────────── */

.games-strip {
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.games-strip h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.games-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.game-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream);
  transition: border-color 0.2s, color 0.2s;
}

.game-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.game-chip svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ─── FEATURES ────────────────────────────────────────── */

.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(201,168,64,0.3);
  transform: translateY(-3px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,64,0.08);
  border: 1px solid rgba(201,168,64,0.15);
  border-radius: 8px;
  margin-bottom: 1rem;
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── CTA BANNER ──────────────────────────────────────── */

.cta-banner {
  margin: 0 2rem 6rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-card);
  border: 1px solid rgba(201,168,64,0.2);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,168,64,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-banner .btn-primary {
  flex-shrink: 0;
}

/* ─── FOOTER ──────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-logo .precision {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-transform: uppercase;
}

.footer-logo .scripts {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ─── AUTH / REGISTER ────────────────────────────────── */

.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.auth-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.auth-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  font-size: 0.825rem;
  color: #fca5a5;
  margin-bottom: 1.25rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cream);
  text-transform: uppercase;
}

.auth-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--cream);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.auth-field input:focus {
  border-color: var(--gold);
}

.auth-field input::placeholder {
  color: var(--muted);
  letter-spacing: 0.1em;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-hint {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.auth-hint a {
  color: var(--gold);
  text-decoration: none;
}

.auth-hint a:hover {
  text-decoration: underline;
}

/* ─── DASHBOARD ──────────────────────────────────────── */

.db-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 64px);
  margin-top: 64px;
}

.db-sidebar {
  border-right: 1px solid var(--border);
  padding: 1.5rem 0.75rem;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.db-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.db-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.db-nav-item:hover { background: rgba(237,232,216,0.05); color: var(--cream); }
.db-nav-item.active { background: rgba(201,168,64,0.1); color: var(--gold); }
.db-nav-item.active svg { color: var(--gold); }

.db-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0.85rem;
}

.db-main {
  padding: 2rem 2.5rem;
  min-width: 0;
}

.db-section-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.db-section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
}

.db-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.db-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.db-card-sub {
  font-size: 0.875rem;
  color: var(--muted);
}

.db-profile-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.db-profile-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.db-profile-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.db-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.db-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.db-badge-master  { background: rgba(201,168,64,0.15); color: var(--gold); border: 1px solid rgba(201,168,64,0.3); }
.db-badge-admin   { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.db-badge-user    { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border); }
.db-badge-active  { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.db-badge-paused  { background: rgba(220,38,38,0.1); color: #fca5a5; border: 1px solid rgba(220,38,38,0.25); }

.db-search {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  color: var(--cream);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  outline: none;
  width: 260px;
  flex: 0 0 260px;
  margin-left: auto;
  transition: border-color 0.2s;
}

.db-search:focus { border-color: var(--gold); }
.db-search::placeholder { color: var(--muted); }

.db-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.db-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}

.db-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.db-table tbody tr:last-child { border-bottom: none; }
.db-table tbody tr:hover { background: rgba(255,255,255,0.025); }

.db-table td {
  padding: 0.75rem 1rem;
  color: var(--cream);
  vertical-align: middle;
  white-space: nowrap;
}

.db-user-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.db-row-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.db-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  background: transparent;
}

.db-btn-ghost { color: var(--muted); }
.db-btn-ghost:hover { background: rgba(237,232,216,0.08); color: var(--cream); }
.db-btn-danger { color: #fca5a5; }
.db-btn-danger:hover { background: rgba(220,38,38,0.15); color: #fca5a5; }
.db-btn-disabled { opacity: 0.3; cursor: not-allowed; }

.db-cell-with-actions { display: flex; align-items: center; gap: 0.35rem; }

.db-gen-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.db-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  color: var(--cream);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}

.db-input:focus { border-color: var(--gold); }
.db-input::placeholder { color: var(--muted); }
.db-input:disabled { opacity: 0.4; }

.db-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--cream);
  cursor: pointer;
  user-select: none;
}

.db-check input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.db-gen-form .btn { padding: 0.5rem 1.5rem; font-size: 0.8rem; }

.db-key-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(201,168,64,0.07);
  border: 1px solid rgba(201,168,64,0.3);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.db-key-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  word-break: break-all;
}

.db-key-cell { font-family: var(--font-mono); font-size: 0.78rem; }

.db-id-link { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.db-id-link:hover { color: var(--gold); }

.db-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.db-copy-btn:hover { background: rgba(237,232,216,0.08); color: var(--cream); }
tr:hover .db-copy-btn,
.modal-body .db-copy-btn,
.modal-header .db-copy-btn { opacity: 1; }

.db-placeholder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3.5rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
  color: var(--muted);
}

.db-placeholder-card p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0;
}

.db-placeholder-card span {
  font-size: 0.825rem;
  max-width: 320px;
}

.db-loading {
  display: flex;
  justify-content: center;
  padding: 3rem;
  color: var(--muted);
}

.db-empty, .db-error {
  padding: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.db-error { color: #fca5a5; }

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--cream); }

.modal-body {
  padding: 0.5rem 0;
}

.modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

.modal-row:hover { background: rgba(255,255,255,0.02); }

.modal-row span:first-child {
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.modal-row span:last-child { color: var(--cream); text-align: right; }

.db-placeholder-row span:last-child { color: var(--muted) !important; font-style: italic; }

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 768px) {
  .db-layout {
    grid-template-columns: 1fr;
  }

  .db-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
  }

  .db-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .db-nav-divider { display: none; }

  .db-main { padding: 1.5rem 1rem; }
}

@media (max-width: 640px) {
  body > nav {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn {
    justify-content: center;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}
