/* ============================================
   HYTALE - LANDING PAGE STYLES
   ============================================ */

/* ---- Custom Properties ---- */
:root {
  --gold: #d29f32;
  --gold-light: #ecbc62;
  --gold-dark: #b8882a;
  --gold-glow: rgba(210, 159, 50, 0.3);
  --blue: #598ac3;
  --blue-light: #b7cedd;
  --bg: #0e1a2b;
  --bg-elevated: #15243a;
  --surface: #1b2e4a;
  --surface-light: #273d5e;
  --surface-hover: #1f3555;
  --text: #dce8eb;
  --text-muted: #9eb2c0;
  --text-dim: #5c7080;
  --error: #f15e6c;
  --font-heading: 'Lexend', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1000px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Rarity tiers */
  --rarity-common: #8b9bb4;
  --rarity-epic: #a855f7;
  --rarity-legendary: #d29f32;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 26, 43, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(210, 159, 50, 0.1);
  padding: 10px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--gold);
}

/* ============================================
   MAIN — Dungeon Vignette
   ============================================ */
.main {
  min-height: 100vh;
  position: relative;
}

.main::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

/* ---- Steps (show/hide) ---- */
.step {
  display: none;
}

.step.active {
  display: block;
  animation: portalIn 0.45s ease forwards;
}

.step.portal-out {
  animation: portalOut 0.3s ease forwards;
}

@keyframes portalIn {
  from { opacity: 0; transform: scale(0.95); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}

@keyframes portalOut {
  from { opacity: 1; transform: scale(1);    filter: blur(0); }
  to   { opacity: 0; transform: scale(0.93); filter: blur(6px); }
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.step-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* ---- Game Panel (gold corner brackets) ---- */
.game-panel {
  position: relative;
}

.game-panel::before,
.game-panel::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.game-panel::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}

.game-panel::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

/* ---- Pixel border accent on cards ---- */
.game-panel > .step-title::before {
  content: '';
  display: block;
  width: 60%;
  max-width: 200px;
  height: 2px;
  margin: 0 auto 20px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px,
    var(--gold) 6px,
    transparent 6px,
    transparent 10px
  );
  opacity: 0.5;
}

/* ============================================
   STEP 1: HERO — Full-bleed immersive
   ============================================ */
.step-hero.active {
  position: relative;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center top, rgba(14, 26, 43, 0.3) 0%, rgba(14, 26, 43, 0.75) 60%),
    linear-gradient(to bottom, rgba(14, 26, 43, 0.2) 0%, rgba(14, 26, 43, 0.6) 50%, var(--bg) 100%);
}

.particles-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 60px;
}

.hero-logo {
  width: clamp(200px, 40vw, 360px);
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--blue-light);
  max-width: 500px;
  margin: 0 auto 28px;
  padding: 0 5%;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ---- Hero Stats Ticker ---- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(21, 36, 58, 0.8);
  border: 1px solid rgba(39, 61, 94, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.stat-icon {
  color: var(--gold);
  font-size: 0.9rem;
}

.stat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: statPulse 2s ease infinite;
}

@keyframes statPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- Countdown Timer ---- */
.countdown-wrap {
  margin-top: 20px;
}

