@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --page: #040405;
  --page-soft: #0f1012;
  --surface: rgba(11, 11, 14, 0.80);
  --surface-solid: #0c0d10;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 80, 80, 0.24);
  --text: #f5f6f8;
  --muted: #a7abb3;
  --cream: #f1f2f4;
  --accent: #ff4b55;
  --accent-light: #ff4b55;
  --accent-red: #ff4b55;
  --green: #73e7a4;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--page);
  color: var(--text);
}

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

button { font: inherit; }

main {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(216, 41, 47, 0.16), transparent 24rem),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(4,4,5,0.97) 0%, rgba(9,10,12,0.99) 52%, rgba(4,4,5,1) 100%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 36px));
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(9, 9, 11, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  transition: height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-compact {
  height: 64px;
  background: rgba(9, 9, 11, 0.90);
  border-color: rgba(255, 255, 255, 0.15);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand img {
  width: 62px;
  height: 48px;
  object-fit: contain;
}

.brand span { white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 12px;
  color: #d9dde5;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  transition: 0.18s ease;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language,
.login-link,
.register-link,
.menu-toggle {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #f5efe4;
  border-radius: 14px;
  font-weight: 800;
}

.language { gap: 6px; padding: 0 12px; }

.login-link,
.register-link { padding: 0 14px; }

.register-link {
  border-color: rgba(255, 75, 85, 0.46);
  background: #ff4b55;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(255, 75, 85, 0.22);
}

.menu-toggle { display: none; width: 42px; cursor: pointer; }

.hero {
  position: relative;
  min-height: 860px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 138px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 52px;
}

.hero-backdrop {
  position: absolute;
  inset: 0 -12vw;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(4, 4, 5, 0.94) 0%, rgba(4, 4, 5, 0.44) 45%, rgba(4, 4, 5, 0.94) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.62) 0%, rgba(4, 4, 5, 0.16) 45%, rgba(4, 4, 5, 0.74) 100%),
    radial-gradient(circle at 52% 36%, rgba(216, 41, 47, 0.18), transparent 22rem),
    url('/assets/city-bg-C7eAAZLj.png') center/cover;
  opacity: 0.95;
  filter: grayscale(0.12) contrast(1.08);
}

.hero-line {
  position: absolute;
  inset: 0 -12vw;
  z-index: 1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
  opacity: 0.18;
}

.hero-content,
.server-card { position: relative; z-index: 3; }

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(104, 230, 162, 0.12), 0 0 26px rgba(104, 230, 162, 0.48);
}

.hero-logo {
  display: block;
  width: min(440px, 72vw);
  margin: 20px 0 14px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.48));
  animation: logoBreath 6.5s ease-in-out infinite;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff7e9;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #c6cbd5;
  font-size: 18px;
  line-height: 1.75;
}

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

.primary-action,
.secondary-action,
.copy-btn {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.primary-action {
  color: #ffffff;
  background: #ff4b55;
  box-shadow: 0 16px 36px rgba(255, 75, 85, 0.24);
}

.secondary-action,
.copy-btn {
  border: 1px solid var(--line-strong);
  color: #f7eee2;
  background: rgba(255, 255, 255, 0.065);
}

.primary-action:hover,
.secondary-action:hover,
.copy-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,75,85,0.38);
}

.copy-btn { width: 100%; cursor: pointer; }

.copy-btn.compact { width: auto; }

.surface,
.server-card,
.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.server-card {
  padding: 22px;
  border-radius: 26px;
}

.server-card-top,
.server-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.server-card-top span,
.server-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfd4dc;
  font-size: 14px;
  font-weight: 800;
}

.server-card-top b {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.server-card-body {
  margin: 24px 0 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.server-card-body strong {
  display: block;
  color: var(--cream);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.server-card-body p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.server-card-meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading { max-width: 620px; }

.section-heading.centered {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.store-panel h2 {
  margin: 12px 0 0;
  color: #fff4df;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.section-heading p,
.store-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.stats-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-box,
.community-card {
  border-radius: 24px;
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.stat-box:hover,
.community-card:hover,
.step-row:hover,
.store-panel:hover,
.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 75, 85, 0.32);
  background: rgba(22, 25, 34, 0.86);
}

.stat-box strong {
  display: block;
  font-size: 42px;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.06em;
}

.stat-box span,
.community-card h3 {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  font-weight: 900;
}

.stat-box p,
.community-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.community-card svg { color: var(--accent-light); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: start;
}

.ip-panel {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.ip-panel > span {
  padding-left: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 21, 29, 0.66);
  transition: 0.2s ease;
}

.step-row b {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: #ff4b55;
  font-weight: 900;
}

.step-row h3 { margin: 0; font-size: 20px; }

.step-row p { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }

.store-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border-radius: 30px;
  padding: 42px;
  background: rgba(18, 21, 29, 0.72);
  transition: 0.2s ease;
}

.store-panel > div:first-child { max-width: 660px; }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 18px;
  padding: 0 20px;
  transition: 0.2s ease;
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  color: var(--cream);
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 54px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-brand img {
  width: 70px;
  height: 54px;
  object-fit: contain;
}

.footer p { margin: 0; }

@keyframes logoBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.012); }
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 9, 13, 0.92);
    backdrop-filter: blur(18px);
  }
  .nav.is-open { display: grid; }
  .menu-toggle { display: grid; }
  .language, .login-link { display: none; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 126px; }
  .server-card { max-width: 520px; }
  .stats-grid, .community-grid { grid-template-columns: 1fr; }
  .store-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 24px); top: 12px; }
  .brand span { display: none; }
  .register-link { padding: 0 12px; }
  .hero, .section, .footer { width: calc(100% - 28px); }
  .hero-logo { width: min(330px, 88vw); }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .server-card, .stat-box, .community-card, .store-panel { border-radius: 22px; }
  .split { gap: 28px; }
  .ip-panel { align-items: stretch; flex-direction: column; width: 100%; }
  .copy-btn.compact { width: 100%; }
  .step-row { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}

/* Smooth scroll reveal — subtle, not flashy */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.72s ease, transform 0.72s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  will-change: opacity, transform;
}

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

.reveal-child:nth-child(1) { transition-delay: 0.04s; }

.reveal-child:nth-child(2) { transition-delay: 0.12s; }

.reveal-child:nth-child(3) { transition-delay: 0.20s; }

.reveal-child:nth-child(4) { transition-delay: 0.28s; }

.section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 54px;
  width: min(680px, 82vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.section-heading h2,
.store-panel h2 {
  max-width: 820px;
}

.surface,
.server-card,
.faq-item,
.step-row,
.store-panel {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.stat-box:hover,
.community-card:hover,
.step-row:hover,
.store-panel:hover,
.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.hero-content {
  animation: heroEnter 0.9s ease both;
}

.server-card {
  animation: heroCardEnter 1s ease 0.14s both;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Page refresh loader — inspired by modern game portals, kept clean */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 75, 85, 0.24), transparent 28rem),
    linear-gradient(180deg, #07080b 0%, #0c0f16 100%);
  animation: loaderExit 0.45s ease 0.95s forwards;
}

.loader-shell {
  width: min(360px, calc(100% - 42px));
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(15, 18, 26, 0.78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  animation: loaderPop 0.72s cubic-bezier(.2, .75, .25, 1) both;
}

.loader-shell img {
  width: min(230px, 72vw);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.loader-shell span {
  margin-top: 12px;
  color: var(--cream);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.loader-shell p {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.loader-bar {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.loader-bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff 0%, #ff7a80 46%, #ff4b55 100%);
  transform-origin: left;
  animation: loaderBar 0.96s ease forwards;
}

.page-content.is-loading {
  opacity: 0;
  transform: translateY(8px);
}

.page-content.is-ready {
  animation: pageReady 0.55s ease both;
}

/* Language dropdown */

.language-wrap {
  position: relative;
  display: inline-flex;
}

.language svg {
  transition: transform 0.18s ease;
}

.language-wrap.is-open .language svg {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  min-width: 174px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 12, 18, 0.94);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.language-wrap.is-open .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #e7e9ef;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.language-menu button:hover,
.language-menu button.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.language-menu button span {
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 75, 85, 0.14);
  color: var(--accent-light);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* Refined status cards for online and registered players */

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

.stat-box strong {
  font-variant-numeric: tabular-nums;
}

.stat-box:nth-child(2),
.stat-box:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(18, 21, 29, 0.74);
}

/* Footer social assets */

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

.footer-main {
  max-width: 460px;
}

.footer-main p {
  margin-top: 14px;
  line-height: 1.7;
}

.footer-socials {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
}

.social-heading {
  display: grid;
  gap: 5px;
  text-align: right;
}

.social-heading strong {
  color: var(--cream);
  font-size: 18px;
  font-weight: 900;
}

.social-heading span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.social-card {
  min-height: 102px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 75, 85, 0.36);
  background: rgba(255, 255, 255, 0.07);
}

.social-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
}

.social-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.social-card.discord .social-icon {
  color: #dfe5ff;
  background: rgba(88, 101, 242, 0.18);
}

.social-card.tiktok .social-icon {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.16), rgba(254, 44, 85, 0.16));
}

.social-card b {
  display: block;
  color: #fff4df;
  font-size: 15px;
  font-weight: 900;
}

.social-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

@keyframes loaderBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes loaderExit {
  to { opacity: 0; visibility: hidden; }
}

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

@media (max-width: 980px) {
  .language-wrap { display: none; }
}

@media (max-width: 760px) {
  .compact-stats,
  .social-grid {
    grid-template-columns: 1fr;
  }
  .social-heading {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .footer-main {
    max-width: none;
  }
  .footer-socials {
    width: 100%;
  }
}

/* Account pages */

.auth-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 106px 20px 76px;
  background:
    radial-gradient(circle at 52% 18%, rgba(216, 41, 47, 0.16), transparent 24rem),
    radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.07), transparent 20rem),
    linear-gradient(180deg, #040405 0%, #090a0c 56%, #040405 100%);
}

.auth-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.38;
  filter: grayscale(0.18) saturate(0.88) contrast(1.06);
  transform: scale(1.04);
  animation: authBgDrift 18s ease-in-out infinite alternate;
}

.auth-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.97), rgba(5, 5, 6, 0.62) 48%, rgba(5, 5, 6, 0.97)),
    linear-gradient(180deg, rgba(5, 5, 6, 0.78), rgba(5, 5, 6, 0.36) 46%, rgba(5, 5, 6, 0.9));
  z-index: 1;
}

.auth-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
  opacity: 0.24;
  pointer-events: none;
}

.auth-glow {
  position: absolute;
  z-index: 2;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.22;
  pointer-events: none;
}

.auth-glow-one {
  top: 12%;
  left: 16%;
  background: rgba(255, 75, 85, 0.44);
  animation: authFloat 9s ease-in-out infinite;
}

.auth-glow-two {
  right: 14%;
  bottom: 9%;
  background: rgba(255, 255, 255, 0.12);
  animation: authFloat 10s ease-in-out infinite reverse;
}

.auth-back {
  position: absolute;
  top: 26px;
  left: 28px;
  z-index: 9;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #f7eee2;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-back:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 75, 85, 0.42);
  background: rgba(255, 255, 255, 0.09);
}

.auth-language-top {
  position: absolute;
  z-index: 8;
  top: 26px;
  right: 28px;
  animation: authTopControlIn 0.62s cubic-bezier(.2, .9, .2, 1) both;
}

.auth-language-top .language {
  height: 42px;
  padding-inline: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.auth-language-top .language-menu {
  top: calc(100% + 12px);
}

.auth-panel {
  position: relative;
  z-index: 5;
  width: min(440px, 100%);
  padding: 34px 34px 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(16, 16, 18, 0.92), rgba(10, 10, 12, 0.94));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  overflow: hidden;
  animation: authPanelIn 0.72s cubic-bezier(.2, .9, .2, 1) both;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-panel:hover {
  border-color: rgba(255, 75, 85, 0.24);
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.56), 0 0 42px rgba(255, 75, 85, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  opacity: 0.72;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.auth-logo img {
  width: 164px;
  max-width: 62%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.42));
  animation: authLogoSettle 0.95s cubic-bezier(.2, .9, .2, 1) both;
}

