@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* Style Guide: Warm paper base (#f4f1e9), ink (#0f1a1c), accent (#d96c2c), soft mist borders, 20-26px radii. */
:root {
  --ink: #0f1a1c;
  --ink-muted: #41565b;
  --paper: #f4f1e9;
  --accent: #d96c2c;
  --accent-dark: #a44b1e;
  --accent-soft: rgba(217, 108, 44, 0.14);
  --mist: rgba(15, 26, 28, 0.12);
  --glow: rgba(217, 108, 44, 0.2);
  --panel: rgba(255, 255, 255, 0.92);
  --danger: #b12a2a;
  --success: #2f7d55;
  --gold: #e1b757;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(800px 400px at 20% 10%, #fff4e3 0%, transparent 70%),
    radial-gradient(800px 500px at 90% 0%, #e8f2ef 0%, transparent 70%),
    var(--paper);
  min-height: 100vh;
}

body.centered {
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

body.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: 0 12px 30px rgba(15, 26, 28, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffe2c6, #d96c2c);
  box-shadow: 0 10px 25px var(--glow);
  display: grid;
  place-items: center;
  color: #5a210a;
  font-weight: 700;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-meta span {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

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

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

.title {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 6px;
}

.title-sm {
  font-size: 1.6rem;
}

.subtitle {
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}

.subtitle-spaced {
  margin-top: 12px;
}

.meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(15, 26, 28, 0.06);
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--mist);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 18px 36px rgba(15, 26, 28, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.btn {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary,
.btn {
  background: var(--accent);
  color: #fff8f2;
  box-shadow: 0 12px 25px var(--glow);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--mist);
  color: var(--ink);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--mist);
  color: var(--ink);
  box-shadow: none;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 12px 25px rgba(177, 42, 42, 0.25);
}

.btn-ghost {
  background: rgba(15, 26, 28, 0.06);
  color: var(--ink);
  border: 1px solid rgba(15, 26, 28, 0.1);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px var(--glow);
}

input,
textarea,
select {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--mist);
  background: #fff;
  font-size: 1rem;
}

textarea {
  min-height: 260px;
  resize: vertical;
  background: #fbfbfd;
}

.panel {
  background: #ffffffb5;
  border: 1px solid var(--mist);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 20px 40px rgba(15, 26, 28, 0.08);
  backdrop-filter: blur(6px);
}

.signal {
  display: grid;
  gap: 18px;
}

.signal .meter {
  height: 12px;
  background: linear-gradient(90deg, #f6d2b9, #d96c2c 60%, #7a2f13 100%);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.signal .meter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 2.4s ease-in-out infinite;
}

.signal-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.signal-note {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.signal-stats {
  display: grid;
  gap: 10px;
}

.signal-row {
  display: flex;
  justify-content: space-between;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  margin-top: 56px;
  align-items: center;
}

.hero-copy {
  position: relative;
}

.hero-visual {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 20px;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(217, 108, 44, 0.25);
  box-shadow: 0 24px 50px rgba(15, 26, 28, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink-muted);
  background: linear-gradient(135deg, #fff, #fef3e9);
  border: 1px solid rgba(217, 108, 44, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 12px 24px rgba(217, 108, 44, 0.12);
}

.hero-tag strong {
  color: var(--accent-dark);
  font-weight: 600;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin: 0 0 26px;
  max-width: 520px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-surface {
  position: relative;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 241, 229, 0.7), rgba(232, 242, 239, 0.7));
  border: 1px solid rgba(15, 26, 28, 0.06);
  box-shadow: 0 16px 30px rgba(15, 26, 28, 0.08);
}

.features {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--mist);
  box-shadow: 0 12px 24px rgba(15, 26, 28, 0.08);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.footer {
  margin-top: auto;
  padding-top: 60px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

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

.profile-card {
  width: min(520px, 100%);
  padding: 28px;
}

.subscription-card {
  width: min(980px, 100%);
  padding: 28px;
}

.btn-spaced {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--mist);
}

.row:first-of-type {
  border-top: none;
}

.profile-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--mist);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--mist);
  cursor: pointer;
}

.plan-option input {
  margin: 0;
}

.plan-name {
  font-weight: 600;
}

.plan-note {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

.ref-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--mist);
}

.ref-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ref-meta {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.badge {
  background: rgba(217, 108, 44, 0.12);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}

.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 12px;
}

.stat-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--mist);
  background: rgba(255, 255, 255, 0.6);
}

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

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 6px;
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.ref-table th,
.ref-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--mist);
}

