/* ==========================================================================
   PWS Awards 2026 — Typography, 2K Hero Background, Bugfixes,
   Liquid Glass Questionnaire & Social Auth (VK / Google / Discord / TikTok)
   ========================================================================== */

:root {
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.085) 0%, rgba(166, 200, 255, 0.032) 48%, rgba(255, 255, 255, 0.052) 100%);
  --glass-bg-elevated: linear-gradient(150deg, rgba(255, 255, 255, 0.11) 0%, rgba(140, 180, 248, 0.045) 52%, rgba(255, 255, 255, 0.065) 100%);
  --glass-border: rgba(215, 232, 255, 0.18);
  --glass-border-strong: rgba(220, 236, 255, 0.34);
  --glass-shadow: 0 24px 70px rgba(2, 6, 16, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(130, 170, 235, 0.09);

  --accent-ice: #8fb4ec;
  --accent-ice-bright: #dceaff;
}

/* ==========================================================================
   1. GLOBAL TYPOGRAPHY UPGRADE (replaces default Arial & Georgia cleanly)
   ========================================================================== */
body {
  font-family: var(--font-sans);
  animation: pwsPageFade 0.6s var(--ease-out-expo) backwards;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes pwsPageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.eyebrow,
.brand-small,
.brand-small:after,
header nav a,
#language,
.button,
.hero-bottom,
.hero-description,
.filters button,
.cat-tag,
.detail-copy,
.pill,
.steps p,
.notice p,
.notice > a,
.stream-info p:not(.eyebrow),
.stream-info a,
.selection-stages,
.selection-help,
.selection-status,
.candidate-card p,
.winner-label,
.winner-edition,
.nominate-link,
.footer-bottom,
.footer-title > span,
.type-title small {
  font-family: var(--font-sans);
}

.type-title b {
  font-family: var(--font-sans);
  font-weight: 800;
}

h2,
.hero-deck,
.type-title em,
.intro p:not(.eyebrow),
.cat-name,
.plus,
.steps article > span,
.steps h3,
.notice h3,
.stream-info h3,
.candidate-mark,
.candidate-card h4,
.winner-empty,
.winner-caption,
.king-nomination .num,
.king-seal-crown,
.king-seal strong,
.king-card .winner-caption {
  font-family: var(--font-serif);
}

/* ==========================================================================
   2. HEADER, NAVIGATION & TOP-RIGHT AUTH + LANGUAGE CONTROLS
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  transition: background-color 0.45s var(--ease-out-expo),
              backdrop-filter 0.45s var(--ease-out-expo),
              border-color 0.45s var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}

header.is-scrolled {
  background: rgba(7, 10, 18, 0.78);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border-bottom-color: rgba(180, 206, 248, 0.14);
}

.brand {
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}
.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.brand:active {
  transform: translateY(0) scale(0.985);
}

header nav a {
  position: relative;
  padding: 6px 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #cfd8ea;
  transition: color 0.3s var(--ease-out-expo);
}
header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-ice-bright), transparent);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.38s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo);
}
header nav a:hover,
header nav a:focus-visible {
  color: #ffffff;
}
header nav a:hover::after,
header nav a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Liquid glass auth trigger & user pill */
.auth-trigger {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(196, 218, 255, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(120, 162, 232, 0.08));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 6px 20px rgba(4, 8, 20, 0.35);
  color: #edf4ff;
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.3px;
  transition: border-color 0.32s var(--ease-out-expo),
              background 0.32s var(--ease-out-expo),
              transform 0.25s var(--ease-out-expo),
              box-shadow 0.32s var(--ease-out-expo);
}
.auth-trigger:hover {
  border-color: rgba(220, 236, 255, 0.56);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(130, 174, 246, 0.18));
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 26px rgba(5, 11, 28, 0.5);
}
.auth-trigger:active {
  transform: translateY(1px) scale(0.96);
}
.auth-trigger svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.auth-trigger.is-authed {
  padding: 6px 14px 6px 8px;
  border-color: rgba(152, 214, 194, 0.38);
  background: linear-gradient(145deg, rgba(32, 62, 74, 0.55), rgba(14, 24, 42, 0.72));
}
.auth-avatar-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.auth-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Auth account popover */
.auth-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--glass-border-strong);
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  box-shadow: var(--glass-shadow);
  z-index: 40;
  transform-origin: top right;
  animation: pwsPopIn 0.28s var(--ease-out-expo) backwards;
}
.auth-menu[hidden] {
  display: none;
}
.auth-menu-head {
  padding: 4px 6px 12px;
  border-bottom: 1px solid rgba(200, 220, 255, 0.12);
  margin-bottom: 10px;
}
.auth-menu-provider {
  font: 600 10px/1.4 var(--font-sans);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #93b7ee;
}
.auth-menu-handle {
  font: 600 14px/1.4 var(--font-sans);
  color: #f2f7ff;
  margin-top: 2px;
  word-break: break-word;
}
.auth-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-menu-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe7ff;
  font: 500 12.5px/1.2 var(--font-sans);
  transition: background 0.25s var(--ease-out-expo), border-color 0.25s var(--ease-out-expo), color 0.25s;
}
.auth-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 222, 255, 0.22);
  color: #ffffff;
}
.auth-menu-btn.is-danger:hover {
  background: rgba(220, 68, 92, 0.18);
  border-color: rgba(242, 114, 138, 0.35);
  color: #ffd7df;
}