.auth-heading {
  text-align: center;
  margin-bottom: 26px;
}

.auth-heading h1 {
  margin: 0;
  color: #fff5e7;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.auth-heading p {
  margin: 12px auto 0;
  max-width: 340px;
  color: #aeb4c2;
  font-size: 14.5px;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form > * {
  animation: authItemIn 0.52s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-form > *:nth-child(1) { animation-delay: 0.08s; }

.auth-form > *:nth-child(2) { animation-delay: 0.14s; }

.auth-form > *:nth-child(3) { animation-delay: 0.20s; }

.auth-form > *:nth-child(4) { animation-delay: 0.26s; }

.auth-form > *:nth-child(5) { animation-delay: 0.32s; }

.auth-form > *:nth-child(6) { animation-delay: 0.38s; }

.auth-field {
  display: grid;
  gap: 9px;
}

.auth-field > span {
  color: #ece3d5;
  font-size: 13px;
  font-weight: 850;
}

.auth-field b {
  color: var(--accent-light);
}

.auth-input {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  color: #aeb4c2;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.auth-input:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255,75,85,0.38);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 75, 85, 0.11);
}

.auth-input input {
  width: 100%;
  height: 50px;
  border: 0;
  outline: 0;
  color: #fff7ea;
  background: transparent;
  font-size: 15px;
  font-weight: 650;
}

.auth-input input::placeholder {
  color: rgba(198, 203, 213, 0.62);
}

.auth-eye {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #c7cbd5;
  background: transparent;
  cursor: pointer;
}

.auth-eye:hover {
  color: #fff4e6;
  background: rgba(255, 255, 255, 0.07);
}

.caps-warning {
  min-height: 18px;
  color: #ff6a74;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.auth-terms {
  margin: -3px 0 0;
  color: #aeb4c2;
  font-size: 12.5px;
  line-height: 1.65;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
}

.auth-options a {
  color: #ff5a64;
  font-size: 13px;
  font-weight: 800;
}

.auth-options a:hover { text-decoration: underline; }

.auth-remember {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c2c7d2;
  font-size: 13px;
  font-weight: 750;
  user-select: none;
  cursor: pointer;
}

.auth-remember input {
  position: absolute;
  opacity: 0;
}

.auth-remember span {
  position: relative;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255, 75, 85, 0.58);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-remember span::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #171008;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.45) translateY(-1px);
  transition: opacity 0.16s ease, transform 0.2s cubic-bezier(.2, .9, .2, 1);
}

.auth-remember:hover span {
  transform: translateY(-1px);
  border-color: rgba(255, 75, 85, 0.82);
  background: rgba(255, 75, 85, 0.08);
}

.auth-remember input:checked + span {
  background: #ff4b55;
  border-color: rgba(255, 75, 85, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 75, 85, 0.13), 0 8px 18px rgba(255, 75, 85, 0.18);
  animation: authCheckPulse 0.28s ease both;
}

.auth-remember input:checked + span::after {
  opacity: 1;
  transform: rotate(45deg) scale(1) translateY(-1px);
}

.auth-submit {
  position: relative;
  overflow: hidden;
  height: 52px;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  background: #ff4b55;
  box-shadow: 0 18px 38px rgba(255, 75, 85, 0.24);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.32) 45%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.58s ease;
}

.auth-submit:hover::after {
  transform: translateX(120%);
}

.auth-submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 22px 44px rgba(255, 75, 85, 0.32);
}

.auth-divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 24px 0 18px;
  color: #858c9b;
  font-size: 13px;
  font-weight: 800;
  text-transform: lowercase;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: #10131b;
}

.auth-switch {
  margin: 0;
  text-align: center;
  color: #c5cad5;
  font-size: 14px;
}

.auth-switch a {
  color: #ff5a64;
  font-weight: 900;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-footer {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9299a8;
  font-size: 13px;
  white-space: nowrap;
}

.auth-footer .language-wrap {
  position: relative;
}

.auth-footer .language {
  height: 36px;
  border-radius: 12px;
}

@keyframes authTopControlIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes authPanelIn {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

@keyframes authCheckPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes authBgDrift {
  from { transform: scale(1.04) translate3d(-8px, -4px, 0); }
  to { transform: scale(1.08) translate3d(10px, 6px, 0); }
}

@keyframes authFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -18px, 0) scale(1.08); }
}

@media (max-width: 620px) {
  .auth-screen {
    padding: 86px 14px 92px;
    align-items: start;
  }
  .auth-back {
    top: 16px;
    left: 14px;
  }
  .auth-back span { display: none; }
  
.auth-language-top {
  position: absolute;
  z-index: 8;
  top: 26px;
  right: 28px;
  animation: authTopControlIn 0.62s cubic-bezier(.2, .9, .2, 1) both;
}

.auth-language-top .language {
  height: 42px;
  padding-inline: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.auth-language-top .language-menu {
  top: calc(100% + 12px);
}

.auth-panel {
    padding: 28px 18px 24px;
    border-radius: 22px;
  }
  .auth-logo img { width: 144px; }
  .auth-options {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-footer {
    width: calc(100% - 28px);
    justify-content: space-between;
    gap: 10px;
    white-space: normal;
    font-size: 12px;
  }
}

/* Final auth navigation polish */

.auth-back.auth-home-only {
  width: 46px;
  height: 46px;
  padding: 0;
  justify-content: center;
  border-radius: 15px;
}

.auth-back.auth-home-only svg {
  transition: transform 0.2s ease;
}

.auth-back.auth-home-only:hover svg {
  transform: translateY(-1px) scale(1.04);
}

/* Keep the loader mounted long enough to fade out smoothly */

.page-loader {
  animation: none;
}

.page-loader.is-leaving {
  pointer-events: none;
  animation: loaderExitSmooth 0.52s cubic-bezier(.22, .75, .25, 1) forwards;
}

.page-loader.is-leaving .loader-shell {
  animation: loaderShellOut 0.42s cubic-bezier(.22, .75, .25, 1) forwards;
}

.page-content {
  opacity: 0;
  transform: translateY(14px);
}

.page-content.is-ready {
  animation: pageReadySmooth 0.72s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-page-wrap {
  min-height: 100vh;
  opacity: 0;
  transform: translateY(12px);
}

.auth-page-wrap.is-ready {
  animation: pageReadySmooth 0.72s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes loaderExitSmooth {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}

@keyframes loaderShellOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-12px) scale(0.985); }
}

@keyframes pageReadySmooth {
  from { opacity: 0; transform: translateY(14px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (max-width: 620px) {
  .auth-back.auth-home-only {
    width: 44px;
    height: 44px;
  }
}

/* UCP register integration */

.auth-hint {
  margin: -6px 0 0;
  color: #969dac;
  font-size: 12px;
  line-height: 1.55;
}

.auth-message {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  animation: authItemIn 0.28s ease both;
}

.auth-message.success {
  color: #d9ffe6;
  border: 1px solid rgba(69, 215, 126, 0.26);
  background: rgba(69, 215, 126, 0.10);
}

.auth-message.error {
  color: #ffd9d9;
  border: 1px solid rgba(255, 94, 94, 0.28);
  background: rgba(255, 94, 94, 0.10);
}

.auth-message.info {
  color: #ffe8c8;
  border: 1px solid rgba(255, 75, 85, 0.25);
  background: rgba(255, 75, 85, 0.10);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

/* Grand Country inspired motion polish — GTA:WestCounty theme, clean and responsive */

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(26px);
  opacity: 0.32;
}

body::before {
  top: -140px;
  left: -140px;
  background: radial-gradient(circle, rgba(255, 75, 85, 0.26), transparent 68%);
  animation: ambientFloatA 12s ease-in-out infinite;
}

body::after {
  right: -160px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(255, 75, 85, 0.18), transparent 70%);
  animation: ambientFloatB 14s ease-in-out infinite;
}

.page-content,
.auth-page-wrap {
  position: relative;
  z-index: 1;
}

.hero-backdrop {
  animation: heroKenBurns 18s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-line {
  animation: gridDrift 18s linear infinite;
}

.hero-side {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 16px;
  align-self: center;
}

.hero-showcase {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(18, 21, 29, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  animation: heroCardEnter 1s ease 0.24s both, softFloat 7s ease-in-out 1.2s infinite;
}

.showcase-track {
  position: relative;
  height: 150px;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  opacity: 0;
  transform: translateX(26px) scale(1.02);
  animation: showcaseCycle 12s ease-in-out infinite;
}

.showcase-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(7, 8, 11, 0.84) 76%),
    radial-gradient(circle at 24% 16%, rgba(255, 224, 170, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(255, 75, 85, 0.42), rgba(20, 24, 34, 0.62));
  transform: scale(1.03);
  animation: slideZoom 12s ease-in-out infinite;
}

.slide-two { animation-delay: 4s; }

.slide-three { animation-delay: 8s; }

.slide-two::before { background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 11, 0.84) 76%), radial-gradient(circle at 76% 20%, rgba(104, 230, 162, 0.18), transparent 36%), linear-gradient(135deg, rgba(22, 28, 42, 0.78), rgba(180, 91, 19, 0.38)); }

.slide-three::before { background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 11, 0.84) 76%), radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.22), transparent 38%), linear-gradient(135deg, rgba(10, 13, 20, 0.78), rgba(255, 75, 85, 0.26)); }

.showcase-slide span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #ffe5bd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-slide b {
  color: #fff7e9;
  font-size: 24px;
  letter-spacing: -0.04em;
}

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

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
  }
}

@media (max-width: 980px) {
  .hero-side {
    width: min(560px, 100%);
  }

  .nav.is-open {
    display: grid;
    animation: mobileNavDrop 0.24s ease both;
  }

  .hero-showcase {
    min-height: 132px;
  }

  .showcase-track {
    height: 132px;
  }
}

@media (max-width: 620px) {
  body::before,
  body::after {
    width: 280px;
    height: 280px;
    opacity: 0.22;
  }

  .site-header {
    height: 62px;
    padding: 0 10px 0 12px;
    border-radius: 18px;
  }

  .brand img {
    width: 54px;
    height: 42px;
  }

  .header-actions {
    gap: 6px;
  }

  .register-link {
    height: 38px;
    font-size: 13px;
    padding: 0 10px;
  }

  .hero {
    padding-top: 116px;
    padding-bottom: 62px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 52px);
    line-height: 0.98;
  }

  .hero p {
    margin-top: 18px;
    line-height: 1.65;
  }

  .hero-actions,
  .store-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .server-card {
    padding: 18px;
  }

  .server-card-body {
    padding: 18px;
  }

  .server-card-body strong {
    font-size: 24px;
  }

  .server-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-slide b {
    font-size: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .store-panel h2 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.08;
  }

  .stat-box {
    padding: 22px;
  }

  .stat-box strong {
    font-size: 36px;
  }

  .store-panel {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .register-link {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-logo {
    width: min(290px, 86vw);
  }

  .showcase-slide {
    padding: 16px;
  }

  .step-row {
    padding: 18px;
  }
}

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

/* Header action polish — subtle animated controls */

.header-actions {
  perspective: 900px;
}

.language,
.login-link,
.register-link {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  isolation: isolate;
  transition:
    transform 0.22s cubic-bezier(.2,.75,.25,1),
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.language::before,
.login-link::before,
.register-link::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: rgba(255,255,255,.08);
  transition: opacity .22s ease;
}

.language::after,
.login-link::after,
.register-link::after {
  content: '';
  position: absolute;
  inset: -42% auto -42% -75%;
  width: 42%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: left .62s cubic-bezier(.2,.75,.25,1);
  pointer-events: none;
}

.language:hover,
.login-link:hover,
.register-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,75,85,.34);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.language:hover::before,
.login-link:hover::before,
.register-link:hover::before {
  opacity: 1;
}

.language:hover::after,
.login-link:hover::after,
.register-link:hover::after {
  left: 125%;
}

.language:active,
.login-link:active,
.register-link:active {
  transform: translateY(0) scale(.98);
}

.register-link {
  animation: registerButtonBreath 4.6s ease-in-out infinite;
}

.register-link:hover {
  box-shadow: 0 16px 38px rgba(255,75,85,.32), 0 0 0 5px rgba(255,75,85,.08);
}

