/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --alliance-gold: #d6b165;
  --alliance-gold-bright: #f3d88a;
  --alliance-blue: #7bc1ff;
  --alliance-deep: #0c1729;
  --alliance-panel: rgba(12, 22, 38, 0.82);
  --alliance-panel-strong: rgba(16, 30, 52, 0.9);
  --alliance-glow: rgba(120, 185, 255, 0.55);
  --cursor-default: url("cursor-1-32.png") 6 4, auto;
  --cursor-hover: url("cursor-2-32.png") 6 4, pointer;
}

/* BODY */
body {
  background: black;
  font-family: "Inter", sans-serif;
  color: #dcdcdc;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: var(--cursor-default);
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
label,
select,
.btn,
.apply-btn,
.submit-btn,
.logo-wrapper,
.modal-logo-wrapper,
.class-badge,
.spec-pill {
  cursor: var(--cursor-default);
}

a:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
label:hover,
select:hover,
.btn:hover,
.apply-btn:hover,
.submit-btn:hover,
.logo-wrapper:hover,
.class-badge:hover,
.spec-pill:hover {
  cursor: var(--cursor-hover);
}

input[type="text"],
input[type="number"],
textarea {
  cursor:text;
}

a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
label,
select,
.btn,
.apply-btn,
.submit-btn,
.logo-wrapper,
.modal-logo-wrapper,
.class-badge,
.class-tile,
.spec-pill {
  cursor: var(--cursor-default);
}

a:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
label:hover,
select:hover,
.btn:hover,
.apply-btn:hover,
.submit-btn:hover,
.logo-wrapper:hover,
.class-badge:hover,
.class-tile:hover,
.spec-pill:hover {
  cursor: var(--cursor-hover);
}

input[type="text"],
input[type="number"],
textarea {
  cursor: text;
}

/* BACKGROUND */
.page-bg {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -10;
  overflow: hidden;
}

.page-bg::before {
  content:"";
  position:absolute;
  inset:0;
  background:
      radial-gradient(115% 115% at 50% 26%,
        rgba(130,190,255,0.24) 0%,
        rgba(80,140,220,0.14) 44%,
        rgba(30,70,125,0.1) 70%,
        rgba(8,20,40,0.06) 100%),
      linear-gradient(180deg,
        rgba(30,70,130,0.16),
        rgba(10,25,50,0.08));
  mix-blend-mode:soft-light;
  pointer-events:none;
}

.page-bg img {
  width: 110%;
  height: 110%;
  object-fit: cover;
}

.page-bg::after {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle, rgba(0,0,0,0) 55%, rgba(0,0,0,0.85) 100%);
  pointer-events:none;
}

/* HERO */
.hero {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  z-index:5;
  position:relative;
  padding-top:0;
  min-height:100vh;
  isolation:isolate;
}

.hero-layout {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:28px;
  width:min(1200px, 94vw);
}

.hero-logo-block {
  transform:none;
}

.realm-badge {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:"Cinzel", serif;
  color:var(--alliance-blue);
  font-size:14px;
  letter-spacing:0.4px;
  padding:10px 18px;
  border:1px solid rgba(123,193,255,0.55);
  background:
    linear-gradient(140deg, rgba(18,34,62,0.92), rgba(10,20,36,0.9)),
    radial-gradient(120% 80% at 50% 0%, rgba(123,193,255,0.14), rgba(0,0,0,0));
  box-shadow:
    0 14px 28px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.28),
    0 0 14px rgba(123,193,255,0.15);
  border-radius:12px;
  text-transform:uppercase;
  text-align:center;
  text-shadow:0 0 8px rgba(0,0,0,0.45);
  position:static;
  transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.realm-badge:hover {
  color:var(--alliance-blue);
  border-color: rgba(123,193,255,0.7);
  background:
    linear-gradient(140deg, rgba(18,34,62,0.92), rgba(10,20,36,0.9)),
    radial-gradient(120% 80% at 50% 0%, rgba(123,193,255,0.14), rgba(0,0,0,0));
  box-shadow:
    0 14px 28px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.28),
    0 0 20px rgba(123,193,255,0.35),
    0 0 14px rgba(243,216,138,0.22);
}

.recruiting-strip {
  width:min(88vw, 760px);
  margin:0 auto;
  padding:6px 0 0;
}

.hero::before,
.hero::after {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
}

.hero::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(0,0,0,0) 35%);
  mix-blend-mode:screen;
  opacity:0.25;
  animation: heroDrift 36s ease-in-out infinite alternate;
}

.hero::after {
  background:
    radial-gradient(45% 45% at 50% 45%, rgba(120,185,255,0.14), rgba(0,0,0,0)),
    radial-gradient(75% 65% at 50% 55%, rgba(0,0,0,0), rgba(0,0,0,0.55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode:soft-light;
  opacity:0.35;
}

/* LOGO */
.logo-wrapper {
  width: 380px;
  max-width: 90vw;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
  aspect-ratio: 1/1;
  isolation:isolate;
  cursor:pointer;
  border-radius:24px;
  border:2px solid rgba(120,185,255,0.48);
  background:
    linear-gradient(145deg, rgba(15,28,48,0.9), rgba(20,40,70,0.8)),
    radial-gradient(70% 70% at 50% 35%, rgba(120,185,255,0.08), transparent 80%);
  box-shadow:0 10px 24px rgba(0,0,0,0.38), 0 0 24px rgba(120,185,255,0.28), inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -6px 14px rgba(0,0,0,0.45);
    transition: transform .3s ease, box-shadow .35s ease, border-color .35s ease, filter .3s ease;
}

.logo-wrapper:focus-visible {
  outline:2px solid var(--alliance-gold-bright);
  outline-offset:8px;
}

.logo-wrapper:hover {
  border-color: rgba(243,216,138,0.7);
  box-shadow:0 14px 30px rgba(0,0,0,0.42), 0 0 32px rgba(120,185,255,0.42), 0 0 18px rgba(243,216,138,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-2px) scale(1.018);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
  cursor: var(--cursor-hover);
}

.logo-wrapper::before {
  content:"";
  position:absolute;
  inset:-14%;
  background: radial-gradient(circle at 50% 38%,
      rgba(140,195,255,0.42) 0%,
      rgba(90,140,210,0.28) 44%,
      rgba(20,45,85,0.16) 68%,
      rgba(0,0,0,0) 82%);
  filter: blur(34px);
  opacity:0.82;
  mix-blend-mode:soft-light;
  z-index:1;
}

.logo-static,
.logo-video {
  width:100%;
  height:100%;
  object-fit:contain;
  position:absolute;
  transition:opacity .7s ease-in-out;
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.1));
  mask-image: radial-gradient(82% 104% at 50% 54%, rgba(255,255,255,1) 58%, rgba(255,255,255,0) 90%);
  -webkit-mask-image: radial-gradient(82% 104% at 50% 54%, rgba(255,255,255,1) 58%, rgba(255,255,255,0) 90%);
}

.logo-static {
  opacity:1;
  z-index:3;
  pointer-events:none;
}