#language {
  position: relative;
  overflow: hidden;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(186, 210, 250, 0.22);
  background: rgba(14, 20, 36, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #dde7fa;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  transition: border-color 0.32s var(--ease-out-expo),
              background-color 0.32s var(--ease-out-expo),
              color 0.32s var(--ease-out-expo),
              transform 0.24s var(--ease-out-expo),
              box-shadow 0.32s var(--ease-out-expo);
}
#language:hover {
  border-color: rgba(214, 232, 255, 0.56);
  background: rgba(30, 46, 82, 0.65);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(7, 12, 24, 0.45);
}
#language:active {
  transform: translateY(1px) scale(0.95);
}

/* ==========================================================================
   3. HERO SECTION — CRISP 2K BACKGROUND & FIXED ENTRANCE ANIMATIONS
   ========================================================================== */
.hero {
  background: #070a12;
  overflow: hidden;
}

.hero-art {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.64) 0%, rgba(7, 10, 18, 0.18) 32%, rgba(7, 10, 18, 0.52) 72%, #070a12 100%),
    linear-gradient(95deg, rgba(7, 10, 18, 0.82) 0%, rgba(7, 10, 18, 0.52) 38%, rgba(7, 10, 18, 0.12) 76%, rgba(7, 10, 18, 0.3) 100%),
    url('assets/hero-bg.jpg') center center / cover no-repeat;
  mask-image: linear-gradient(#000 0%, #000 74%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 0%, #000 74%, transparent 100%);
  transform-origin: center center;
  animation: pwsHeroDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 74% 28%, rgba(16, 84, 70, 0.14), transparent 58%),
              radial-gradient(ellipse at 20% 78%, rgba(7, 10, 18, 0.44), transparent 62%);
  pointer-events: none;
}

@keyframes pwsHeroDrift {
  0% { transform: scale(1.01) translate3d(0, 0, 0); }
  100% { transform: scale(1.06) translate3d(-0.5%, -0.7%, 0); }
}

/* Base opacity is 1; 'backwards' fill-mode prevents language-switch vanish bug */
.hero-content > .eyebrow,
.hero-deck,
.hero-description,
.hero-content > .button,
.hero .type-title,
.hero-bottom {
  opacity: 1;
  animation: pwsRiseIn 0.8s var(--ease-out-expo) backwards;
}

.hero-content > .eyebrow { animation-delay: 0.06s; text-shadow: 0 2px 12px rgba(5, 8, 16, 0.78); }
.hero-deck { animation-delay: 0.14s; text-shadow: 0 3px 18px rgba(5, 8, 16, 0.84); }
.hero-description { animation-delay: 0.22s; text-shadow: 0 2px 14px rgba(5, 8, 16, 0.88); color: #d6e0f2; }
.hero-content > .button { animation-delay: 0.3s; }
.hero .type-title { animation-delay: 0.18s; }
.hero-bottom { animation-delay: 0.4s; }

.type-title b {
  text-shadow: 0 10px 36px rgba(4, 7, 14, 0.72), 0 2px 10px rgba(4, 7, 14, 0.6);
}
.type-title em {
  text-shadow: 0 8px 28px rgba(4, 7, 14, 0.72);
}
.type-title small {
  color: #bccbe2;
  text-shadow: 0 2px 10px rgba(4, 7, 14, 0.85);
}

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

/* ==========================================================================
   4. BUTTONS, RIPPLES, ACCORDION & MAIN PAGE INTERACTIONS
   ========================================================================== */
.pws-ripple-host {
  position: relative;
  overflow: hidden;
}

.pws-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(224, 238, 255, 0.36) 0%, rgba(143, 180, 236, 0.12) 45%, transparent 72%);
  transform: translate(-50%, -50%) scale(0);
  animation: pwsRippleExpand 0.65s var(--ease-out-expo) forwards;
}

