:root {
  color-scheme: dark;
  --black: #080706;
  --panel: #12100d;
  --panel-2: #1d1812;
  --gold: #d7a83e;
  --gold-light: #f8e7b0;
  --red: #b5121b;
  --red-bright: #e3222b;
  --white: #fffaf0;
  --muted: #c8bfae;
  --line: rgba(248, 231, 176, 0.18);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 168, 62, 0.18), transparent 24rem),
    radial-gradient(circle at 78% 12%, rgba(181, 18, 27, 0.14), transparent 26rem),
    linear-gradient(135deg, #070504 0%, #120c0b 52%, #080706 100%);
  color: var(--white);
  min-height: 100vh;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 108px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(8, 7, 6, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: clamp(260px, 24vw, 420px);
  height: 74px;
  object-fit: contain;
  object-position: left center;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42));
}

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-nav {
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--gold-light);
}

.button,
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--panel);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 231, 176, 0.48);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.button.gold,
button.gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #1a1208;
  border-color: #f5d675;
  font-weight: 800;
}

.button.red,
button.red {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  border-color: #df2d38;
  font-weight: 800;
}

.button.ghost {
  background: transparent;
}

.nav-toggle {
  display: none;
  justify-self: end;
}

.hidden {
  display: none !important;
}

main {
  min-height: 70vh;
}

.hero {
  min-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(40px, 8vw, 96px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 72% 24%, rgba(215, 168, 62, 0.22), transparent 20rem),
    radial-gradient(circle at 84% 72%, rgba(181, 18, 27, 0.18), transparent 18rem),
    linear-gradient(90deg, rgba(8, 7, 6, 0.96) 0%, rgba(8, 7, 6, 0.86) 44%, rgba(8, 7, 6, 0.58) 100%),
    url("/assets/casino-hero.svg") center/cover;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.premium-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 22%;
  height: 320px;
  background: radial-gradient(ellipse, rgba(215, 168, 62, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.hero-brand-card,
.auth-logo,
.dashboard-logo {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.hero-brand-card {
  width: min(560px, 94vw);
  padding: 0;
  margin-bottom: 24px;
}

.hero-brand-card img,
.auth-logo,
.dashboard-logo {
  width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
}

h1 {
  font-size: clamp(50px, 8vw, 102px);
  line-height: 0.94;
  max-width: 900px;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 5vw, 54px);
}

h3 {
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero p {
  max-width: 660px;
  font-size: 20px;
}

.hero-actions,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  border: 1px solid rgba(248, 231, 176, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(248, 231, 176, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 16, 13, 0.72), rgba(8, 7, 6, 0.58));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.hero-panel h3 {
  font-size: 30px;
  margin-bottom: 26px;
}

.mini-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  color: var(--muted);
}

.mini-metrics strong {
  color: var(--gold-light);
  font-size: 26px;
}

.search-band {
  width: min(1180px, calc(100% - 36px));
  margin: -54px auto 0;
  position: relative;
  z-index: 3;
  padding: 18px;
  border: 1px solid rgba(248, 231, 176, 0.22);
  border-radius: 8px;
  background: rgba(18, 16, 13, 0.82);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.search-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-chips a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(248, 231, 176, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.quick-chips a:hover {
  color: var(--gold-light);
  border-color: rgba(215, 168, 62, 0.5);
  transform: translateY(-2px);
}

.section {
  padding: clamp(38px, 6vw, 78px) clamp(18px, 6vw, 86px);
}

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

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

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

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

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

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

.card,
.form-panel,
.stat {
  background: linear-gradient(180deg, rgba(29, 24, 18, 0.94), rgba(12, 10, 8, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.premium-card,
.counter-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.premium-card:hover,
.counter-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 168, 62, 0.58);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.section-split,
.plans-preview {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(248, 231, 176, 0.1);
  border-bottom: 1px solid rgba(248, 231, 176, 0.08);
}

.card.featured {
  border-color: rgba(215, 168, 62, 0.62);
}

.meta,
.tag,
.price,
.status {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(215, 168, 62, 0.08);
}

.gold-icon,
.avatar,
.company-mark {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #211408;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border: 1px solid rgba(248, 231, 176, 0.72);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(215, 168, 62, 0.18);
}

.gold-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  font-size: 13px;
}

.counter-card h2 {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
}

.counter-card p {
  margin-bottom: 0;
}

.avatar,
.company-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}

.avatar img,
.company-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.market-tile {
  display: block;
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(29, 24, 18, 0.9), rgba(10, 8, 7, 0.96));
  box-shadow: var(--shadow);
}

.market-tile p {
  margin-bottom: 0;
}

.step-number {
  display: inline-block;
  color: var(--red-bright);
  font-weight: 900;
  margin-bottom: 18px;
}

.plan-mini {
  border-color: rgba(215, 168, 62, 0.28);
}

.price {
  font-size: 34px;
  color: var(--white);
  text-transform: none;
}

.filters,
.toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 20px;
}

.candidate-search-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(248, 231, 176, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(29, 24, 18, 0.78), rgba(8, 7, 6, 0.82));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.candidate-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted);
}

.candidate-results-head p {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.candidate-results-head span {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.candidate-grid {
  align-items: stretch;
}

.candidate-profile-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(248, 231, 176, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 168, 62, 0.12), transparent 14rem),
    linear-gradient(180deg, rgba(29, 24, 18, 0.96), rgba(9, 8, 7, 0.98));
  box-shadow: var(--shadow);
}

.candidate-card-top {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
}

.candidate-photo {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(248, 231, 176, 0.48);
  background: linear-gradient(145deg, rgba(248, 231, 176, 0.95), rgba(215, 168, 62, 0.9));
  color: #211408;
  font-size: 25px;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(215, 168, 62, 0.18);
}

.candidate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-identity h3 {
  margin-bottom: 4px;
}

.candidate-identity p:last-child {
  margin: 0;
  color: var(--white);
}

.candidate-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.candidate-highlights span,
.candidate-section {
  border: 1px solid rgba(248, 231, 176, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.candidate-highlights strong {
  color: var(--gold-light);
  font-size: 20px;
}

.candidate-section small {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.candidate-section p {
  margin: 0;
}

.candidate-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.dashboard-logo {
  padding: 0;
  margin: 0 0 14px;
  width: 100%;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

.auth-logo {
  max-width: 440px;
  justify-self: center;
  padding: 0;
  margin-bottom: 10px;
}

.sidebar button {
  text-align: left;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

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

[data-panel-content] {
  display: none;
}

[data-panel-content].active {
  display: block;
}

.table th {
  color: var(--gold-light);
  background: rgba(215, 168, 62, 0.08);
}

.notice {
  border-left: 4px solid var(--gold);
  padding: 14px 16px;
  background: rgba(215, 168, 62, 0.08);
  color: var(--gold-light);
  border-radius: 8px;
}

.notice.success {
  border-left-color: #32d583;
  background: rgba(50, 213, 131, 0.1);
  color: #b7f7d2;
}

.notice.error {
  border-left-color: var(--red-bright);
  background: rgba(227, 34, 43, 0.1);
  color: #ffc9ce;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 42px clamp(18px, 6vw, 86px);
  background: #060504;
  border-top: 1px solid var(--line);
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 9px 0;
}

.footer-logo {
  width: min(380px, 100%);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42));
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-row a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--gold-light);
  text-transform: uppercase;
  font-weight: 900;
}

.admin-shell {
  min-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 168, 62, 0.12), transparent 28rem),
    #0a0908;
}

.admin-sidebar {
  position: sticky;
  top: 108px;
  height: calc(100vh - 108px);
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(8, 7, 6, 0.92);
  overflow: auto;
}

.admin-logo {
  width: 100%;
  height: 86px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.42));
  margin-bottom: 18px;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-sidebar nav button {
  width: 100%;
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  justify-content: start;
}