.logo-video {
  opacity:0;
  z-index:2;
  display:block;
}

/* GLINT */
.logo-wrapper::after {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(82% 82% at 50% 40%,
      rgba(120,185,255,0.38) 0%,
      rgba(80,145,220,0.3) 46%,
      rgba(35,80,150,0.15) 78%,
      rgba(0,0,0,0) 100%),
    radial-gradient(90% 60% at 50% 80%,
      rgba(220,185,95,0.16) 0%,
      rgba(0,0,0,0) 80%),
    radial-gradient(115% 115% at 50% 52%,
      rgba(12,24,45,0.34) 58%,
      rgba(12,24,45,0.0) 88%);
  mix-blend-mode:soft-light;
  opacity:.48;
  pointer-events:none;
  animation: arcPulse 7s ease-in-out infinite, heroGlow 32s ease-in-out infinite;
}

.logo-overlay {
  position:absolute;
  bottom:3%;
  left:50%;
  transform: translateX(-50%);
  padding:0;
  border:none;
  background:none;
  box-shadow:none;
  z-index:4;
  pointer-events:none;
}

.logo-overlay-text {
  display:block;
  font-family:"Cinzel", serif;
  font-size:12px;
  letter-spacing:0.22em;
  color:var(--alliance-gold-bright);
  text-transform:uppercase;
  white-space:nowrap;
}

@keyframes glintSweep {
  0% { transform: translateX(-130%) rotate(5deg); opacity:0; }
  20% { opacity:1; }
  55% { opacity:.9; }
  100% { transform: translateX(130%) rotate(5deg); opacity:0; }
}

@keyframes arcPulse {
  0% { opacity:.35; transform:scale(1); }
  50% { opacity:.55; transform:scale(1.015); }
  100% { opacity:.4; transform:scale(1); }
}

@keyframes ctaPulse {
  0% { box-shadow:0 6px 18px rgba(0,0,0,0.32), 0 0 12px rgba(120,185,255,0.28); }
  50% { box-shadow:0 8px 22px rgba(0,0,0,0.38), 0 0 18px rgba(150,205,255,0.55); }
  100% { box-shadow:0 6px 18px rgba(0,0,0,0.32), 0 0 12px rgba(120,185,255,0.28); }
}

@keyframes buttonShimmer {
  0% { background-position:-120% 0; }
  100% { background-position:120% 0; }
}

@keyframes dividerSweep {
  0% { background-position:-100% 0; opacity:0.9; }
  50% { background-position:0% 0; opacity:1; }
  100% { background-position:100% 0; opacity:0.9; }
}

@keyframes heroGlow {
  0% { opacity:0.25; transform:scale(1); }
  50% { opacity:0.35; transform:scale(1.02); }
  100% { opacity:0.25; transform:scale(1); }
}

/* BUTTONS */
.apply-btn,
.submit-btn {
  padding:14px 36px;
  border:2px solid rgba(214,177,101,0.55);
  background:
    linear-gradient(135deg, rgba(20,39,66,0.9) 0%, rgba(31,59,99,0.8) 52%, rgba(13,25,45,0.9) 100%),
    url("forged-steel.jpg");
  background-size: 180% 180%, cover;
  background-position: center;
  background-blend-mode: overlay;
  color:#eef2fb;
  font-family:"Cinzel", serif;
  text-transform:uppercase;
  letter-spacing:1px;
  cursor:pointer;
  border-radius:6px;
  box-shadow:0 6px 18px rgba(0,0,0,0.4), 0 0 14px rgba(120,185,255,0.22);
  text-shadow:0 0 8px rgba(120,185,255,0.38);
  transition: background .35s, border-color .35s, box-shadow .35s, color .35s, transform .25s, background-position .6s ease;
}

.apply-btn:hover,
.submit-btn:hover {
  border-color:rgba(243,216,138,0.75);
  box-shadow:0 10px 24px rgba(0,0,0,0.48), 0 0 24px rgba(120,185,255,.45), 0 0 14px rgba(243,216,138,.6);
  background:
    linear-gradient(135deg, rgba(29,58,96,0.95) 0%, rgba(42,80,138,0.9) 55%, rgba(23,42,68,0.95) 100%),
    url("forged-steel.jpg");
  background-size: 200% 200%, cover;
  background-position: center;
  background-blend-mode: overlay;
  color:#fff6df;
  transform: translateY(-2px) scale(1.02);
  cursor: var(--cursor-hover);
}

.apply-btn {
  filter: grayscale(1);
  transition: filter .25s ease, box-shadow .35s, border-color .35s, background .35s, transform .25s ease;
}

.submit-btn {
  border-color: rgba(120,185,255,0.7);
  background:
    linear-gradient(135deg,
      rgba(90,150,255,0.94) 0%,
      rgba(65,125,245,0.94) 48%,
      rgba(40,90,200,0.96) 100%),
    url("forged-steel.jpg");
  background-size: 135% 135%, cover;
  background-position:center;
  background-blend-mode: screen;
  box-shadow:0 10px 24px rgba(0,0,0,0.36), 0 0 22px rgba(120,185,255,0.35), inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -1px 0 rgba(0,0,0,0.35);
  animation: ctaPulse 2.6s ease-in-out infinite;
  color:#f9fbff;
  width:auto;
  padding:14px 18px;
  position:relative;
  overflow:hidden;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease, transform .18s ease;
  font-weight:700;
}

.submit-btn:hover {
  border-color: rgba(150,205,255,0.85);
  background:
    linear-gradient(135deg,
      rgba(120,185,255,0.98) 0%,
      rgba(95,165,245,0.97) 55%,
      rgba(60,115,215,1) 100%),
    url("forged-steel.jpg");
  background-size: 145% 145%, cover;
  background-position:center;
  background-blend-mode: screen;
  box-shadow:0 12px 28px rgba(0,0,0,0.42), 0 0 30px rgba(150,205,255,0.5);
  color:#fff9f0;
  transform: translateY(-1px) scale(1.02);
}

.submit-btn:active {
  transform: translateY(1px) scale(0.98);
}

.submit-btn::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, rgba(243,216,138,0.08) 0%, rgba(243,216,138,0.16) 40%, rgba(243,216,138,0.04) 80%);
  mix-blend-mode:screen;
  opacity:0.18;
  transform: translateX(-35%);
  transition: opacity .6s ease, transform 1.2s ease;
  background-size:200% 200%;
  animation: buttonShimmer 7s linear infinite, buttonPulse 8s ease-in-out infinite;
  pointer-events:none;
}

.submit-btn:hover::after {
  opacity:0.45;
  transform: translateX(8%);
}

.apply-btn:hover,
.apply-btn:active {
  filter: grayscale(0);
  transform: translateY(-1px);
}

/* Apply Button Position */
.hero > .apply-btn {
  margin-top: 0;
  position:relative;
  z-index:20;
}

/* MODAL */
.modal {
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter:blur(10px);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:100;
  padding:24px 16px;
  opacity:0;
  transform: scale(0.985);
  transition: opacity .4s ease, transform .45s ease;
}

.modal.visible {
  opacity:1;
  transform: scale(1);
}