@keyframes pwsRippleExpand {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.hero-content > .button {
  position: relative;
  padding: 13px 20px 13px 0;
  border-bottom: 1px solid rgba(172, 198, 238, 0.74);
  color: #e9f1ff;
  font-weight: 500;
  transition: color 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo),
              transform 0.28s var(--ease-out-expo),
              padding-left 0.35s var(--ease-out-expo);
}
.hero-content > .button > span:last-child {
  display: inline-block;
  transition: transform 0.35s var(--ease-out-expo);
}
.hero-content > .button:hover {
  color: #ffffff;
  border-color: #ffffff;
  padding-left: 6px;
}
.hero-content > .button:hover > span:last-child {
  transform: translate(5px, -3px);
}
.hero-content > .button:active {
  transform: translateY(1px) scale(0.975);
}

.hero-bottom a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(190, 214, 250, 0.24);
  background: rgba(10, 16, 30, 0.42);
  backdrop-filter: blur(10px);
  font-size: 19px;
  transition: transform 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo),
              background-color 0.35s var(--ease-out-expo),
              color 0.35s var(--ease-out-expo);
}
.hero-bottom a:hover {
  border-color: rgba(220, 236, 255, 0.65);
  background: rgba(28, 44, 78, 0.58);
  color: #ffffff;
  transform: translateY(4px);
}
.hero-bottom a:active {
  transform: translateY(6px) scale(0.94);
}

.filters {
  gap: 10px;
}
.filters button {
  position: relative;
  overflow: hidden;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(164, 190, 232, 0.2);
  background: rgba(14, 22, 40, 0.46);
  backdrop-filter: blur(10px);
  color: #9baac4;
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.32s var(--ease-out-expo),
              border-color 0.32s var(--ease-out-expo),
              background 0.32s var(--ease-out-expo),
              transform 0.24s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo);
}
.filters button:hover {
  color: #eaf2ff;
  border-color: rgba(186, 212, 252, 0.48);
  background: rgba(26, 40, 72, 0.6);
  transform: translateY(-1px);
}
.filters button.active {
  color: #ffffff;
  border-color: rgba(176, 206, 255, 0.62);
  background: linear-gradient(145deg, rgba(64, 102, 168, 0.42), rgba(20, 34, 66, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 24px rgba(6, 12, 28, 0.5);
}
.filters button:active {
  transform: translateY(1px) scale(0.97);
}

#category-list details {
  transition: background-color 0.35s var(--ease-out-expo), border-color 0.35s var(--ease-out-expo);
}
#category-list details:hover {
  border-top-color: rgba(154, 182, 226, 0.52);
}
#category-list details[open] {
  border-top-color: rgba(174, 202, 246, 0.65);
}
#category-list summary {
  transition: padding-left 0.35s var(--ease-out-expo);
}
#category-list summary:hover {
  padding-left: 6px;
}
#category-list summary .cat-name {
  transition: color 0.32s var(--ease-out-expo), text-shadow 0.32s var(--ease-out-expo);
}
#category-list summary .num {
  transition: color 0.32s var(--ease-out-expo), opacity 0.32s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}
#category-list summary:hover .num {
  opacity: 0.95;
  transform: rotate(-3deg) scale(1.06);
}
#category-list summary .plus {
  display: inline-block;
  transition: transform 0.42s var(--ease-out-expo), color 0.32s var(--ease-out-expo);
}
#category-list details[open] summary .plus {
  transform: rotate(45deg);
}
.detail-body {
  overflow: hidden;
}

.winner-card {
  transition: transform 0.45s var(--ease-out-expo),
              box-shadow 0.45s var(--ease-out-expo),
              border-color 0.45s var(--ease-out-expo);
}
.winner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 206, 245, 0.85);
  box-shadow: inset 0 0 0 5px #070a12,
              inset 0 0 0 6px rgba(170, 196, 238, 0.36),
              0 16px 36px rgba(3, 6, 15, 0.62);
}
.king-nomination .king-card {
  transition: transform 0.5s var(--ease-out-expo), filter 0.5s var(--ease-out-expo);
}
.king-nomination .king-card:hover {
  transform: translateY(-5px) scale(1.015);
  filter: drop-shadow(0 14px 24px rgba(100, 170, 220, 0.24));
}

.nominate-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(154, 188, 242, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(26, 44, 82, 0.5));
  backdrop-filter: blur(10px);
  color: #d6e6ff;
  font-weight: 500;
  transition: background 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo),
              color 0.35s var(--ease-out-expo),
              transform 0.28s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo);
}
.nominate-link:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(42, 72, 128, 0.72));
  border-color: rgba(206, 226, 255, 0.8);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(5, 10, 24, 0.55);
}
.nominate-link:active {
  transform: translateY(1px) scale(0.97);
}