.countdown-label {
  font-size: 0.82rem;
  color: rgba(183, 206, 221, 0.5);
  margin-bottom: 8px;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-digit {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-light);
  border-radius: 6px;
  padding: 6px 12px;
  min-width: 48px;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.countdown-unit {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.1em;
}

.countdown-sep {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ---- Pulsing CTA ---- */
.btn-pulse {
  animation: ctaPulse 2s ease infinite;
}

@keyframes ctaPulse {
  0%   { box-shadow: 0 2px 12px rgba(210, 159, 50, 0.2); }
  50%  { box-shadow: 0 0 24px rgba(210, 159, 50, 0.5), 0 0 48px rgba(210, 159, 50, 0.15); }
  100% { box-shadow: 0 2px 12px rgba(210, 159, 50, 0.2); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0e1a2b;
  padding: 14px 32px;
  box-shadow: 0 2px 12px rgba(210, 159, 50, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  box-shadow: 0 4px 28px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
}

.btn-lg {
  padding: 16px 44px;
  font-size: 1.05rem;
}

.btn-arrow {
  transition: transform var(--transition);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-select {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--surface-light);
  border-radius: 50px;
  font-size: 0.95rem;
}

.btn-select:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.plan-card.selected .btn-select {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
  color: #0e1a2b;
}

/* ============================================
   STEP 2: PLAN SELECTION — Inventory Rarity
   ============================================ */
.step-plans {
  padding: 80px 0 60px;
  padding-top: 120px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  background: var(--surface);
  border: 2px solid rgba(39, 61, 94, 0.6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  transform-style: preserve-3d;
}

/* Rarity border colors on hover */
.plan-card.rarity-common:hover {
  border-color: rgba(139, 155, 180, 0.5);
  box-shadow: 0 8px 32px rgba(139, 155, 180, 0.1);
}

.plan-card.rarity-epic:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
}

.plan-card.rarity-legendary:hover {
  border-color: rgba(210, 159, 50, 0.5);
  box-shadow: 0 8px 32px rgba(210, 159, 50, 0.15);
}

/* Selected states by rarity */
.plan-card.rarity-common.selected {
  border-color: var(--rarity-common);
  box-shadow: 0 0 0 1px var(--rarity-common), 0 8px 32px rgba(139, 155, 180, 0.15);
}

.plan-card.rarity-epic.selected {
  border-color: var(--rarity-epic);
  box-shadow: 0 0 0 1px var(--rarity-epic), 0 8px 32px rgba(168, 85, 247, 0.2);
}

.plan-card.rarity-legendary.selected {
  border-color: var(--rarity-legendary);
  box-shadow: 0 0 0 1px var(--rarity-legendary), 0 8px 32px rgba(210, 159, 50, 0.2);
}

/* Select shimmer animation */
.plan-card.selected::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(210, 159, 50, 0.15) 45%, rgba(210, 159, 50, 0.3) 50%, rgba(210, 159, 50, 0.15) 55%, transparent 60%);
  animation: shimmerSweep 0.6s ease forwards;
  pointer-events: none;
  z-index: 3;
}

@keyframes shimmerSweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* Scale bounce on select */
.plan-card.selected {
  animation: selectBounce 0.35s ease;
}

@keyframes selectBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.plan-card-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
}

.plan-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--surface) 100%);
}

.plan-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-card-body {
  padding: 20px 24px 24px;
}

/* ---- Rarity Badges ---- */
.plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 4px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rarity-badge-common {
  background: rgba(139, 155, 180, 0.8);
  border: 1px solid rgba(139, 155, 180, 0.9);
}

.rarity-badge-epic {
  background: rgba(168, 85, 247, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.9);
}

