:root {
  --accent: #FFE680;
  --accent-hover: #F7D774;
  --surface: #121212;
  --surface-elevated: #1E1E1E;
  --surface-high: #2A2A2A;
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 230, 128, 0.4);
  --danger: #e57373;
  --success: #81c784;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-4: 0 8px 32px rgba(0, 0, 0, 0.5);
  --font: "Karla", system-ui, sans-serif;
  --nav-width: 260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: #0a0a0a;
  color: var(--text-primary);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  user-select: none;
}

/* ——— Chrome ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 1px var(--border-hover);
}

.btn-danger {
  background: var(--danger);
  color: #1a1a1a;
}

.btn-block {
  width: 100%;
}

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 1.25rem 1.5rem;
}

.card h2,
.card h3 {
  margin: 0 0 0.75rem;
}

.muted {
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--surface-high);
  border: 1px solid var(--border);
}

.badge-accent {
  background: var(--accent);
  color: #000;
  border-color: transparent;
}

.badge-danger {
  background: rgba(229, 115, 115, 0.2);
  color: var(--danger);
  border-color: rgba(229, 115, 115, 0.4);
}

.badge-success {
  background: rgba(129, 199, 132, 0.15);
  color: var(--success);
  border-color: rgba(129, 199, 132, 0.35);
}

/* ——— Landing ——— */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 45%, #1c1808 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 230, 128, 0.12), transparent 50%),
    linear-gradient(160deg, #1a1a1a, #0a0a0a);
}

.hero-placeholder strong {
  display: block;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 12%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.25));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  margin: 0 auto 4rem;
}

.hero-eyebrow {
  margin: 0 0 0.75rem !important;
  color: var(--accent) !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: none !important;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-content > p {
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.75rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 1.15rem;
}

.why-card p {
  margin: 0;
}

.place-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.place-chips li {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-1);
  font-weight: 600;
  font-size: 0.95rem;
}

.story-card p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  max-width: 48rem;
  line-height: 1.65;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.story-closer {
  margin-top: 0.25rem !important;
  color: var(--text-primary) !important;
  font-weight: 600;
}

.ucp-band {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.ucp-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.ucp-band-inner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.ucp-band-inner p {
  margin: 0;
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-item h3 {
  margin: 0 0 0.35rem;
}

.news-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.news-body {
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: var(--surface);
}

/* ——— Auth ——— */
.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(420px, 100%);
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 230, 128, 0.2);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.alert-error {
  background: rgba(229, 115, 115, 0.12);
  border-color: rgba(229, 115, 115, 0.4);
  color: #ffcdd2;
}

.alert-ok {
  background: rgba(129, 199, 132, 0.12);
  border-color: rgba(129, 199, 132, 0.35);
  color: #c8e6c9;
}

/* ——— App shell (panel) ——— */
.app-shell {
  display: grid;
  grid-template-columns: var(--nav-width) 1fr;
  min-height: calc(100vh - 64px);
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
}

.app-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
}

.app-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.app-sidebar a:hover {
  color: var(--text-primary);
  background: var(--surface-elevated);
}

.app-sidebar a.active {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

.app-sidebar .section-label {
  margin: 1.25rem 0 0.4rem;
  padding: 0 0.85rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.app-main {
  padding: 1.5rem;
}

.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-title h1 {
  margin: 0;
  font-size: 1.6rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  padding: 1rem 1.15rem;
}

.stat-card .label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.stat-card .value {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.2rem;
  color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

table.data th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.data tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.inline-form .form-group {
  margin: 0;
  flex: 1 1 180px;
}