.language-wrap.is-open .language {
  border-color: rgba(255,75,85,.40);
  background: rgba(255,75,85,.12);
  box-shadow: 0 14px 34px rgba(255,75,85,.16);
}

.language-menu {
  transform-origin: top right;
}

.language-wrap.is-open .language-menu {
  animation: languageMenuSettle .24s cubic-bezier(.2,.75,.25,1) both;
}

.language-menu button {
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.language-menu button:hover {
  transform: translateX(3px);
}

/* Refresh / loader polish */

.page-loader {
  overflow: hidden;
}

.page-loader::before,
.page-loader::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.page-loader::before {
  width: min(560px, 76vw);
  height: min(560px, 76vw);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow:
    inset 0 0 80px rgba(255, 75, 85, .12),
    0 0 90px rgba(255, 75, 85, .12);
  animation: loaderHaloSpin 6s linear infinite;
}

.page-loader::after {
  width: min(780px, 98vw);
  height: min(780px, 98vw);
  background: conic-gradient(from 0deg, transparent, rgba(255, 75, 85, .13), transparent 34%);
  mask: radial-gradient(circle, transparent 0 54%, #000 55% 56%, transparent 57%);
  animation: loaderSweep 2.4s linear infinite;
}

.loader-shell {
  position: relative;
  z-index: 2;
}

.loader-shell::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .20), rgba(255, 75, 85, .08), rgba(255,255,255,.04));
  opacity: .85;
}

.loader-shell img {
  animation: loaderLogoSettle .95s cubic-bezier(.2,.75,.25,1) both;
}

.loader-shell span,
.loader-shell p,
.loader-bar {
  animation: loaderTextRise .72s cubic-bezier(.2,.75,.25,1) both;
}

.loader-shell span { animation-delay: .08s; }

.loader-shell p { animation-delay: .14s; }

.loader-bar { animation-delay: .20s; }

.page-content.is-ready .site-header {
  animation: headerDropIn .62s cubic-bezier(.22,.78,.24,1) both;
}

.page-content.is-ready .hero-content {
  animation: heroContentReady .86s cubic-bezier(.22,.78,.24,1) both;
}

.page-content.is-ready .server-card,
.page-content.is-ready .hero-side {
  animation: heroPanelReady .9s cubic-bezier(.22,.78,.24,1) .08s both;
}

.auth-page-wrap.is-ready .auth-top-control,
.auth-page-wrap.is-ready .auth-panel {
  animation-duration: .82s;
}

/* Keep controls comfortable on mobile */

@media (max-width: 620px) {
  .language,
  .login-link,
  .register-link {
    height: 38px;
    border-radius: 13px;
  }

  .language {
    padding: 0 11px;
  }

  .login-link,
  .register-link {
    padding: 0 12px;
  }

  .language-menu {
    right: -6px;
  }
}

@media (max-width: 420px) {
  .login-link {
    display: inline-flex;
  }

  .header-actions {
    gap: 5px;
  }
}

@keyframes registerButtonBreath {
  0%, 100% {
    box-shadow: 0 12px 28px rgba(255, 75, 85, 0.20);
  }
  50% {
    box-shadow: 0 15px 34px rgba(255, 75, 85, 0.32), 0 0 0 5px rgba(255, 75, 85, .055);
  }
}

@keyframes languageMenuSettle {
  0% { opacity: 0; transform: translateY(-8px) scale(.97); }
  72% { opacity: 1; transform: translateY(2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loaderHaloSpin {
  from { transform: rotate(0deg) scale(.96); }
  to { transform: rotate(360deg) scale(.96); }
}

@keyframes loaderSweep {
  from { transform: rotate(0deg); opacity: .42; }
  50% { opacity: .72; }
  to { transform: rotate(360deg); opacity: .42; }
}

@keyframes loaderLogoSettle {
  from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

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

@keyframes headerDropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.985); filter: blur(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: blur(0); }
}

@keyframes heroContentReady {
  from { opacity: 0; transform: translateY(28px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroPanelReady {
  from { opacity: 0; transform: translateY(30px) scale(.982); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* PIN verification flow */

.pin-box {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 75, 85, 0.22);
  border-radius: 16px;
  background: rgba(255, 75, 85, 0.08);
  color: #c7ccd7;
  font-size: 13px;
  line-height: 1.45;
}

.pin-box strong {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.pin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
  color: #aeb4c2;
  font-size: 12.5px;
  line-height: 1.45;
}

.pin-actions button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 75, 85, 0.30);
  border-radius: 13px;
  background: rgba(255, 75, 85, 0.10);
  color: #f5c58e;
  font-size: 12.5px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pin-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 75, 85, 0.62);
  background: rgba(255, 75, 85, 0.16);
  color: #ffffff;
}

.pin-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-input input[name="pin"] {
  text-align: center;
  letter-spacing: 0.36em;
  font-size: 20px;
  font-weight: 900;
}

@media (max-width: 620px) {
  .pin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pin-actions button {
    justify-content: center;
    width: 100%;
  }
}

.dashboard-wrap.is-loading,
.dashboard-wrap.is-ready {
  min-height: 100vh;
}

.dashboard-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(4,4,5,0.93), rgba(4,4,5,0.92)),
    url('/assets/city-bg-C7eAAZLj.png') center/cover fixed;
}

.dashboard-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.05), transparent 20rem),
    radial-gradient(circle at 86% 76%, rgba(216,41,47,0.08), transparent 22rem),
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.18));
  pointer-events: none;
}

.dashboard-sidebar,
.dashboard-block,
.dash-stat-card,
.dashboard-user-chip,
.dashboard-state,
.dashboard-welcome-card {
  border: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.dashboard-sidebar {
  position: sticky;
  top: 24px;
  z-index: 2;
  height: calc(100vh - 48px);
  border-radius: 26px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dashboard-brand img {
  width: 54px;
  height: 42px;
  object-fit: contain;
}

.dashboard-brand span {
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.04em;
  font-size: 20px;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-nav-btn,
.dashboard-site-link {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  color: #efe6d9;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.dash-nav-btn:hover,
.dashboard-site-link:hover,
.dash-nav-btn.is-active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(226,135,37,.18), rgba(255,255,255,.05));
  border-color: rgba(255, 75, 85, .34);
}

.dash-nav-btn.is-active {
  color: #fff7eb;
}

.dash-nav-btn.is-logout {
  margin-top: auto;
  color: #ffcab7;
}

.dashboard-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-top h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: #fff3e4;
}

.dashboard-top p {
  margin: 10px 0 0;
  max-width: 760px;
  color: #afb6c3;
  line-height: 1.75;
}

.dashboard-user-chip {
  min-width: 170px;
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 75, 85, .28), rgba(255,255,255,.08));
  color: #fff4e6;
}

.dashboard-user-chip strong { font-size: 14px; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dash-stat-card {
  min-height: 136px;
  border-radius: 22px;
  padding: 18px;
}

.dash-stat-card span {
  display: block;
  color: #9aa4b2;
  font-size: 13px;
  font-weight: 700;
}

.dash-stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  color: #fff7ec;
}

.dash-stat-card strong.is-online {
  font-size: 22px;
  color: var(--green);
}

.dash-stat-card p {
  margin: 10px 0 0;
  color: #c6ceda;
}

.dash-stat-card small {
  display: inline-flex;
  margin-top: 8px;
  color: #8e97a6;
  font-size: 12px;
  font-weight: 800;
}

.dash-stat-card strong.is-offline {
  font-size: 22px;
  color: #ffb4b9;
}

.dash-stat-card.is-offline {
  border-color: rgba(255, 75, 85, 0.22);
}

.dashboard-block {
  border-radius: 24px;
  padding: 22px;
}

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

.dashboard-block-head h2 {
  margin: 0;
  font-size: 22px;
  color: #fff3e4;
  letter-spacing: -0.03em;
}

.dashboard-character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-character-card {
  border: 1px solid rgba(255, 75, 85, 0.26);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border-radius: 20px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
}

.character-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 75, 85, .18), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.08);
}

.character-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.character-info strong { color: #fff5e7; }

.character-info span { color: #aeb5c1; font-size: 14px; }

.dashboard-empty {
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.14);
  color: #b8bfca;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.dashboard-info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-info-list div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.dashboard-info-list span {
  display: block;
  margin-bottom: 8px;
  color: #9ea8b5;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-info-list strong {
  color: #fff4e5;
  font-size: 16px;
  word-break: break-word;
}

.dashboard-welcome-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
}

.dashboard-welcome-card .welcome-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #ff6d6d 50%, #d8292f);
  color: #15100c;
  box-shadow: 0 18px 42px rgba(255, 75, 85, .26);
  margin-bottom: 18px;
}

.dashboard-welcome-card strong {
  font-size: 22px;
  color: #fff4e5;
}

.dashboard-welcome-card p {
  margin: 12px 0 0;
  max-width: 360px;
  color: #aeb7c3;
  line-height: 1.75;
}

.dashboard-state {
  border-radius: 22px;
  padding: 22px;
  color: #fff1dd;
}

.dashboard-state.error { color: #ffb8ae; }

@media (max-width: 1180px) {
  .dashboard-page {
    grid-template-columns: 1fr;
  }

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

  .dashboard-top {
    flex-direction: column;
  }
}

@media (max-width: 920px) {
  .dashboard-stats,
  .dashboard-character-grid,
  .dashboard-bottom-grid,
  .dashboard-info-list {
    grid-template-columns: 1fr;
  }

  .dashboard-page {
    padding: 16px;
  }

  .dashboard-block,
  .dash-stat-card,
  .dashboard-sidebar {
    border-radius: 20px;
  }
}

/* Keep browser autofill from turning auth inputs white/light. */

.auth-input input,
.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus,
.auth-input input:-webkit-autofill:active {
  color-scheme: dark;
  -webkit-text-fill-color: #fff7ea !important;
  caret-color: #fff7ea;
  box-shadow: 0 0 0 1000px rgba(18, 21, 29, 0.96) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(18, 21, 29, 0.96) inset !important;
  border-radius: 0;
  transition: background-color 9999s ease-in-out 0s;
}

.auth-input:has(input:-webkit-autofill) {
  border-color: rgba(255,75,85,0.38);
  background: rgba(255, 255, 255, 0.072);
  box-shadow: 0 0 0 4px rgba(255, 75, 85, 0.08);
}

.create-character-btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 0 18px;
  color: #12090a;
  font-weight: 900;
  cursor: pointer;
  background: #ff4b55;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(255, 75, 85, 0.24);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.create-character-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 22px 48px rgba(255, 75, 85, 0.30);
}

.characters-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}

.character-cards-area {
  min-height: 560px;
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 300px));
  align-items: start;
  gap: 28px;
}

.character-profile-card {
  position: relative;
  min-height: 342px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.character-profile-card.is-selected .character-card-panel {
  border-color: rgba(255, 214, 96, 0.46);
  box-shadow: 0 18px 48px rgba(231, 166, 29, 0.12), inset 0 1px 0 rgba(255,255,255,.08);
}

.character-render {
  position: relative;
  width: 132px;
  height: 182px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 24px 22px rgba(0,0,0,.45));
}

.render-head {
  position: absolute;
  left: 48px;
  top: 9px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b7835c, #805334);
}

.render-head::before {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: -6px;
  height: 15px;
  border-radius: 12px 12px 4px 4px;
  background: #ff4b55;
}

.render-body {
  position: absolute;
  left: 39px;
  top: 46px;
  width: 54px;
  height: 78px;
  border-radius: 20px 20px 16px 16px;
  background: linear-gradient(180deg, #9b6a43, #6d4124);
}

.render-body::before,
.render-body::after {
  content: '';
  position: absolute;
  top: 10px;
  width: 18px;
  height: 76px;
  border-radius: 12px;
  background: linear-gradient(180deg, #8d5d39, #5c351e);
}

.render-body::before { left: -18px; transform: rotate(10deg); }

.render-body::after { right: -18px; transform: rotate(-10deg); }

.render-leg {
  position: absolute;
  top: 118px;
  width: 25px;
  height: 68px;
  border-radius: 10px 10px 8px 8px;
  background: linear-gradient(180deg, #d42b22, #8e1916);
}

.render-left { left: 40px; }

.render-right { right: 39px; }

.character-card-panel {
  min-height: 132px;
  padding: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 75, 85, 0.12);
  background: rgba(15, 18, 24, 0.92);
  box-shadow: 0 16px 40px rgba(0,0,0,.32);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.character-profile-card:hover .character-card-panel {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 96, 0.34);
}

.character-card-panel strong {
  display: block;
  color: #fff7e9;
  font-size: 17px;
  margin-bottom: 6px;
}

.character-card-panel span {
  color: #9fa8b8;
  font-size: 13px;
}

.character-money-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.character-money-row b {
  color: #f8e36f;
  font-size: 14px;
}

.character-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: #7f8795;
  font-size: 12px;
}

.character-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8b93a1;
}