.modal.visible .modal-content {
  opacity:1;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 22px 44px rgba(0,0,0,0.6));
}

.modal-content {
  position:relative;
  width:90vw;
  max-width:680px;
  max-height:80vh;
  min-height:80vh;
  height:80vh;
  padding:28px 48px 48px 36px;
  border-radius:10px;
  background:
    linear-gradient(rgba(50,90,150,.25),rgba(20,40,85,.22)),
    url("forged-steel.jpg") center/cover no-repeat,
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.025), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 2px, transparent 2px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(25deg, rgba(255,255,255,0.01) 0, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 3px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.02), transparent 55%);
  border:1px solid rgba(120,185,255,0.55);
  box-shadow:
    0 20px 46px rgba(0,0,0,0.63),
    0 0 32px rgba(120,185,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -12px 24px rgba(0,0,0,0.35),
    inset -1px 0 0 rgba(214,177,101,0.38),
    inset 1px 0 0 rgba(214,177,101,0.12);
  scroll-behavior:smooth;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition: padding .24s ease;
  opacity:0;
  transform: translateY(22px) scale(0.97);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.55));
}

.modal-content.animating-in {
  animation: modalPop .65s cubic-bezier(0.16, 0.8, 0.3, 1) forwards;
}

.modal-content.animating-out {
  animation: modalFadeOut .3s ease forwards;
}

.modal-scroll {
  flex:1;
  min-height:0;
  overflow-y:auto;
  padding-right:4px;
  margin-right:-2px;
  padding-bottom:24px;
}

.modal-identity,
.modal-logo-wrapper,
.modal-brand,
.modal-subtitle,
.modal-identity-divider,
.modal-divider,
.modal-content h2 {
  transition: all .22s ease;
}

.modal-content.modal-compact {
  padding:28px 48px 48px 36px;
}

.modal-content.modal-compact .modal-identity {
  gap:2px;
  margin-bottom:2px;
}

.modal-content.modal-compact .modal-logo-wrapper {
  width:58px;
  margin:4px auto 0;
}

.modal-content.modal-compact .modal-logo-wrapper::after,
.modal-content.modal-compact .modal-identity::before {
  opacity:0;
}

.modal-content.modal-compact .modal-brand,
.modal-content.modal-compact .modal-subtitle,
.modal-content.modal-compact .modal-identity-divider,
.modal-content.modal-compact h2,
.modal-content.modal-compact .modal-divider {
  opacity:0;
  max-height:0;
  margin:0;
  padding:0;
  transform: translateY(-12px);
  visibility:hidden;
}

/* MODAL LOGO */
.modal-identity {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  padding:0;
  position:relative;
}

.modal-identity::after {
  display:none;
}

.modal-identity::before {
  content:none;
}

.modal-logo-wrapper {
  width:108px;
  margin:12px auto 0;
  position:relative;
  display:block;
  z-index:1;
}

.modal-logo-wrapper img {
  width:100%;
  filter:brightness(0.92) saturate(0.98);
  position:relative;
  z-index:1;
  transition: filter .35s ease, transform .35s ease;
}

.modal-logo-wrapper::after {
  content:"";
  position:absolute;
  inset:-16px;
  border-radius:50%;
  background: radial-gradient(circle at 50% 50%,
      rgba(200,165,95,0.28) 0%,
      rgba(175,140,80,0.22) 32%,
      rgba(120,90,50,0.12) 60%,
      rgba(70,45,25,0.06) 78%,
      rgba(0,0,0,0) 100%);
  filter:blur(8px);
  opacity:0.12;
  transform:scale(0.98);
  transition: opacity .35s ease, transform .35s ease;
}

.modal-logo-wrapper:hover::after {
  opacity:0.18;
  transform:scale(1);
}

.modal-logo-wrapper:hover img {
  filter:brightness(0.98) saturate(1.02);
  transform:scale(1.003);
}

.modal-brand {
  font-family:"Cinzel", serif;
  text-align:center;
  color:var(--alliance-gold-bright);
  font-size:18px;
  font-weight:600;
  letter-spacing:0.26em;
  text-transform:uppercase;
  margin:0 auto;
  line-height:1.35;
  position:relative;
  z-index:1;
}

.modal-identity-divider {
  display:block;
  width:84px;
  height:1px;
  margin:0 auto 4px;
  background: linear-gradient(90deg,
    rgba(243,216,138,0) 0%,
    rgba(243,216,138,0.65) 50%,
    rgba(243,216,138,0) 100%);
  box-shadow:0 0 6px rgba(243,216,138,0.25);
  opacity:0.9;
  position:relative;
  z-index:1;
}

/* TEXT */
.modal-content h2 {
  font-family:"Cinzel", serif;
  text-align:center;
  color:var(--alliance-gold-bright);
  font-size:18px;
  letter-spacing:0.26em;
  text-transform:uppercase;
  font-weight:600;
  margin-top:10px;
  margin-bottom:10px;
  line-height:1.35;
}

.modal-divider {
  display:block;
  width:120px;
  height:1px;
  margin:0 auto 8px;
  background: linear-gradient(90deg,
    rgba(243,216,138,0) 0%,
    rgba(243,216,138,0.65) 50%,
    rgba(243,216,138,0) 100%);
  filter: drop-shadow(0 0 6px rgba(243,216,138,0.4));
}

@media (max-width: 720px) {
  .modal-content {
    height:auto;
    min-height:90vh;
    max-height:90vh;
  }
}

@media (max-width: 640px) {
  .hero {
    padding:28px 18px 18px;
  }

  .hero-layout {
    width:100%;
    padding:0 8px;
    gap:22px;
  }

  .logo-wrapper {
    max-width:82vw;
    margin:0 auto;
  }

  .modal-content {
    width:96vw;
    max-width:96vw;
    padding-left:20px;
    padding-right:20px;
    overflow-x:hidden;
  }

  .modal-scroll {
    padding-right:0;
    margin-right:-4px;
    scrollbar-width: none;
  }
  .modal-scroll::-webkit-scrollbar {
    display: none;
  }

  .modal-content {
    padding-left:20px;
    padding-right:20px;
  }

  .modal-content h2 {
    font-size:16px;
    letter-spacing:0.18em;
    line-height:1.2;
  }

  .form-steps {
    padding-right:0;
  }

  .form-steps-nav {
    gap:8px;
  }

  .step-dot {
    padding:8px 8px;
    font-size:11px;
    letter-spacing:0.05em;
  }
}

.modal-subtitle {
  text-align:center;
  color:var(--alliance-gold-bright);
  font-family:"Cinzel", serif;
  margin:2px auto 10px;
  font-size:12px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  font-weight:600;
  line-height:1.5;
}

.modal-intro {
  text-align:center;
  color:rgba(240,244,255,0.78);
  font-size:14px;
  line-height:1.55;
  margin:12px auto 22px;
  max-width:520px;
}

.modal-section-divider {
  display:block;
  width:140px;
  height:1px;
  margin:14px auto 18px;
  background: linear-gradient(90deg,
    rgba(243,216,138,0) 0%,
    rgba(243,216,138,0.28) 50%,
    rgba(243,216,138,0) 100%);
  opacity:0.85;
}

