:root {
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;

  --bg: radial-gradient(1200px 800px at 20% -10%, rgba(212, 175, 55, 0.12), transparent 40%),
    radial-gradient(900px 700px at 90% 10%, rgba(105, 240, 174, 0.08), transparent 40%),
    #0f1115;
  --panel: rgba(22, 26, 31, 0.9);
  --card: rgba(24, 29, 36, 0.85);
  --text: #eef2f7;
  --muted: #9aa4b2;
  --primary: #d4af37;
  --primary-2: #b8922a;
  --accent: #69f0ae;
  --danger: #c45b5b;
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 20px rgba(212, 175, 55, 0.35);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

:root[data-theme="light"] {
  --bg: radial-gradient(1200px 800px at 15% -10%, rgba(212, 175, 55, 0.18), transparent 45%),
    radial-gradient(1000px 700px at 90% 10%, rgba(105, 240, 174, 0.14), transparent 45%),
    #fbf7ef;
  --panel: rgba(255, 255, 255, 0.78);
  --card: rgba(255, 255, 255, 0.9);
  --text: #0f172a;
  --muted: #51606f;
  --primary: #7b5f10;
  --primary-2: #a77f1b;
  --accent: #0f766e;
  --danger: #b42318;
  --border: rgba(15, 23, 42, 0.12);
  --glow: 0 0 18px rgba(167, 127, 27, 0.18);
  --shadow: 0 20px 45px rgba(2, 6, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.landing-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(105, 240, 174, 0.12));
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--glow);
}

.landing-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--glow);
  background: rgba(255, 255, 255, 0.06);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 22px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--glow);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.18);
  color: var(--primary);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

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

.nav-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 12px 0 6px;
  font-weight: 700;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(233, 238, 247, 0.82);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  fill: currentColor;
  opacity: 0.85;
}

.nav-link .icon {
  opacity: 0.68;
}

.nav-link.active,
.nav-link:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(255, 255, 255, 0.02));
  color: var(--text);
  border-color: rgba(212, 175, 55, 0.22);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), 0 14px 30px rgba(0, 0, 0, 0.28);
}

.nav-link.active .icon,
.nav-link:hover .icon {
  opacity: 0.9;
}

:root[data-theme="light"] .nav-link {
  color: rgba(15, 23, 42, 0.72);
}

:root[data-theme="light"] .nav-link.active,
:root[data-theme="light"] .nav-link:hover {
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.10), rgba(255, 255, 255, 0.55));
  box-shadow: none;
}

.nav-footer {
  margin-top: auto;
}

.logout-btn {
  width: 100%;
  border: 1px solid var(--border);
  background: transparent;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.main {
  padding: 28px 32px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  animation: floatIn 0.5s ease;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: var(--primary);
}

.page-subtitle {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  /* allow dropdowns (choices/select) to overflow above neighboring cards */
  overflow: visible;
}

.dash-filter {
  padding: 14px;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.dash-filter-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  overflow: visible;
}

.dash-filter .field {
  margin: 0;
}

.dash-filter .field label {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dash-date-range {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.dash-date-range .dash-date-sep {
  padding: 0 4px 10px;
  color: var(--muted);
  font-weight: 900;
}

.dash-filter-hint {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.league {
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.10), rgba(255, 255, 255, 0.02));
}

.league-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.league-title {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 12px;
}

.league-sub {
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
  font-size: 12px;
}

.league-pill {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.league-progress {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.10);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.league-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.league-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(105, 240, 174, 0.85), rgba(212, 175, 55, 0.92));
  box-shadow: var(--glow);
}

.league-progress-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 800;
}

.league-list {
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.league-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.league-row.is-me {
  background: rgba(105, 240, 174, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(105, 240, 174, 0.18);
  margin-top: 8px;
}

.league-rank {
  font-weight: 900;
  color: var(--primary);
}

.league-name {
  font-weight: 900;
}

.league-val {
  font-weight: 900;
  color: var(--accent);
}

.auth-shell .main,
.landing-shell .main {
  padding: 28px 22px;
}

.auth-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - 56px);
}

.auth-left {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(255, 255, 255, 0.02));
}

