:root {
  --bg: #050505;
  --bg-soft: rgba(14, 14, 14, 0.9);
  --bg-card: rgba(11, 11, 11, 0.86);
  --bg-card-strong: rgba(8, 8, 8, 0.94);
  --text: #f6f0e6;
  --muted: #baa990;
  --muted-soft: #8e7b61;
  --gold: #c9a15d;
  --gold-bright: #f2d39a;
  --gold-soft: rgba(201, 161, 93, 0.16);
  --gold-line: rgba(201, 161, 93, 0.24);
  --line: rgba(201, 161, 93, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --danger: #ff8f8f;
  --success: #dbc08a;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow: 0 40px 110px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.3);
  --font-display: "Cambria", "Georgia", "Times New Roman", serif;
  --font-ui: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 14% 18%, rgba(201, 161, 93, 0.09), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(201, 161, 93, 0.07), transparent 28%),
    linear-gradient(180deg, #050505 0%, #080808 55%, #040404 100%);
  color: var(--text);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

.page-shell {
  position: relative;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.lux-aura,
.dot-field,
.gold-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.lux-aura {
  z-index: 0;
  filter: blur(86px);
}

.lux-aura-a {
  inset: 5% auto auto -10%;
  width: 340px;
  height: 340px;
  background: rgba(201, 161, 93, 0.1);
  border-radius: 999px;
  animation: auraFloat 18s ease-in-out infinite;
}

.lux-aura-b {
  inset: auto -6% 12% auto;
  width: 280px;
  height: 280px;
  background: rgba(201, 161, 93, 0.08);
  border-radius: 999px;
  animation: auraFloat 24s ease-in-out infinite reverse;
}

.dot-field {
  z-index: 0;
  opacity: 0.34;
}

.dot-field-a {
  background-image: radial-gradient(circle, rgba(242, 211, 154, 0.42) 1px, transparent 1.4px);
  background-size: 28px 28px;
  animation: driftDots 36s linear infinite;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

.dot-field-b {
  background-image: radial-gradient(circle, rgba(201, 161, 93, 0.22) 1px, transparent 1.6px);
  background-size: 46px 46px;
  animation: driftDotsReverse 52s linear infinite;
  opacity: 0.18;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.86), transparent 90%);
}

.gold-mesh {
  z-index: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(201, 161, 93, 0.04) 18%, transparent 35%),
    linear-gradient(300deg, transparent 0%, rgba(201, 161, 93, 0.03) 16%, transparent 36%);
  animation: shimmer 18s linear infinite;
  opacity: 0.7;
}

.panel-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(19, 19, 19, 0.82), rgba(8, 8, 8, 0.94)),
    radial-gradient(circle at top right, rgba(201, 161, 93, 0.08), transparent 28%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 24%);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(360px, 0.86fr);
  gap: 28px;
  padding: 34px;
  min-height: 430px;
  animation: riseIn 440ms ease both;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}

.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: rgba(201, 161, 93, 0.08);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #f7deb4 0%, #c9a15d 78%);
  box-shadow: 0 0 16px rgba(201, 161, 93, 0.6);
}

.topbar-actions,
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-actions {
  justify-content: flex-end;
}

.hero-copy-wrap {
  margin-top: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
}

h1 {
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 4.5vw, 5.3rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

.lede,
.muted {
  color: var(--muted);
  line-height: 1.75;
}

.lede {
  margin-top: 18px;
  max-width: 760px;
}

.hero-lede {
  max-width: 700px;
  font-size: 1.04rem;
}

.hero-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.ribbon-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 161, 93, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: #e7dcc7;
  font-size: 0.86rem;
}

.hero-side {
  display: flex;
}

.spotlight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--gold-line);
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.92), rgba(8, 8, 8, 0.98)),
    radial-gradient(circle at 100% 0, rgba(201, 161, 93, 0.12), transparent 28%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow-soft);
}

.spotlight-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 161, 93, 0.22), transparent 70%);
  opacity: 0.7;
}

.spotlight-kicker {
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.spotlight-number {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5.1rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #fbf5eb;
}

.spotlight-copy {
  max-width: 22ch;
  color: #d5c7b3;
  line-height: 1.7;
}

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

.spotlight-stat {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(201, 161, 93, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.spotlight-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.spotlight-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.spotlight-foot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e7ddcf;
  line-height: 1.6;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #f6dfb6 0%, #c9a15d 85%);
  box-shadow: 0 0 0 7px rgba(201, 161, 93, 0.1);
  animation: pulseGold 2.2s ease-in-out infinite;
}

.content-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.84fr);
  gap: 20px;
  animation: riseIn 500ms ease both;
}

.auth-card,
.insight-card,
.dashboard {
  padding: 28px;
}

.auth-card {
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.9), rgba(8, 8, 8, 0.96)),
    radial-gradient(circle at top left, rgba(201, 161, 93, 0.07), transparent 26%);
}

.insight-card {
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.92), rgba(8, 8, 8, 0.96)),
    radial-gradient(circle at bottom right, rgba(201, 161, 93, 0.08), transparent 28%);
}

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

.section-head-start {
  align-items: flex-start;
}

.notice {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(201, 161, 93, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(201, 161, 93, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--gold-bright);
  line-height: 1.7;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 161, 93, 0.14);
  background: rgba(201, 161, 93, 0.06);
  color: #dfd1bc;
  font-size: 0.84rem;
}