.rarity-badge-legendary {
  background: rgba(210, 159, 50, 0.8);
  border: 1px solid rgba(210, 159, 50, 0.9);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.plan-price-old {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.plan-price-new {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.plan-features {
  list-style: none;
  margin-bottom: 20px;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d29f32'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ============================================
   STEP 3: CONNECT — RPG Login Panel
   ============================================ */
.step-connect {
  padding: 80px 0;
  padding-top: 120px;
}

.connect-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid rgba(39, 61, 94, 0.5);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.connect-logo {
  margin: 0 auto 20px;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
}

.input-group {
  margin-bottom: 16px;
  text-align: left;
}

.input-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.input {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--surface-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input::placeholder {
  color: var(--text-dim);
}

.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(210, 159, 50, 0.1);
}

.input.error {
  border-color: var(--error);
}

.input-error {
  text-align: left;
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 6px;
  min-height: 20px;
}

.selected-plan-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(210, 159, 50, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(210, 159, 50, 0.15);
}

/* ---- Server Status Indicators ---- */
.server-status {
  text-align: left;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(14, 26, 43, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(39, 61, 94, 0.3);
}

.status-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 0;
  opacity: 0;
  transform: translateX(-8px);
  animation: statusFadeIn 0.4s ease forwards;
}

.status-line[data-delay="0"] { animation-delay: 0.3s; }
.status-line[data-delay="1"] { animation-delay: 0.8s; }
.status-line[data-delay="2"] { animation-delay: 1.3s; }

@keyframes statusFadeIn {
  to { opacity: 1; transform: translateX(0); }
}

.status-check {
  color: #4ade80;
  margin-right: 4px;
}

.status-diamond {
  color: var(--gold);
  margin-right: 4px;
}

.status-line strong {
  color: var(--text);
}

/* ============================================
   STEP 4: PROGRESS — Dungeon Crawl Tracker
   ============================================ */
.step-progress {
  padding: 80px 0;
  padding-top: 120px;
}

.progress-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid rgba(39, 61, 94, 0.5);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

/* ---- Floating Shield Logo ---- */
.progress-shield {
  margin: 0 auto 24px;
  width: 64px;
  animation: shieldFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(210, 159, 50, 0.4));
}

.progress-shield img {
  width: 100%;
  height: auto;
}

@keyframes shieldFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.progress-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ---- Dungeon Room Tracker ---- */
.dungeon-tracker {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 0 8px;
}

.dungeon-room {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dungeon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--surface-light);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.4s ease;
}

.dungeon-room.active .dungeon-circle,
.dungeon-room.complete .dungeon-circle {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0e1a2b;
  box-shadow: 0 0 12px rgba(210, 159, 50, 0.4);
}

.dungeon-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.4s ease;
}

.dungeon-room.active .dungeon-label,
.dungeon-room.complete .dungeon-label {
  color: var(--gold);
}

.dungeon-path {
  width: 32px;
  height: 3px;
  background: var(--surface-light);
  margin-top: 19px;
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.dungeon-path::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.dungeon-path.filled::after {
  width: 100%;
}

.progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: var(--surface);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 5px;
  transition: width 0.4s ease;
}

.progress-percent {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 0 0 16px rgba(210, 159, 50, 0.4);
}

.progress-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   STEP 5: VERIFICATION — Quest Complete
   ============================================ */
.step-verify {
  padding: 80px 0;
  padding-top: 120px;
}

.verify-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid rgba(39, 61, 94, 0.5);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

/* ---- Spinning Aura Logo ---- */
.verify-logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verify-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(210, 159, 50, 0.4) 25%,
    transparent 50%,
    rgba(236, 188, 98, 0.3) 75%,
    transparent 100%
  );
  animation: auraRotate 4s linear infinite;
}

@keyframes auraRotate {
  to { transform: rotate(360deg); }
}

.verify-logo {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 12px rgba(210, 159, 50, 0.4));
}

/* ---- Loot Box ---- */
.loot-box {
  background: rgba(14, 26, 43, 0.5);
  border: 1px solid rgba(39, 61, 94, 0.4);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  text-align: left;
}

.loot-item {
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--text-muted);
}

.loot-star {
  margin-right: 6px;
}

.loot-legendary .loot-star { color: var(--rarity-legendary); }
.loot-epic .loot-star { color: var(--rarity-epic); }
.loot-common .loot-star { color: var(--rarity-common); }

.verify-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============================================
   LOCKER MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  height: 80vh;
  max-height: 650px;
  background: var(--bg-elevated);
  border: 1px solid rgba(210, 159, 50, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: var(--surface-light);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--transition);
}

.modal-close:hover {
  background: var(--surface);
  color: var(--text);
}

#locker-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: 32px 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(39, 61, 94, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .plan-card-img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .dungeon-path {
    width: 20px;
    margin-top: 17px;
  }

  .dungeon-circle {
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .plan-card-body {
    padding: 16px;
  }

  .connect-card,
  .progress-card,
  .verify-card {
    padding: 28px 20px;
  }

  .modal-content {
    width: 95%;
    height: 85vh;
  }

  .dungeon-label {
    display: none;
  }

  .dungeon-circle {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
  }

  .dungeon-path {
    width: 14px;
    margin-top: 15px;
  }

  .countdown-digit {
    font-size: 1.1rem;
    padding: 4px 8px;
    min-width: 40px;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    padding: 160px 0 100px;
  }

  .plan-card-img {
    height: 180px;
  }
}