.character-card-meta button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #ffe45c;
  font-weight: 900;
  cursor: pointer;
}

.character-detail-panel {
  position: sticky;
  top: 24px;
  border: 1px solid rgba(255, 75, 85, 0.14);
  border-radius: 24px;
  padding: 22px;
  background: rgba(12, 14, 19, 0.88);
  box-shadow: 0 24px 64px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
}

.character-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.character-detail-head span {
  display: block;
  color: #f2c94c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.character-detail-head h2 {
  margin: 0;
  color: #fff7e8;
  font-size: 25px;
  letter-spacing: -.04em;
}

.character-detail-head strong {
  color: #7f8795;
}

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

.character-detail-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}

.character-detail-grid span {
  display: block;
  color: #8f98a8;
  font-size: 12px;
  margin-bottom: 8px;
}

.character-detail-grid b {
  color: #fff1df;
  font-size: 15px;
}

.character-bars {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.character-statbar {
  display: grid;
  gap: 8px;
  animation: statFadeIn .55s ease both;
}

.statbar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d7deea;
  font-size: 13px;
  font-weight: 800;
}

.statbar-label span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.statbar-track {
  --fill: 0%;
  position: relative;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.statbar-track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent);
  pointer-events: none;
}

.statbar-track i {
  display: block;
  width: var(--fill);
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: statFill .8s cubic-bezier(.22,.8,.2,1) both;
  box-shadow: 0 0 18px rgba(255,255,255,.18);
}

.statbar-track.is-health i {
  background: #e33b3b;
  box-shadow: 0 0 18px rgba(227, 59, 59, .35);
}

.statbar-track.is-armor i {
  background: #f1f2f4;
  box-shadow: 0 0 18px rgba(255, 255, 255, .22);
}

.statbar-track.is-good i {
  background: #5ad06c;
  box-shadow: 0 0 18px rgba(90, 208, 108, .24);
}

.statbar-track.is-medium i {
  background: #ff9aa0;
  box-shadow: 0 0 18px rgba(224, 185, 74, .28);
}

.statbar-track.is-low i {
  background: #e33b3b;
  box-shadow: 0 0 18px rgba(227, 59, 59, .28);
}

.vehicle-list-block {
  margin-top: 24px;
}

.vehicle-list-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #fff4e2;
  font-size: 15px;
}

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

.vehicle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}

.vehicle-item strong,
.vehicle-item b {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff1df;
  font-size: 13px;
}

.vehicle-item span {
  display: block;
  margin-top: 5px;
  color: #8d96a5;
  font-size: 12px;
}

.empty-vehicle {
  margin: 0;
  color: #9fa8b8;
  font-size: 13px;
}

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

.dashboard-character-grid.compact .dashboard-character-card {
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.dashboard-donation-link {
  text-decoration: none;
}

.dashboard-donation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 75, 85, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 75, 85, 0.12), rgba(255, 255, 255, 0.035));
}

.dashboard-donation-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff3e4;
  font-size: 15px;
  font-weight: 900;
}

.dashboard-donation-card span svg {
  color: var(--accent-light);
}

.dashboard-donation-card p {
  margin: 6px 0 0;
  color: #aeb7c6;
  line-height: 1.55;
  font-size: 13px;
}

.dashboard-donation-card a {
  min-width: max-content;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 75, 85, 0.36);
  color: #ffffff;
  background: rgba(255, 75, 85, 0.18);
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.dashboard-donation-card a:hover {
  transform: translateY(-2px);
  background: rgba(255, 75, 85, 0.25);
}

@media (max-width: 1180px) {
  .characters-page {
    grid-template-columns: 1fr;
  }

  .character-detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .character-cards-area,
  .dashboard-character-grid.compact,
  .character-detail-grid {
    grid-template-columns: 1fr;
  }

  .character-cards-area {
    min-height: 0;
  }

  .create-character-btn {
    width: 100%;
    justify-content: center;
  }

  .dashboard-donation-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-donation-card a {
    width: 100%;
  }
}

/* Character page: GTA render assets + details modal */

.characters-page-clean {
  display: block;
}

.character-cards-only {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  align-items: start;
  gap: 26px;
}

.gta-character-card {
  position: relative;
  min-height: 428px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0 4px 6px;
  animation: charCardIn .6s cubic-bezier(.2,.9,.2,1) both;
}

.gta-character-card:nth-child(2) { animation-delay: .08s; }

.gta-character-card:nth-child(3) { animation-delay: .16s; }

.gta-character-card:nth-child(4) { animation-delay: .24s; }

.gta-character-card .character-card-panel {
  width: 100%;
}

.gta-skin {
  position: relative;
  display: grid;
  place-items: end center;
  overflow: visible;
  border-radius: 18px;
  background: none;
  border: 0;
}

.gta-skin-card {
  height: 246px;
  margin-bottom: 10px;
  background: radial-gradient(circle at 50% 86%, rgba(216, 41, 47, 0.18), transparent 34%);
  border: 0;
}

.gta-skin-detail {
  width: 160px;
  height: 230px;
  background: radial-gradient(circle at 50% 70%, rgba(255, 75, 85, 0.14), transparent 62%);
}

.gta-skin-mini {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 15px;
}

.gta-skin img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0,0,0,0.56));
  transition: transform .32s ease, filter .32s ease;
  animation: skinFloat 5.5s ease-in-out infinite;
}

.gta-character-card:hover .gta-skin img {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 28px 34px rgba(0,0,0,0.62));
}

.gta-skin-mini img {
  transform: scale(1.4) translateY(4px);
}

.gta-skin span {
  position: absolute;
  right: 10px;
  bottom: 8px;
  min-width: 34px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff5e8;
  font-size: 11px;
  font-weight: 900;
}

.gta-skin.is-missing::before {
  content: 'SKIN';
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 75, 85, 0.22), rgba(255,255,255,0.06));
  color: #ffe0b7;
  font-weight: 900;
}

.character-card-panel {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 16, 23, 0.88), rgba(9, 11, 16, 0.92));
  border: 1px solid rgba(255, 91, 91, 0.24);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0,0,0,.28);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.gta-character-card:hover .character-card-panel {
  transform: translateY(-4px);
  border-color: rgba(255, 91, 91, 0.34);
  box-shadow: 0 26px 58px rgba(0,0,0,.34);
}

.character-card-panel strong {
  display: block;
  color: #fff5e7;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.character-card-panel > div:first-child span {
  display: block;
  margin-top: 9px;
  color: #aeb6c2;
  font-size: 14px;
}

.character-money-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: baseline;
  margin-top: 16px;
}

.character-money-row b {
  color: #ff4b55;
  font-size: 22px;
}

.character-money-row span {
  justify-self: end;
  color: #b0b8c4;
  font-size: 14px;
}

.character-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.character-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8b93a2;
  font-size: 13px;
}

.character-card-meta button {
  margin-left: auto;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 91, 91, 0.18);
  background: rgba(255, 75, 85, 0.10);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.character-card-meta button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 91, 91, 0.34);
  box-shadow: 0 12px 24px rgba(216, 41, 47, .18);
}

.character-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(14px);
  animation: modalFadeIn 0.22s ease both;
}

.character-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(255,245,231,0.13);
  background: linear-gradient(180deg, rgba(12,12,14,0.97), rgba(8,8,10,0.98));
  box-shadow: 0 40px 120px rgba(0,0,0,0.62);
  padding: 26px;
  animation: modalSlideIn 0.28s cubic-bezier(.2,.9,.2,1) both;
}

.character-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff1df;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.character-modal-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}

.modal-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.character-modal-hero h2 {
  margin: 0;
  color: #fff4e5;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.character-modal-hero p {
  margin: 12px 0 0;
  color: #aeb5c1;
  font-weight: 700;
}

.modal-grid {
  margin-bottom: 20px;
}

.vehicle-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.vehicle-gta-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.vehicle-gta-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 188, 86, 0.24);
  background: rgba(255,255,255,0.05);
}

.vehicle-gta-image {
  width: 88px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 60%, rgba(255, 75, 85, 0.14), rgba(255,255,255,0.04));
  overflow: hidden;
}

.vehicle-gta-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.42));
}

.vehicle-gta-card strong,
.vehicle-gta-card span,
.vehicle-gta-card small {
  display: block;
}

.vehicle-gta-card strong {
  color: #fff4e6;
  font-size: 15px;
}

.vehicle-gta-card span,
.vehicle-gta-card small {
  margin-top: 5px;
  color: #aeb5c1;
  font-size: 12px;
}

.vehicle-gta-card small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f0c58d;
  font-weight: 800;
}

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

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .character-cards-only {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .character-card-panel strong {
    font-size: 20px;
  }

  .character-money-row {
    grid-template-columns: 1fr;
  }

  .character-money-row span {
    justify-self: start;
  }

  .character-modal {
    padding: 20px;
  }

  .character-modal-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gta-skin-detail {
    margin: 0 auto;
  }
}

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

@keyframes charCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes statFill {
  from { width: 0; }
  to { width: var(--fill); }
}

/* Character layout polish: prevent offside skin renders and tidy vehicle previews */

.dashboard-character-grid.compact .dashboard-character-card {
  overflow: hidden;
  align-items: center;
  min-height: 74px;
  border-radius: 18px;
}

.dashboard-character-grid.compact .gta-skin-mini {
  overflow: hidden;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 75, 85, 0.08);
  border: 1px solid rgba(255,255,255,.07);
}

.dashboard-character-grid.compact .gta-skin-mini img {
  max-width: 86%;
  max-height: 112%;
  transform: translateY(8px) scale(1.1);
  animation: none;
}

.dashboard-character-grid.compact .gta-skin-mini span {
  right: 4px;
  bottom: 4px;
  min-width: 22px;
  height: 17px;
  padding: 0 5px;
  font-size: 9px;
}

.character-cards-only {
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 30px;
  padding-top: 10px;
}

.gta-character-card {
  min-height: 430px;
  overflow: visible;
}

.gta-skin-card {
  height: 248px;
  overflow: visible;
  margin-bottom: 8px;
}

.gta-skin-card img {
  max-height: 238px;
  max-width: 92%;
}

.character-card-panel {
  overflow: hidden;
}

.character-modal {
  overflow-x: hidden;
}

.character-modal-hero {
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.character-modal-hero .gta-skin-detail {
  width: 150px;
  height: 220px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 75, 85, 0.08);
  border: 1px solid rgba(255,255,255,.06);
}

.character-modal-hero .gta-skin-detail img {
  max-height: 214px;
  max-width: 92%;
  transform: translateY(6px);
  animation: none;
}

.character-modal-hero .gta-skin-detail span {
  right: 8px;
  bottom: 8px;
}

.modal-grid {
  position: relative;
  z-index: 2;
}

.character-detail-grid div {
  min-width: 0;
}

.vehicle-gta-image {
  position: relative;
  overflow: hidden;
}

.vehicle-gta-image.is-missing::before,
.vehicle-gta-image:empty::before {
  content: 'VEH';
  width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 75, 85, .20), rgba(255,255,255,.05));
  color: #f0c58d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.vehicle-gta-image img {
  max-width: 96%;
  max-height: 92%;
}

.vehicle-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.vehicle-gta-card {
  min-width: 0;
}

.vehicle-gta-card > div:last-child {
  min-width: 0;
}