.cta-row {
  margin-top: 24px;
}

.btn,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 999px;
  border: 1px solid rgba(201, 161, 93, 0.16);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover,
.ghost-link:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.btn {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.btn-primary {
  border-color: rgba(242, 211, 154, 0.45);
  background: linear-gradient(135deg, #f4dbab 0%, #c9a15d 46%, #9f7639 100%);
  color: #140e05;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(201, 161, 93, 0.18);
}

.btn-ghost,
.ghost-link {
  background: rgba(255, 255, 255, 0.02);
}

.btn-danger {
  border-color: rgba(255, 143, 143, 0.22);
  color: #ffc2c2;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.56;
  transform: none;
}

.hidden {
  display: none !important;
}

.status-seal {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 161, 93, 0.18);
  background: rgba(201, 161, 93, 0.08);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-seal[data-tone="warn"] {
  border-color: rgba(255, 143, 143, 0.22);
  background: rgba(255, 143, 143, 0.08);
  color: #ffc3c3;
}

.concierge-list {
  display: grid;
  gap: 16px;
}

.concierge-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.concierge-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.concierge-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6ddb0, #be9150);
  color: #1a1208;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(201, 161, 93, 0.16);
}

.concierge-item p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.72;
}

.insight-panel {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(201, 161, 93, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.insight-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--muted);
}

.insight-line + .insight-line {
  border-top: 1px solid var(--line-soft);
}

.text-link {
  color: var(--gold-bright);
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}

.dashboard {
  animation: riseIn 500ms ease both;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-shell {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(201, 161, 93, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.avatar-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-copy h2 {
  font-size: 1.9rem;
}

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

.stat-card {
  position: relative;
  min-height: 156px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(201, 161, 93, 0.12);
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.9), rgba(7, 7, 7, 0.94)),
    radial-gradient(circle at bottom right, rgba(201, 161, 93, 0.08), transparent 24%);
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto auto -40px -40px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 161, 93, 0.15), transparent 70%);
}

.stat-label {
  color: var(--muted-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.stat-hint {
  margin-top: 14px;
  max-width: 18ch;
  color: var(--muted);
  line-height: 1.55;
}

.section-stack {
  margin-top: 26px;
}

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

.guild-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(201, 161, 93, 0.11);
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.92), rgba(7, 7, 7, 0.96)),
    radial-gradient(circle at top right, rgba(201, 161, 93, 0.08), transparent 28%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guild-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 161, 93, 0.8), transparent 72%);
}

.guild-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 161, 93, 0.2);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.26);
}

.guild-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.guild-subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 161, 93, 0.12);
  background: rgba(201, 161, 93, 0.05);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-plan-free,
.pill-status-standby {
  color: #d6c5ab;
}

.pill-plan-premium,
.pill-plan-ultra,
.pill-plan-boss,
.pill-status-playing,
.pill-status-queued {
  color: var(--gold-bright);
}

.pill-warn,
.pill-status-stalled {
  color: #ffd3a6;
}

.guild-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.metric-box {
  padding: 14px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 161, 93, 0.09);
  background: rgba(255, 255, 255, 0.02);
}

.metric-box span {
  display: block;
  color: var(--muted-soft);
  font-size: 0.8rem;
}

.metric-box strong {
  display: block;
  margin-top: 9px;
  line-height: 1.46;
}

.guild-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.empty-state {
  padding: 30px;
  border-radius: 24px;
  border: 1px dashed rgba(201, 161, 93, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  line-height: 1.72;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  min-width: min(360px, calc(100vw - 32px));
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(201, 161, 93, 0.18);
  background: rgba(10, 10, 10, 0.94);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast[data-tone="success"] {
  border-color: rgba(201, 161, 93, 0.28);
}

.toast[data-tone="warn"] {
  border-color: rgba(255, 143, 143, 0.24);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGold {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(201, 161, 93, 0.1);
  }

  50% {
    box-shadow: 0 0 0 11px rgba(201, 161, 93, 0.04);
  }
}

@keyframes driftDots {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-60px, 40px, 0);
  }
}

@keyframes driftDotsReverse {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(70px, -40px, 0);
  }
}

@keyframes shimmer {
  from {
    transform: translateX(-4%);
  }

  to {
    transform: translateX(4%);
  }
}

@keyframes auraFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(22px, -18px, 0);
  }
}

@media (max-width: 1120px) {
  .hero,
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .hero-nav,
  .dashboard-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .spotlight-grid,
  .guild-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 18px));
    padding-top: 14px;
  }

  .hero,
  .auth-card,
  .insight-card,
  .dashboard {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .brand-mark,
  .ghost-link,
  .btn,
  .ribbon-pill,
  .trust-pill {
    width: 100%;
  }

  .topbar-actions,
  .cta-row,
  .hero-ribbon {
    flex-direction: column;
  }

  .identity {
    align-items: flex-start;
  }

  .avatar-shell {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .spotlight-grid,
  .guild-grid,
  .guild-metrics {
    grid-template-columns: 1fr;
  }

  .spotlight-number {
    font-size: 3.3rem;
  }

  .insight-line {
    flex-direction: column;
    align-items: flex-start;
  }
}