.admin-sidebar nav button.active,
.admin-sidebar nav button:hover {
  color: var(--gold-light);
  background: rgba(215, 168, 62, 0.1);
  border-color: rgba(215, 168, 62, 0.28);
}

.admin-main {
  min-width: 0;
  padding: 26px clamp(18px, 3vw, 38px) 46px;
}

.admin-topbar,
.admin-toolbar,
.admin-card,
.admin-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(29, 24, 18, 0.86), rgba(12, 10, 8, 0.92));
  box-shadow: var(--shadow);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.admin-user-pill {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--muted);
}

.admin-user-pill strong {
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: 12px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: grid;
  gap: 18px;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat {
  padding: 18px;
}

.admin-stat span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-stat strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

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

.admin-card {
  padding: 20px;
  min-width: 0;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-card-head span {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
}

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

.admin-form .wide {
  grid-column: span 3;
}

.admin-form button {
  align-self: end;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  min-width: 980px;
}

.admin-table td {
  max-width: 260px;
  vertical-align: top;
}

.admin-actions {
  min-width: 310px;
}

.admin-actions button {
  min-height: 34px;
  padding: 7px 10px;
  margin: 0 6px 6px 0;
  font-size: 12px;
}

.admin-actions .status {
  display: inline-block;
  margin-top: 6px;
}

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

.admin-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-list small {
  color: var(--muted);
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .main-nav,
  .header-actions {
    grid-column: 1 / -1;
    display: none;
    justify-content: start;
    flex-wrap: wrap;
  }

  body.nav-open .main-nav,
  body.nav-open .header-actions {
    display: flex;
  }

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

  .hero-panel {
    max-width: 560px;
  }

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

  .grid.cols-3,
  .grid.cols-4,
  .grid.cols-5,
  .grid.cols-2,
  .layout,
  .admin-shell,
  .admin-grid-2,
  .admin-card-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-toolbar,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-form .wide {
    grid-column: auto;
  }

  .filters,
  .toolbar {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 720px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 92px;
    padding: 14px 16px;
  }

  .brand img {
    width: min(270px, 72vw);
    height: 62px;
  }

  .candidate-search-panel,
  .candidate-highlights,
  .candidate-card-top {
    grid-template-columns: 1fr;
  }

  .candidate-photo {
    width: 78px;
    height: 78px;
  }

  .candidate-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 34px 16px;
  }

  .hero {
    padding: 34px 16px;
    min-height: 620px;
  }

  .card,
  .form-panel {
    padding: 18px;
  }
}