.recruitment-status {
  text-align:center;
  margin:10px auto 24px;
}

.recruitment-primary {
  font-family:"Cinzel", serif;
  font-size:15px;
  color:rgba(226,201,140,0.82);
  letter-spacing:0.25px;
  margin-bottom:6px;
}

.recruitment-specs {
  margin:2px auto 6px;
}

.recruitment-specs-title {
  font-family:"Cinzel", serif;
  font-size:12px;
  letter-spacing:0.35px;
  color:rgba(226,201,140,0.62);
  text-transform:uppercase;
}

.recruitment-specs-list {
  list-style:none;
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  color:#f4e9d2;
  font-size:12px;
  letter-spacing:0.15px;
}

.spec-badge {
  --spec-tone: rgba(214,177,101,0.24);
  --spec-glow: rgba(214,177,101,0.12);
  --spec-strong: rgba(214,177,101,0.65);
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:6px;
  align-items:center;
  padding:2px 10px 2px 2px;
  min-width:140px;
  max-width:140px;
  border-radius:8px;
  font-family:"Cinzel", serif;
  letter-spacing:0.2px;
  color:#f4e9d2;
  background:
    radial-gradient(120% 140% at 50% 14%, var(--spec-tone), rgba(0,0,0,0)),
    linear-gradient(135deg, rgba(18,28,46,0.92), rgba(12,20,34,0.88));
  border:1px solid var(--spec-strong);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    0 8px 16px rgba(0,0,0,0.28),
    0 0 16px var(--spec-glow);
  text-shadow:0 0 8px rgba(0,0,0,0.35);
  cursor: var(--cursor-hover);
  text-align:center;
}

.spec-badge .spec-icon {
  width:20px;
  height:20px;
  border-radius:6px;
  background-size: cover;
  background-position:center;
  background-repeat:no-repeat;
  border:1px solid var(--spec-strong, rgba(120,185,255,0.65));
  box-shadow:0 0 8px rgba(0,0,0,0.18), 0 0 8px var(--spec-strong, rgba(120,185,255,0.25));
}

.spec-badge.warrior { --spec-tone: rgba(199,156,110,0.28); --spec-glow: rgba(199,156,110,0.16); --spec-strong: rgba(199,156,110,0.8); }
.spec-badge.paladin { --spec-tone: rgba(245,140,186,0.28); --spec-glow: rgba(245,140,186,0.18); --spec-strong: rgba(245,140,186,0.78); }
.spec-badge.priest { --spec-tone: rgba(248,248,255,0.28); --spec-glow: rgba(248,248,255,0.14); --spec-strong: rgba(248,248,255,0.75); }
.spec-badge.druid { --spec-tone: rgba(255,125,10,0.28); --spec-glow: rgba(255,125,10,0.18); --spec-strong: rgba(255,125,10,0.8); }
.spec-badge.shaman { --spec-tone: rgba(0,112,222,0.26); --spec-glow: rgba(0,112,222,0.15); --spec-strong: rgba(0,112,222,0.78); }
.spec-badge.hunter { --spec-tone: rgba(171,212,115,0.28); --spec-glow: rgba(171,212,115,0.16); --spec-strong: rgba(171,212,115,0.78); }
.spec-badge.warlock { --spec-tone: rgba(135,136,238,0.28); --spec-glow: rgba(135,136,238,0.16); --spec-strong: rgba(135,136,238,0.78); }
.spec-badge.mage { --spec-tone: rgba(105,204,240,0.28); --spec-glow: rgba(105,204,240,0.16); --spec-strong: rgba(105,204,240,0.78); }
.spec-badge.rogue { --spec-tone: rgba(255,245,105,0.28); --spec-glow: rgba(255,245,105,0.16); --spec-strong: rgba(255,245,105,0.78); }
}

.spec-icon {
  width:18px;
  height:18px;
  border-radius:4px;
  background-size: cover;
  background-position:center;
  background-repeat:no-repeat;
  border:1px solid var(--spec-strong, rgba(120,185,255,0.65));
  box-shadow:0 0 8px rgba(0,0,0,0.18), 0 0 8px var(--spec-strong, rgba(120,185,255,0.25));
  flex-shrink:0;
}

/* class badge icons */
.class-icon {
  width:32px;
  height:32px;
  border-radius:6px;
  background-size: contain;
  background-position:center;
  background-repeat:no-repeat;
  box-shadow:0 0 0 1px rgba(0,0,0,0.32), 0 0 12px rgba(0,0,0,0.28);
  flex-shrink:0;
}

.class-badge:hover .class-icon {
  box-shadow:0 0 0 1px rgba(0,0,0,0.32), 0 0 14px var(--class-tone-strong);
}

.recruitment-secondary {
  font-family:"Inter", sans-serif;
  font-size:12px;
  color:rgba(230,230,230,0.56);
  margin-top:12px;
}

.recruitment-empty {
  font-size:12px;
  color:rgba(226,201,140,0.7);
  padding:8px 12px;
  border-radius:10px;
  background: rgba(20,30,50,0.65);
  border:1px dashed rgba(214,177,101,0.35);
  display:inline-block;
}

.recruitment-list {
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin:4px auto 10px;
}

@media (min-width: 1024px) {
  .recruiting-strip {
    width:min(96vw, 1100px);
  }
  .recruitment-list {
    flex-wrap:nowrap;
  }
}

.class-icon {
  width:28px;
  height:28px;
  border-radius:6px;
  background-size: cover;
  background-position:center;
  background-repeat:no-repeat;
  box-shadow:
    0 0 0 1px var(--class-tone-rgba, rgba(120,185,255,0.5)),
    0 0 10px rgba(0,0,0,0.24);
  flex-shrink:0;
}

.class-badge {
  --class-tone-rgba: rgba(214,177,101,0.52);
  --class-tone-soft: rgba(214,177,101,0.16);
  --class-tone-strong: rgba(214,177,101,0.75);
  --class-icon: none;
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:6px;
  align-items:center;
  padding:2px 10px 2px 2px;
  min-width:140px;
  max-width:140px;
  border-radius:6px;
  font-family:"Cinzel", serif;
  font-size:12px;
  letter-spacing:0.2px;
  color:#f4e9d2;
  background:
    radial-gradient(120% 140% at 50% 22%, var(--class-tone-soft), rgba(0,0,0,0)),
    linear-gradient(135deg, rgba(16,26,44,0.94), rgba(10,18,32,0.9));
  border:1px solid var(--class-tone-rgba);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.34),
    0 8px 16px rgba(0,0,0,0.28),
    0 0 14px var(--class-tone-soft);
  backdrop-filter: blur(3px);
  text-shadow:0 0 8px rgba(0,0,0,0.4);
  transition: transform .15s ease, box-shadow .18s ease, border-color .18s ease, background .2s ease;
  text-align:center;
}