.vehicle-gta-card strong,
.vehicle-gta-card span,
.vehicle-gta-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .character-modal-hero {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .character-modal-hero .gta-skin-detail {
    margin: 0 auto;
  }

  .vehicle-card-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-gta-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

/* Smooth premium motion refresh */

.hero-content,
.server-card,
.step-row,
.store-panel,
.status-card,
.auth-panel,
.dashboard-card,
.dashboard-shell,
.character-card-panel,
.character-modal,
.vehicle-gta-card,
.dashboard-character-card,
.faq-item,
.surface {
  transition:
    transform .32s cubic-bezier(.2,.75,.25,1),
    box-shadow .32s cubic-bezier(.2,.75,.25,1),
    border-color .28s ease,
    background-color .28s ease,
    opacity .28s ease;
  will-change: transform;
}

.server-card:hover,
.step-row:hover,
.store-panel:hover,
.status-card:hover,
.dashboard-card:hover,
.character-card-panel:hover,
.vehicle-gta-card:hover,
.dashboard-character-card:hover,
.faq-item:hover,
.surface:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(0,0,0,.34), 0 0 0 1px rgba(255,75,85,.06);
  border-color: rgba(255, 75, 85, 0.28);
}

.step-row,
.server-card,
.store-panel,
.status-card,
.dashboard-card,
.character-card-panel,
.vehicle-gta-card,
.dashboard-character-card,
.auth-panel {
  animation: smoothReveal .65s cubic-bezier(.2,.8,.2,1) both;
}

.step-row:nth-child(2),
.status-card:nth-child(2),
.vehicle-gta-card:nth-child(2),
.dashboard-character-card:nth-child(2) { animation-delay: .06s; }

.step-row:nth-child(3),
.status-card:nth-child(3),
.vehicle-gta-card:nth-child(3),
.dashboard-character-card:nth-child(3) { animation-delay: .12s; }

.step-row:nth-child(4),
.status-card:nth-child(4),
.vehicle-gta-card:nth-child(4),
.dashboard-character-card:nth-child(4) { animation-delay: .18s; }

.hero-logo,
.auth-logo {
  animation: softBreath 6s ease-in-out infinite;
}

.auth-panel {
  box-shadow: 0 34px 84px rgba(0,0,0,.42), 0 0 0 1px rgba(255,75,85,.08);
}

.auth-input,
.input-wrap,
.pin-input,
.pin-box,
.character-modal-stats .stat-card,
.dashboard-stat,
.panel-card {
  transition:
    border-color .24s ease,
    background-color .24s ease,
    transform .24s ease,
    box-shadow .24s ease;
}

.auth-input:focus-within,
.input-wrap:focus-within,
.pin-input:focus-within,
.character-modal-stats .stat-card:hover,
.dashboard-stat:hover,
.panel-card:hover {
  border-color: rgba(255,75,85,.34);
  box-shadow: 0 0 0 4px rgba(255,75,85,.08);
  transform: translateY(-2px);
}

.home-pill,
.language,
.login-link,
.register-link,
.primary-action,
.secondary-action,
.copy-btn,
.create-character-btn,
.character-card-meta button {
  transition:
    transform .24s cubic-bezier(.2,.75,.25,1),
    box-shadow .24s ease,
    border-color .24s ease,
    background-color .24s ease,
    filter .24s ease;
}

.home-pill:hover,
.language:hover,
.login-link:hover,
.register-link:hover,
.primary-action:hover,
.secondary-action:hover,
.copy-btn:hover,
.create-character-btn:hover,
.character-card-meta button:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
}

@keyframes smoothReveal {
  from { opacity: 0; transform: translateY(18px) scale(.988); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes softBreath {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 18px 28px rgba(0,0,0,.44)); }
  50% { transform: translateY(-4px) scale(1.01); filter: drop-shadow(0 24px 34px rgba(0,0,0,.52)); }
}

/* Dashboard account menu + remove welcome panel spacing */

.dashboard-sidebar {
  justify-content: flex-start;
}

.dashboard-bottom-grid {
  grid-template-columns: 1fr !important;
}

.dashboard-info-card {
  max-width: 100%;
}

.dashboard-account-menu {
  position: relative;
  z-index: 40;
}

.dashboard-account-menu .dashboard-user-chip {
  min-width: 170px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.84);
  color: #f4f5f7;
  cursor: pointer;
  justify-content: flex-start;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.dashboard-account-menu .dashboard-user-chip:hover,
.dashboard-account-menu .dashboard-user-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 75, 85, 0.34);
  background: rgba(16, 17, 20, 0.92);
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
  outline: none;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,.44);
  animation: accountDropIn .22s cubic-bezier(.2,.75,.25,1) both;
}

.account-menu-item {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  color: #e9edf5;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.account-menu-item:hover {
  background: rgba(255,255,255,.07);
  transform: translateX(2px);
}

.account-menu-item.is-danger {
  color: #ff8d94;
}

.account-menu-item.is-danger:hover {
  color: #ffffff;
  background: rgba(255,75,85,.14);
}

.dashboard-welcome-card {
  display: none !important;
}

@keyframes accountDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
  .dashboard-account-menu,
  .dashboard-account-menu .dashboard-user-chip {
    width: 100%;
  }
  .account-dropdown {
    left: 0;
    right: auto;
    width: 100%;
  }
}

/* Cleaner account dropdown and account settings modal */

.dashboard-top {
  position: relative;
  z-index: 30;
}

.dashboard-account-menu {
  position: relative;
  z-index: 120;
}

.dashboard-account-menu .dashboard-user-chip {
  min-width: 186px;
  padding: 11px 14px;
  justify-content: flex-start;
}

.dashboard-user-avatar {
  position: relative;
  overflow: hidden;
}

.dashboard-user-avatar img,
.account-settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-user-avatar i,
.account-settings-avatar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.dashboard-user-avatar:not(.is-fallback) i,
.account-settings-avatar:not(.is-fallback) span {
  display: none;
}

.account-dropdown {
  width: 240px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8, 9, 12, 0.985);
  box-shadow: 0 28px 70px rgba(0,0,0,.52);
  overflow: hidden;
}

.account-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: rgba(8, 9, 12, 0.985);
  border-left: 1px solid rgba(255,255,255,.08);
  border-top: 1px solid rgba(255,255,255,.08);
}

.account-menu-item {
  position: relative;
  z-index: 1;
  height: 46px;
  border-radius: 13px;
}

.account-menu-item + .account-menu-item {
  margin-top: 6px;
}

.account-settings-modal {
  max-width: 560px;
}

.account-settings-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.account-settings-avatar {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  overflow: hidden;
  flex: 0 0 74px;
  background: rgba(255, 75, 85, 0.12);
  border: 1px solid rgba(255,255,255,.08);
}

.account-settings-head h2 {
  margin: 4px 0 6px;
  font-size: 28px;
  color: #fff6f0;
}

.account-settings-head p {
  margin: 0;
  color: #a6afbb;
}

.account-settings-grid {
  display: grid;
  gap: 14px;
}

.account-info-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.account-info-card span {
  display: block;
  margin-bottom: 10px;
  color: #8f98a5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.account-info-card b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5f7fb;
  font-size: 15px;
}

.discord-connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.connect-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 75, 85, 0.12);
  border: 1px solid rgba(255, 75, 85, 0.18);
  color: #fff2f3;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.connect-discord-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 75, 85, 0.18);
  border-color: rgba(255, 75, 85, 0.28);
}

@media (max-width: 700px) {
  .account-settings-head {
    align-items: flex-start;
  }

  .account-settings-head h2 {
    font-size: 24px;
  }

  .account-dropdown {
    width: min(240px, 100%);
  }
}

/* Full account settings: premium dropdown, editable account, Discord connect */

.dashboard-top {
  position: relative;
  z-index: 50;
}

.dashboard-account-menu {
  position: relative;
  z-index: 160;
}

.dashboard-account-menu .dashboard-user-chip {
  min-width: 188px;
  padding: 11px 14px;
  justify-content: flex-start;
}

.dashboard-user-avatar,
.account-settings-avatar {
  position: relative;
  overflow: hidden;
}

.dashboard-user-avatar img,
.account-settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-user-avatar i,
.account-settings-avatar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.dashboard-user-avatar:not(.is-fallback) i,
.account-settings-avatar:not(.is-fallback) span {
  display: none;
}

.account-dropdown {
  width: 248px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8, 9, 12, 0.985);
  box-shadow: 0 28px 70px rgba(0,0,0,.52);
  overflow: hidden;
}

.account-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: rgba(8, 9, 12, 0.985);
  border-left: 1px solid rgba(255,255,255,.08);
  border-top: 1px solid rgba(255,255,255,.08);
}

.account-menu-item {
  position: relative;
  z-index: 1;
  height: 46px;
  border-radius: 13px;
}

.account-menu-item + .account-menu-item {
  margin-top: 6px;
}

.account-settings-modal {
  max-width: 640px;
}

.account-settings-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.account-settings-avatar {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  flex: 0 0 76px;
  background: rgba(255, 75, 85, 0.12);
  border: 1px solid rgba(255,255,255,.08);
}

.account-settings-head h2 {
  margin: 4px 0 6px;
  font-size: 30px;
  color: #fff6f0;
  letter-spacing: -0.04em;
}

.account-settings-head p {
  margin: 0;
  color: #a6afbb;
}

.account-settings-grid {
  display: grid;
  gap: 14px;
}

.account-settings-form {
  display: grid;
  gap: 13px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.account-settings-form label {
  display: grid;
  gap: 8px;
}

.account-settings-form label > span,
.account-info-card > span {
  color: #8f98a5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.settings-input {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(7, 8, 11, 0.54);
  color: #aeb6c3;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.settings-input:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 75, 85, .38);
  background: rgba(11, 12, 16, .72);
  box-shadow: 0 0 0 4px rgba(255, 75, 85, .08);
}

.settings-input input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f7fb;
  font-weight: 750;
}

.settings-input input::placeholder {
  color: rgba(174, 182, 195, .56);
}

.settings-save-btn,
.connect-discord-btn {
  height: 44px;
  border: 1px solid rgba(255, 75, 85, .24);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  background: rgba(255, 75, 85, .13);
  color: #fff2f3;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.settings-save-btn:hover,
.connect-discord-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 75, 85, .20);
  border-color: rgba(255, 75, 85, .36);
  box-shadow: 0 12px 30px rgba(255, 75, 85, .12);
}

.settings-save-btn:disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
}

.settings-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
}

.settings-status.success {
  background: rgba(115, 231, 164, .10);
  color: #a7ffd0;
  border: 1px solid rgba(115, 231, 164, .20);
}

.settings-status.error {
  background: rgba(255, 75, 85, .12);
  color: #ffbcc1;
  border: 1px solid rgba(255, 75, 85, .22);
}

.account-info-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.account-info-card b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5f7fb;
  font-size: 15px;
}

.discord-connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.discord-connect-row small {
  display: block;
  margin-top: 6px;
  color: #939daa;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .account-settings-head {
    align-items: flex-start;
  }

  .account-settings-head h2 {
    font-size: 24px;
  }

  .account-dropdown {
    width: min(248px, 100%);
  }
}

/* Account settings edit-mode polish */

.settings-read-row {
  display: grid;
  gap: 8px;
}

.settings-read-row > span {
  color: #8f98a5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.settings-value-box {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 13px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(7, 8, 11, 0.54);
  color: #aeb6c3;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.settings-value-box:hover,
.settings-value-box:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 75, 85, .28);
  background: rgba(11, 12, 16, .72);
  box-shadow: 0 0 0 4px rgba(255, 75, 85, .06);
}

.settings-value-box strong {
  min-width: 0;
  flex: 1 1 auto;
  color: #f5f7fb;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-value-box input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f7fb;
  font-weight: 800;
}

.settings-pencil {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid rgba(255,75,85,.20);
  border-radius: 11px;
  background: rgba(255,75,85,.10);
  color: #ff8e95;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.settings-pencil:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255,75,85,.18);
  border-color: rgba(255,75,85,.34);
}

.settings-edit-area {
  display: grid;
  gap: 13px;
  padding-top: 4px;
  animation: accountDropIn .22s cubic-bezier(.2,.75,.25,1) both;
}

.settings-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-cancel-btn {
  height: 44px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  background: rgba(255,255,255,.05);
  color: #d6dce7;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.settings-cancel-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.settings-save-btn {
  background: #ff4b55;
  color: #ffffff;
}

.account-dropdown {
  overflow: visible;
}