.steps article {
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid rgba(204, 134, 158, 0.16);
  background: linear-gradient(155deg, rgba(36, 18, 34, 0.44), rgba(12, 10, 20, 0.6));
  backdrop-filter: blur(12px);
  transition: transform 0.42s var(--ease-out-expo),
              border-color 0.42s var(--ease-out-expo),
              box-shadow 0.42s var(--ease-out-expo);
}
.steps article:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 148, 174, 0.44);
  box-shadow: 0 18px 40px rgba(6, 3, 10, 0.52);
}

.stream-info a,
.process .notice > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(206, 128, 154, 0.45);
  background: rgba(48, 20, 34, 0.42);
  backdrop-filter: blur(10px);
  color: #f5cddb;
  font-weight: 500;
  transition: background-color 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo),
              color 0.35s var(--ease-out-expo),
              transform 0.28s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo);
}
.stream-info a:hover,
.process .notice > a:hover {
  background: rgba(154, 58, 90, 0.42);
  border-color: rgba(240, 174, 198, 0.82);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(14, 5, 12, 0.5);
}
.stream-info a:active,
.process .notice > a:active {
  transform: translateY(1px) scale(0.97);
}

.footer-bottom a {
  transition: color 0.3s var(--ease-out-expo), transform 0.25s var(--ease-out-expo);
}
.footer-bottom a:hover {
  color: #e4eeff;
  transform: translateY(-1px);
}

.pws-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.72s var(--ease-out-expo), transform 0.72s var(--ease-out-expo);
}
.pws-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pwsItemFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
#category-list.is-animating details {
  animation: pwsItemFadeIn 0.48s var(--ease-out-expo) backwards;
}

@keyframes pwsPopIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   5. LIQUID GLASS QUESTIONNAIRE (apply.html)
   ========================================================================== */
.application-page {
  background: #060911;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient liquid light blobs behind the frosted glass */
.liquid-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(14, 24, 48, 0.85), #060911 72%);
}
.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.42;
  will-change: transform;
}
.liquid-orb--one {
  width: 560px;
  height: 560px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(34, 128, 108, 0.58) 0%, rgba(22, 68, 118, 0.25) 55%, transparent 74%);
  animation: pwsOrbFloatA 19s ease-in-out infinite alternate;
}
.liquid-orb--two {
  width: 520px;
  height: 520px;
  top: 32%;
  left: -140px;
  background: radial-gradient(circle, rgba(78, 128, 224, 0.48) 0%, rgba(36, 56, 128, 0.2) 55%, transparent 74%);
  animation: pwsOrbFloatB 23s ease-in-out infinite alternate;
}
.liquid-orb--three {
  width: 440px;
  height: 440px;
  bottom: -120px;
  right: 18%;
  background: radial-gradient(circle, rgba(168, 198, 248, 0.28) 0%, rgba(62, 92, 168, 0.16) 55%, transparent 74%);
  animation: pwsOrbFloatA 26s ease-in-out infinite alternate-reverse;
}

@keyframes pwsOrbFloatA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-44px, 36px, 0) scale(1.1); }
}
@keyframes pwsOrbFloatB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(52px, -32px, 0) scale(1.08); }
}

.application-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

.application-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 130px 6% 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12.5px/1 var(--font-sans);
  letter-spacing: 0.4px;
  color: #c7d8f5;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(206, 226, 255, 0.18);
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
  transition: color 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo);
}
.back-link:hover {
  color: #ffffff;
  border-color: rgba(224, 238, 255, 0.48);
  transform: translateX(-3px);
}
.back-link:active {
  transform: translateX(-1px) scale(0.97);
}