.class-swatch { /* retained for compatibility */
  width:18px;
  height:18px;
  border-radius:50%;
  display:inline-block;
  background-color: rgba(0,0,0,0.35);
  background-image: var(--class-icon);
  background-repeat:no-repeat;
  background-size: 88%;
  background-position:center;
  box-shadow:0 0 0 1px rgba(0,0,0,0.28), 0 0 10px var(--class-tone-soft);
  border:1px solid rgba(0,0,0,0.3);
}

.class-badge:hover {
  background:
    radial-gradient(120% 140% at 50% 18%, var(--class-tone-strong), rgba(0,0,0,0)),
    linear-gradient(135deg, rgba(24,38,62,0.98), rgba(14,24,40,0.96));
  border-color: var(--class-tone-strong);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.34),
    0 12px 20px rgba(0,0,0,0.32),
    0 0 18px var(--class-tone-strong);
  transform: translateY(-1px);
  cursor: var(--cursor-hover);
}

.spec-badge:hover {
  background:
    radial-gradient(120% 140% at 50% 14%, var(--spec-strong, rgba(214,177,101,0.8)), rgba(0,0,0,0)),
    linear-gradient(135deg, rgba(22,36,58,0.94), rgba(14,24,40,0.9));
  border-color: var(--spec-strong, rgba(214,177,101,0.65));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.32),
    0 12px 20px rgba(0,0,0,0.32),
    0 0 18px var(--spec-glow, rgba(214,177,101,0.28));
  transform: translateY(-1px);
  cursor: var(--cursor-hover);
}

.class-badge.warrior { --class-tone-rgba: rgba(199,156,110,0.65); --class-tone-soft: rgba(199,156,110,0.24); --class-tone-strong: rgba(199,156,110,0.85); --class-icon: url("wow-icons/Warrior-Icon.png"); }
.class-badge.paladin { --class-tone-rgba: rgba(245,140,186,0.65); --class-tone-soft: rgba(245,140,186,0.22); --class-tone-strong: rgba(245,140,186,0.85); --class-icon: url("wow-icons/Paladin-Icon.png"); }
.class-badge.priest { --class-tone-rgba: rgba(248,248,255,0.65); --class-tone-soft: rgba(248,248,255,0.18); --class-tone-strong: rgba(248,248,255,0.85); --class-icon: url("wow-icons/Priest-Icon.png"); }
.class-badge.druid { --class-tone-rgba: rgba(255,125,10,0.65); --class-tone-soft: rgba(255,125,10,0.2); --class-tone-strong: rgba(255,125,10,0.85); --class-icon: url("wow-icons/Druid-Icon.png"); }
.class-badge.shaman { --class-tone-rgba: rgba(0,112,222,0.6); --class-tone-soft: rgba(0,112,222,0.2); --class-tone-strong: rgba(0,112,222,0.8); --class-icon: url("wow-icons/Shaman-Icon.png"); }
.class-badge.hunter { --class-tone-rgba: rgba(171,212,115,0.65); --class-tone-soft: rgba(171,212,115,0.22); --class-tone-strong: rgba(171,212,115,0.82); --class-icon: url("wow-icons/Hunter-Icon.png"); }
.class-badge.warlock { --class-tone-rgba: rgba(135,136,238,0.65); --class-tone-soft: rgba(135,136,238,0.2); --class-tone-strong: rgba(135,136,238,0.85); --class-icon: url("wow-icons/Warlock-Icon.png"); }
.class-badge.mage { --class-tone-rgba: rgba(105,204,240,0.65); --class-tone-soft: rgba(105,204,240,0.2); --class-tone-strong: rgba(105,204,240,0.85); --class-icon: url("wow-icons/Mage-Icon.png"); }
.class-badge.rogue { --class-tone-rgba: rgba(255,245,105,0.65); --class-tone-soft: rgba(255,245,105,0.24); --class-tone-strong: rgba(255,245,105,0.85); --class-icon: url("wow-icons/Rogue-Icon.png"); }
.class-badge.death-knight { --class-tone-rgba: rgba(196,31,59,0.65); --class-tone-soft: rgba(196,31,59,0.22); --class-tone-strong: rgba(196,31,59,0.85); }
.class-badge.demon-hunter { --class-tone-rgba: rgba(163,48,201,0.65); --class-tone-soft: rgba(163,48,201,0.22); --class-tone-strong: rgba(163,48,201,0.85); }
.class-badge.monk { --class-tone-rgba: rgba(0,255,150,0.65); --class-tone-soft: rgba(0,255,150,0.22); --class-tone-strong: rgba(0,255,150,0.85); }
.spec-placeholder {
  opacity:0.6;
  font-style:italic;
}

.modal-content form {
  max-width:540px;
  margin:30px auto 0;
  text-align:left;
}

label {
  display:block;
  margin-top:0;
  margin-bottom:6px;
  font-size:13px;
  color:rgba(230,230,230,0.7);
  letter-spacing:0.03em;
}


.form-section {
  margin-top:40px;
  padding-top:18px;
  border-top:none;
  position:relative;
}

.form-section:first-of-type {
  margin-top:28px;
  padding-top:10px;
  border-top:none;
}

.form-section:nth-of-type(3),
.form-section:nth-of-type(4) {
  margin-top:44px;
}

.form-section-title {
  font-family:"Cinzel", serif;
  color:#e6cd86;
  text-transform:uppercase;
  letter-spacing:0.7px;
  font-size:14px;
  margin-bottom:12px;
}

.role-class .form-section-title {
  margin-bottom:8px;
  padding-left:2px;
}

.role-class-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

@media (min-width: 768px) {
  .role-class-grid {
    grid-template-columns:1fr 1fr;
    gap:8px;
    align-items:start;
  }
}


.form-section > label:first-of-type {
  margin-top:10px;
}

.form-section:last-of-type {
  margin-top:48px;
}

.form-section:last-of-type textarea:last-of-type {
  margin-bottom:12px;
}

.form-section::before {
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.045) 12%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.045) 88%,
    rgba(255,255,255,0) 100%);
  background-size:200% 100%;
  animation: dividerSweep 14s linear infinite;
  pointer-events:none;
}

/* STEPS */
.form-steps-nav {
  display:flex;
  gap:12px;
  margin:6px auto 18px;
  justify-content:space-between;
  align-items:stretch;
  flex-wrap:nowrap;
  width:100%;
}

.step-dot {
  flex:1;
  min-width:0;
  padding:10px 12px;
  border:1px solid rgba(120,185,255,0.28);
  border-radius:10px;
  background: linear-gradient(135deg, rgba(20,34,58,0.82), rgba(14,26,44,0.82));
  color:#dfe8ff;
  font-size:12px;
  letter-spacing:0.4px;
  text-transform:uppercase;
  text-align:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 14px rgba(0,0,0,0.28);
  transition: border-color .2s ease, box-shadow .2s ease, transform .18s ease, color .2s ease;
}

.form-alert {
  display:none;
  margin:6px 0 10px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(243,216,138,0.55);
  background:
    linear-gradient(135deg, rgba(42,24,10,0.82), rgba(24,14,8,0.85)),
    radial-gradient(120% 90% at 12% 12%, rgba(243,216,138,0.22), transparent 48%);
  color:#ffdfc9;
  box-shadow:
    0 12px 22px rgba(0,0,0,0.35),
    0 0 18px rgba(243,216,138,0.22),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.25);
  font-size:13px;
  line-height:1.5;
  position:relative;
  overflow:hidden;
}