.ref-table th {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ref-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ref-link {
  width: 100%;
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  color: var(--ink);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 28, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(15, 26, 28, 0.2);
  border: 1px solid var(--mist);
}

.modal h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.modal-open {
  overflow: hidden;
}

.theme-toggle {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.actions form {
  margin: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.empty {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed var(--mist);
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.7);
}

.status {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(217, 108, 44, 0.12);
  color: #7a2f13;
  font-size: 0.95rem;
  margin-top: 12px;
}

.table-shell {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 26, 28, 0.12);
}

.table-shell th,
.table-shell td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--mist);
  font-size: 0.95rem;
}

.table-shell th {
  background: rgba(15, 26, 28, 0.04);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-shell tr:last-child td {
  border-bottom: none;
}

.badge-success {
  color: var(--success);
  font-weight: 600;
}

.badge-danger {
  color: var(--danger);
  font-weight: 600;
}

.badge-gold {
  color: var(--gold);
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 108, 44, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  background: rgba(15, 26, 28, 0.04);
  border: 1px solid rgba(15, 26, 28, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}

.content-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 18px 36px rgba(15, 26, 28, 0.12);
}

.score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.score strong {
  font-size: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

pre,
.pre-wrap {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.5;
}

.history {
  display: grid;
  gap: 10px;
}

.history-item {
  border-radius: 14px;
  border: 1px solid rgba(15, 26, 28, 0.1);
  padding: 10px 12px;
  background: rgba(15, 26, 28, 0.04);
}

.alert {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(47, 125, 85, 0.12);
  color: #1b6b3d;
}

.alert-error {
  background: rgba(177, 42, 42, 0.12);
  color: #9b2d2d;
}

.muted {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.space-12 {
  height: 12px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-reset {
  margin: 0;
}

.form-inline-block {
  display: inline-block;
}

.grid-gap-10 {
  display: grid;
  gap: 10px;
}

.link {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.links a {
  color: var(--accent-dark);
  text-decoration: none;
}

.errors {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(214, 73, 73, 0.12);
  color: #8a1c1c;
  font-size: 0.9rem;
}

.auth-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.brand-panel {
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(160deg, #fff3e3 0%, #f6f1e8 40%, #e6f1ee 100%);
  border: 1px solid var(--mist);
  box-shadow: 0 20px 50px rgba(15, 26, 28, 0.12);
}

.brand-panel .brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  margin-bottom: 16px;
}

.brand-panel h1 {
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  margin: 0 0 12px;
}

.brand-panel p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.auth-panel {
  padding: 28px;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--mist);
  box-shadow: 0 20px 50px rgba(15, 26, 28, 0.12);
  backdrop-filter: blur(8px);
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.auth-panel p {
  margin: 0 0 18px;
  color: var(--ink-muted);
}

.auth-panel form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--mist);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.message {
  color: var(--success);
  font-weight: 600;
}

.error {
  color: var(--danger);
  font-weight: 600;
}

.shell {
  margin-top: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.intro h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  margin: 0 0 12px;
}

.intro p {
  color: var(--ink-muted);
  max-width: 680px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.feature-grid {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.feature {
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--mist);
  box-shadow: 0 12px 24px rgba(15, 26, 28, 0.08);
}

.feature h3 {
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.meta-card {
  background: var(--panel);
}

.form-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.form-title span {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hint {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    gap: 24px;
  }

  .hero-visual {
    width: 100%;
    margin: 0 0 16px;
  }

  body.centered,
  body.auth {
    padding: 24px 16px;
  }
}

html[data-theme="dark"] {
  --ink: #f4f3ee;
  --ink-muted: #b7c0c2;
  --paper: #0b1112;
  --accent: #f0a56d;
  --accent-dark: #f6c198;
  --mist: rgba(244, 243, 238, 0.14);
  --accent-soft: rgba(240, 165, 109, 0.2);
  --glow: rgba(240, 165, 109, 0.18);
}

html[data-theme="dark"] body {
  background: radial-gradient(800px 400px at 20% 10%, rgba(35, 42, 41, 0.65) 0%, transparent 70%),
    radial-gradient(800px 500px at 90% 0%, rgba(24, 34, 34, 0.7) 0%, transparent 70%),
    var(--paper);
}

html[data-theme="dark"] .panel {
  background: rgba(14, 18, 19, 0.82);
  border-color: rgba(244, 243, 238, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] header {
  background: rgba(16, 20, 21, 0.92);
  border-color: rgba(244, 243, 238, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .nav,
html[data-theme="dark"] .nav a,
html[data-theme="dark"] .brand-meta span,
html[data-theme="dark"] .brand-subtitle {
  color: var(--ink-muted);
}

html[data-theme="dark"] .brand-badge {
  background: linear-gradient(145deg, rgba(240, 165, 109, 0.2), rgba(240, 165, 109, 0.6));
  color: #f6c198;
}

html[data-theme="dark"] .hero-visual {
  border-color: rgba(244, 243, 238, 0.08);
  background: linear-gradient(135deg, rgba(24, 30, 31, 0.9), rgba(14, 18, 19, 0.8));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

html[data-theme="dark"] .hero-tag {
  background: linear-gradient(135deg, rgba(19, 23, 24, 0.96), rgba(22, 28, 28, 0.9));
  border-color: rgba(240, 165, 109, 0.2);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .hero-surface {
  background: linear-gradient(160deg, rgba(26, 34, 33, 0.7), rgba(15, 20, 20, 0.7));
  border-color: rgba(244, 243, 238, 0.08);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .feature-card {
  background: rgba(14, 18, 19, 0.92);
  border-color: rgba(244, 243, 238, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(18, 22, 23, 0.7);
}

html[data-theme="dark"] .btn-secondary {
  border-color: rgba(244, 243, 238, 0.2);
}

html[data-theme="dark"] .card {
  background: rgba(14, 18, 19, 0.9);
  border-color: rgba(244, 243, 238, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .modal {
  background: rgba(16, 20, 21, 0.98);
  border-color: rgba(244, 243, 238, 0.08);
}

html[data-theme="dark"] .btn-ghost {
  border-color: rgba(244, 243, 238, 0.2);
}

html[data-theme="dark"] .ref-link {
  background: rgba(16, 20, 21, 0.8);
  border-color: rgba(244, 243, 238, 0.12);
  color: var(--ink);
}

html[data-theme="dark"] .stat-card {
  background: rgba(16, 20, 21, 0.75);
  border-color: rgba(244, 243, 238, 0.12);
}

html[data-theme="dark"] .content-card {
  background: rgba(16, 20, 21, 0.85);
  border-color: rgba(244, 243, 238, 0.12);
}

html[data-theme="dark"] .feature {
  background: rgba(14, 18, 19, 0.92);
  border-color: rgba(244, 243, 238, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .feature p {
  color: var(--ink-muted);
}

html[data-theme="dark"] .trust {
  color: var(--ink-muted);
}

html[data-theme="dark"] .meta-card {
  background: rgba(14, 18, 19, 0.92);
  border-color: rgba(244, 243, 238, 0.08);
}

html[data-theme="dark"] .alert {
  background: rgba(244, 243, 238, 0.08);
  color: var(--ink);
}

html[data-theme="dark"] .alert-success {
  background: rgba(47, 125, 85, 0.2);
  color: #bfe5d1;
}

html[data-theme="dark"] .alert-error {
  background: rgba(177, 42, 42, 0.22);
  color: #f3b9b9;
}

html[data-theme="dark"] .hint {
  color: var(--ink-muted);
}

html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: rgba(16, 20, 21, 0.9);
  border-color: rgba(244, 243, 238, 0.12);
  color: var(--ink);
}

html[data-theme="dark"] .auth-shell {
  color: var(--ink);
}

html[data-theme="dark"] .brand-panel {
  background: linear-gradient(160deg, rgba(24, 30, 31, 0.95) 0%, rgba(18, 22, 23, 0.95) 50%, rgba(20, 26, 26, 0.95) 100%);
  border-color: rgba(244, 243, 238, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .auth-panel {
  background: rgba(16, 20, 21, 0.92);
  border-color: rgba(244, 243, 238, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .auth-panel p,
html[data-theme="dark"] .brand-panel p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] label {
  color: var(--ink-muted);
}

html[data-theme="dark"] .divider::before,
html[data-theme="dark"] .divider::after {
  background: rgba(244, 243, 238, 0.12);
}

html[data-theme="dark"] .links a {
  color: var(--accent-dark);
}

html[data-theme="dark"] .errors {
  background: rgba(177, 42, 42, 0.22);
  color: #f3b9b9;
}

html[data-theme="dark"] .btn-secondary {
  border-color: rgba(244, 243, 238, 0.2);
  color: var(--ink);
}

html[data-theme="dark"] .table-shell {
  background: rgba(14, 18, 19, 0.92);
  border-color: rgba(244, 243, 238, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .table-shell th,
html[data-theme="dark"] .table-shell td {
  border-bottom-color: rgba(244, 243, 238, 0.1);
  color: var(--ink);
}

html[data-theme="dark"] .table-shell th {
  background: rgba(244, 243, 238, 0.06);
  color: var(--ink-muted);
}

html[data-theme="dark"] .empty {
  background: rgba(16, 20, 21, 0.85);
  border-color: rgba(244, 243, 238, 0.12);
  color: var(--ink-muted);
}