.application-hero {
  margin-bottom: 30px;
}
.application-main .eyebrow {
  margin: 0 0 12px;
  color: #93b3e6;
  font: 600 10.5px/1.6 var(--font-sans);
  letter-spacing: 2.8px;
}
.application-main .apply {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.application-main .apply h1.apply-heading {
  position: static;
  width: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  filter: none;
  font: italic 600 clamp(36px, 5.2vw, 60px)/1.08 var(--font-serif);
  letter-spacing: -1.2px;
  margin: 0 0 14px;
  background: linear-gradient(165deg, #ffffff 10%, #d2e0f8 46%, #92afd8 72%, #f1f6ff 94%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.application-main .apply h1.apply-heading::before,
.application-main .apply h1.apply-heading::after {
  content: none;
}
.application-main .apply > .apply-lead {
  max-width: 650px;
  color: #b4c4df;
  font: 400 15px/1.7 var(--font-sans);
  margin: 0 0 24px;
}

/* Liquid Glass 3-Step Capsule Bar */
.apply-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.apply-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 18px;
  border: 1px solid rgba(206, 226, 255, 0.14);
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #96a8c6;
  font: 500 12.5px/1.4 var(--font-sans);
  transition: border-color 0.38s var(--ease-out-expo),
              background 0.38s var(--ease-out-expo),
              color 0.38s var(--ease-out-expo),
              transform 0.38s var(--ease-out-expo);
}
.apply-steps li .step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 218, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  font: 600 11px var(--font-serif);
  color: #a4bce2;
}
.apply-steps li.is-active {
  border-color: rgba(182, 212, 255, 0.44);
  background: linear-gradient(145deg, rgba(92, 138, 224, 0.22), rgba(255, 255, 255, 0.06));
  color: #f0f6ff;
}
.apply-steps li.is-active .step-num {
  background: rgba(114, 160, 240, 0.32);
  border-color: rgba(206, 228, 255, 0.65);
  color: #ffffff;
}
.apply-steps li.is-done {
  border-color: rgba(132, 216, 186, 0.4);
  background: linear-gradient(145deg, rgba(44, 146, 118, 0.2), rgba(255, 255, 255, 0.05));
  color: #d6f5ea;
}
.apply-steps li.is-done .step-num {
  background: rgba(66, 168, 138, 0.32);
  border-color: rgba(152, 232, 204, 0.72);
  color: #e8fff7;
}

/* Liquid Glass Contact Chips */
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}
.contacts a,
.contacts button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(204, 224, 255, 0.18);
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #d0dff8;
  font: 500 12.5px/1 var(--font-sans);
  transition: border-color 0.3s var(--ease-out-expo),
              background 0.3s var(--ease-out-expo),
              color 0.3s var(--ease-out-expo),
              transform 0.25s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
}
.contacts a:hover,
.contacts button:hover {
  border-color: rgba(220, 236, 255, 0.54);
  background: var(--glass-bg-elevated);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 24px rgba(4, 8, 18, 0.45);
}
.contacts a:active,
.contacts button:active {
  transform: translateY(1px) scale(0.96);
}

.contact-message {
  font: 500 12.5px/1.5 var(--font-sans);
  color: #9fe0c9;
  min-height: 20px;
  margin: 4px 0 22px;
}

/* Auth Gate / Verified Banner inside the Liquid Glass card */
.auth-gate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 20px;
  border: 1px solid rgba(214, 178, 130, 0.32);
  background: linear-gradient(135deg, rgba(255, 210, 145, 0.1), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 232, 198, 0.2);
  transition: border-color 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo);
}
.auth-gate-bar.is-verified {
  border-color: rgba(132, 218, 188, 0.38);
  background: linear-gradient(135deg, rgba(64, 174, 142, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(190, 255, 232, 0.22);
}
.auth-gate-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-gate-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  flex: 0 0 auto;
  font-size: 15px;
}
.auth-gate-title {
  display: block;
  font: 600 13.5px/1.35 var(--font-sans);
  color: #f3f7ff;
}
.auth-gate-sub {
  display: block;
  font: 400 12.5px/1.45 var(--font-sans);
  color: #b4c4de;
}
.auth-gate-btn {
  position: relative;
  overflow: hidden;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(220, 236, 255, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(126, 170, 245, 0.22));
  color: #ffffff;
  font: 600 12.5px/1 var(--font-sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 0.25s var(--ease-out-expo), border-color 0.3s, background 0.3s;
}
.auth-gate-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 248, 255, 0.72);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(126, 170, 245, 0.34));
}
.auth-gate-btn:active {
  transform: translateY(1px) scale(0.96);
}

/* Main Liquid Glass Form Card */
.apply-card {
  position: relative;
  padding: 36px 38px 38px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  box-shadow: var(--glass-shadow);
  overflow: visible;
}
/* Specular top glass refraction line */
.apply-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), rgba(164, 206, 255, 0.45), transparent);
  pointer-events: none;
}
/* Pointer-tracking subtle liquid sheen */
.apply-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(206, 230, 255, 0.085), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-expo);
}
.apply-card:hover::after {
  opacity: 1;
}

.application-page .application-form {
  position: relative;
  z-index: 1;
  max-width: none;
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}

.application-form label,
.application-form .field-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font: 600 11px/1.4 var(--font-sans);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a6bce0;
  transition: color 0.28s var(--ease-out-expo);
}
.application-form label:focus-within,
.application-form .field-group:focus-within {
  color: #e8f1ff;
}

.label-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.char-counter {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.3px;
  color: #7d92b5;
  text-transform: none;
}