.auth-left-inner {
  position: relative;
  z-index: 2;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-left-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("landing/hero.jpg"), url("landing/hero.jpeg"), url("landing/hero.svg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.05);
  opacity: 0.18;
}

.auth-back {
  align-self: flex-start;
}

.auth-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-brand-name {
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.auth-brand-tag {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.02em;
}

.auth-lead {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.auth-bullets {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.auth-bullet {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}

.auth-bullet .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(105, 240, 174, 0.12);
  flex: 0 0 auto;
}

.auth-right {
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.auth-form-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.auth-help {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.hero-stat-k {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}

.hero-stat-v {
  margin-top: 6px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-title {
    font-size: 34px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title {
  font-weight: 700;
  margin: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-1 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.kpi .label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kpi .value {
  font-size: 20px;
  font-weight: 800;
  margin-top: 6px;
  color: var(--accent);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.35);
  color: var(--text);
  font-weight: 800;
  transition: all 0.15s ease;
}

.page-link:hover {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.page-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #1a1a1a;
  border-color: transparent;
  box-shadow: var(--glow);
}

.page-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-ellipsis {
  color: var(--muted);
  font-weight: 800;
  padding: 0 6px;
}

label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 12, 16, 0.6);
  color: var(--text);
  font-family: inherit;
}

.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: var(--glow);
}

.field {
  margin-bottom: 12px;
}

/* Tom Select theme overrides (single dropdown with built-in search) */
.ts-wrapper {
  margin: 0;
  position: relative;
  z-index: 1;
  font-family: inherit;
}

.ts-wrapper.focus {
  z-index: 60000;
}

.ts-control {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border) !important;
  background: rgba(10, 12, 16, 0.72) !important;
  color: var(--text) !important;
  box-shadow: none;
}

:root[data-theme="light"] .ts-control {
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--text) !important;
}

.ts-control input {
  color: var(--text) !important;
  font-weight: 700;
}

.ts-control .item,
.ts-control .placeholder {
  color: var(--text) !important;
}

.ts-control .placeholder {
  opacity: 0.72;
}

.ts-wrapper.single .ts-control .item {
  font-weight: 800;
}

.ts-control,
.ts-dropdown {
  line-height: 1.25;
}

.ts-dropdown {
  z-index: 60000 !important;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(12, 14, 18, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

:root[data-theme="light"] .ts-dropdown {
  background: rgba(255, 255, 255, 0.98);
}

.ts-dropdown .ts-dropdown-content {
  max-height: 320px;
  overflow: auto;
}

.ts-dropdown .dropdown-input,
.ts-dropdown input {
  width: 100% !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: rgba(10, 12, 16, 0.55) !important;
  color: var(--text) !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

:root[data-theme="light"] .ts-dropdown .dropdown-input,
:root[data-theme="light"] .ts-dropdown input {
  background: rgba(255, 255, 255, 0.75) !important;
  color: var(--text) !important;
}

.ts-dropdown .option {
  padding: 10px 12px;
  font-weight: 800;
  color: var(--text) !important;
}

.ts-dropdown .option.active {
  background: rgba(212, 175, 55, 0.10);
}

.ts-dropdown .option.selected {
  background: rgba(105, 240, 174, 0.10);
}

.ts-empty {
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}

.ts-wrapper.single .ts-control:focus,
.ts-wrapper.focus .ts-control {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: var(--glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #1a1a1a;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--glow);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: rgba(180, 35, 24, 0.12);
  border-color: rgba(180, 35, 24, 0.35);
  color: var(--text);
  box-shadow: none;
}

.btn-danger:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  border-color: rgba(180, 35, 24, 0.55);
}

.btn-sm {
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(105, 240, 174, 0.12);
  border-color: rgba(105, 240, 174, 0.35);
  color: var(--accent);
}

.alert-danger {
  background: rgba(196, 91, 91, 0.12);
  border-color: rgba(196, 91, 91, 0.35);
  color: #fca5a5;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  background: radial-gradient(800px 600px at 50% -10%, rgba(212, 175, 55, 0.2), transparent 40%), #0f1115;
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.theme-toggle-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--glow);
}

.theme-toggle-label {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}

.landing-shell .main {
  padding: 0 0 70px;
}

.landing-shell .page {
  max-width: none;
  margin: 0;
}

.landing-wrap {
  width: 100%;
}

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.85), rgba(10, 12, 16, 0.22));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .landing-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.25));
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.landing-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.landing-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.85), rgba(105, 240, 174, 0.55));
  color: #111827;
  box-shadow: var(--glow);
}