.account-menu-item {
  color: #eef2f8;
  opacity: 1;
  pointer-events: auto;
}

.account-menu-item.is-danger {
  color: #ff9aa0;
}

/* Email change verification flow */

.email-only-edit {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 14px;
}

.settings-input.is-readonly {
  opacity: .86;
  background: rgba(255,255,255,.025);
}

.settings-input.is-readonly input {
  color: #aeb6c3;
  cursor: default;
}

.settings-method-row,
.settings-code-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.028);
}

.settings-method-row p {
  margin: 0;
  color: #aeb6c3;
  font-size: 13px;
  line-height: 1.55;
}

.settings-method-row > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-save-btn.secondary {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.12);
  color: #e8edf5;
}

.settings-save-btn.secondary:hover:not(:disabled) {
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.20);
}

/* FINAL SOLID THEME OVERRIDE — no gradient, no neon */

:root {
  --page: #040405;
  --page-soft: #0b0c0f;
  --surface: #0f1014;
  --surface-solid: #101116;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 75, 85, 0.28);
  --text: #f5f6f8;
  --muted: #a7abb3;
  --cream: #f1f2f4;
  --orange: #ff4b55;
  --orange-light: #ff4b55;
  --accent-red: #ff4b55;
  --accent: #ff4b55;
  --accent-light: #ff4b55;
  --green: #73e7a4;
  --shadow: 0 18px 42px rgba(0,0,0,.32);
}

body,
main,
.auth-screen {
  background: #040405 !important;
}

.hero-backdrop {
  background: url('/assets/city-bg-C7eAAZLj.png') center/cover !important;
  opacity: .44 !important;
  filter: none !important;
}

.auth-bg {
  opacity: .28 !important;
  filter: none !important;
}

.auth-screen::before {
  background: rgba(4,4,5,.84) !important;
}

.auth-screen::after,
.hero-line {
  background: rgba(0,0,0,.12) !important;
  background-image: none !important;
  mask-image: none !important;
}

.dashboard-page {
  background: #040405 url('/assets/city-bg-C7eAAZLj.png') center/cover fixed !important;
}

.dashboard-noise {
  background: rgba(0,0,0,.66) !important;
}

.auth-glow,
.auth-glow-one,
.auth-glow-two,
.showcase-dots,
.hero-showcase::after,
.hero-showcase::before {
  display: none !important;
}

.site-header,
.auth-panel,
.server-card,
.surface,
.faq-item,
.step-row,
.store-panel,
.status-card,
.stat-box,
.ip-panel,
.dashboard-sidebar,
.dashboard-block,
.dash-stat-card,
.dashboard-user-chip,
.dashboard-state,
.dashboard-welcome-card,
.character-card-panel,
.character-modal,
.vehicle-gta-card,
.account-dropdown,
.account-settings-modal,
.account-info-card,
.email-edit-panel,
.discord-code-panel,
.pin-box,
.input-wrap,
.auth-input,
.language-menu,
.social-card,
.hero-showcase,
.slide-card {
  background: #0f1014 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.28) !important;
  text-shadow: none !important;
}

.register-link,
.primary-action,
.auth-submit,
.create-character-btn,
.step-row b,
.loader-bar i,
.welcome-icon,
.auth-remember input:checked + span,
.email-edit-actions .save-btn,
.connect-discord-btn.primary,
.confirm-action,
.save-action {
  background: #ff4b55 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #ff4b55 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.secondary-action,
.copy-btn,
.language,
.login-link,
.menu-toggle,
.dash-nav-btn,
.dashboard-site-link,
.account-menu-item,
.connect-discord-btn,
.character-card-meta button,
.cancel-btn,
.back-btn,
.edit-icon-btn,
.email-method-btn,
.verify-code-btn,
.resend-code-btn {
  background: #111217 !important;
  background-image: none !important;
  color: #f5f6f8 !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.register-link:hover,
.primary-action:hover,
.auth-submit:hover,
.create-character-btn:hover,
.secondary-action:hover,
.copy-btn:hover,
.language:hover,
.login-link:hover,
.menu-toggle:hover,
.dash-nav-btn:hover,
.dashboard-site-link:hover,
.dash-nav-btn.is-active,
.account-menu-item:hover,
.connect-discord-btn:hover,
.character-card-meta button:hover,
.edit-icon-btn:hover,
.email-method-btn:hover,
.verify-code-btn:hover,
.resend-code-btn:hover {
  background: #171922 !important;
  background-image: none !important;
  border-color: rgba(255,75,85,.36) !important;
  box-shadow: none !important;
  filter: none !important;
}

.register-link:hover,
.primary-action:hover,
.auth-submit:hover,
.create-character-btn:hover,
.email-edit-actions .save-btn:hover,
.confirm-action:hover,
.save-action:hover {
  background: #ff4b55 !important;
  border-color: #ff4b55 !important;
}

.loader-bar,
.statbar-track {
  background: #23252d !important;
  background-image: none !important;
  box-shadow: none !important;
}

.status-dot {
  background: #73e7a4 !important;
  box-shadow: none !important;
}

.statbar-track::after,
.auth-submit::after,
.language::after,
.login-link::after,
.register-link::after {
  display: none !important;
}

.statbar-track.is-health i,
.statbar-track.is-low i {
  background: #e33b3b !important;
  box-shadow: none !important;
}

.statbar-track.is-armor i {
  background: #f1f2f4 !important;
  box-shadow: none !important;
}

.statbar-track.is-good i {
  background: #5ad06c !important;
  box-shadow: none !important;
}

.statbar-track.is-medium i {
  background: #d8b64a !important;
  box-shadow: none !important;
}

.gta-skin-card,
.gta-skin-detail,
.gta-skin-mini,
.vehicle-gta-image,
.character-avatar,
.dashboard-user-avatar,
.account-settings-avatar,
.social-icon,
.language-menu button span {
  background: #171922 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.hero-logo,
.auth-logo,
.gta-skin img,
.vehicle-gta-image img,
.loader-shell img {
  filter: none !important;
}

.slide-card::before,
.slide-one::before,
.slide-two::before,
.slide-three::before {
  background: rgba(0,0,0,.42) !important;
  background-image: none !important;
}

.render-head::before,
.render-body,
.render-leg,
.render-arm {
  background: #5d4030 !important;
  background-image: none !important;
}

.render-leg {
  background: #8b1f25 !important;
}

.character-money-row b,
.modal-label,
.eyebrow,
.section-label,
.auth-field b,
.auth-options a,
.auth-switch a,
.pin-actions button,
.account-menu-item.is-danger,
.dash-nav-btn.is-active,
.connect-discord-btn,
.email-method-btn strong {
  color: #ff4b55 !important;
}

.caps-warning,
.vehicle-gta-card small {
  color: #ff4b55 !important;
}

* {
  text-shadow: none !important;
}

/* Final UI tidy: transparent character art, no skin id badge, neater cards, discord edit panel */

.gta-skin-card,
.gta-skin-detail,
.gta-skin-mini,
.dashboard-character-grid.compact .gta-skin-mini,
.character-modal-hero .gta-skin-detail {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.gta-skin::before,
.gta-skin::after,
.gta-skin span,
.dashboard-character-grid.compact .gta-skin-mini span,
.character-modal-hero .gta-skin-detail span {
  display: none !important;
}

.dashboard-character-grid.compact .dashboard-character-card {
  min-height: 88px !important;
  padding: 14px 16px !important;
  gap: 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 75, 85, 0.18) !important;
  background: rgba(10, 12, 18, 0.92) !important;
}

.dashboard-character-grid.compact .gta-skin-mini {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
}

.dashboard-character-grid.compact .gta-skin-mini img {
  max-width: 78% !important;
  max-height: 110% !important;
  transform: translateY(7px) scale(1.03) !important;
}

.dashboard-character-grid.compact .character-info {
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-character-grid.compact .character-info strong {
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-character-grid.compact .character-info span {
  display: block;
  color: #a5adba !important;
}

.character-modal-hero {
  align-items: end;
}

.character-modal-hero .gta-skin-detail {
  width: 142px !important;
  height: 210px !important;
}

.character-modal-hero .gta-skin-detail img {
  max-width: 92% !important;
  max-height: 100% !important;
}

.settings-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.settings-inline-head > span {
  margin-bottom: 0 !important;
}

.settings-edit-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 75, 85, 0.24);
  background: rgba(255, 75, 85, 0.10);
  color: #ffd9dc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.settings-edit-icon:hover {
  background: rgba(255, 75, 85, 0.18);
  border-color: rgba(255, 75, 85, 0.32);
  transform: translateY(-1px);
}

.discord-unbind-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: 12px;
}

.discord-unbind-panel p {
  margin: 0;
  color: #a9b1be;
  line-height: 1.6;
}

.settings-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-cancel-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #f2f5fa;
  font-weight: 800;
  cursor: pointer;
}

.settings-cancel-btn:hover {
  background: rgba(255,255,255,.08);
}

/* Create character modal */

.create-character-backdrop {
  z-index: 75;
}

.create-character-modal {
  width: min(760px, calc(100vw - 28px));
  max-width: 760px;
  padding: 28px;
  background: rgba(10, 12, 18, 0.98);
  border: 1px solid rgba(255, 75, 85, 0.16);
  border-radius: 24px;
}

.create-character-head h2 {
  margin: 0;
  font-size: 1.7rem;
}

.create-character-head p {
  margin: 8px 0 0;
  color: #9fa8b8;
  line-height: 1.6;
}

.create-character-form {
  margin-top: 22px;
}

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

.create-character-grid label {
  display: grid;
  gap: 8px;
}

.create-character-grid label > span {
  font-size: 0.85rem;
  font-weight: 800;
  color: #d9dee7;
  letter-spacing: 0.02em;
}

.create-character-grid label > small {
  color: #7d8696;
  font-size: 0.78rem;
}

.create-character-grid input,
.create-character-grid select {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: #f6f8fc;
  padding: 0 16px;
  outline: none;
}

.create-character-grid input:focus,
.create-character-grid select:focus {
  border-color: rgba(255, 75, 85, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 75, 85, 0.08);
}

.create-character-input.has-icon {
  position: relative;
}

.create-character-input.has-icon svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9fa8b8;
}

.create-character-input.has-icon input {
  padding-left: 44px;
}