/* Liquid Glass Inputs & Textarea */
.application-form input,
.application-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  color: #f2f6ff;
  border: 1px solid rgba(204, 224, 255, 0.16);
  border-radius: 16px;
  padding: 14px 17px;
  font: 400 14.5px/1.55 var(--font-sans);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: border-color 0.3s var(--ease-out-expo),
              background-color 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
}
.application-form input::placeholder,
.application-form textarea::placeholder {
  color: rgba(164, 184, 218, 0.5);
}
.application-form input:hover,
.application-form textarea:hover {
  border-color: rgba(212, 232, 255, 0.34);
  background: rgba(255, 255, 255, 0.068);
}
.application-form input:focus,
.application-form textarea:focus {
  border-color: rgba(162, 200, 255, 0.72);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(128, 174, 248, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.application-form textarea {
  min-height: 132px;
  resize: vertical;
}

/* Custom Liquid Glass Select Dropdown (replaces ugly native OS select) */
.sr-only-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lg-select {
  position: relative;
}
.lg-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  border-radius: 16px;
  border: 1px solid rgba(204, 224, 255, 0.18);
  background: rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #f2f6ff;
  font: 500 14.5px/1.4 var(--font-sans);
  text-align: left;
  transition: border-color 0.3s var(--ease-out-expo),
              background 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
}
.lg-select-trigger:hover {
  border-color: rgba(216, 234, 255, 0.38);
  background: rgba(255, 255, 255, 0.085);
}
.lg-select.is-open .lg-select-trigger {
  border-color: rgba(168, 204, 255, 0.74);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(128, 174, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.lg-select-chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #9fbce8;
  transition: transform 0.34s var(--ease-out-expo);
}
.lg-select.is-open .lg-select-chevron {
  transform: rotate(180deg);
}

.lg-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--glass-border-strong);
  background: rgba(10, 16, 30, 0.9);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 26px 64px rgba(2, 6, 16, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  z-index: 35;
  transform-origin: top center;
  animation: pwsPopIn 0.26s var(--ease-out-expo) backwards;
}
.lg-select-menu[hidden] {
  display: none;
}
.lg-select-menu::-webkit-scrollbar {
  width: 6px;
}
.lg-select-menu::-webkit-scrollbar-thumb {
  background: rgba(168, 198, 244, 0.24);
  border-radius: 999px;
}

.lg-select-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #d6e3f8;
  font: 500 13.5px/1.35 var(--font-sans);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.22s var(--ease-out-expo), border-color 0.22s, color 0.22s, transform 0.22s;
}
.lg-select-option:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(206, 226, 255, 0.18);
  color: #ffffff;
}
.lg-select-option.is-selected {
  background: linear-gradient(135deg, rgba(102, 148, 232, 0.32), rgba(255, 255, 255, 0.08));
  border-color: rgba(176, 210, 255, 0.42);
  color: #ffffff;
}
.lg-select-option.is-king {
  color: #d7f2ff;
}
.lg-option-tag {
  font: 600 10px/1 var(--font-sans);
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a9c3ec;
}
.lg-select-option.is-king .lg-option-tag {
  background: rgba(146, 214, 242, 0.2);
  color: #d4f4ff;
}

/* Liquid Glass Nomination Hint Card */
.nomination-hint {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(186, 214, 255, 0.18);
  background: linear-gradient(135deg, rgba(128, 174, 248, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #c3d4f0;
  font: 400 13.5px/1.6 var(--font-sans);
  transition: border-color 0.35s var(--ease-out-expo), background 0.35s var(--ease-out-expo);
}
.nomination-hint.is-king {
  border-color: rgba(168, 224, 246, 0.36);
  background: linear-gradient(135deg, rgba(96, 184, 218, 0.18), rgba(255, 255, 255, 0.04));
  color: #daf2fb;
}
.nomination-hint-icon {
  flex: 0 0 auto;
  font: 17px/1.3 var(--font-serif);
  color: #9ec0f6;
}
.nomination-hint.is-king .nomination-hint-icon {
  color: #ccf0fc;
}
.nomination-hint-body strong {
  display: block;
  font: 600 11.5px/1.4 var(--font-sans);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #e6f0ff;
  margin-bottom: 3px;
}

/* Form Actions */
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.send-application {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(72, 124, 214, 0.72) 0%, rgba(40, 78, 152, 0.84) 100%);
  border: 1px solid rgba(196, 222, 255, 0.56);
  color: #ffffff;
  font: 600 13.5px/1 var(--font-sans);
  letter-spacing: 0.4px;
  box-shadow: 0 12px 32px rgba(12, 32, 72, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 0.28s var(--ease-out-expo),
              background 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo);
}
.send-application::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.24) 50%, transparent 78%);
  transform: translateX(-115%);
  transition: transform 0.65s var(--ease-out-expo);
}
.send-application:hover {
  border-color: rgba(230, 242, 255, 0.88);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(24, 58, 124, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}
.send-application:hover::after {
  transform: translateX(115%);
}
.send-application:active {
  transform: translateY(1px) scale(0.97);
}
.send-application.is-locked {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(140, 170, 220, 0.14));
  border-color: rgba(214, 186, 146, 0.46);
  color: #f3e4cc;
  box-shadow: inset 0 1px 0 rgba(255, 240, 214, 0.24), 0 8px 24px rgba(4, 8, 18, 0.4);
}