.landing-name {
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.landing-tag {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  font-weight: 600;
}

.landing-nav {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.landing-nav a {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(238, 242, 247, 0.9);
  padding: 10px 8px;
  border-radius: 12px;
}

:root[data-theme="light"] .landing-nav a {
  color: rgba(15, 23, 42, 0.78);
}

.landing-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--glow);
}

.landing-actions {
  display: inline-flex;
  gap: 10px;
  justify-content: end;
}

.landing-hero {
  position: relative;
  min-height: 92vh;
  padding-top: 92px;
  overflow: hidden;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("landing/hero.jpg"), url("landing/hero.jpeg"), url("landing/hero.svg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 17, 21, 0.76), rgba(15, 17, 21, 0.40), rgba(15, 17, 21, 0.70));
}

:root[data-theme="light"] .landing-hero::after {
  background: linear-gradient(90deg, rgba(251, 247, 239, 0.86), rgba(251, 247, 239, 0.45), rgba(251, 247, 239, 0.84));
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
}

.hero-copy .hero-title {
  font-size: 54px;
}

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

.hero-login .login-panel {
  border-radius: 22px;
  background: rgba(24, 29, 36, 0.74);
}

:root[data-theme="light"] .hero-login .login-panel {
  background: rgba(255, 255, 255, 0.88);
}

.login-panel-foot {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-wave {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -2px;
  height: 120px;
  background: var(--bg);
  clip-path: path("M 0 80 C 180 20 360 20 540 80 C 720 140 900 140 1080 80 C 1260 20 1440 20 1620 80 C 1800 140 1980 140 2160 80 L 2160 160 L 0 160 Z");
  filter: drop-shadow(0 -10px 30px rgba(0,0,0,0.35));
}

.landing-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 22px 0;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.partner-pill {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 14px;
  background: var(--card);
  text-align: center;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.hero {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pill-muted {
  background: rgba(105, 240, 174, 0.12);
  border: 1px solid rgba(105, 240, 174, 0.25);
  color: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.03;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 62ch;
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .stat {
  background: rgba(15, 23, 42, 0.03);
}

.stat-k {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.stat-v {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}

.landing-section {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card-visual {
  padding: 0;
  overflow: hidden;
}

.card-visual-media {
  height: 132px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .card-visual-media {
  background: rgba(15, 23, 42, 0.02);
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-visual-body {
  padding: 14px 14px 16px;
}

.card-visual-title {
  font-weight: 900;
  letter-spacing: 0.02em;
}

.card-visual-desc {
  color: var(--muted);
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.landing-right {
  position: sticky;
  top: 18px;
}

.login-panel-title {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--primary);
}

.login-panel-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.landing-note {
  margin-top: 12px;
}

.landing-note-title {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}

.landing-note-body {
  margin-top: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
}

.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: start;
}

.contact-k {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.contact-v {
  font-weight: 650;
}

@media (max-width: 980px) {
  .landing-header {
    grid-template-columns: 1fr auto;
  }
  .landing-nav {
    display: none;
  }
  .landing-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 26px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 34px;
  }
  .contact-row {
    grid-template-columns: 1fr;
  }
  .partner-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-card {
  max-width: 460px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.auth-login-wrap {
  width: 100%;
  max-width: 980px;
}

.auth-login-head {
  text-align: center;
  margin-bottom: 16px;
}

.auth-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-card-split {
  max-width: none;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.08));
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
  color: var(--primary);
}

.section-title {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 10px;
}

.soft-box {
  background: rgba(105, 240, 174, 0.08);
  border: 1px solid rgba(105, 240, 174, 0.25);
  border-radius: 16px;
  padding: 14px;
}

.profit-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.12);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--primary);
  font-weight: 700;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .auth-login-grid {
    grid-template-columns: 1fr;
  }
}