.create-character-status {
  margin-top: 18px;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.create-character-status.success {
  background: rgba(34,197,94,.14);
  color: #9df0bf;
  border: 1px solid rgba(34,197,94,.18);
}

.create-character-status.error {
  background: rgba(255,75,85,.10);
  color: #ffbcc1;
  border: 1px solid rgba(255,75,85,.18);
}

.create-character-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.create-character-cancel,
.create-character-submit {
  height: 48px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
}

.create-character-cancel {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #f0f3f8;
}

.create-character-submit {
  border: 1px solid rgba(255, 75, 85, 0.24);
  background: #ff4b55;
  color: white;
}

.create-character-submit:disabled {
  opacity: .7;
  cursor: wait;
}

@media (max-width: 720px) {
  .create-character-modal { padding: 22px 18px; }
  .create-character-grid { grid-template-columns: 1fr; gap: 14px; }
  .create-character-actions { flex-direction: column-reverse; }
  .create-character-cancel, .create-character-submit { width: 100%; }
}

/* Create character modal - dropdown visibility and cleaner layout */

.create-character-modal {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.create-character-head {
  margin-bottom: 4px;
}

.create-character-grid {
  align-items: start;
}

.create-character-grid select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-color: rgba(255,255,255,.03);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d7dce6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

.create-character-grid select option,
.create-character-grid select optgroup {
  color: #101318 !important;
  background: #ffffff !important;
}

.create-character-grid select:focus option,
.create-character-grid select:focus optgroup {
  color: #101318 !important;
}

.create-character-grid input::placeholder {
  color: #7f8794;
}

.create-character-actions {
  align-items: center;
}

.create-character-cancel,
.create-character-submit {
  min-width: 150px;
}

@media (min-width: 721px) {
  .create-character-actions {
    padding-top: 6px;
  }
}

/* Extra country dropdown polish */

.create-character-grid select {
  color: #f6f8fc !important;
}

.create-character-grid select option {
  color: #111318 !important;
  background-color: #ffffff !important;
}

.create-character-status.error {
  color: #ffd1d5 !important;
}

/* Hide caps lock warning by request */

.caps-warning, .caps-warning.is-visible { display: none !important; }

.create-character-status {
  line-height: 1.45;
  word-break: break-word;
}

/* Custom Origin dropdown - fixes unreadable native browser dropdown */

.origin-field {
  position: relative;
}

.custom-origin-select {
  position: relative;
  z-index: 20;
}

.custom-origin-select.is-open {
  z-index: 90;
}

.custom-origin-trigger {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: #f6f8fc;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.custom-origin-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-origin-trigger svg {
  flex: 0 0 auto;
  color: #d7dce6;
  transition: transform .2s ease;
}

.custom-origin-select.is-open .custom-origin-trigger {
  border-color: rgba(255, 75, 85, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 75, 85, 0.08);
}

.custom-origin-select.is-open .custom-origin-trigger svg {
  transform: rotate(180deg);
}

.custom-origin-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 245px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: #111318;
  box-shadow: 0 22px 52px rgba(0,0,0,.44);
}

.custom-origin-menu button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #f4f6fb;
  text-align: left;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.custom-origin-menu button:hover,
.custom-origin-menu button.is-selected {
  background: #ff4b55;
  color: #ffffff;
}

.custom-origin-menu::-webkit-scrollbar {
  width: 9px;
}

.custom-origin-menu::-webkit-scrollbar-track {
  background: #0b0d12;
  border-radius: 999px;
}

.custom-origin-menu::-webkit-scrollbar-thumb {
  background: #3a3f4c;
  border-radius: 999px;
}

.custom-origin-menu::-webkit-scrollbar-thumb:hover {
  background: #ff4b55;
}

@media (max-width: 720px) {
  .custom-origin-menu {
    max-height: 210px;
  }
}

/* Homepage/auth cleanup */

.brand,
.footer-brand,
.dashboard-brand,
.auth-logo {
  cursor: pointer;
}

.hero-showcase,
.showcase-track,
.showcase-slide {
  display: none !important;
}

.hero-side {
  display: block !important;
}

.hero-line,
.auth-screen::after,
.page-loader::after,
.page-loader::before {
  display: none !important;
  background-image: none !important;
}

.auth-glow,
body::before,
body::after {
  display: none !important;
}

.auth-screen {
  background: #040405 !important;
}

.auth-bg {
  opacity: 0.30 !important;
  filter: grayscale(0.28) contrast(1.05) !important;
  animation: none !important;
  transform: none !important;
}

.auth-screen::before {
  background: rgba(4, 4, 5, 0.76) !important;
}

.auth-panel {
  background: rgba(10, 11, 15, 0.96) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42) !important;
}

.auth-panel:hover {
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42) !important;
}

.auth-panel::before {
  display: none !important;
}

.auth-logo img {
  width: 142px !important;
  filter: none !important;
  animation: none !important;
}

.site-header,
.dashboard-sidebar,
.dashboard-top,
.dashboard-block,
.server-card,
.auth-panel {
  backdrop-filter: none !important;
}

.dashboard-page {
  background-color: #040405 !important;
}

.dashboard-noise {
  background: rgba(0,0,0,0.12) !important;
}

@media (max-width: 980px) {
  .hero-side {
    display: none !important;
  }
}

/* Final login cleanup: remove background blocks/logo bleed and make auth solid */

.auth-screen {
  background: #050609 !important;
  padding: 54px 18px !important;
}

.auth-bg,
.auth-glow,
.auth-glow-one,
.auth-glow-two {
  display: none !important;
  opacity: 0 !important;
}

.auth-screen::before,
.auth-screen::after {
  display: none !important;
  background: none !important;
  background-image: none !important;
}

.auth-panel {
  width: min(430px, calc(100vw - 28px)) !important;
  padding: 34px 32px 28px !important;
  border-radius: 24px !important;
  background: #0d0f14 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46) !important;
  backdrop-filter: none !important;
}

.auth-panel:hover {
  border-color: rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46) !important;
}

.auth-logo {
  margin-bottom: 24px !important;
}

.auth-logo img {
  width: 118px !important;
  max-width: 118px !important;
  filter: none !important;
  animation: none !important;
}

.auth-heading {
  text-align: center !important;
  margin-bottom: 26px !important;
}

.auth-heading h1 {
  font-size: 30px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.045em !important;
}

.auth-heading p {
  max-width: 320px !important;
  margin-inline: auto !important;
  color: #adb4c1 !important;
}

.auth-form {
  gap: 15px !important;
}

.auth-field span {
  margin-bottom: 7px !important;
}

.auth-input {
  min-height: 48px !important;
  background: #11141b !important;
  border-color: rgba(255,255,255,.10) !important;
}

.auth-input:focus-within {
  border-color: rgba(255, 75, 85, 0.44) !important;
  box-shadow: 0 0 0 4px rgba(255,75,85,.08) !important;
}

.auth-options {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 2px !important;
}

.auth-remember {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  white-space: nowrap !important;
  min-width: max-content !important;
  color: #d7dce6 !important;
}

.auth-remember span {
  flex: 0 0 auto !important;
}

.auth-options a {
  white-space: nowrap !important;
  text-align: right !important;
  color: #ff4b55 !important;
}

.auth-submit {
  margin-top: 2px !important;
  background: #ff4b55 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.auth-back,
.auth-language-top {
  z-index: 20 !important;
}

@media (max-width: 520px) {
  .auth-screen {
    padding: 26px 12px !important;
  }

  .auth-panel {
    padding: 30px 20px 24px !important;
  }

  .auth-options {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .auth-options a {
    text-align: left !important;
  }
}

/* Restore clean background on login */

.auth-screen {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 75, 85, 0.10), transparent 22rem),
    linear-gradient(180deg, #050609 0%, #08090d 58%, #050609 100%) !important;
}

.auth-bg {
  display: block !important;
  opacity: 0.24 !important;
  filter: grayscale(0.22) saturate(0.90) contrast(1.03) !important;
  transform: scale(1.02) !important;
  animation: none !important;
}

.auth-screen::before {
  display: block !important;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.88), rgba(5, 5, 7, 0.72) 50%, rgba(5, 5, 7, 0.88)),
    linear-gradient(180deg, rgba(5, 5, 7, 0.72), rgba(5, 5, 7, 0.42) 44%, rgba(5, 5, 7, 0.82)) !important;
}

.auth-screen::after {
  display: none !important;
}

.auth-panel {
  background: rgba(10, 12, 18, 0.94) !important;
}

/* =========================================================
   ANDROID / SMALL SCREEN STABILITY PATCH
   Keeps desktop design, fixes mobile overflow and crowded UI.
   ========================================================= */

html,
body,
#root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 760px) {
  main {
    overflow-x: hidden !important;
  }

  .site-header {
    top: 10px !important;
    width: calc(100% - 20px) !important;
    height: 60px !important;
    padding: 0 9px 0 10px !important;
    border-radius: 18px !important;
    gap: 8px !important;
  }

  .brand,
  .footer-brand,
  .dashboard-brand,
  .auth-logo {
    min-width: 0 !important;
  }

  .brand img {
    width: 48px !important;
    height: 38px !important;
  }

  .header-actions {
    flex: 0 0 auto !important;
    gap: 6px !important;
  }

  .register-link,
  .menu-toggle {
    height: 38px !important;
    border-radius: 13px !important;
  }

  .register-link {
    padding: 0 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .menu-toggle {
    width: 40px !important;
  }

  .nav {
    max-height: calc(100vh - 96px) !important;
    overflow-y: auto !important;
  }

  .nav a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }

  .hero,
  .section,
  .footer {
    width: calc(100% - 24px) !important;
  }

  .hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: auto !important;
    padding-top: 108px !important;
    padding-bottom: 48px !important;
    gap: 22px !important;
  }

  .hero-content {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hero-logo {
    width: min(280px, 82vw) !important;
    margin: 16px 0 12px !important;
  }

  .hero h1 {
    max-width: 100% !important;
    font-size: clamp(34px, 11vw, 46px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
  }

  .hero p {
    max-width: 100% !important;
    margin-top: 16px !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }

  .hero-actions,
  .store-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 24px !important;
  }

  .primary-action,
  .secondary-action,
  .copy-btn,
  .create-character-btn,
  .settings-save-btn,
  .connect-discord-btn {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
  }

  .server-card,
  .stat-box,
  .community-card,
  .store-panel,
  .faq-item,
  .surface {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px !important;
  }

  .section {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }

  .section-heading h2,
  .store-panel h2 {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.08 !important;
  }

  .split,
  .stats-grid,
  .compact-stats,
  .community-grid,
  .social-grid,
  .footer-grid,
  .dashboard-stats,
  .dashboard-character-grid,
  .dashboard-bottom-grid,
  .dashboard-info-list,
  .character-detail-grid,
  .vehicle-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    text-align: left !important;
  }
}