.reset-application {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 218, 255, 0.18);
  border-radius: 999px;
  color: #a4b5d2;
  padding: 13px 20px;
  font: 500 12.5px/1 var(--font-sans);
  transition: color 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo),
              background 0.3s var(--ease-out-expo),
              transform 0.24s var(--ease-out-expo);
}
.reset-application:hover {
  color: #ffffff;
  border-color: rgba(212, 232, 255, 0.42);
  background: rgba(255, 255, 255, 0.09);
}
.reset-application:active {
  transform: translateY(1px) scale(0.97);
}

/* Liquid Glass Result Dossier */
.application-result {
  max-width: none;
  margin-top: 28px;
  padding: 32px 36px;
  border-radius: 28px;
  border: 1px solid rgba(182, 214, 255, 0.32);
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  box-shadow: var(--glass-shadow);
}
.application-result:not([hidden]) {
  animation: pwsResultReveal 0.55s var(--ease-out-expo) backwards;
}
@keyframes pwsResultReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(206, 226, 255, 0.16);
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a6e6cc;
}
.result-badge::before {
  content: '✦';
  font-size: 12px;
}
.application-result > p {
  color: #bfd0ec;
  font: 400 13.5px/1.6 var(--font-sans);
  margin: 0 0 16px;
}
.application-result textarea {
  width: 100%;
  min-height: 245px;
  background: rgba(6, 10, 20, 0.65);
  color: #edf4ff;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(196, 220, 255, 0.22);
  font: 400 13px/1.68 var(--font-mono);
  resize: vertical;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.application-result button,
.application-result a {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 13px 24px;
  border-radius: 999px;
  font: 600 13px/1 var(--font-sans);
  transition: transform 0.26s var(--ease-out-expo),
              background 0.32s var(--ease-out-expo),
              border-color 0.32s var(--ease-out-expo),
              box-shadow 0.32s var(--ease-out-expo);
}
.application-result #copy-application {
  background: linear-gradient(135deg, rgba(72, 124, 214, 0.78), rgba(40, 78, 152, 0.88));
  border: 1px solid rgba(196, 222, 255, 0.56);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.application-result #copy-application:hover {
  border-color: #d6e7ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 44, 96, 0.6);
}
.application-result #copy-application.is-copied {
  background: linear-gradient(135deg, rgba(42, 148, 118, 0.8), rgba(26, 102, 82, 0.88));
  border-color: rgba(154, 236, 206, 0.76);
  color: #ebfff8;
}
.application-result a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(196, 220, 255, 0.28);
  color: #e4eeff;
}
.application-result a:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(224, 238, 255, 0.65);
  color: #ffffff;
  transform: translateY(-2px);
}
.application-result button:active,
.application-result a:active {
  transform: translateY(1px) scale(0.97);
}
#application-status {
  margin: 14px 0 0;
  min-height: 18px;
  color: #a4e0c8;
  font: 500 13px/1.5 var(--font-sans);
}

.application-footer {
  max-width: 980px;
  margin: 28px auto 0;
  padding: 36px 6% 42px;
  border-top: 1px solid rgba(196, 218, 255, 0.14);
}
.application-footer::before {
  content: none;
}
.application-footer .footer-bottom {
  margin-top: 0;
}