.form-alert strong {
  display:block;
  margin-bottom:6px;
  color:#ffe8c6;
  font-family:"Cinzel", serif;
  letter-spacing:0.05em;
  text-transform:uppercase;
  font-size:12px;
}

.form-alert strong::before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background: linear-gradient(180deg, rgba(243,216,138,0.8), rgba(214,177,101,0.45));
  box-shadow:0 0 14px rgba(243,216,138,0.35);
}

.form-alert ul {
  margin:0;
  padding-left:18px;
}

.form-alert li {
  margin:2px 0;
  list-style:none;
  position:relative;
  padding-left:12px;
}

.form-alert.visible {
  display:block;
}

.form-alert li::before {
  content:"◆";
  position:absolute;
  left:-2px;
  color:rgba(243,216,138,0.95);
  font-size:9px;
  text-shadow:0 0 6px rgba(243,216,138,0.35);
}

.step-dot.active {
  border-color: rgba(243,216,138,0.65);
  color: var(--alliance-gold-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 22px rgba(0,0,0,0.34);
  transform: translateY(-1px);
}

.step-dot.done {
  border-color: rgba(120,185,255,0.6);
  color:#b7dcff;
}

.form-steps {
  position:relative;
  padding-right:18px;
}

.form-step {
  display:none;
  position:relative;
  animation: fadeSlide .35s ease;
}

.form-step.active {
  display:block;
}

.form-step::after {
  content:"";
  position:absolute;
  top:8px;
  bottom:8px;
  right:-12px;
  width:1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  opacity:0.55;
  pointer-events:none;
}

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

/* FORM FIELDS */
.field {
  position:relative;
  margin:16px 0 18px;
}

.field input,
.field textarea {
  width:100%;
  margin:0;
  padding:14px 12px 10px;
  background:#0d1726;
  border:1px solid #1e3a65;
  border-radius:8px;
  color:#f6f8ff;
  font-size:14px;
  font-family:"Inter", sans-serif;
  letter-spacing:0.02em;
  line-height:1.45;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 20px rgba(0,0,0,0.28);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .15s ease;
}

.field input {
  min-height:54px;
}

.field textarea {
  min-height:110px;
  resize:vertical;
  padding-top:18px;
}

.field label {
  position:absolute;
  left:12px;
  top:12px;
  font-size:13px;
  color:rgba(230,230,230,0.7);
  letter-spacing:0.03em;
  pointer-events:none;
  transition: transform .18s ease, color .2s ease, font-size .18s ease;
}


.field input:focus + label,
.field textarea:focus + label,
.field.filled label,
.select-field.open label {
  transform: translateY(-14px) scale(0.9);
  color: var(--alliance-gold-bright);
}


.field input:focus,
.field textarea:focus {
  border-color:rgba(204,168,92,0.9);
  box-shadow:
    0 0 0 1px rgba(204,168,92,0.38),
    0 0 12px rgba(204,168,92,0.25),
    0 12px 22px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.04);
  outline:none;
}

.select-field {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
}


.select-toggle {
  width:100%;
  flex:none;
  min-width:0;
  text-align:left;
  padding:14px 12px 10px;
  background:#0d1726;
  border:1px solid #1e3a65;
  border-radius:8px;
  color:#f6f8ff;
  font-size:14px;
  letter-spacing:0.02em;
  transition: border-color .24s ease, box-shadow .24s ease, background .24s ease, color .2s ease;
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:54px;
}

.select-toggle::before {
  content:"";
  width:32px;
  height:32px;
  border-radius:8px;
  margin-right:8px;
  background-image: var(--selected-icon);
  background-size: contain;
  background-position:center;
  background-repeat:no-repeat;
  box-shadow:0 0 0 1px rgba(0,0,0,0.25);
  opacity:0;
  transform: translateY(1px);
  transition: opacity .2s ease, box-shadow .2s ease;
  flex-shrink:0;
}

.select-toggle.has-icon::before {
  opacity:1;
}


.select-field label {
  position:static;
  margin:0 0 0 2px;
  font-size:12px;
  letter-spacing:0.04em;
  transform:none !important;
  color:rgba(230,230,230,0.78);
  white-space:nowrap;
  transition: opacity .18s ease, transform .18s ease, margin .18s ease, max-height .18s ease;
  display:none;
}

.select-field.filled label {
  opacity:0;
  transform: translateY(-6px);
  margin:0;
  max-height:0;
  pointer-events:none;
}


.select-field:hover .select-toggle:not(:focus):not(:active) {
  border-color: rgba(214,177,101,0.65);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.28),
    0 0 0 1px rgba(214,177,101,0.18),
    0 0 8px rgba(214,177,101,0.16);
}

.select-field.highlight-pulse .select-toggle {
  animation: rolePulse 1.6s ease-in-out 2;
}

.select-options li {
  position:relative;
  padding-left:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.select-options li::before {
  content:"";
  display:inline-block;
  position:static;
  width:32px;
  height:32px;
  border-radius:8px;
  transform:none;
  opacity:0.9;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.25));
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
  background-image: var(--option-icon, radial-gradient(120% 120% at 50% 50%, rgba(230,230,230,0.45), rgba(160,160,160,0.18)));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.select-options li:hover::before {
  opacity:0.92;
  filter: drop-shadow(0 0 10px rgba(214,177,101,0.55));
  transform: scale(1.05);
}