@media (max-width: 720px) {
  .auth-screen {
    min-height: 100svh !important;
    padding: 86px 12px 24px !important;
    align-items: flex-start !important;
  }

  .auth-back {
    top: 18px !important;
    left: 12px !important;
  }

  .auth-language-top {
    top: 18px !important;
    right: 12px !important;
  }

  .auth-panel {
    width: 100% !important;
    max-width: 430px !important;
    padding: 26px 18px 22px !important;
    border-radius: 22px !important;
  }

  .auth-logo {
    margin-bottom: 18px !important;
  }

  .auth-logo img {
    width: 104px !important;
    max-width: 104px !important;
  }

  .auth-heading {
    margin-bottom: 20px !important;
  }

  .auth-heading h1 {
    font-size: 26px !important;
  }

  .auth-heading p {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }

  .auth-form {
    gap: 13px !important;
  }

  .auth-input,
  .settings-input,
  .settings-value-box,
  .custom-origin-trigger {
    min-height: 46px !important;
    border-radius: 13px !important;
  }

  .auth-input input,
  .settings-input input {
    min-width: 0 !important;
    font-size: 14px !important;
  }

  .auth-options,
  .pin-actions,
  .create-character-actions,
  .discord-connect-row {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .auth-remember {
    min-width: 0 !important;
    white-space: normal !important;
  }

  .dashboard-page {
    display: block !important;
    min-height: 100svh !important;
    padding: 12px !important;
    background-attachment: scroll !important;
  }

  .dashboard-sidebar {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    width: 100% !important;
    padding: 14px !important;
    margin-bottom: 14px !important;
    border-radius: 20px !important;
  }

  .dashboard-brand {
    padding-bottom: 12px !important;
  }

  .dashboard-brand img {
    width: 46px !important;
    height: 36px !important;
  }

  .dashboard-brand span {
    font-size: 17px !important;
  }

  .dashboard-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .dash-nav-btn,
  .dashboard-site-link {
    height: 44px !important;
    border-radius: 14px !important;
    padding: 0 11px !important;
    font-size: 13px !important;
    justify-content: center !important;
  }

  .dash-nav-btn.is-logout {
    margin-top: 0 !important;
    grid-column: 1 / -1 !important;
  }

  .dashboard-main {
    gap: 14px !important;
  }

  .dashboard-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .dashboard-top h1 {
    font-size: 30px !important;
    line-height: 1.08 !important;
  }

  .dashboard-top p {
    margin-top: 8px !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
  }

  .dashboard-account-menu,
  .dashboard-account-menu .dashboard-user-chip,
  .dashboard-user-chip {
    width: 100% !important;
    min-width: 0 !important;
  }

  .account-dropdown {
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
  }

  .dash-stat-card,
  .dashboard-block,
  .dashboard-state,
  .dashboard-welcome-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .dash-stat-card {
    min-height: 112px !important;
  }

  .dash-stat-card strong {
    font-size: 30px !important;
  }

  .dashboard-block-head {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .dashboard-block-head h2 {
    font-size: 20px !important;
  }

  .dashboard-character-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  .characters-page,
  .characters-page-clean {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .character-cards-area,
  .character-cards-only {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    padding-top: 0 !important;
  }

  .gta-character-card,
  .character-profile-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .gta-skin-card {
    height: 210px !important;
    margin-bottom: 6px !important;
  }

  .gta-skin-card img {
    max-height: 204px !important;
  }

  .character-card-panel {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .character-card-panel strong {
    font-size: 20px !important;
    line-height: 1.12 !important;
    word-break: break-word !important;
  }

  .character-money-row,
  .character-card-meta {
    gap: 10px !important;
  }

  .character-card-meta button {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: center !important;
  }

  .character-modal-backdrop {
    align-items: start !important;
    padding: 12px !important;
    overflow-y: auto !important;
  }

  .character-modal,
  .account-settings-modal,
  .create-character-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .character-modal-close {
    top: 12px !important;
    right: 12px !important;
  }

  .character-modal-hero {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    text-align: center !important;
    padding-top: 24px !important;
  }

  .character-modal-hero h2 {
    font-size: 30px !important;
    line-height: 1.05 !important;
    word-break: break-word !important;
  }

  .character-modal-hero .gta-skin-detail {
    width: 132px !important;
    height: 190px !important;
  }

  .character-modal-hero .gta-skin-detail img {
    max-height: 184px !important;
  }

  .character-detail-grid div,
  .account-info-card,
  .account-settings-form {
    min-width: 0 !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .vehicle-gta-card {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .vehicle-gta-image {
    width: 82px !important;
    height: 58px !important;
  }

  .account-settings-head {
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .account-settings-avatar {
    width: 62px !important;
    height: 62px !important;
    flex-basis: 62px !important;
    border-radius: 18px !important;
  }

  .account-settings-head h2 {
    font-size: 23px !important;
    word-break: break-word !important;
  }

  .create-character-overlay {
    padding: 12px !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
  }

  .create-character-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .register-link {
    max-width: 112px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .hero h1 {
    font-size: clamp(31px, 10.8vw, 40px) !important;
  }

  .dashboard-nav {
    grid-template-columns: 1fr !important;
  }

  .vehicle-gta-card {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .vehicle-gta-image {
    margin: 0 auto !important;
  }
}

/* Top up / donation page */

.topup-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px 0 82px;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 75, 85, 0.20), transparent 24rem),
    radial-gradient(circle at 10% 36%, rgba(255, 255, 255, 0.07), transparent 22rem),
    linear-gradient(180deg, #040405 0%, #0a0c11 54%, #040405 100%);
}

.topup-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 4, 5, 0.98), rgba(4, 4, 5, 0.70) 48%, rgba(4, 4, 5, 0.98)),
    linear-gradient(180deg, rgba(4, 4, 5, 0.64), rgba(4, 4, 5, 0.38) 44%, rgba(4, 4, 5, 0.94)),
    url('/assets/city-bg-C7eAAZLj.png') center/cover;
  opacity: 0.72;
  filter: grayscale(0.2) contrast(1.08);
  transform: scale(1.02);
}

.topup-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  opacity: 0.16;
  pointer-events: none;
}

.topup-header,
.topup-hero,
.topup-layout {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topup-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(9, 10, 14, 0.78);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.topup-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff4df;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.topup-brand img {
  width: 62px;
  height: 46px;
  object-fit: contain;
}

.topup-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topup-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #e9edf5;
  font-size: 14px;
  font-weight: 850;
  transition: 0.18s ease;
}

.topup-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 75, 85, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.topup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 28px;
  padding: 76px 0 34px;
}

.topup-title-block h1 {
  max-width: 790px;
  margin: 14px 0 0;
  color: #fff4df;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.topup-title-block p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #c4cad4;
  font-size: 17px;
  line-height: 1.75;
}

.topup-safe-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 75, 85, 0.10), transparent 12rem),
    rgba(15, 17, 24, 0.82);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}

.topup-safe-badge,
.summary-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 900;
}

.topup-safe-card strong {
  display: block;
  margin-top: 16px;
  color: #fff4df;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1.08;
  max-width: 260px;
}

.topup-safe-card p {
  margin: 12px 0 0;
  color: #b8bec9;
  line-height: 1.72;
  max-width: 440px;
}

.topup-safe-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.topup-safe-point {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.topup-safe-point .point-dot {
  color: var(--accent-light);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
}

.topup-safe-point span:last-child {
  color: #d6dbe4;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 750;
}

.topup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.topup-form-card,
.topup-summary-card {
  border: 1px solid var(--line);
  background: rgba(12, 13, 18, 0.82);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.topup-form-card {
  padding: 28px;
  border-radius: 30px;
}

.topup-summary-card {
  position: sticky;
  top: 24px;
  padding: 24px;
  border-radius: 28px;
}

.topup-step-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
}

.topup-step-head.compact {
  margin-top: 30px;
}

.topup-step-head b {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: #ff4b55;
  box-shadow: 0 16px 32px rgba(255, 75, 85, 0.22);
  font-weight: 950;
}

.topup-step-head h2 {
  margin: 0;
  color: #fff4df;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.topup-step-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.topup-field {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.topup-field span {
  color: #e9edf5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.topup-field input,
.topup-field select,
.topup-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  outline: none;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  font: inherit;
  font-weight: 750;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.topup-field select option {
  color: #101216;
}

.topup-field textarea {
  min-height: 118px;
  padding: 14px 15px;
  resize: vertical;
}

.topup-field input:focus,
.topup-field select:focus,
.topup-field textarea:focus {
  border-color: rgba(255, 75, 85, 0.62);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(255, 75, 85, 0.12);
}

.topup-field small {
  color: var(--muted);
  line-height: 1.55;
}

.topup-field small.valid-voucher { color: #81e6ac; }

.topup-field small.invalid-voucher { color: #ffb4b9; }

.topup-level-quantity-field {
  margin-top: 16px;
}

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

.topup-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 750;
}

.topup-product {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.topup-product:hover,
.topup-product.is-selected {
  transform: translateY(-2px);
  border-color: rgba(255, 75, 85, 0.48);
  background: linear-gradient(145deg, rgba(255, 75, 85, 0.16), rgba(255, 255, 255, 0.055));
}

.topup-product b {
  display: block;
  color: #fff4df;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.topup-product small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.topup-product em {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: -6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 75, 85, 0.24);
  border-radius: 999px;
  color: #ffc4c8;
  background: rgba(255, 75, 85, 0.10);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.topup-product strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

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

.topup-account-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.topup-grid-fields-account {
  gap: 16px;
  align-items: start;
}

.topup-character-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.topup-character-selected b {
  display: block;
  color: #fff4df;
  font-size: 15px;
  font-weight: 900;
}

.topup-character-selected span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.topup-account-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.topup-account-actions .topup-check-button {
  width: auto;
  min-width: 260px;
  margin-top: 0;
  padding: 0 20px;
}

.summary-logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 75, 85, 0.20), transparent 10rem),
    rgba(255, 255, 255, 0.04);
}

.summary-logo img {
  max-width: 210px;
  max-height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.38));
}

.topup-summary-card h2 {
  margin: 13px 0 0;
  color: #fff4df;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.topup-summary-card p {
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.summary-lines {
  display: grid;
  gap: 11px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.summary-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.summary-lines b {
  color: #eef1f7;
  text-align: right;
}

.summary-lines .summary-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.summary-total strong {
  color: #ffffff;
  font-size: 24px;
  letter-spacing: -0.055em;
}

.topup-submit {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  border: 0;
  border-radius: 17px;
  color: #ffffff;
  background: #ff4b55;
  box-shadow: 0 18px 38px rgba(255, 75, 85, 0.24);
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.topup-submit:hover:not(:disabled) {
  transform: translateY(-2px);
}

.topup-submit:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.topup-check-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  border: 1px solid rgba(255, 75, 85, 0.32);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(255, 75, 85, 0.12);
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.topup-check-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 75, 85, 0.18);
}

.topup-check-button:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.topup-message {
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.topup-message.error {
  border: 1px solid rgba(255, 75, 85, 0.30);
  color: #ffc4c8;
  background: rgba(255, 75, 85, 0.10);
}

.topup-message.success {
  border: 1px solid rgba(115, 231, 164, 0.28);
  color: #bdffd7;
  background: rgba(115, 231, 164, 0.09);
}

.topup-message.info {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.07);
}

.topup-return-message {
  width: min(1024px, calc(100% - 48px));
  margin: 24px auto 0;
}

.topup-note-list {
  display: grid;
  gap: 11px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.topup-note-list div {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.topup-note-list svg {
  color: var(--accent-light);
}

.topup-wrap.is-loading {
  opacity: 0;
  transform: translateY(8px);
}

.topup-wrap.is-ready {
  animation: pageReady 0.55s ease both;
}

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

  .topup-safe-card {
    min-height: auto;
  }

  .topup-safe-card strong {
    margin-top: 34px;
  }

  .topup-summary-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .topup-products,
  .topup-grid-fields {
    grid-template-columns: 1fr;
  }

  .topup-account-actions {
    justify-content: stretch;
  }

  .topup-account-actions .topup-check-button {
    width: 100%;
    min-width: 0;
  }

  .topup-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topup-nav {
    width: 100%;
  }

  .topup-nav a {
    flex: 1;
  }
}

@media (max-width: 620px) {
  .topup-screen {
    padding-top: 14px;
  }

  .topup-header,
  .topup-hero,
  .topup-layout {
    width: calc(100% - 28px);
  }

  .topup-header,
  .topup-form-card,
  .topup-summary-card,
  .topup-safe-card {
    border-radius: 22px;
  }

  .topup-brand span {
    font-size: 17px;
  }

  .topup-hero {
    padding: 50px 0 24px;
  }

  .topup-title-block h1 {
    font-size: 42px;
  }

  .topup-title-block p {
    font-size: 15px;
  }

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

  .topup-account-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .topup-step-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .topup-safe-card {
    padding: 22px;
  }

  .topup-safe-card strong {
    font-size: 24px;
    max-width: none;
  }
}

/* Topup custom dropdown - uses the same clean dropdown behavior as Origin */

.topup-custom-select {
  width: 100%;
}

.topup-custom-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.topup-custom-menu button {
  min-height: 44px;
  height: auto;
  display: grid;
  gap: 3px;
  align-items: center;
  padding: 10px 12px;
  line-height: 1.25;
}

.topup-custom-menu button span {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: 13px;
  font-weight: 850;
}

.topup-custom-menu button small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.topup-custom-menu button:hover small,
.topup-custom-menu button.is-selected small {
  color: rgba(255, 255, 255, 0.82);
}

.topup-full-field {
  max-width: 100%;
}

@media (max-width: 720px) {
  .topup-custom-menu button span {
    white-space: normal;
  }
}

/* Dashboard Android menu cleanup */

@media (max-width: 720px) {
  .dashboard-page {
    padding: 10px !important;
  }

  .dashboard-sidebar {
    position: sticky !important;
    top: 8px !important;
    z-index: 20 !important;
    padding: 10px !important;
    margin-bottom: 12px !important;
    background: rgba(9, 10, 14, 0.96) !important;
    border-radius: 18px !important;
  }

  .dashboard-brand {
    justify-content: center !important;
    gap: 9px !important;
    padding: 4px 4px 10px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  .dashboard-brand img {
    width: 42px !important;
    height: 32px !important;
  }

  .dashboard-brand span {
    max-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 16px !important;
  }

  .dashboard-nav {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .dash-nav-btn,
  .dashboard-site-link {
    width: 100% !important;
    height: 50px !important;
    min-width: 0 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 6px 4px !important;
    border-radius: 14px !important;
    font-size: 11.5px !important;
    line-height: 1.05 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .dash-nav-btn svg,
  .dashboard-site-link svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 auto !important;
  }

  .dashboard-donation-link {
    grid-column: auto !important;
  }

  .dashboard-top {
    padding-top: 2px !important;
  }

  .dashboard-top h1 {
    font-size: 27px !important;
  }

  .dashboard-top p {
    font-size: 13px !important;
  }
}

@media (max-width: 380px) {
  .dash-nav-btn,
  .dashboard-site-link {
    font-size: 10.5px !important;
    gap: 4px !important;
  }
}

.topup-promo-field {
  margin-top: 18px;
}

.topup-promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.topup-promo-row button {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 75, 85, 0.32);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(255, 75, 85, 0.12);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.topup-promo-row button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 75, 85, 0.18);
}

.topup-promo-row button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 620px) {
  .topup-promo-row {
    grid-template-columns: 1fr;
  }

  .topup-promo-row button {
    width: 100%;
  }
}