/* ==========================================================================
   6. LIQUID GLASS AUTH MODAL (VK, Google, Discord, TikTok)
   ========================================================================== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 7, 15, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: pwsPageFade 0.24s var(--ease-out-expo) backwards;
}
.auth-modal[hidden] {
  display: none;
}

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 30px 30px;
  border-radius: 30px;
  border: 1px solid var(--glass-border-strong);
  background: linear-gradient(155deg, rgba(24, 35, 62, 0.84) 0%, rgba(10, 15, 29, 0.92) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow: 0 32px 90px rgba(0, 4, 14, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: pwsPopIn 0.34s var(--ease-out-expo) backwards;
}
.auth-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 34px;
  right: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(206, 226, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #c8daf8;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: rotate(90deg);
}

.auth-modal-eyebrow {
  margin: 0 0 8px;
  font: 600 10px/1.4 var(--font-sans);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #92b3e6;
}
.auth-modal-title {
  margin: 0 0 10px;
  font: italic 600 30px/1.12 var(--font-serif);
  color: #f3f7ff;
  background: none;
  -webkit-background-clip: border-box;
}
.auth-modal-desc {
  margin: 0 0 22px;
  font: 400 13.5px/1.6 var(--font-sans);
  color: #aec0dd;
}

.auth-providers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.auth-provider-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid rgba(206, 226, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #eef4ff;
  font: 600 13.5px/1 var(--font-sans);
  transition: transform 0.26s var(--ease-out-expo),
              border-color 0.28s var(--ease-out-expo),
              background 0.28s var(--ease-out-expo),
              box-shadow 0.28s var(--ease-out-expo);
}
.auth-provider-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.auth-provider-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}
.auth-provider-btn:active {
  transform: translateY(1px) scale(0.97);
}
.auth-provider-btn[data-provider="vk"]:hover {
  border-color: rgba(45, 140, 255, 0.68);
  background: rgba(0, 119, 255, 0.2);
  box-shadow: 0 10px 26px rgba(0, 119, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.auth-provider-btn[data-provider="google"]:hover {
  border-color: rgba(234, 240, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.auth-provider-btn[data-provider="discord"]:hover {
  border-color: rgba(124, 138, 255, 0.7);
  background: rgba(88, 101, 242, 0.24);
  box-shadow: 0 10px 26px rgba(88, 101, 242, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.auth-provider-btn[data-provider="tiktok"]:hover {
  border-color: rgba(96, 232, 236, 0.62);
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.14), rgba(254, 44, 85, 0.16));
  box-shadow: 0 10px 26px rgba(254, 44, 85, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Step 2 inside modal: quick account handle confirmation */
.auth-step-confirm {
  margin-top: 6px;
}
.auth-step-confirm[hidden] {
  display: none;
}
.auth-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(206, 226, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  font: 600 12px/1 var(--font-sans);
  color: #e8f1ff;
  margin-bottom: 14px;
}
.auth-selected-pill svg {
  width: 16px;
  height: 16px;
}
.auth-handle-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-handle-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 15px;
  border: 1px solid rgba(204, 224, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font: 500 14px/1.4 var(--font-sans);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.auth-handle-form input:focus {
  border-color: rgba(164, 202, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(128, 174, 248, 0.2);
}
.auth-confirm-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.auth-confirm-submit {
  flex: 1;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(196, 222, 255, 0.56);
  background: linear-gradient(135deg, rgba(72, 124, 214, 0.8), rgba(40, 78, 152, 0.9));
  color: #ffffff;
  font: 600 13px/1 var(--font-sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 0.24s var(--ease-out-expo), box-shadow 0.24s;
}
.auth-confirm-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(18, 44, 96, 0.55);
}
.auth-confirm-back {
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(196, 218, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #b7c8e6;
  font: 500 12.5px/1 var(--font-sans);
}
.auth-confirm-back:hover {
  color: #ffffff;
  border-color: rgba(214, 232, 255, 0.45);
}

/* ==========================================================================
   7. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 760px) {
  .hero-art {
    background:
      linear-gradient(180deg, rgba(7, 10, 18, 0.62) 0%, rgba(7, 10, 18, 0.24) 36%, rgba(7, 10, 18, 0.66) 76%, #070a12 100%),
      linear-gradient(90deg, rgba(7, 10, 18, 0.78) 0%, rgba(7, 10, 18, 0.36) 65%, rgba(7, 10, 18, 0.2) 100%),
      url('assets/hero-bg.jpg') 58% center / cover no-repeat;
  }
  .header-actions {
    gap: 6px;
  }
  .auth-trigger {
    padding: 7px 11px;
    font-size: 11px;
  }
  .auth-user-name {
    max-width: 76px;
  }
  #language {
    padding: 7px 10px;
    font-size: 10px;
  }
  .application-main {
    padding: 106px 5.5% 64px;
  }
  .apply-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .apply-card {
    padding: 24px 18px 26px;
    border-radius: 24px;
  }
  .application-page .application-form {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .application-result {
    padding: 22px 18px;
    border-radius: 24px;
  }
  .form-actions,
  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .send-application,
  .reset-application,
  .result-actions button,
  .result-actions a {
    justify-content: center;
  }
  .auth-providers {
    grid-template-columns: 1fr;
  }
  .auth-modal-card {
    padding: 26px 20px 24px;
    border-radius: 24px;
  }
}

/* ==========================================================================
   8. REDUCED MOTION ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  body,
  .hero-art,
  .liquid-orb,
  .hero-content > .eyebrow,
  .hero-deck,
  .hero-description,
  .hero-content > .button,
  .hero .type-title,
  .hero-bottom,
  #category-list.is-animating details,
  .application-result:not([hidden]),
  .pws-ripple,
  .auth-modal,
  .auth-modal-card,
  .auth-menu,
  .lg-select-menu {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .pws-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