.select-options li.warrior::before { background-image: url("wow-icons/Warrior-Icon.png"); }
.select-options li.paladin::before { background-image: url("wow-icons/Paladin-Icon.png"); }
.select-options li.priest::before { background-image: url("wow-icons/Priest-Icon.png"); }
.select-options li.druid::before { background-image: url("wow-icons/Druid-Icon.png"); }
.select-options li.shaman::before { background-image: url("wow-icons/Shaman-Icon.png"); }
.select-options li.hunter::before { background-image: url("wow-icons/Hunter-Icon.png"); }
.select-options li.warlock::before { background-image: url("wow-icons/Warlock-Icon.png"); }
.select-options li.mage::before { background-image: url("wow-icons/Mage-Icon.png"); }
.select-options li.rogue::before { background-image: url("wow-icons/Rogue-Icon.png"); }
.select-options li.role-dps::before { background: linear-gradient(135deg, #f3d88a, #c79c6e); }
.select-options li.role-tank::before { background: linear-gradient(135deg, #7cc7ff, #3b7bbf); }
.select-options li.role-healer::before { background: linear-gradient(135deg, #9ce2d5, #2fa88a); }

@keyframes rolePulse {
  0% { box-shadow: 0 0 0 0 rgba(214,177,101,0.28); }
  50% { box-shadow: 0 0 0 8px rgba(214,177,101,0.16); }
  100% { box-shadow: 0 0 0 0 rgba(214,177,101,0.28); }
}

.select-toggle::after {
  content:"▼";
  font-size:14px;
  color:rgba(243,216,138,0.95);
  font-weight:700;
}

.select-field.open .select-toggle,
.select-toggle:focus {
  border-color:rgba(204,168,92,0.9);
  box-shadow: 0 0 0 1px rgba(204,168,92,0.38), 0 0 10px rgba(204,168,92,0.22);
  outline:none;
}

.select-options {
  position:absolute;
  left:0;
  right:0;
  top:100%;
  margin-top:6px;
  background: linear-gradient(135deg, rgba(18,30,50,0.98), rgba(12,22,38,0.95));
  border:1px solid rgba(214,177,101,0.35);
  border-radius:10px;
  box-shadow:0 18px 38px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  padding:6px;
  list-style:none;
  max-height:220px;
  overflow-y:auto;
  opacity:0;
  transform: translateY(-4px);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  z-index:10;
}

.select-field.open .select-options {
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}
.select-options::-webkit-scrollbar {
  width:8px;
}

.select-options::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f3d88a, #c8a55c);
  border-radius:999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

.select-options::-webkit-scrollbar-track {
  background: rgba(12,20,38,0.8);
  border-radius:999px;
}


.select-options li {
  padding:10px 12px;
  border-radius:8px;
  color:#f4e9d2;
  cursor: var(--cursor-default);
  transition: background .16s ease, color .16s ease;
}

.select-options li[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(35,56,90,0.85), rgba(24,44,72,0.82));
  color: var(--alliance-gold-bright);
}

.select-options li:hover {
  background: rgba(243,216,138,0.12);
}

.field.valid input,
.field.valid textarea,
.field.valid .select-toggle {
  border-color:rgba(120,185,255,0.75);
}

.field.invalid input,
.field.invalid textarea,
.field.invalid .select-toggle {
  border-color:#d9796a;
  box-shadow: 0 0 0 1px rgba(217,121,106,0.28), 0 0 10px rgba(217,121,106,0.22);
}

.field.invalid label {
  color:#ffb8a1;
}

.field-error {
  font-size:11px;
  color:#ffb8a1;
  line-height:1.45;
  margin-top:6px;
  max-height:0;
  opacity:0;
  transform: translateY(-4px);
  transition: max-height .25s ease, opacity .25s ease, transform .25s ease;
}

.field-helper {
  font-size:12px;
  color:rgba(230,230,230,0.7);
  line-height:1.45;
  margin-top:6px;
}

.field-helper a {
  color: var(--alliance-gold-bright);
  text-decoration: underline;
}

.field.invalid .field-error {
  max-height:80px;
  opacity:1;
  transform: translateY(0);
}

.step-actions {
  display:flex;
  gap:12px;
  margin-top:16px;
  align-items:center;
}

.step-actions .step-btn,
.step-actions .submit-btn {
  flex:1 1 0;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  min-height:42px;
}

.step-actions .prev-step {
  flex:1 1 0;
}

.step-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  min-height:42px;
  border-radius:8px;
  border:1px solid rgba(214,177,101,0.55);
  background: linear-gradient(135deg, rgba(20,39,66,0.9), rgba(15,26,46,0.9));
  color:#eef2fb;
  font-family:"Cinzel", serif;
  letter-spacing:0.55px;
  text-transform:uppercase;
  box-shadow:0 8px 18px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .25s ease;
}

.step-btn:hover {
  transform: translateY(-1px);
  border-color:rgba(243,216,138,0.7);
  box-shadow:0 12px 22px rgba(0,0,0,0.36);
}

.step-btn.ghost {
  background: linear-gradient(135deg, rgba(18,30,52,0.75), rgba(12,20,38,0.7));
  border-color: rgba(120,185,255,0.38);
  color:#cde2ff;
}
.submit-btn.is-disabled,
.submit-btn:disabled {
  opacity:0.6;
  cursor:not-allowed;
  animation:none;
  box-shadow:0 6px 12px rgba(0,0,0,0.22);
}

.submit-btn.loading {
  pointer-events:none;
}

.submit-btn .btn-spinner {
  display:none;
  margin-left:10px;
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,0.35);
  border-top-color:#fff;
  animation: spin 0.85s linear infinite;
}

.submit-btn.loading .btn-spinner {
  display:inline-block;
}

.submit-btn.loading .btn-label {
  opacity:0.35;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* FORM FIELDS */
input, textarea, select {
  width:100%;
  background:#0d1726;
  border:1px solid #1e3a65;
  padding:10px;
  color:#f6f8ff;
  caret-color:#c7d8ff;
  border-radius:6px;
  margin-top:10px;
  margin-bottom:24px;
  transition: border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

select {
  padding-right:38px;
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  background-color:#0d1726;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23f9e4a8'><path d='M5.8 7.2 10 11.4l4.2-4.2L16 8l-6 6-6-6z'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
}

select:hover {
  box-shadow:0 0 0 1px rgba(243,216,138,0.22);
}

textarea { height:auto; }
textarea {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(0,0,0,0.25);
}

input:focus, select:focus, textarea:focus {
  border-color:rgba(204,168,92,0.9);
  box-shadow:
    0 0 0 1px rgba(204,168,92,0.4),
    0 0 8px rgba(204,168,92,0.25),
    0 8px 18px rgba(0,0,0,0.12);
}

input:hover, select:hover, textarea:hover {
  border-color: rgba(214,177,101,0.5);
  box-shadow:0 0 0 1px rgba(214,177,101,0.18);
}

input::placeholder,
textarea::placeholder {
  color:rgba(220,230,255,0.82);
}

textarea {
  line-height:1.6;
}

/* Remove number spinners for age input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* SUBMIT BUTTON */
.submit-btn {
  display:block;
  margin:16px auto 2px;
}

.modal-footnote {
  text-align:center;
  color:rgba(230,230,230,0.45);
  font-size:11px;
  letter-spacing:0.3px;
  margin-top:12px;
}

/* CLOSE BUTTON */
.close {
  cursor:pointer;
  font-size:18px;
  line-height:1;
  color: rgba(120,185,255,0.65);
  position:absolute;
  right:10px;
  top:10px;
  background: none;
  border:none;
  padding:0;
  box-shadow:none;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.55),
    0 -1px 0 rgba(180,180,200,0.2),
    0 0 6px rgba(0,0,0,0.5);
  transition: color .18s ease, text-shadow .18s ease, transform .18s ease;
}

.close:hover {
  color: rgba(150,205,255,0.9);
  text-shadow:
    0 1px 0 rgba(0,0,0,0.55),
    0 -1px 0 rgba(150,205,255,0.35),
    0 0 9px rgba(120,185,255,0.4);
  transform: scale(1.02);
}

.audio-toggle {
  position:absolute;
  bottom:6px;
  left:50%;
  background: rgba(12,20,36,0.82);
  border:1px solid rgba(214,177,101,0.35);
  width:auto;
  height:auto;
  padding:8px 10px;
  display:inline-flex;
  align-items:flex-end;
  justify-content:center;
  gap:5px;
  cursor: var(--cursor-default);
  box-shadow:0 8px 16px rgba(0,0,0,0.35), 0 0 16px rgba(120,185,255,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateX(-50%);
  transition: opacity .2s ease, transform .18s ease, filter .2s ease, box-shadow .18s ease;
  border-radius:14px;
  backdrop-filter: blur(2px);
  z-index:3;
}

.audio-toggle:hover {
  opacity:0.9;
  transform: translateX(-50%) translateY(-1px) scale(1.03);
  filter: drop-shadow(0 0 10px rgba(243,216,138,0.3));
  box-shadow:0 10px 20px rgba(0,0,0,0.42), 0 0 18px rgba(120,185,255,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

.audio-wave {
  --bar-width: 2px;
  --bar-height: 12px;
  --min-scale: 0.38;
  --peak-1: 1.45;
  --peak-2: 0.7;
  --peak-3: 1.1;
  width: var(--bar-width);
  height: var(--bar-height);
  background: linear-gradient(180deg, rgba(243,216,138,0.95), rgba(123,193,255,0.95));
  border-radius:8px;
  box-shadow:0 0 10px rgba(243,216,138,0.32), 0 0 6px rgba(123,193,255,0.35);
  animation: audioEqualize 1.15s ease-in-out infinite;
  transform-origin:center bottom;
  opacity:0.9;
}

.audio-wave:nth-child(1) {
  --bar-height: 9px;
  --peak-1: 1.65;
  --peak-2: 0.6;
  --peak-3: 1.3;
  animation-duration: 1s;
  animation-delay: -0.18s;
}

.audio-wave:nth-child(2) {
  --bar-height: 13px;
  --peak-1: 1.9;
  --peak-2: 0.8;
  --peak-3: 1.6;
  animation-duration: 1.22s;
  animation-delay: -0.06s;
}

.audio-wave:nth-child(3) {
  --bar-height: 16px;
  --peak-1: 1.6;
  --peak-2: 0.9;
  --peak-3: 1.4;
  animation-duration: 1.08s;
  animation-delay: -0.14s;
}

.audio-wave:nth-child(4) {
  --bar-height: 13px;
  --peak-1: 1.75;
  --peak-2: 0.65;
  --peak-3: 1.5;
  animation-duration: 1.18s;
  animation-delay: -0.1s;
}

.audio-wave:nth-child(5) {
  --bar-height: 10px;
  --peak-1: 1.4;
  --peak-2: 0.7;
  --peak-3: 1.25;
  animation-duration: 1.05s;
  animation-delay: -0.22s;
}

.audio-toggle.muted .audio-wave {
  opacity:0.35;
  animation:none;
  transform: scaleY(0.3);
  box-shadow:none;
  background: linear-gradient(180deg, #6b737f, #2f3642);
}

@keyframes audioEqualize {
  0%, 100% { transform: translateY(0) scaleY(var(--min-scale)); opacity:0.6; }
  22% { transform: translateY(0) scaleY(var(--peak-1)); opacity:0.95; }
  48% { transform: translateY(0) scaleY(var(--peak-2)); opacity:0.75; }
  72% { transform: translateY(0) scaleY(var(--peak-3)); opacity:1; }
}

/* SCROLLBAR */
.modal-scroll::-webkit-scrollbar { width:6px; }
.modal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(#e9d392,#c09a58);
  border-radius:10px;
}
.modal-scroll::-webkit-scrollbar-track {
  background:rgba(8,16,32,.7);
  border-radius:10px;
}

@keyframes modalPop {
  0% { opacity:0; transform: translateY(26px) scale(0.96); filter: drop-shadow(0 12px 22px rgba(0,0,0,0.45)); }
  45% { opacity:1; transform: translateY(-4px) scale(1.01); filter: drop-shadow(0 18px 38px rgba(0,0,0,0.55)); }
  100% { opacity:1; transform: translateY(0) scale(1); filter: drop-shadow(0 22px 44px rgba(0,0,0,0.6)); }
}

@keyframes modalFadeOut {
  from { opacity:1; transform: translateY(0) scale(1); }
  to { opacity:0; transform: translateY(10px) scale(0.98); }
}

.success-overlay {
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(120,185,255,0.12), rgba(0,0,0,0.75)),
    linear-gradient(180deg, rgba(4,8,16,0.85), rgba(6,12,22,0.9));
  backdrop-filter: blur(6px);
  z-index: 999;
  padding:24px;
}

.success-overlay.visible {
  display:flex;
}

.success-card {
  max-width:480px;
  width:100%;
  text-align:center;
  background:
    linear-gradient(145deg, var(--success-bg-1, rgba(16,28,52,0.92)), var(--success-bg-2, rgba(12,20,36,0.9))),
    radial-gradient(120% 120% at 50% 20%, var(--success-glow, rgba(243,216,138,0.1)), transparent 55%);
  border:1px solid var(--success-border, rgba(120,185,255,0.55));
  box-shadow:
    0 22px 44px rgba(0,0,0,0.6),
    0 0 28px var(--success-border, rgba(120,185,255,0.28)),
    inset 0 1px 0 rgba(255,255,255,0.07);
  border-radius:14px;
  padding:28px 26px 24px;
  color:var(--success-text, #e8edf9);
}

.success-icon {
  width:144px;
  height:144px;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
}

.success-icon img {
  width:108px;
  height:108px;
  object-fit:contain;
  filter: drop-shadow(0 0 12px var(--success-icon-glow, rgba(243,216,138,0.3)));
}

.success-kicker {
  font-family:"Cinzel", serif;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--alliance-gold-bright);
  font-size:11px;
  margin-bottom:6px;
}

.success-name {
  font-family:"Cinzel", serif;
  color:#f5ecda;
  font-size:16px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  margin-bottom:4px;
}

.success-title {
  font-family:"Cinzel", serif;
  color:#f5ecda;
  font-size:20px;
  letter-spacing:0.02em;
  margin-bottom:8px;
}

.success-body {
  font-family:"Inter", sans-serif;
  color:rgba(232,237,249,0.85);
  line-height:1.6;
  margin-bottom:18px;
}

.success-actions {
  display:flex;
  justify-content:center;
  gap:10px;
}

.success-actions .btn {
  min-width:160px;
  font-family:"Cinzel", serif;
  border-radius:10px;
  padding:12px 18px;
  background: linear-gradient(135deg, rgba(18,30,52,0.95), rgba(12,20,36,0.88));
  border:1px solid var(--success-border, rgba(120,185,255,0.6));
  color:var(--success-text, #f5ecda);
  text-shadow:0 0 8px rgba(0,0,0,0.35);
  box-shadow:
    0 12px 20px rgba(0,0,0,0.35),
    0 0 14px var(--success-border, rgba(120,185,255,0.28)),
    inset 0 1px 0 rgba(255,255,255,0.08);
  letter-spacing:0.04em;
  font-weight:600;
}

.success-actions .btn:hover {
  border-color: rgba(243,216,138,0.65);
  color: var(--alliance-gold-bright);
  box-shadow:
    0 14px 24px rgba(0,0,0,0.38),
    0 0 18px rgba(243,216,138,0.32),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
