@import url("sunset-overrides.css?v=7");

@font-face {
  font-family: "IRANSans";
  src: url("../../fonts/IRANSansWeb.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: "IRANSans";
  src: url("../../fonts/IRANSansWeb_Medium.woff") format("woff");
  font-weight: 700;
}

@font-face {
  font-family: "IRANSans";
  src: url("../../fonts/IRANSansWeb_Bold.woff") format("woff");
  font-weight: 900;
}

/* Griffin RP official monochrome skin */
:root {
  color-scheme: dark;
  --font-main: "IRANSans", "Vazirmatn", "Vazir", sans-serif;
  --bg: #050505;
  --panel: rgba(12, 12, 12, 0.82);
  --panel-solid: #101010;
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #b8b8b8;
  --accent: #ffffff;
  --accent-2: #d6d6d6;
  --danger: #e5e5e5;
  --success: #ffffff;
}

html,
body,
button,
input,
select,
textarea,
code,
kbd,
pre,
option {
  font-family: var(--font-main) !important;
}

body {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), #050505 760px),
    #050505;
  color: #fff;
}

.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.82);
}

.alliance-nav {
  min-height: 76px;
}

.brand,
.alliance-brand {
  color: #fff;
}

.brand-logo,
.player-logo img,
.alliance-hero-mark {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 42px rgba(255, 255, 255, 0.12));
}

.brand-logo {
  width: 44px;
  height: 44px;
}

.player-logo img {
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
}

.brand-mark,
.feature-icon,
.management-icon,
.menu-icon,
.shield-icon,
.stat-ring {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: none;
}

.nav-links {
  color: rgba(255, 255, 255, 0.62);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}

.button,
.language-toggle,
.icon-button,
.menu-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.button.primary {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.button.info {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.alliance-hero {
  min-height: calc(100vh - 76px);
  align-items: center;
}

.alliance-hero::before {
  background-image: url("../../wallpapers/cyberpunk-vigilante4-k-art-3e4u3tp5mr28v4x3.jpg");
  filter: grayscale(1) contrast(1.18) brightness(0.62);
}

.alliance-hero::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.92) 88%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.88));
}

html[dir="ltr"] .alliance-hero::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.92) 88%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.88));
}

.alliance-hero-inner {
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  padding: 86px 0 58px;
}

.hero-copy-block {
  max-width: 820px;
}

.alliance-hero-mark {
  width: 82px;
  height: 82px;
  margin-bottom: 20px;
}

.hero-kicker,
.section-kicker,
.eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.hero-title-line {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.2;
}

.alliance-hero h1 {
  max-width: 940px;
  color: #fff;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 1.04;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.7);
}

.hero-status-card,
.status-panel,
.dashboard-panel,
.leaderboard-panel,
.feature-card,
.home-card,
.store-card,
.store-loading,
.rule-card,
.news-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 12, 0.78);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
}

.hero-status-card {
  backdrop-filter: blur(18px);
}

.server-state,
.live-dot,
.store-card-footer strong,
.store-badge,
.bank-card strong,
.staff-row strong,
.gang-member-row strong,
.player-stat strong,
.management-access strong {
  color: #fff;
}

.live-dot,
.license-pulse,
.license-card.is-ok .license-pulse {
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.live-count {
  display: grid;
  justify-items: center;
  padding: 22px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.live-count strong {
  font-size: clamp(54px, 7vw, 86px);
  line-height: 1;
}

.live-count span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.signal-bars {
  display: flex;
  justify-content: center;
  gap: 5px;
  height: 34px;
  align-items: end;
  margin: 14px 0;
}

.signal-bars span {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.signal-bars span:nth-child(2n) {
  height: 20px;
}

.signal-bars span:nth-child(3n) {
  height: 27px;
}

.stat,
.dashboard-row,
.leader-row,
.license-card,
.player-stat,
.vehicle-table,
.vehicle-row,
.management-card,
.ticket-list-item,
.ticket-chat-panel,
.ticket-message,
.transaction-card,
.cart-line,
.bank-card,
.store-category-head,
.store-showcase-category,
.store-admin-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.copy-box input,
.store-form input,
.store-form select,
.store-form textarea,
.staff-ap-form input,
.gang-grade-form select,
.reject-form input,
.store-quantity input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.section {
  background: #050505;
}

.section.alt,
.alliance-band,
.dashboard-preview-section {
  background: #f2f2f2;
  color: #050505;
}

.section.alt .section-heading p,
.section.alt p,
.alliance-band p,
.dashboard-preview-section p {
  color: rgba(0, 0, 0, 0.62);
}

.section.alt .button,
.dashboard-preview-section .button {
  border-color: rgba(0, 0, 0, 0.18);
  color: #050505;
  background: rgba(0, 0, 0, 0.04);
}

.section.alt .button.primary,
.dashboard-preview-section .button.primary {
  border-color: #050505;
  background: #050505;
  color: #fff;
}

.section.alt .dashboard-panel,
.section.alt .leaderboard-panel,
.section.alt .feature-card,
.section.alt .home-card,
.section.alt .store-card,
.dashboard-preview-section .dashboard-panel {
  border-color: rgba(0, 0, 0, 0.14);
  background: #ffffff;
  color: #050505;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}

.section.alt .dashboard-row,
.section.alt .leader-row,
.dashboard-preview-section .dashboard-row {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.045);
}

.section.alt .dashboard-row span,
.section.alt .leader-row span,
.section.alt .leader-row small,
.dashboard-preview-section .dashboard-row span {
  color: rgba(0, 0, 0, 0.56);
}

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

.metric-strip article {
  min-height: 106px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 8px;
}

.metric-strip span {
  display: block;
  color: rgba(0, 0, 0, 0.54);
  font-size: 12px;
}

.metric-strip strong {
  display: block;
  margin-top: 10px;
  color: #050505;
  font-size: 18px;
}

.centered-heading {
  justify-content: center;
  text-align: center;
}

.centered-heading p {
  margin-right: auto;
  margin-left: auto;
}

.alliance-feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card::after,
.feature-card.is-blue::after,
.feature-card.is-red::after,
.store-showcase-category,
.store-showcase-category:nth-child(2),
.store-showcase-category:nth-child(3),
.store-showcase-category:nth-child(4),
.management-hero,
.rules-hero-card,
.bank-card {
  background: rgba(255, 255, 255, 0.045);
}

.feature-card p,
.home-card p,
.store-card p,
.rule-card p,
.news-card p,
.leader-row small,
.leader-row span,
.store-category-head p,
.management-card p {
  color: var(--muted);
}

.leaderboard-panel h3 {
  color: inherit;
}

.rank {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.store-gallery-nav:hover,
.store-showcase-card:hover,
.ticket-filter-tabs a:hover,
.ticket-filter-tabs a.is-active,
.ticket-list-item.is-active,
.ticket-list-item:hover,
.account-subnav .management-card.is-active,
.gang-subnav .management-card.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.store-card-media > img,
.visual-main,
.visual-thumb,
.dashboard-visual {
  filter: grayscale(1) contrast(1.08);
}

.footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: #050505;
}

.player-dashboard-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), #050505 620px),
    #050505;
}

.player-dashboard-frame {
  border-color: rgba(255, 255, 255, 0.12);
  background: #080808;
}

.player-sidebar {
  border-left-color: rgba(255, 255, 255, 0.12);
  background: #050505;
}

.player-logo {
  color: #fff;
}

.player-logo span,
.player-logo strong {
  color: #fff;
}

.player-menu a,
.player-logout {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.7);
}

.player-menu a:hover,
.player-menu a.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: #fff;
  color: #050505;
}

.player-menu a.is-active .menu-icon,
.player-menu a:hover .menu-icon {
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.06);
  color: #050505;
}

.player-dashboard-surface,
.player-section,
.vehicle-section {
  background: transparent;
}

.player-identity-strip,
.player-section,
.license-card,
.player-stat,
.vehicle-table {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.player-stat.is-red,
.player-stat.is-gold,
.player-stat.is-blue,
.player-stat.is-money,
.player-stat.is-wallet {
  background: rgba(255, 255, 255, 0.045);
}

.player-stat.is-job strong,
.player-stat.is-gang strong,
.status-open,
.status-progress,
.status-closed,
.status-pending,
.status-approved,
.status-rejected,
.ticket-attachment {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.license-card.is-ok::after {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.management-card.is-blue .management-icon,
.management-card.is-green .management-icon,
.management-card.is-gold .management-icon,
.management-card.is-purple .management-icon,
.management-card.is-red .management-icon,
.management-card.is-cyan .management-icon {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

a[href="management_users.php"] {
  display: none !important;
}

@media (max-width: 980px) {
  .alliance-hero-inner,
  .alliance-feature-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .hero-status-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .alliance-hero h1 {
    font-size: clamp(38px, 14vw, 62px);
  }

  .alliance-hero-mark {
    width: 64px;
    height: 64px;
  }

  .metric-strip article {
    min-height: auto;
  }
}

/* Sunset 3D skin */
:root {
  --sunset-bg: #06091d;
  --sunset-ink: #f2f7ff;
  --sunset-muted: #95a2b7;
  --sunset-cyan: #38daf3;
  --sunset-cyan-2: #81f4ff;
  --sunset-line: rgba(75, 221, 255, 0.22);
  --sunset-panel: rgba(14, 20, 42, 0.72);
}

.sunset-home,
.sunset-dashboard-page {
  min-height: 100vh;
  background: var(--sunset-bg);
  color: var(--sunset-ink);
  overflow-x: hidden;
}

.sunset-scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.sunset-header {
  position: fixed;
  inset: 0 0 auto;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(5, 10, 30, 0.82), rgba(5, 10, 30, 0));
  backdrop-filter: none;
}

.sunset-nav {
  width: min(1680px, calc(100% - 56px));
  min-height: 86px;
}

.sunset-brand {
  align-items: center;
  direction: ltr;
  gap: 14px;
  color: #fff;
  font-size: 22px;
  white-space: nowrap;
}

.sunset-brand .brand-copy {
  display: grid;
  justify-items: end;
  text-align: right;
  line-height: 1.05;
}

.sunset-brand .brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.42));
}

.sunset-brand small {
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.sunset-nav .nav-links {
  gap: clamp(18px, 3vw, 44px);
  color: rgba(221, 232, 255, 0.58);
  font-size: 16px;
  font-weight: 800;
}

.sunset-nav .nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5575;
  box-shadow: 0 0 20px rgba(255, 85, 117, 0.8);
}

.sunset-nav .button.primary,
.sunset-copy .button.primary {
  min-width: 188px;
  min-height: 56px;
  border: 0;
  background: linear-gradient(180deg, #5feeff, #22c7dc);
  color: #04131d;
  box-shadow: 0 18px 42px rgba(34, 199, 220, 0.28);
}

.sunset-hero {
  min-height: 100vh;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(6, 9, 29, 0.08), rgba(6, 9, 29, 0.76) 78%, rgba(3, 8, 15, 0.96)),
    radial-gradient(circle at 78% 36%, rgba(55, 218, 243, 0.12), transparent 30%);
}

.sunset-hero::before,
.sunset-hero::after {
  content: none;
}

.sunset-wordmark {
  position: absolute;
  top: -44px;
  right: 7vw;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(45, 188, 231, 0.16);
  font-size: clamp(92px, 19vw, 310px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  direction: ltr;
}

.sunset-hero-inner {
  width: min(1600px, calc(100% - 56px));
  grid-template-columns: minmax(340px, 640px) minmax(380px, 680px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 8vw, 140px);
  padding: 118px 0 82px;
}

.sunset-copy {
  text-align: right;
}

.sunset-copy .hero-kicker {
  margin-bottom: 4px;
  color: #eef6ff;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.25;
}

.sunset-copy h1 {
  margin: 0 0 10px;
  color: var(--sunset-cyan);
  font-size: clamp(82px, 12vw, 180px);
  line-height: 0.95;
  text-shadow: 0 0 36px rgba(56, 218, 243, 0.32);
}

.sunset-copy h2 {
  margin-bottom: 20px;
  color: #f3f7ff;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.2;
}

.sunset-copy .hero-copy {
  max-width: 660px;
  margin-right: auto;
  color: rgba(210, 220, 236, 0.68);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  text-align: right;
}

.sunset-copy .hero-actions {
  justify-content: flex-start;
  margin-top: 34px;
}

.sunset-copy .button:not(.primary) {
  min-width: 220px;
  min-height: 72px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sunset-status-card {
  position: relative;
  width: min(100%, 640px);
  margin-top: 92px;
  padding: 30px;
  border: 1px solid var(--sunset-line);
  background: linear-gradient(180deg, rgba(22, 43, 70, 0.68), rgba(13, 17, 43, 0.82));
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.42), 0 0 70px rgba(30, 204, 235, 0.12);
  backdrop-filter: blur(16px);
}

.moon-orb {
  position: absolute;
  top: -92px;
  right: 17%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f7ffff, #baf5ff 48%, #3fb5d6 100%);
  box-shadow: 0 0 74px rgba(93, 235, 255, 0.48);
}

.panel-title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 22px;
}

.panel-title h2 {
  color: #edf6ff;
  font-size: 20px;
}

.server-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 14px;
  border: 1px solid rgba(85, 232, 171, 0.32);
  border-radius: 999px;
  background: rgba(85, 232, 171, 0.1);
  color: #68f0b5;
}

.server-state::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.sunset-status-card .live-count strong {
  color: var(--sunset-cyan-2);
  font-size: clamp(76px, 8vw, 118px);
}

.sunset-status-card .live-count span {
  color: rgba(219, 229, 244, 0.58);
  font-size: 14px;
}

.sunset-status-card .signal-bars span {
  background: linear-gradient(180deg, #54efff, rgba(22, 161, 207, 0.45));
  animation: sunsetBars 1.4s ease-in-out infinite alternate;
}

.sunset-status-card .signal-bars span:nth-child(2n) {
  animation-delay: .16s;
}

.sunset-status-card .signal-bars span:nth-child(3n) {
  animation-delay: .3s;
}

.sunset-steps {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.sunset-steps a {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(237, 246, 255, 0.68);
  font-weight: 800;
}

.sunset-steps a:hover {
  border-color: rgba(56, 218, 243, 0.45);
  background: rgba(56, 218, 243, 0.08);
  color: #fff;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 40px;
  color: rgba(210, 220, 236, 0.56);
  font-weight: 800;
}

.trust-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 202, 31, 0.22);
  border-radius: 14px;
  background: rgba(255, 202, 31, 0.08);
  color: #ffc91f;
  font-size: 26px;
}

.trust-mark.is-blue {
  border-color: rgba(56, 131, 255, 0.26);
  background: rgba(56, 131, 255, 0.08);
  color: #3f93ff;
}

.scroll-cue {
  position: absolute;
  right: 50%;
  bottom: 26px;
  color: rgba(56, 218, 243, 0.7);
  font-size: 28px;
}

.sunset-section {
  background: #040814;
}

.sunset-section.alt {
  background: #07101f;
  color: #fff;
}

.sunset-section .feature-card,
.sunset-section .leaderboard-panel,
.sunset-section .metric-strip article {
  border-color: var(--sunset-line);
  background: rgba(12, 18, 38, 0.74);
  color: #fff;
}

.sunset-dashboard-page {
  padding: 26px;
}

.sunset-dashboard-page .dashboard-scene {
  opacity: .8;
}

.sunset-dashboard-page .player-dashboard-frame {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 52px);
  border: 1px solid var(--sunset-line);
  background: rgba(6, 10, 28, 0.72);
  box-shadow: 0 28px 120px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.sunset-dashboard-page .player-sidebar {
  background: rgba(4, 8, 22, 0.82);
}

.sunset-dashboard-page .player-menu a.is-active,
.sunset-dashboard-page .player-menu a:hover {
  border-color: rgba(56, 218, 243, 0.46);
  background: rgba(56, 218, 243, 0.12);
  color: #fff;
}

.sunset-dashboard-page .player-identity-strip,
.sunset-dashboard-page .player-section,
.sunset-dashboard-page .license-card,
.sunset-dashboard-page .player-stat,
.sunset-dashboard-page .vehicle-table {
  border-color: rgba(75, 221, 255, 0.18);
  background: rgba(12, 18, 38, 0.64);
}

.sunset-dashboard-page .player-stat strong,
.sunset-dashboard-page .license-card strong {
  color: #dffbff;
}

@keyframes sunsetBars {
  from { transform: scaleY(.6); opacity: .55; }
  to { transform: scaleY(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sunset-status-card .signal-bars span {
    animation: none;
  }
}

@media (max-width: 980px) {
  .sunset-nav {
    width: min(100% - 28px, 1180px);
  }

  .sunset-nav .nav-links {
    inset: 78px 14px auto;
    border: 1px solid var(--sunset-line);
    border-radius: 8px;
    background: rgba(5, 10, 30, 0.96);
  }

  .sunset-brand {
    gap: 10px;
    font-size: 18px;
  }

  .sunset-brand .brand-logo {
    width: 34px;
    height: 34px;
  }

  .sunset-hero-inner {
    width: min(100% - 28px, 1180px);
    grid-template-columns: 1fr;
    padding-top: 104px;
  }

  .sunset-copy {
    order: -1;
  }
}

@media (max-width: 640px) {
  .sunset-dashboard-page {
    padding: 0;
  }

  .sunset-wordmark {
    top: 82px;
    right: 12px;
  }

  .sunset-copy h1 {
    font-size: clamp(64px, 22vw, 98px);
  }

  .sunset-copy .hero-actions,
  .trust-row {
    align-items: stretch;
    flex-direction: column;
  }

  .sunset-copy .button,
  .sunset-copy .button:not(.primary) {
    width: 100%;
    min-width: 0;
  }

  .moon-orb {
    right: 22px;
  }
}

/* Griffin RP animated theme layer */
html[data-theme="frost"] {
  --theme-accent: #f7fbff;
  --theme-accent-2: #66efff;
  --theme-glow: rgba(247, 251, 255, 0.42);
  --theme-panel-glow: rgba(102, 239, 255, 0.14);
}

html[data-theme="ocean"] {
  --theme-accent: #48e7ff;
  --theme-accent-2: #8df7ff;
  --theme-glow: rgba(72, 231, 255, 0.42);
  --theme-panel-glow: rgba(42, 201, 230, 0.2);
}

html[data-theme="nebula"] {
  --theme-accent: #d878ff;
  --theme-accent-2: #77d8ff;
  --theme-glow: rgba(216, 120, 255, 0.36);
  --theme-panel-glow: rgba(154, 84, 255, 0.18);
}

.alliance-reborn .sunset-brand small,
.alliance-reborn .section-kicker,
.alliance-reborn .hero-kicker {
  color: rgba(236, 244, 255, 0.72);
}

.alliance-reborn .sunset-copy h1 {
  color: var(--theme-accent);
  font-size: clamp(68px, 9.4vw, 142px);
  text-shadow:
    0 0 28px var(--theme-glow),
    0 18px 80px rgba(38, 217, 255, 0.16);
}

.alliance-reborn .sunset-copy h2 {
  color: #ffffff;
}

.alliance-reborn .sunset-nav .button.primary,
.alliance-reborn .sunset-copy .button.primary {
  background: linear-gradient(180deg, var(--theme-accent), var(--theme-accent-2));
  box-shadow: 0 18px 44px var(--theme-panel-glow);
}

.alliance-reborn .sunset-status-card,
.alliance-reborn .feature-card,
.alliance-reborn .leaderboard-panel,
.alliance-reborn .metric-strip article {
  transform-style: preserve-3d;
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}

.alliance-reborn .sunset-status-card:hover,
.alliance-reborn .feature-card:hover,
.alliance-reborn .leaderboard-panel:hover,
.alliance-reborn .metric-strip article:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 50%, transparent);
  box-shadow:
    0 30px 96px rgba(0, 0, 0, 0.34),
    0 0 44px var(--theme-panel-glow);
  transform: translateY(-6px) rotateX(1deg) rotateY(-1deg);
}

.alliance-reborn .moon-orb {
  background: radial-gradient(circle at 32% 26%, #ffffff, var(--theme-accent) 52%, #51a7c3 100%);
  box-shadow: 0 0 88px var(--theme-glow);
  animation: allianceFloat 5s ease-in-out infinite;
}

.alliance-reborn .sunset-wordmark {
  -webkit-text-stroke-color: color-mix(in srgb, var(--theme-accent-2) 22%, transparent);
}

.alliance-reborn .trust-mark {
  border-color: color-mix(in srgb, var(--theme-accent) 30%, transparent);
  background: color-mix(in srgb, var(--theme-accent) 9%, transparent);
  color: var(--theme-accent);
}

.theme-fab {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--theme-accent-2) 45%, transparent);
  border-radius: 18px;
  background: rgba(7, 13, 35, 0.72);
  color: var(--theme-accent-2);
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.theme-fab span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  animation: allianceSpin 6s linear infinite;
}

.theme-panel {
  position: fixed;
  right: 28px;
  bottom: 94px;
  z-index: 39;
  display: grid;
  width: min(310px, calc(100vw - 40px));
  gap: 10px;
  padding: 20px 18px 16px;
  border: 1px solid rgba(66, 217, 255, 0.24);
  border-radius: 22px;
  background: rgba(8, 13, 36, 0.88);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.96);
  transition: opacity .24s ease, transform .24s ease;
  backdrop-filter: blur(18px);
}

.theme-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.theme-panel h2 {
  margin: 0 0 4px;
  color: rgba(225, 234, 247, 0.62);
  font-size: 14px;
}

.theme-choice {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  text-align: right;
}

.theme-choice small {
  justify-self: start;
  grid-column: 2;
  min-height: 24px;
  padding: 1px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(224, 235, 248, 0.58);
  font-size: 11px;
}

.theme-choice.is-active {
  border-color: color-mix(in srgb, var(--theme-accent-2) 65%, transparent);
  background: color-mix(in srgb, var(--theme-accent-2) 11%, rgba(255,255,255,.045));
}

.theme-choice:not(.is-active) .choice-check {
  opacity: 0;
}

.choice-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.38);
}

.choice-swatch.frost {
  background: linear-gradient(135deg, #ffffff, #62edff);
}

.choice-swatch.ocean {
  background: linear-gradient(135deg, #4ff0ff, #1699d3);
}

.choice-swatch.nebula {
  background: linear-gradient(135deg, #925dff, #f171d9);
}

.welcome-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 45;
  width: min(640px, calc(100vw - 28px));
  padding: 44px 38px 32px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, transparent);
  border-radius: 24px;
  background: rgba(10, 16, 36, 0.94);
  color: #f4f8ff;
  text-align: center;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.52);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px);
}

.welcome-modal.is-hidden {
  display: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 241, 252, 0.72);
  cursor: pointer;
  font-size: 25px;
}

.welcome-mark {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 45%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--theme-accent) 13%, transparent);
  color: var(--theme-accent);
  font-size: 38px;
  box-shadow: 0 0 44px var(--theme-panel-glow);
}

.welcome-modal h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 34px);
}

.welcome-modal p {
  color: rgba(222, 232, 247, 0.62);
  font-weight: 800;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.welcome-grid article {
  display: grid;
  min-height: 112px;
  place-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.welcome-grid span {
  color: var(--theme-accent);
  font-size: 30px;
  line-height: 1;
}

.welcome-grid strong {
  font-size: 15px;
}

.welcome-grid small {
  color: rgba(222, 232, 247, 0.48);
}

.welcome-foot {
  margin: 28px 0 0;
}

.motion-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.alliance-reborn .feature-card:nth-child(2),
.alliance-reborn .leaderboard-panel:nth-child(2),
.alliance-reborn .metric-strip article:nth-child(2) {
  transition-delay: .09s;
}

.alliance-reborn .feature-card:nth-child(3),
.alliance-reborn .leaderboard-panel:nth-child(3),
.alliance-reborn .metric-strip article:nth-child(3) {
  transition-delay: .18s;
}

.alliance-reborn .metric-strip article:nth-child(4) {
  transition-delay: .27s;
}

.landing-editor {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.editor-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.editor-card h2 {
  margin: 0;
  color: var(--theme-accent);
  font-size: 18px;
}

.editor-card label {
  display: grid;
  gap: 6px;
  color: rgba(240, 246, 255, 0.72);
  font-size: 13px;
}

.editor-card input,
.editor-card textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  padding: 11px 12px;
}

.editor-card textarea {
  resize: vertical;
}

.editor-items {
  display: grid;
  gap: 10px;
}

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

@keyframes allianceFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

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

@media (prefers-reduced-motion: reduce) {
  .alliance-reborn .moon-orb,
  .theme-fab span,
  .sunset-hero::after {
    animation: none;
  }

  .motion-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .welcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-modal {
    padding: 42px 18px 24px;
  }
}

.alliance-dashboard .player-stat,
.alliance-dashboard .license-card,
.alliance-dashboard .vehicle-table,
.alliance-dashboard .player-identity-strip {
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease, background .26s ease;
}

.alliance-dashboard .player-stat:hover,
.alliance-dashboard .license-card:hover,
.alliance-dashboard .vehicle-table:hover,
.alliance-dashboard .player-identity-strip:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 42%, transparent);
  box-shadow: 0 22px 56px var(--theme-panel-glow);
  transform: translateY(-4px);
}

.alliance-dashboard .player-logo img,
.alliance-dashboard .stat-ring,
.alliance-dashboard .license-pulse {
  filter: drop-shadow(0 0 18px var(--theme-glow));
}

.alliance-dashboard .player-logo span,
.alliance-dashboard .player-stat strong,
.alliance-dashboard .player-section-title p {
  color: var(--theme-accent);
}

body:not(.sunset-home):not(.sunset-dashboard-page) .button,
body:not(.sunset-home):not(.sunset-dashboard-page) .feature-card,
body:not(.sunset-home):not(.sunset-dashboard-page) .store-card,
body:not(.sunset-home):not(.sunset-dashboard-page) .leaderboard-panel,
body:not(.sunset-home):not(.sunset-dashboard-page) .management-card,
body:not(.sunset-home):not(.sunset-dashboard-page) .ticket-list-item,
body:not(.sunset-home):not(.sunset-dashboard-page) .rule-card {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

body:not(.sunset-home):not(.sunset-dashboard-page) .button:hover,
body:not(.sunset-home):not(.sunset-dashboard-page) .feature-card:hover,
body:not(.sunset-home):not(.sunset-dashboard-page) .store-card:hover,
body:not(.sunset-home):not(.sunset-dashboard-page) .leaderboard-panel:hover,
body:not(.sunset-home):not(.sunset-dashboard-page) .management-card:hover,
body:not(.sunset-home):not(.sunset-dashboard-page) .ticket-list-item:hover,
body:not(.sunset-home):not(.sunset-dashboard-page) .rule-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 52px rgba(255, 255, 255, 0.08);
}

/* Final Griffin RP skin */
html[data-theme="frost"] {
  --theme-accent: #f7fbff;
  --theme-accent-2: #66efff;
  --theme-glow: rgba(247, 251, 255, 0.42);
  --theme-panel-glow: rgba(102, 239, 255, 0.14);
}

html[data-theme="ocean"] {
  --theme-accent: #48e7ff;
  --theme-accent-2: #8df7ff;
  --theme-glow: rgba(72, 231, 255, 0.42);
  --theme-panel-glow: rgba(42, 201, 230, 0.2);
}

html[data-theme="nebula"] {
  --theme-accent: #d878ff;
  --theme-accent-2: #77d8ff;
  --theme-glow: rgba(216, 120, 255, 0.36);
  --theme-panel-glow: rgba(154, 84, 255, 0.18);
}

.sunset-home,
.sunset-dashboard-page {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14), transparent 18%),
    radial-gradient(circle at 78% 20%, rgba(66, 226, 255, 0.12), transparent 22%),
    radial-gradient(circle at 50% 62%, rgba(216, 120, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #050816, #081022 45%, #0a0d1e 100%) !important;
}

.sunset-hero {
  overflow: hidden;
}

.sunset-hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(300deg, rgba(66, 226, 255, 0.08), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 46%);
  content: "";
  animation: allianceBgShift 16s ease-in-out infinite alternate;
}

.alliance-reborn .sunset-brand small,
.alliance-reborn .section-kicker,
.alliance-reborn .hero-kicker {
  color: rgba(236, 244, 255, 0.72);
}

.alliance-reborn .sunset-copy h1 {
  color: var(--theme-accent);
  font-size: clamp(68px, 9.4vw, 142px);
  text-shadow:
    0 0 28px var(--theme-glow),
    0 18px 80px rgba(38, 217, 255, 0.16);
}

.alliance-reborn .sunset-copy h2 {
  color: #ffffff;
}

.alliance-reborn .sunset-nav .button.primary,
.alliance-reborn .sunset-copy .button.primary {
  background: linear-gradient(180deg, var(--theme-accent), var(--theme-accent-2));
  box-shadow: 0 18px 44px var(--theme-panel-glow);
}

.alliance-reborn .sunset-status-card,
.alliance-reborn .feature-card,
.alliance-reborn .leaderboard-panel,
.alliance-reborn .metric-strip article {
  transform-style: preserve-3d;
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}

.alliance-reborn .sunset-status-card:hover,
.alliance-reborn .feature-card:hover,
.alliance-reborn .leaderboard-panel:hover,
.alliance-reborn .metric-strip article:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 50%, transparent);
  box-shadow:
    0 30px 96px rgba(0, 0, 0, 0.34),
    0 0 44px var(--theme-panel-glow);
  transform: translateY(-6px) rotateX(1deg) rotateY(-1deg);
}

.alliance-reborn .moon-orb {
  background: radial-gradient(circle at 32% 26%, #ffffff, var(--theme-accent) 52%, #51a7c3 100%);
  box-shadow: 0 0 88px var(--theme-glow);
  animation: allianceFloat 5s ease-in-out infinite;
}

.alliance-reborn .sunset-wordmark {
  -webkit-text-stroke-color: color-mix(in srgb, var(--theme-accent-2) 22%, transparent);
}

.alliance-reborn .trust-mark {
  border-color: color-mix(in srgb, var(--theme-accent) 30%, transparent);
  background: color-mix(in srgb, var(--theme-accent) 9%, transparent);
  color: var(--theme-accent);
}

.content-grid .feature-card {
  min-height: 188px;
}

.content-section .feature-icon {
  background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
  color: var(--theme-accent);
}

.theme-fab {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--theme-accent-2) 45%, transparent);
  border-radius: 18px;
  background: rgba(7, 13, 35, 0.72);
  color: var(--theme-accent-2);
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.theme-fab span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  animation: allianceSpin 6s linear infinite;
}

.theme-panel {
  position: fixed;
  right: 28px;
  bottom: 94px;
  z-index: 39;
  display: grid;
  width: min(310px, calc(100vw - 40px));
  gap: 10px;
  padding: 20px 18px 16px;
  border: 1px solid rgba(66, 217, 255, 0.24);
  border-radius: 22px;
  background: rgba(8, 13, 36, 0.88);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.96);
  transition: opacity .24s ease, transform .24s ease;
  backdrop-filter: blur(18px);
}

.theme-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.theme-panel h2 {
  margin: 0 0 4px;
  color: rgba(225, 234, 247, 0.62);
  font-size: 14px;
}

.theme-choice {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  text-align: right;
}

.theme-choice small {
  justify-self: start;
  grid-column: 2;
  min-height: 24px;
  padding: 1px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(224, 235, 248, 0.58);
  font-size: 11px;
}

.theme-choice.is-active {
  border-color: color-mix(in srgb, var(--theme-accent-2) 65%, transparent);
  background: color-mix(in srgb, var(--theme-accent-2) 11%, rgba(255,255,255,.045));
}

.theme-choice:not(.is-active) .choice-check {
  opacity: 0;
}

.choice-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.38);
}

.choice-swatch.frost {
  background: linear-gradient(135deg, #ffffff, #62edff);
}

.choice-swatch.ocean {
  background: linear-gradient(135deg, #4ff0ff, #1699d3);
}

.choice-swatch.nebula {
  background: linear-gradient(135deg, #925dff, #f171d9);
}

.welcome-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 45;
  width: min(640px, calc(100vw - 28px));
  padding: 44px 38px 32px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, transparent);
  border-radius: 24px;
  background: rgba(10, 16, 36, 0.94);
  color: #f4f8ff;
  text-align: center;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.52);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px);
}

.welcome-modal.is-hidden {
  display: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 241, 252, 0.72);
  cursor: pointer;
  font-size: 25px;
}

.welcome-mark {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 45%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--theme-accent) 13%, transparent);
  color: var(--theme-accent);
  font-size: 38px;
  box-shadow: 0 0 44px var(--theme-panel-glow);
}

.welcome-modal h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 34px);
}

.welcome-modal p {
  color: rgba(222, 232, 247, 0.62);
  font-weight: 800;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.welcome-grid article {
  display: grid;
  min-height: 112px;
  place-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.welcome-grid span {
  color: var(--theme-accent);
  font-size: 30px;
  line-height: 1;
}

.welcome-grid strong {
  font-size: 15px;
}

.welcome-grid small {
  color: rgba(222, 232, 247, 0.48);
}

.welcome-foot {
  margin: 28px 0 0;
}

.motion-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.alliance-reborn .feature-card:nth-child(2),
.alliance-reborn .leaderboard-panel:nth-child(2),
.alliance-reborn .metric-strip article:nth-child(2) {
  transition-delay: .09s;
}

.alliance-reborn .feature-card:nth-child(3),
.alliance-reborn .leaderboard-panel:nth-child(3),
.alliance-reborn .metric-strip article:nth-child(3) {
  transition-delay: .18s;
}

.alliance-reborn .metric-strip article:nth-child(4) {
  transition-delay: .27s;
}

@keyframes allianceFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

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

@keyframes allianceBgShift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); opacity: .86; }
  to { transform: translate3d(1.2%, 1.5%, 0) scale(1.05); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .alliance-reborn .moon-orb,
  .theme-fab span,
  .sunset-hero::after {
    animation: none;
  }

  .motion-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@font-face {
  font-family: "IRANSans";
  src: url("../../fonts/IRANSansWeb_Bold.woff") format("woff");
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --panel: rgba(18, 23, 31, 0.82);
  --panel-solid: #121720;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #a9b2c2;
  --accent: #ffcb45;
  --accent-2: #39d0ff;
  --danger: #ff5d73;
  --success: #42e3a2;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(10, 13, 18, 0.08), var(--bg) 88vh),
    url("../../wallpapers/3083e210-d04b-4122-9f17-8592161e87e6_selling_point_3_7713c429.webp") center 760px / min(1400px, 100%) auto no-repeat,
    #0a0d12;
  color: var(--text);
  direction: inherit;
  font-family: var(--font-main);
  line-height: 1.8;
}

html[dir="ltr"] body {
  font-family: var(--font-main);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 18, 0.76);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 203, 69, 0.45);
  background: linear-gradient(135deg, rgba(255, 203, 69, 0.25), rgba(57, 208, 255, 0.12));
  color: var(--accent);
  font-size: 15px;
  border-radius: var(--radius);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

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

.language-toggle {
  display: grid;
  min-width: 44px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(57, 208, 255, 0.35);
  background: rgba(57, 208, 255, 0.1);
  color: #dff8ff;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

.panel-language-toggle {
  margin-inline-start: auto;
}

.icon-button,
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: var(--radius);
  font-weight: 700;
}

.button.primary {
  border-color: rgba(255, 203, 69, 0.7);
  background: var(--accent);
  color: #10131a;
}

.button.info {
  border-color: rgba(57, 208, 255, 0.42);
  color: #dff8ff;
}

.button.danger {
  border-color: rgba(255, 93, 115, 0.42);
  color: #ffd6de;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../../wallpapers/cyberpunk-vigilante4-k-art-3e4u3tp5mr28v4x3.jpg");
  background-size: cover;
  background-position: center center;
  content: "";
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 13, 18, 0.97), rgba(10, 13, 18, 0.62) 52%, rgba(10, 13, 18, 0.22)),
    linear-gradient(180deg, rgba(10, 13, 18, 0.12), rgba(10, 13, 18, 0.94) 88%);
  content: "";
}

html[dir="ltr"] .hero::after {
  background:
    linear-gradient(270deg, rgba(10, 13, 18, 0.97), rgba(10, 13, 18, 0.62) 52%, rgba(10, 13, 18, 0.22)),
    linear-gradient(180deg, rgba(10, 13, 18, 0.12), rgba(10, 13, 18, 0.94) 88%);
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: end;
  gap: 28px;
  padding: 86px 0 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--success);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.08;
}

.hero-copy {
  max-width: 710px;
  margin-bottom: 28px;
  color: #d8deea;
  font-size: 18px;
}

.hero-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-panel,
.dashboard-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.status-panel {
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.panel-title h2 {
  margin: 0;
  font-size: 18px;
}

.server-state {
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  border-radius: var(--radius);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.copy-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.copy-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  border-radius: var(--radius);
  direction: ltr;
  padding: 0 12px;
}

html[dir="ltr"] .copy-box input {
  direction: ltr;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #0e131b;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 18px;
}

.section-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(26px, 4vw, 42px);
}

.section-heading p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card,
.news-card,
.rule-card,
.leader-row {
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: var(--radius);
}

.feature-card {
  position: relative;
  isolation: isolate;
  min-height: 206px;
  padding: 18px;
  overflow: hidden;
}

.feature-card::after {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 74px;
  background: linear-gradient(180deg, transparent, rgba(255, 203, 69, 0.08));
  content: "";
}

.feature-card.is-blue::after {
  background: linear-gradient(180deg, transparent, rgba(57, 208, 255, 0.08));
}

.feature-card.is-red::after {
  background: linear-gradient(180deg, transparent, rgba(255, 93, 115, 0.09));
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(255, 203, 69, 0.12);
  color: var(--accent);
  border-radius: var(--radius);
}

.feature-card h3,
.news-card h3,
.rule-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-card p,
.news-card p,
.rule-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.home-card {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: var(--radius);
}

.home-card h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
}

.home-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.split {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.visual-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 340px;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: #0f131b;
  border-radius: var(--radius);
  overflow: hidden;
}

.visual-main {
  position: relative;
  min-height: 340px;
  background: url("../../wallpapers/wp14574295.jpg") center / cover no-repeat;
}

.visual-main::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 13, 18, 0.8), transparent 65%);
  content: "";
}

.visual-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.visual-thumb {
  min-height: 170px;
  background-size: cover;
  background-position: center;
}

.visual-thumb.one {
  background-image: url("../../wallpapers/gta-5.jpg");
}

.visual-thumb.two {
  background-image: url("../../wallpapers/7dedeae0-961a-4aaf-b718-a8b10630485a_1456x816.jpg");
}

.image-callout {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  max-width: 330px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 13, 18, 0.74);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

html[dir="ltr"] .image-callout {
  right: auto;
  left: 22px;
}

.image-callout strong {
  display: block;
  margin-bottom: 6px;
}

.image-callout span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-visual {
  min-height: 240px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 13, 18, 0.08), rgba(10, 13, 18, 0.58)),
    url("../../wallpapers/3083e210-d04b-4122-9f17-8592161e87e6_selling_point_4_cbb436e0.webp") center / cover no-repeat;
  border-radius: var(--radius);
}

.dashboard-panel {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  border-radius: var(--radius);
}

.dashboard-row span {
  color: var(--muted);
}

.dashboard-row strong {
  color: var(--text);
  font-size: 22px;
}

.store-category-stack {
  display: grid;
  gap: 22px;
}

.store-category-section {
  display: grid;
  gap: 14px;
}

.store-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 29, 0.58);
  border-radius: 8px;
  padding: 16px;
}

.store-category-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-category-head h2 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.store-category-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.store-category-head strong {
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 203, 69, 0.28);
  background: rgba(255, 203, 69, 0.1);
  color: #ffe8a3;
  border-radius: 8px;
  font-size: 18px;
}

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

.store-loading {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: var(--radius);
  color: var(--muted);
}

.store-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: var(--radius);
}

.store-card-media {
  position: relative;
  overflow: hidden;
}

.store-card-media > img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.store-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(9, 12, 18, 0.72);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.store-gallery-nav:hover {
  border-color: rgba(255, 203, 69, 0.72);
  background: rgba(255, 203, 69, 0.2);
  color: #ffe8a3;
}

.store-gallery-nav.is-prev {
  left: 10px;
}

.store-gallery-nav.is-next {
  right: 10px;
}

.store-card-thumbs {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.store-card-thumbs button {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}

.store-card-thumbs button.is-active {
  border-color: rgba(255, 203, 69, 0.88);
  box-shadow: 0 0 0 2px rgba(255, 203, 69, 0.18);
}

.store-card-thumbs img {
  display: block;
  width: 100%;
  height: 44px;
  object-fit: cover;
}

.store-showcase {
  gap: 28px;
}

#store .section-heading {
  margin-bottom: 24px;
}

.store-showcase-category {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 203, 69, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(13, 17, 26, 0.94), rgba(10, 12, 18, 0.82));
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.store-showcase-category:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(57, 208, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(13, 17, 26, 0.94), rgba(10, 12, 18, 0.82));
}

.store-showcase-category:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 87, 87, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(13, 17, 26, 0.94), rgba(10, 12, 18, 0.82));
}

.store-showcase-category:nth-child(4) {
  background:
    linear-gradient(135deg, rgba(66, 227, 162, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(13, 17, 26, 0.94), rgba(10, 12, 18, 0.82));
}

.store-showcase-category .store-category-head {
  border: 0;
  background: transparent;
  padding: 0;
}

.store-showcase-category .store-category-head h2 {
  font-size: 28px;
  letter-spacing: 0;
}

.store-showcase-category .store-category-head p {
  color: rgba(232, 238, 252, 0.66);
  font-size: 14px;
}

.store-showcase-category .store-category-head strong {
  min-width: auto;
  height: 36px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  text-transform: uppercase;
}

.store-showcase-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.store-showcase-card {
  display: grid;
  min-height: 100%;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.store-showcase-card:hover {
  border-color: rgba(255, 203, 69, 0.34);
  background: rgba(255, 255, 255, 0.078);
  transform: translateY(-3px);
}

.store-showcase-card .store-card-media > img {
  height: 220px;
}

.store-showcase-card .store-card-media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 12, 0.82));
  pointer-events: none;
}

.store-showcase-card .store-gallery-nav {
  opacity: 0;
}

.store-showcase-card:hover .store-gallery-nav,
.store-showcase-card:focus-within .store-gallery-nav {
  opacity: 1;
}

.store-showcase-card .store-card-thumbs {
  z-index: 2;
  grid-template-columns: repeat(4, 34px);
  justify-content: center;
}

.store-showcase-card .store-card-thumbs button {
  border-radius: 999px;
}

.store-showcase-card .store-card-thumbs img {
  height: 34px;
}

.store-showcase-card .store-card-body {
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.store-showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-showcase-meta strong {
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.store-showcase-card .store-badge {
  border-radius: 999px;
  background: rgba(255, 203, 69, 0.1);
}

.store-showcase-card h3 {
  font-size: 19px;
  line-height: 1.45;
}

.store-showcase-card p {
  min-height: 72px;
  color: rgba(232, 238, 252, 0.64);
  line-height: 1.8;
}

.store-showcase-card .store-card-footer {
  margin-top: auto;
}

.store-showcase-card .store-card-footer .button {
  width: 100%;
  justify-content: center;
}

.store-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.store-badge {
  width: fit-content;
  padding: 3px 9px;
  border: 1px solid rgba(255, 203, 69, 0.34);
  color: #ffe8a3;
  border-radius: var(--radius);
  font-size: 12px;
}

.store-card h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.store-card p {
  min-height: 54px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-card-footer strong {
  color: var(--accent);
}

.store-card-footer form {
  display: flex;
  align-items: end;
  gap: 8px;
}

.store-quantity {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.store-quantity input {
  width: 92px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.rule-list {
  display: grid;
  gap: 12px;
}

.rule-card {
  padding: 18px;
}

.rules-page {
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.28), var(--bg) 620px),
    linear-gradient(90deg, rgba(5, 7, 12, 0.88), rgba(5, 7, 12, 0.5)),
    url("../../wallpapers/cyberpunk-vigilante4-k-art-3e4u3tp5mr28v4x3.jpg") center top / cover fixed,
    #0a0d12;
}

.no-copy-page,
.no-copy-page * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.no-copy-page ::selection {
  background: transparent;
  color: inherit;
}

.rules-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 13, 18, 0.96), rgba(10, 13, 18, 0.64) 58%, rgba(10, 13, 18, 0.36)),
    rgba(10, 13, 18, 0.54);
}

.rules-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 203, 69, 0.68), transparent);
  content: "";
}

.rules-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: end;
}

.rules-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(40px, 6vw, 76px);
}

.rules-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: #d8deea;
  font-size: 17px;
}

.rules-hero-card {
  display: grid;
  gap: 8px;
  min-height: 154px;
  align-content: end;
  border: 1px solid rgba(255, 203, 69, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 203, 69, 0.16), rgba(57, 208, 255, 0.08)),
    rgba(11, 15, 24, 0.74);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.rules-hero-card span,
.rules-hero-card small,
.rules-stat-strip span,
.rules-side-panel > span {
  color: var(--muted);
  font-size: 12px;
}

.rules-hero-card strong {
  color: #ffe8a3;
  direction: ltr;
  font-size: 30px;
  line-height: 1.1;
}

.rules-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.rules-stat-strip div {
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 18, 29, 0.72);
  border-radius: 8px;
  padding: 14px 16px;
}

.rules-stat-strip strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 22px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.rules-side-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(20, 27, 41, 0.9), rgba(11, 15, 24, 0.88)),
    rgba(14, 18, 29, 0.88);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}

.rules-side-panel nav {
  display: grid;
  gap: 8px;
}

.rules-side-panel a {
  display: block;
  overflow: hidden;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  padding: 8px 10px;
  color: #e7ecf7;
  font-size: 12px;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rules-side-panel > span {
  color: #ffffff;
  font-weight: 900;
}

.rules-side-panel nav {
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding-left: 4px;
}

.rules-side-panel a:hover {
  border-color: rgba(255, 203, 69, 0.36);
  background: rgba(255, 203, 69, 0.08);
  color: #ffe8a3;
}

.rules-document {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(21, 27, 39, 0.94), rgba(13, 17, 26, 0.96)),
    rgba(18, 23, 31, 0.94);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 38px);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.38);
  counter-reset: rule-paragraph;
}

.rules-document::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 203, 69, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(57, 208, 255, 0.06), transparent 34%);
  content: "";
  pointer-events: none;
}

.rules-document h2 {
  position: relative;
  z-index: 1;
  margin: 24px 0 6px;
  border-right: 3px solid rgba(255, 203, 69, 0.76);
  background: rgba(255, 203, 69, 0.07);
  border-radius: 8px;
  padding: 9px 14px;
  color: #ffe8a3;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.rules-document h2:first-of-type {
  margin-top: 0;
}

.rules-document p {
  position: relative;
  z-index: 1;
  counter-increment: rule-paragraph;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 0;
  color: #d9deeb;
  font-size: 14px;
  line-height: 2;
}

.rules-document p::before {
  content: counter(rule-paragraph, decimal-leading-zero);
  display: inline-grid;
  min-width: 34px;
  height: 24px;
  place-items: center;
  margin-left: 10px;
  border: 1px solid rgba(57, 208, 255, 0.28);
  background: rgba(57, 208, 255, 0.08);
  color: #b9f2ff;
  border-radius: 6px;
  direction: ltr;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.rules-watermark {
  position: fixed;
  inset: auto 28px 34px auto;
  z-index: 0;
  color: rgba(255, 255, 255, 0.045);
  direction: ltr;
  font-size: clamp(36px, 8vw, 96px);
  font-weight: 700;
  pointer-events: none;
  transform: rotate(-12deg);
}

.rules-editor-form {
  grid-template-columns: 1fr;
}

.rules-editor-form textarea {
  min-height: 520px;
  direction: rtl;
  line-height: 2;
}

.rules-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

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

  .rules-side-panel {
    position: relative;
    top: auto;
  }

  .rules-side-panel nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rules-hero {
    padding-top: 82px;
  }

  .rules-stat-strip,
  .rules-side-panel nav {
    grid-template-columns: 1fr;
  }

  .rules-hero-card {
    min-height: 116px;
  }

  .rules-document {
    padding: 14px;
  }

  .rules-document h2 {
    font-size: 16px;
  }

  .rules-document p {
    padding: 9px 10px;
    font-size: 13px;
  }
}

@media print {
  .rules-document,
  .rules-side-panel {
    display: none;
  }

  .rules-hero::before {
    display: block;
    color: #000;
    content: "Copying or printing Griffin RP rules is not permitted.";
  }
}

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

.news-card {
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  display: block;
}

.news-card:first-child img {
  object-position: center;
}

.news-card:nth-child(2) img {
  object-position: center;
}

.news-card:nth-child(3) img {
  object-position: center;
}

.news-content {
  padding: 18px;
}

.news-meta {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 12px;
}

.leaderboard {
  display: grid;
  gap: 10px;
}

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

.leaderboard-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.78);
  border-radius: 8px;
  padding: 16px;
}

.leaderboard-panel h3 {
  margin-bottom: 0;
  color: #fff;
  font-size: 17px;
}

.leader-stage {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.leader-art {
  min-height: 260px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 13, 18, 0.08), rgba(10, 13, 18, 0.7)),
    url("../../wallpapers/3083e210-d04b-4122-9f17-8592161e87e6_selling_point_3_7713c429.webp") center / cover no-repeat;
  border-radius: var(--radius);
}

.leader-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  min-height: 68px;
  padding: 12px 16px;
  gap: 16px;
}

.rank {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: rgba(57, 208, 255, 0.12);
  color: var(--accent-2);
  border-radius: var(--radius);
  font-weight: 700;
}

.leader-row small {
  display: block;
  color: var(--muted);
}

.scoreboard-section {
  position: relative;
}

.scoreboard-tabs {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 auto 22px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 24%, rgba(255,255,255,.1));
  border-radius: 16px;
  background: rgba(5, 9, 18, .7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 42px rgba(0,0,0,.22);
}

.scoreboard-tab {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(226, 236, 249, .68);
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.scoreboard-tab:hover,
.scoreboard-tab.is-active {
  background: linear-gradient(180deg, var(--theme-accent), var(--theme-accent-2));
  color: #061018;
  transform: translateY(-1px);
}

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

.scoreboard-panel {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 330px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 24%, rgba(255,255,255,.12));
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-accent) 10%, transparent), rgba(255,255,255,.035)),
    rgba(7, 11, 22, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 22px 52px rgba(0,0,0,.28);
  transform: translateZ(0);
}

.scoreboard-panel::before {
  position: absolute;
  inset: -40% auto auto -12%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--theme-accent) 26%, transparent), transparent 66%);
  content: "";
  opacity: .86;
}

.scoreboard-panel-head {
  position: relative;
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.scoreboard-panel-head span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-accent) 13%, rgba(255,255,255,.05));
  color: var(--theme-accent-2);
  font-weight: 950;
}

.scoreboard-panel-head strong {
  color: #fff;
  font-size: 21px;
}

.scoreboard-panel-head small {
  color: rgba(226, 236, 249, .62);
  font-weight: 800;
}

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

.scoreboard-list .leader-row {
  min-height: 62px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

@media (max-width: 960px) {
  .server-scoreboard {
    grid-template-columns: 1fr;
  }
}

.footer {
  border-top: 1px solid var(--line);
  background: #080b10;
  padding: 28px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  gap: 18px;
}

.domains {
  direction: ltr;
}

.auth-page,
.dashboard-page,
.player-dashboard-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(10, 13, 18, 0.96), rgba(10, 13, 18, 0.56)),
    url("../../wallpapers/cyberpunk-vigilante4-k-art-3e4u3tp5mr28v4x3.jpg") center / cover fixed;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 16px;
}

.auth-card {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  background: rgba(18, 23, 31, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  padding: 24px;
  backdrop-filter: blur(18px);
}

.auth-card-small {
  width: min(100%, 520px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-weight: 700;
}

.auth-brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.auth-heading h1 {
  margin-bottom: 10px;
  font-size: 34px;
}

.auth-heading p:not(.eyebrow) {
  margin-bottom: 22px;
  color: var(--muted);
}

.auth-alert {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 93, 115, 0.38);
  background: rgba(255, 93, 115, 0.12);
  color: #ffd6de;
  border-radius: var(--radius);
  padding: 11px 12px;
  font-size: 14px;
}

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

.auth-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0 12px;
}

.auth-field input:focus {
  border-color: rgba(255, 203, 69, 0.62);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 203, 69, 0.12);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.auth-links a:hover {
  color: var(--text);
}

.auth-links-wide {
  align-items: stretch;
}

.auth-links-wide .button {
  flex: 1;
}

.dashboard-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.dashboard-welcome {
  max-width: 760px;
  border: 1px solid var(--line);
  background: rgba(18, 23, 31, 0.86);
  border-radius: var(--radius);
  padding: 28px;
}

.dashboard-welcome h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.dashboard-welcome p:not(.eyebrow) {
  color: var(--muted);
}

.permission-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.permission-card {
  min-height: 118px;
  border: 1px solid var(--line);
  background: rgba(18, 23, 31, 0.86);
  border-radius: var(--radius);
  padding: 18px;
}

.permission-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.permission-card strong {
  color: var(--text);
}

.role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  font-size: 13px;
}

.role-staff {
  border-color: rgba(66, 227, 162, 0.38);
  color: #c8ffe9;
}

.role-manager {
  border-color: rgba(57, 208, 255, 0.42);
  color: #dff8ff;
}

.role-gamemaster {
  border-color: rgba(255, 203, 69, 0.5);
  color: #ffe8a3;
}

.role-user {
  color: var(--muted);
}

.player-dashboard-page {
  display: grid;
  place-items: center;
  padding: 40px 16px;
  overflow-x: hidden;
}

.player-dashboard-frame {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  width: min(1120px, 100%);
  min-height: 650px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(11, 15, 24, 0.84);
  border-radius: 8px;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.52);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.player-dashboard-page .site-header,
.player-dashboard-page .sunset-nav {
  display: none !important;
}

.player-dashboard-page .player-dashboard-frame {
  margin-top: 0;
}

.player-sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 20, 0.38);
  padding: 20px 18px;
}

.player-logo {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  gap: 2px;
  margin-bottom: 44px;
  text-align: left;
  direction: ltr;
}

.player-logo::before {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background:
    url("../uploads/public-files/20260821-165510-6e3ef8cff4c06343.png") center / cover no-repeat,
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 18px rgba(102, 239, 255, 0.18);
  content: "";
}

.player-logo span {
  grid-column: 2;
  grid-row: 1;
  color: #286dff;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.1;
}

.player-logo strong {
  grid-column: 2;
  grid-row: 2;
  color: #f4f6ff;
  font-size: 18px;
  line-height: 1.1;
}

.player-menu {
  display: grid;
  gap: 12px;
}

.player-menu a,
.player-logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 38px;
  color: #d7dceb;
  font-size: 13px;
  font-weight: 700;
}

.player-menu a.is-active {
  color: #ffffff;
}

.menu-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #b8c1d6;
  font-size: 12px;
}

.player-logout {
  margin-top: auto;
  color: #ff6576;
}

.player-dashboard-surface {
  padding: 24px;
}

.player-mini-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  direction: ltr;
}

.player-mini-actions span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f74ff;
  box-shadow: 0 0 14px rgba(47, 116, 255, 0.8);
}

.player-mini-actions span:first-child {
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}

.player-identity-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  min-height: 88px;
  align-items: center;
  margin-bottom: 42px;
  padding: 16px 20px;
  border: 1px solid rgba(60, 116, 255, 0.45);
  background:
    linear-gradient(90deg, rgba(25, 40, 70, 0.36), rgba(0, 91, 255, 0.6)),
    rgba(18, 23, 35, 0.88);
  border-radius: 8px;
  box-shadow: inset 0 0 34px rgba(0, 91, 255, 0.25);
}

.player-identity-strip span,
.player-section-title,
.license-card,
.vehicle-head {
  color: #aeb6c8;
}

.player-identity-strip span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.player-identity-strip strong {
  color: #ffffff;
  font-size: 12px;
}

.player-section {
  max-width: 820px;
  margin-bottom: 34px;
  padding: 18px;
  background: rgba(20, 25, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.player-section-title {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.player-section-title h1,
.player-section-title h2 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.license-card {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 27, 0.72);
  border-radius: 7px;
  font-size: 11px;
}

.license-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff405c;
  box-shadow: 0 0 14px rgba(255, 64, 92, 0.8);
}

.license-card::after,
.stat-ring {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #dfe5f3;
  content: "!";
  font-size: 12px;
}

.license-card.is-ok .license-pulse {
  background: #18e89a;
  box-shadow: 0 0 14px rgba(24, 232, 154, 0.8);
}

.license-card.is-ok::after {
  border-color: rgba(24, 232, 154, 0.45);
  color: #bfffe4;
  content: "✓";
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.player-stat {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 27, 0.72);
  border-radius: 7px;
}

.player-stat.span-2 {
  grid-column: span 2;
}

.player-stat h2 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
}

.player-stat strong {
  display: block;
  color: #16e89b;
  font-size: 12px;
  line-height: 1.35;
}

.player-stat.is-red {
  background: rgba(129, 39, 52, 0.75);
}

.player-stat.is-gold {
  background: rgba(123, 92, 31, 0.78);
}

.player-stat.is-blue {
  background: rgba(28, 73, 134, 0.8);
}

.player-stat.is-job strong {
  color: #bfdc42;
}

.player-stat.is-gang strong {
  color: #41dec7;
}

.shield-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #91b7ff;
  border: 1px solid rgba(145, 183, 255, 0.38);
  border-radius: 50%;
}

.vehicle-section {
  max-width: 820px;
}

.vehicle-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  background: rgba(14, 18, 29, 0.74);
}

.vehicle-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 50px;
  align-items: center;
  padding: 0 18px;
  gap: 12px;
  font-size: 11px;
}

.vehicle-head {
  background: rgba(255, 255, 255, 0.035);
}

.vehicle-empty {
  display: grid;
  min-height: 58px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.management-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid rgba(60, 116, 255, 0.35);
  background:
    linear-gradient(90deg, rgba(18, 23, 35, 0.92), rgba(0, 91, 255, 0.34)),
    rgba(18, 23, 35, 0.82);
  border-radius: 8px;
}

.management-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.management-hero p:not(.eyebrow) {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.management-access {
  display: grid;
  gap: 8px;
  min-height: 92px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.48);
  border-radius: 8px;
}

.management-access span {
  color: var(--muted);
  font-size: 12px;
}

.management-access strong {
  color: #ffe8a3;
  font-size: 18px;
}

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

.management-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 148px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.78);
  border-radius: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.management-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(20, 26, 40, 0.9);
}

.management-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.management-card h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 16px;
}

.management-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.management-card-action {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.management-card.is-blue .management-icon {
  background: rgba(47, 116, 255, 0.18);
  color: #8fb5ff;
}

.management-card.is-green .management-icon {
  background: rgba(24, 232, 154, 0.14);
  color: #a8f8d8;
}

.management-card.is-gold .management-icon {
  background: rgba(255, 203, 69, 0.16);
  color: #ffe8a3;
}

.management-card.is-purple .management-icon {
  background: rgba(147, 104, 255, 0.16);
  color: #c9b8ff;
}

.management-card.is-red .management-icon {
  background: rgba(255, 93, 115, 0.15);
  color: #ffb9c4;
}

.management-card.is-cyan .management-icon {
  background: rgba(57, 208, 255, 0.15);
  color: #b9f2ff;
}

.store-success {
  border-color: rgba(66, 227, 162, 0.38);
  background: rgba(66, 227, 162, 0.12);
  color: #c8ffe9;
}

.store-admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) 1fr;
  gap: 18px;
  align-items: start;
}

.store-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.78);
  border-radius: 8px;
  padding: 16px;
}

.store-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.store-form input,
.store-form select,
.store-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.store-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.78) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78) 50%, transparent 50%);
  background-position:
    left 14px center,
    left 9px center;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-left: 28px;
}

.store-form select option {
  background: #121720;
  color: var(--text);
}

.store-form textarea {
  min-height: 132px;
  resize: vertical;
}

.store-form .span-full {
  grid-column: 1 / -1;
}

.store-check {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.store-check input {
  min-height: auto;
}

.store-gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.store-gallery-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.store-admin-list {
  display: grid;
  gap: 12px;
}

.store-admin-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.78);
  border-radius: 8px;
  padding: 10px;
}

.store-admin-item img {
  width: 92px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.store-admin-item h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
}

.store-admin-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.user-search-form {
  max-width: 680px;
  margin-bottom: 18px;
}

.user-admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.user-edit-form {
  max-width: 920px;
}

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

.staff-row {
  display: grid;
  grid-template-columns: 96px 80px minmax(130px, 1fr) minmax(120px, 1fr) minmax(170px, 1.2fr) 220px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.78);
  border-radius: 8px;
  padding: 12px;
}

.staff-head {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
}

.staff-row strong {
  color: #ffe8a3;
  font-size: 18px;
}

.staff-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #e8ecf7;
  font-size: 13px;
}

.staff-ap-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.staff-ap-form input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}

.cart-invoice {
  display: grid;
  gap: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.78);
  border-radius: 8px;
  padding: 12px;
}

.cart-line h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
}

.cart-line p,
.cart-help {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.cart-form {
  grid-template-columns: 1fr;
}

.bank-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 203, 69, 0.34);
  background: rgba(255, 203, 69, 0.1);
  border-radius: 8px;
  padding: 14px;
}

.bank-card span {
  color: var(--muted);
  font-size: 12px;
}

.bank-card strong {
  direction: ltr;
  color: #ffe8a3;
  font-size: 20px;
}

.bank-card p {
  margin-bottom: 0;
  color: #fff;
}

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

.transaction-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.78);
  border-radius: 8px;
  padding: 16px;
}

.transaction-head,
.transaction-meta,
.transaction-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.transaction-head h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 17px;
}

.transaction-head p,
.transaction-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.transaction-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.transaction-items span,
.status-pill,
.reject-note {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: #e8ecf7;
  font-size: 12px;
}

.status-pending {
  color: #ffe8a3;
  border-color: rgba(255, 203, 69, 0.32);
}

.status-approved {
  color: #c8ffe9;
  border-color: rgba(66, 227, 162, 0.32);
}

.status-rejected {
  color: #ffd6de;
  border-color: rgba(255, 93, 115, 0.32);
}

.reject-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reject-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.ticket-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ticket-sidebar-panel,
.ticket-chat-panel {
  display: grid;
  gap: 14px;
}

.ticket-create-form,
.ticket-reply-form,
.ticket-status-form {
  grid-template-columns: 1fr;
}

.ticket-filter-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ticket-filter-tabs a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.72);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.ticket-filter-tabs a:hover,
.ticket-filter-tabs a.is-active {
  border-color: rgba(255, 203, 69, 0.38);
  background: rgba(255, 203, 69, 0.08);
  color: #fff;
}

.ticket-filter-tabs strong {
  display: inline-flex;
  min-width: 28px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
}

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

.ticket-list-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.78);
  border-radius: 8px;
  padding: 12px;
}

.ticket-list-item.is-active,
.ticket-list-item:hover {
  border-color: rgba(255, 203, 69, 0.38);
  background: rgba(255, 203, 69, 0.08);
}

.ticket-list-item strong {
  color: #fff;
  font-size: 14px;
}

.ticket-list-item span,
.ticket-empty-state p,
.ticket-chat-head p,
.ticket-message-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.ticket-chat-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.68);
  border-radius: 8px;
  padding: 16px;
}

.ticket-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ticket-chat-head h2,
.ticket-empty-state h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 18px;
}

.ticket-messages {
  display: grid;
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding-left: 4px;
}

.ticket-message {
  display: grid;
  gap: 8px;
  max-width: 82%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
}

.ticket-message.is-staff {
  justify-self: start;
  border-color: rgba(57, 208, 255, 0.25);
  background: rgba(57, 208, 255, 0.08);
}

.ticket-message.is-player {
  justify-self: end;
  border-color: rgba(255, 203, 69, 0.24);
  background: rgba(255, 203, 69, 0.08);
}

.ticket-message p {
  margin-bottom: 0;
  color: #eef3ff;
  font-size: 13px;
}

.ticket-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ticket-message-meta strong {
  color: #fff;
}

.ticket-attachment {
  justify-self: start;
  color: #dff8ff;
  font-size: 12px;
  font-weight: 700;
}

.ticket-player-summary {
  margin-bottom: 0;
}

.account-subnav,
.gang-subnav {
  margin-bottom: 18px;
}

.account-subnav .management-card.is-active,
.gang-subnav .management-card.is-active {
  border-color: rgba(255, 203, 69, 0.46);
  background: rgba(255, 203, 69, 0.09);
}

.account-panel[hidden],
.gang-panel[hidden] {
  display: none;
}

.account-panel,
.gang-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

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

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

.account-form {
  grid-template-columns: 1fr;
}

.account-form-wide {
  max-width: 760px;
}

.gang-member-list,
.gang-log-list {
  display: grid;
  gap: 10px;
}

.gang-member-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(170px, 1.2fr) 120px minmax(320px, 1.6fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.78);
  border-radius: 8px;
  padding: 12px;
}

.gang-member-head {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
}

.gang-member-row span,
.gang-member-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gang-member-row strong {
  color: #ffe8a3;
}

.gang-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gang-grade-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gang-grade-form select {
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.gang-permission-form {
  max-width: 980px;
}

.gang-log-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 29, 0.78);
  border-radius: 8px;
  padding: 12px;
}

.gang-log-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gang-log-item strong {
  color: #fff;
}

.gang-log-item span,
.gang-log-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.status-open {
  color: #c8ffe9;
  border-color: rgba(66, 227, 162, 0.32);
}

.status-progress {
  color: #dff8ff;
  border-color: rgba(57, 208, 255, 0.32);
}

.status-closed {
  color: #ffd6de;
  border-color: rgba(255, 93, 115, 0.32);
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 13, 18, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-button {
    display: grid;
  }

  .hero-inner,
  .split,
  .leader-stage,
  .player-dashboard-frame {
    grid-template-columns: 1fr;
  }

  .player-sidebar {
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .player-logo {
    margin-bottom: 18px;
  }

  .player-menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .player-logout {
    margin-top: 14px;
  }

  .player-identity-strip,
  .license-grid,
  .player-stat-grid,
  .management-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .management-hero {
    grid-template-columns: 1fr;
  }

  .status-panel {
    max-width: 520px;
  }

  .feature-grid,
  .news-grid,
  .leaderboards-grid,
  .visual-strip,
  .permission-panel,
  .store-grid,
  .store-admin-layout,
  .cart-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 24px, 1180px);
  }

  .nav-actions .button {
    display: none;
  }

  .icon-button {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 72px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .feature-grid,
  .news-grid,
  .leaderboards-grid,
  .stat-grid,
  .visual-strip,
  .permission-panel,
  .store-grid,
  .store-admin-layout,
  .cart-layout,
  .ticket-layout,
  .account-verify-grid,
  .store-form,
  .user-admin-summary,
  .player-identity-strip,
  .license-grid,
  .player-stat-grid,
  .management-grid {
    grid-template-columns: 1fr;
  }

  .player-dashboard-page {
    padding: 0;
  }

  .player-dashboard-frame {
    min-height: 100vh;
    border-radius: 0;
  }

  .player-dashboard-surface {
    padding: 18px 14px;
  }

  .player-section,
  .vehicle-section {
    max-width: none;
  }

  .player-stat.span-2 {
    grid-column: span 1;
  }

  .player-menu {
    grid-template-columns: 1fr;
  }

  .vehicle-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gang-member-row {
    grid-template-columns: 1fr;
  }

  .staff-head {
    display: none;
  }

  .gang-member-head {
    display: none;
  }

  .store-admin-item {
    grid-template-columns: 1fr;
  }

  .store-admin-item img {
    width: 100%;
    height: 160px;
  }

  .store-admin-actions {
    flex-wrap: wrap;
  }

  .store-category-head,
  .store-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .store-gallery-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-line,
  .transaction-head,
  .transaction-meta,
  .transaction-actions,
  .reject-form {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-line {
    grid-template-columns: 1fr;
  }

  .visual-side {
    grid-template-rows: auto;
  }

  .image-callout {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: 180px 12px 12px;
  }

  .leader-row {
    grid-template-columns: 44px 1fr;
  }

  .leader-row strong:last-child {
    grid-column: 2;
  }
}

/* Final Griffin monochrome override. Keep this at EOF. */
:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(12, 12, 12, 0.82);
  --panel-solid: #101010;
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #b8b8b8;
  --accent: #ffffff;
  --accent-2: #d6d6d6;
  --danger: #e5e5e5;
  --success: #ffffff;
}

body {
  background: #050505;
  color: #fff;
}

.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.82);
}

.brand,
.alliance-brand,
.player-logo,
.player-logo span,
.player-logo strong {
  color: #fff;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.player-logo img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.brand-mark,
.feature-icon,
.management-icon,
.menu-icon,
.shield-icon,
.stat-ring,
.rank {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: none;
}

.nav-links {
  color: rgba(255, 255, 255, 0.62);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}

.button,
.language-toggle,
.icon-button,
.menu-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.button.primary {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.button.info {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.alliance-hero {
  min-height: calc(100vh - 76px);
  align-items: center;
}

.alliance-hero::before {
  background-image: url("../../wallpapers/cyberpunk-vigilante4-k-art-3e4u3tp5mr28v4x3.jpg");
  filter: grayscale(1) contrast(1.18) brightness(0.62);
}

.alliance-hero::after,
html[dir="ltr"] .alliance-hero::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.92) 88%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.88));
}

.alliance-hero-inner {
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  padding: 86px 0 58px;
}

.alliance-hero-mark {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 20px;
}

.hero-title-line {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.2;
}

.alliance-hero h1 {
  max-width: 940px;
  color: #fff;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 1.04;
}

.hero-copy,
.feature-card p,
.home-card p,
.store-card p,
.rule-card p,
.news-card p,
.leader-row small,
.leader-row span,
.store-category-head p,
.management-card p {
  color: var(--muted);
}

.hero-kicker,
.section-kicker,
.eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.hero-status-card,
.status-panel,
.dashboard-panel,
.leaderboard-panel,
.feature-card,
.home-card,
.store-card,
.store-loading,
.rule-card,
.news-card,
.player-identity-strip,
.player-section,
.license-card,
.player-stat,
.vehicle-table {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 12, 0.78);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
}

.feature-card::after,
.feature-card.is-blue::after,
.feature-card.is-red::after,
.store-showcase-category,
.store-showcase-category:nth-child(2),
.store-showcase-category:nth-child(3),
.store-showcase-category:nth-child(4),
.management-hero,
.rules-hero-card,
.bank-card {
  background: rgba(255, 255, 255, 0.045);
}

.server-state,
.store-card-footer strong,
.store-badge,
.bank-card strong,
.staff-row strong,
.gang-member-row strong,
.player-stat strong,
.management-access strong,
.player-stat.is-job strong,
.player-stat.is-gang strong,
.status-open,
.status-progress,
.status-closed,
.status-pending,
.status-approved,
.status-rejected,
.ticket-attachment {
  color: #fff;
}

.live-dot,
.license-pulse,
.license-card.is-ok .license-pulse {
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.live-count {
  display: grid;
  justify-items: center;
  padding: 22px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.live-count strong {
  font-size: clamp(54px, 7vw, 86px);
  line-height: 1;
}

.live-count span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.signal-bars {
  display: flex;
  justify-content: center;
  gap: 5px;
  height: 34px;
  align-items: end;
  margin: 14px 0;
}

.signal-bars span {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.signal-bars span:nth-child(2n) {
  height: 20px;
}

.signal-bars span:nth-child(3n) {
  height: 27px;
}

.stat,
.dashboard-row,
.leader-row,
.vehicle-row,
.management-card,
.ticket-list-item,
.ticket-chat-panel,
.ticket-message,
.transaction-card,
.cart-line,
.store-category-head,
.store-admin-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.copy-box input,
.store-form input,
.store-form select,
.store-form textarea,
.staff-ap-form input,
.gang-grade-form select,
.reject-form input,
.store-quantity input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.section {
  background: #050505;
}

.section.alt,
.alliance-band,
.dashboard-preview-section {
  background: #f2f2f2;
  color: #050505;
}

.section.alt .section-heading p,
.section.alt p,
.alliance-band p,
.dashboard-preview-section p {
  color: rgba(0, 0, 0, 0.62);
}

.section.alt .button,
.dashboard-preview-section .button {
  border-color: rgba(0, 0, 0, 0.18);
  color: #050505;
  background: rgba(0, 0, 0, 0.04);
}

.section.alt .button.primary,
.dashboard-preview-section .button.primary {
  border-color: #050505;
  background: #050505;
  color: #fff;
}

.section.alt .dashboard-panel,
.section.alt .leaderboard-panel,
.section.alt .feature-card,
.section.alt .home-card,
.section.alt .store-card,
.dashboard-preview-section .dashboard-panel {
  border-color: rgba(0, 0, 0, 0.14);
  background: #ffffff;
  color: #050505;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}

.section.alt .dashboard-row,
.section.alt .leader-row,
.dashboard-preview-section .dashboard-row {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.045);
}

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

.metric-strip article {
  min-height: 106px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 8px;
}

.metric-strip span {
  display: block;
  color: rgba(0, 0, 0, 0.54);
  font-size: 12px;
}

.metric-strip strong {
  display: block;
  margin-top: 10px;
  color: #050505;
  font-size: 18px;
}

.centered-heading {
  justify-content: center;
  text-align: center;
}

.centered-heading p {
  margin-right: auto;
  margin-left: auto;
}

.alliance-feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.store-gallery-nav:hover,
.store-showcase-card:hover,
.ticket-filter-tabs a:hover,
.ticket-filter-tabs a.is-active,
.ticket-list-item.is-active,
.ticket-list-item:hover,
.account-subnav .management-card.is-active,
.gang-subnav .management-card.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.store-card-media > img,
.visual-main,
.visual-thumb,
.dashboard-visual {
  filter: grayscale(1) contrast(1.08);
}

.footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: #050505;
}

.player-dashboard-page {
  min-height: 100vh;
  background: #050505;
}

.player-dashboard-frame {
  border-color: rgba(255, 255, 255, 0.12);
  background: #080808;
}

.player-sidebar {
  border-left-color: rgba(255, 255, 255, 0.12);
  background: #050505;
}

.player-menu a,
.player-logout {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.7);
}

.player-menu a:hover,
.player-menu a.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: #fff;
  color: #050505;
}

.player-menu a.is-active .menu-icon,
.player-menu a:hover .menu-icon {
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.06);
  color: #050505;
}

.player-stat.is-red,
.player-stat.is-gold,
.player-stat.is-blue,
.player-stat.is-money,
.player-stat.is-wallet {
  background: rgba(255, 255, 255, 0.045);
}

.management-card.is-blue .management-icon,
.management-card.is-green .management-icon,
.management-card.is-gold .management-icon,
.management-card.is-purple .management-icon,
.management-card.is-red .management-icon,
.management-card.is-cyan .management-icon {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

@media (max-width: 980px) {
  .alliance-hero-inner,
  .alliance-feature-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .hero-status-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .alliance-hero h1 {
    font-size: clamp(38px, 14vw, 62px);
  }

  .alliance-hero-mark {
    width: 64px;
    height: 64px;
  }

  .metric-strip article {
    min-height: auto;
  }
}
/* Griffin shared lightweight ticker, brand content, and guest ticket */
.global-ticker {
  position: relative;
  z-index: 6;
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, var(--theme-accent) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 16%, transparent);
  background: rgba(4, 9, 18, 0.78);
}

.global-ticker::before,
.global-ticker::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 88px;
  content: "";
  pointer-events: none;
}

.global-ticker::before {
  inset-inline-start: 0;
  background: linear-gradient(90deg, rgba(4, 9, 18, 1), rgba(4, 9, 18, 0));
}

.global-ticker::after {
  inset-inline-end: 0;
  background: linear-gradient(270deg, rgba(4, 9, 18, 1), rgba(4, 9, 18, 0));
}

.global-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 22px;
  padding: 11px 18px;
  animation: globalTickerMove 34s linear infinite;
}

.global-ticker-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.global-ticker span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(226, 236, 249, 0.72);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.global-ticker strong {
  color: #fff;
}

.global-ticker i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--theme-accent-2);
  box-shadow: 0 0 12px var(--theme-glow);
}

@keyframes globalTickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.brand-attract {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 72px) 0;
}

.brand-attract-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.brand-sigil-card {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, rgba(255, 255, 255, 0.1));
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--theme-accent) 20%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(5, 10, 19, 0.78);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.26);
}

.brand-sigil-card img {
  width: min(210px, 54vw);
  height: min(210px, 54vw);
  object-fit: cover;
  border-radius: 24px;
  filter: drop-shadow(0 0 28px var(--theme-glow));
}

.brand-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--theme-accent-2);
  box-shadow: 0 0 18px var(--theme-glow);
}

.brand-dot.one {
  top: 15%;
  inset-inline-start: 18%;
}

.brand-dot.two {
  top: 34%;
  inset-inline-end: 12%;
}

.brand-dot.three {
  bottom: 18%;
  inset-inline-start: 30%;
}

.brand-attract-copy h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.25;
}

.brand-attract-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(226, 236, 249, 0.74);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 750;
  line-height: 2;
}

.brand-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.brand-points article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.brand-points strong {
  display: block;
  color: var(--theme-accent-2);
  font-size: 18px;
  margin-bottom: 8px;
}

.brand-points span {
  color: rgba(226, 236, 249, 0.66);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.guest-ticket-page main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 16px;
}

.guest-ticket-card {
  width: min(100%, 680px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 34%, rgba(255, 255, 255, 0.1));
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(6, 12, 24, 0.92);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.guest-ticket-card h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 5vw, 44px);
}

.guest-ticket-card p {
  margin: 0 0 22px;
  color: rgba(226, 236, 249, 0.68);
  line-height: 1.9;
}

.guest-ticket-form {
  display: grid;
  gap: 14px;
}

.guest-ticket-form label {
  display: grid;
  gap: 8px;
  color: #fff;
  font-weight: 900;
}

.guest-ticket-form input,
.guest-ticket-form textarea,
.guest-ticket-form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  background: rgba(3, 8, 18, 0.78);
  color: #fff;
  font: inherit;
}

.guest-ticket-form textarea {
  min-height: 140px;
  resize: vertical;
}

@media (prefers-reduced-motion: reduce) {
  .global-ticker-track {
    animation: none;
  }
}

@media (max-width: 820px) {
  .brand-attract-grid,
  .brand-points {
    grid-template-columns: 1fr;
  }
}

/* Final theme and layout overrides */
html[data-theme="frost"] {
  --theme-accent: #f7fbff;
  --theme-accent-2: #8eeaff;
  --theme-glow: rgba(247, 251, 255, 0.34);
  --theme-logo-filter: grayscale(1) saturate(0.16) brightness(1.5) contrast(1.16);
  --theme-logo-glow: rgba(247, 251, 255, 0.58);
  --theme-panel-glow: rgba(142, 234, 255, 0.16);
  --theme-surface: rgba(10, 18, 31, 0.78);
  --theme-surface-strong: rgba(14, 24, 38, 0.9);
  --theme-border: rgba(247, 251, 255, 0.22);
  --theme-bg-glow-1: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 17%);
  --theme-bg-glow-2: radial-gradient(circle at 78% 20%, rgba(142, 234, 255, 0.14), transparent 24%);
  --theme-bg-glow-3: linear-gradient(0deg, rgba(255, 255, 255, 0.018), transparent 48%);
  --theme-bg-base: linear-gradient(135deg, #050a12 0%, #0b1724 48%, #101827 100%);
  --theme-texture: none;
  --theme-scene:
    radial-gradient(ellipse at 50% 18%, rgba(255,255,255,.3), transparent 36%),
    radial-gradient(ellipse at 50% 105%, rgba(190,242,255,.18), transparent 42%),
    linear-gradient(180deg, rgba(237,249,255,.12), transparent 44%, rgba(9,18,31,.38));
  --theme-scene-size: 120% 120%, 120% 120%, 100% 100%;
  --theme-scene-opacity: .5;
}

html[data-theme="ocean"] {
  --theme-accent: #38e7ff;
  --theme-accent-2: #92fff1;
  --theme-glow: rgba(56, 231, 255, 0.34);
  --theme-logo-filter: hue-rotate(0deg) saturate(1.42) brightness(1.08) contrast(1.08);
  --theme-logo-glow: rgba(56, 231, 255, 0.58);
  --theme-panel-glow: rgba(41, 190, 226, 0.2);
  --theme-surface: rgba(3, 28, 45, 0.78);
  --theme-surface-strong: rgba(4, 38, 58, 0.9);
  --theme-border: rgba(56, 231, 255, 0.24);
  --theme-bg-glow-1: radial-gradient(circle at 16% 18%, rgba(23, 188, 210, 0.24), transparent 24%);
  --theme-bg-glow-2: radial-gradient(circle at 84% 16%, rgba(109, 255, 233, 0.16), transparent 26%);
  --theme-bg-glow-3: linear-gradient(160deg, rgba(17, 88, 116, 0.34), transparent 58%);
  --theme-bg-base: linear-gradient(135deg, #02101b 0%, #062033 46%, #03141d 100%);
  --theme-texture: none;
  --theme-scene:
    linear-gradient(180deg, rgba(48,210,255,.42) 0%, rgba(5,42,72,.22) 34%, rgba(1,10,19,.22) 100%),
    radial-gradient(ellipse at 50% 102%, rgba(80,238,255,.34), transparent 46%),
    linear-gradient(145deg, rgba(2,41,68,.5), transparent 58%);
  --theme-scene-size: 100% 100%, 100% 100%, 100% 100%;
  --theme-scene-opacity: .68;
}

html[data-theme="gold"] {
  --theme-accent: #ffd66e;
  --theme-accent-2: #fff3b0;
  --theme-glow: rgba(255, 214, 110, 0.34);
  --theme-logo-filter: hue-rotate(166deg) saturate(2.05) brightness(1.12) contrast(1.12);
  --theme-logo-glow: rgba(255, 178, 35, 0.6);
  --theme-panel-glow: rgba(255, 178, 55, 0.2);
  --theme-surface: rgba(39, 25, 6, 0.78);
  --theme-surface-strong: rgba(54, 34, 8, 0.9);
  --theme-border: rgba(255, 214, 110, 0.24);
  --theme-bg-glow-1: radial-gradient(circle at 18% 18%, rgba(255, 190, 69, 0.2), transparent 24%);
  --theme-bg-glow-2: radial-gradient(circle at 82% 15%, rgba(255, 242, 166, 0.14), transparent 24%);
  --theme-bg-glow-3: linear-gradient(145deg, rgba(122, 83, 18, 0.24), transparent 56%);
  --theme-bg-base: linear-gradient(135deg, #130d05 0%, #241805 46%, #0d0b08 100%);
  --theme-texture: none;
  --theme-scene:
    radial-gradient(ellipse at 72% 24%, rgba(255,190,55,.42), transparent 30%),
    radial-gradient(ellipse at 32% 72%, rgba(255,118,25,.22), transparent 42%),
    radial-gradient(circle at 50% 44%, rgba(255,230,120,.12), transparent 28%),
    linear-gradient(145deg, rgba(122,83,18,.36), transparent 60%);
  --theme-scene-size: 120% 120%, 120% 120%, 100% 100%, 100% 100%;
  --theme-scene-opacity: .58;
}

html[data-theme="life"] {
  --theme-accent: #3dff9c;
  --theme-accent-2: #b7ffd8;
  --theme-glow: rgba(61, 255, 156, 0.3);
  --theme-logo-filter: hue-rotate(82deg) saturate(1.9) brightness(1.08) contrast(1.12);
  --theme-logo-glow: rgba(61, 255, 84, 0.58);
  --theme-panel-glow: rgba(48, 220, 126, 0.18);
  --theme-surface: rgba(4, 35, 20, 0.78);
  --theme-surface-strong: rgba(6, 47, 27, 0.9);
  --theme-border: rgba(61, 255, 156, 0.24);
  --theme-bg-glow-1: radial-gradient(circle at 18% 18%, rgba(51, 214, 117, 0.22), transparent 24%);
  --theme-bg-glow-2: radial-gradient(circle at 84% 18%, rgba(183, 255, 216, 0.12), transparent 25%);
  --theme-bg-glow-3: linear-gradient(150deg, rgba(22, 80, 47, 0.34), transparent 58%);
  --theme-bg-base: linear-gradient(135deg, #031108 0%, #082317 50%, #06120b 100%);
  --theme-texture: none;
  --theme-scene:
    radial-gradient(ellipse at 50% 4%, rgba(160,255,185,.24), transparent 30%),
    radial-gradient(ellipse at 24% 90%, rgba(61,255,156,.24), transparent 40%),
    radial-gradient(ellipse at 82% 82%, rgba(20,95,45,.34), transparent 42%),
    linear-gradient(150deg, rgba(12,78,39,.48), transparent 62%);
  --theme-scene-size: 100% 100%, 120% 120%, 120% 120%, 100% 100%;
  --theme-scene-opacity: .62;
}

html[data-theme="mystery"] {
  --theme-accent: #9d8cff;
  --theme-accent-2: #e6e0ff;
  --theme-glow: rgba(157, 140, 255, 0.3);
  --theme-logo-filter: hue-rotate(42deg) saturate(1.55) brightness(1.02) contrast(1.1);
  --theme-logo-glow: rgba(157, 140, 255, 0.56);
  --theme-panel-glow: rgba(157, 140, 255, 0.18);
  --theme-surface: rgba(18, 14, 40, 0.8);
  --theme-surface-strong: rgba(24, 18, 55, 0.92);
  --theme-border: rgba(157, 140, 255, 0.26);
  --theme-bg-glow-1: radial-gradient(circle at 18% 14%, rgba(118, 87, 255, 0.22), transparent 24%);
  --theme-bg-glow-2: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.1), transparent 24%);
  --theme-bg-glow-3: linear-gradient(135deg, rgba(53, 45, 95, 0.28), transparent 58%);
  --theme-bg-base: linear-gradient(135deg, #080713 0%, #15112b 48%, #060711 100%);
  --theme-texture: none;
  --theme-scene:
    radial-gradient(circle at 24% 28%, rgba(157,140,255,.32), transparent 18%),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.16), transparent 13%),
    radial-gradient(ellipse at 50% 92%, rgba(92,70,180,.18), transparent 42%),
    linear-gradient(135deg, rgba(50,42,96,.34), transparent 62%);
  --theme-scene-size: 120% 120%, 110% 110%, 120% 120%, 100% 100%;
  --theme-scene-opacity: .58;
}

body.sunset-home,
body.staff-page,
body.rules-page,
body.guest-ticket-page,
body.auth-page,
body.player-dashboard-page {
  position: relative;
  background:
    var(--theme-bg-glow-1),
    var(--theme-bg-glow-2),
    var(--theme-bg-glow-3),
    var(--theme-bg-base) !important;
}

.theme-video-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  pointer-events: none;
  background: #020712;
  contain: layout paint;
}

.theme-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .5s ease;
}

.theme-video-bg.is-ready video {
  opacity: .42;
}

.theme-video-bg::before,
.theme-video-bg::after {
  position: absolute;
  pointer-events: none;
}

.theme-video-bg::before,
.theme-video-bg::after {
  inset: -10%;
  content: "";
}

.theme-video-bg::before {
  background:
    radial-gradient(ellipse at 50% 36%, color-mix(in srgb, var(--theme-accent) 28%, transparent), transparent 40%),
    radial-gradient(ellipse at 50% 108%, color-mix(in srgb, var(--theme-accent-2) 18%, transparent), transparent 44%),
    var(--theme-bg-base);
  animation: allianceVideoPulse 12s ease-in-out infinite alternate;
}

.theme-video-bg::after {
  background:
    linear-gradient(180deg, rgba(2, 5, 12, .18), rgba(2, 5, 12, .86)),
    radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(0,0,0,.58) 100%);
}

body.sunset-home::before,
body.staff-page::before,
body.rules-page::before,
body.guest-ticket-page::before,
body.auth-page::before,
body.player-dashboard-page::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--theme-scene);
  background-size: var(--theme-scene-size);
  opacity: var(--theme-scene-opacity);
  animation: allianceSceneDrift 32s ease-in-out infinite alternate;
  content: "";
  will-change: background-position;
}

body.sunset-home::after,
body.staff-page::after,
body.rules-page::after,
body.guest-ticket-page::after,
body.auth-page::after,
body.player-dashboard-page::after {
  display: none !important;
  content: none !important;
}

html[data-theme="frost"] body.sunset-home,
html[data-theme="frost"] body.staff-page,
html[data-theme="frost"] body.rules-page,
html[data-theme="frost"] body.guest-ticket-page,
html[data-theme="frost"] body.auth-page,
html[data-theme="frost"] body.player-dashboard-page {
  --theme-page-image-layer:
    linear-gradient(180deg, rgba(2, 7, 14, .18), rgba(2, 7, 14, .82)),
    radial-gradient(ellipse at 72% 24%, rgba(170, 232, 255, .18), transparent 36%),
    url("../img/themes/frost.jpg") center / cover fixed no-repeat;
  background:
    var(--theme-page-image-layer),
    var(--theme-bg-base) !important;
}

html[data-theme="ocean"] body.sunset-home,
html[data-theme="ocean"] body.staff-page,
html[data-theme="ocean"] body.rules-page,
html[data-theme="ocean"] body.guest-ticket-page,
html[data-theme="ocean"] body.auth-page,
html[data-theme="ocean"] body.player-dashboard-page {
  --theme-page-image-layer:
    linear-gradient(180deg, rgba(0, 9, 17, .16), rgba(0, 9, 17, .82)),
    radial-gradient(ellipse at 70% 18%, rgba(101, 246, 255, .18), transparent 36%),
    url("../img/themes/ocean.jpg") center / cover fixed no-repeat;
  background:
    var(--theme-page-image-layer),
    var(--theme-bg-base) !important;
}

html[data-theme="gold"] body.sunset-home,
html[data-theme="gold"] body.staff-page,
html[data-theme="gold"] body.rules-page,
html[data-theme="gold"] body.guest-ticket-page,
html[data-theme="gold"] body.auth-page,
html[data-theme="gold"] body.player-dashboard-page {
  --theme-page-image-layer:
    linear-gradient(180deg, rgba(15, 9, 0, .16), rgba(15, 9, 0, .84)),
    radial-gradient(ellipse at 74% 18%, rgba(255, 204, 82, .18), transparent 36%),
    url("../uploads/public-files/20260820-164359-322721cfcae01a85.png") center / cover fixed no-repeat;
  background:
    var(--theme-page-image-layer),
    var(--theme-bg-base) !important;
}

html[data-theme="life"] body.sunset-home,
html[data-theme="life"] body.staff-page,
html[data-theme="life"] body.rules-page,
html[data-theme="life"] body.guest-ticket-page,
html[data-theme="life"] body.auth-page,
html[data-theme="life"] body.player-dashboard-page {
  --theme-page-image-layer:
    linear-gradient(180deg, rgba(0, 14, 7, .18), rgba(0, 14, 7, .84)),
    radial-gradient(ellipse at 74% 20%, rgba(69, 255, 154, .16), transparent 38%),
    url("../img/themes/life.jpg") center / cover fixed no-repeat;
  background:
    var(--theme-page-image-layer),
    var(--theme-bg-base) !important;
}

html[data-theme="mystery"] body.sunset-home,
html[data-theme="mystery"] body.staff-page,
html[data-theme="mystery"] body.rules-page,
html[data-theme="mystery"] body.guest-ticket-page,
html[data-theme="mystery"] body.auth-page,
html[data-theme="mystery"] body.player-dashboard-page {
  --theme-page-image-layer:
    linear-gradient(180deg, rgba(6, 4, 18, .18), rgba(6, 4, 18, .86)),
    radial-gradient(ellipse at 74% 18%, rgba(171, 132, 255, .18), transparent 36%),
    url("../img/themes/mystery.jpg") center / cover fixed no-repeat;
  background:
    var(--theme-page-image-layer),
    var(--theme-bg-base) !important;
}

html[data-theme="frost"] body.sunset-home::after,
html[data-theme="frost"] body.staff-page::after,
html[data-theme="frost"] body.rules-page::after,
html[data-theme="frost"] body.guest-ticket-page::after,
html[data-theme="frost"] body.auth-page::after,
html[data-theme="frost"] body.player-dashboard-page::after {
  position: fixed;
  inset: -24px 0 0;
  z-index: -1;
  display: block !important;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(180,235,255,.54) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255,255,255,.32) 0 1px, transparent 1.7px);
  background-position: 0 0, 42px 28px, 86px 74px;
  background-size: 180px 180px, 240px 240px, 320px 320px;
  content: "" !important;
  opacity: .34;
  animation: frostSnowFall 24s linear infinite;
  will-change: transform;
}

html[data-theme] body.sunset-home::before {
  opacity: .08 !important;
}

html[data-theme] body.staff-page::before,
html[data-theme] body.rules-page::before,
html[data-theme] body.guest-ticket-page::before,
html[data-theme] body.auth-page::before,
html[data-theme] body.player-dashboard-page::before {
  opacity: .1 !important;
}

html[data-theme="ocean"] body.sunset-home::after,
html[data-theme="ocean"] body.staff-page::after,
html[data-theme="ocean"] body.rules-page::after,
html[data-theme="ocean"] body.guest-ticket-page::after,
html[data-theme="ocean"] body.auth-page::after,
html[data-theme="ocean"] body.player-dashboard-page::after,
html[data-theme="gold"] body.sunset-home::after,
html[data-theme="gold"] body.staff-page::after,
html[data-theme="gold"] body.rules-page::after,
html[data-theme="gold"] body.guest-ticket-page::after,
html[data-theme="gold"] body.auth-page::after,
html[data-theme="gold"] body.player-dashboard-page::after,
html[data-theme="life"] body.sunset-home::after,
html[data-theme="life"] body.staff-page::after,
html[data-theme="life"] body.rules-page::after,
html[data-theme="life"] body.guest-ticket-page::after,
html[data-theme="life"] body.auth-page::after,
html[data-theme="life"] body.player-dashboard-page::after,
html[data-theme="mystery"] body.sunset-home::after,
html[data-theme="mystery"] body.staff-page::after,
html[data-theme="mystery"] body.rules-page::after,
html[data-theme="mystery"] body.guest-ticket-page::after,
html[data-theme="mystery"] body.auth-page::after,
html[data-theme="mystery"] body.player-dashboard-page::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block !important;
  pointer-events: none;
  content: "" !important;
  will-change: transform, opacity;
}

html[data-theme="ocean"] body.sunset-home::after,
html[data-theme="ocean"] body.staff-page::after,
html[data-theme="ocean"] body.rules-page::after,
html[data-theme="ocean"] body.guest-ticket-page::after,
html[data-theme="ocean"] body.auth-page::after,
html[data-theme="ocean"] body.player-dashboard-page::after {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(112, 235, 255, .22) 48%, transparent 54%),
    radial-gradient(ellipse at 50% 105%, rgba(78, 226, 255, .22), transparent 42%),
    repeating-linear-gradient(105deg, transparent 0 28px, rgba(111, 238, 255, .08) 30px 31px, transparent 34px 58px);
  opacity: .28;
  animation: themeOceanDrift 18s ease-in-out infinite alternate;
}

html[data-theme="gold"] body.sunset-home::after,
html[data-theme="gold"] body.staff-page::after,
html[data-theme="gold"] body.rules-page::after,
html[data-theme="gold"] body.guest-ticket-page::after,
html[data-theme="gold"] body.auth-page::after,
html[data-theme="gold"] body.player-dashboard-page::after {
  background-image:
    radial-gradient(circle, rgba(255, 209, 102, .68) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 169, 38, .36) 0 1px, transparent 2px),
    linear-gradient(105deg, transparent 0 45%, rgba(255, 195, 88, .16) 50%, transparent 55%);
  background-size: 210px 210px, 340px 340px, 100% 100%;
  opacity: .34;
  animation: themeGoldSpark 26s linear infinite;
}

html[data-theme="life"] body.sunset-home::after,
html[data-theme="life"] body.staff-page::after,
html[data-theme="life"] body.rules-page::after,
html[data-theme="life"] body.guest-ticket-page::after,
html[data-theme="life"] body.auth-page::after,
html[data-theme="life"] body.player-dashboard-page::after {
  background-image:
    radial-gradient(ellipse, rgba(86, 255, 156, .42) 0 1px, transparent 2px),
    radial-gradient(ellipse at 20% 70%, rgba(10, 180, 100, .24), transparent 36%),
    linear-gradient(135deg, transparent 0 46%, rgba(78, 255, 144, .12) 50%, transparent 54%);
  background-size: 170px 220px, 100% 100%, 100% 100%;
  opacity: .3;
  animation: themeLifeFloat 24s ease-in-out infinite alternate;
}

html[data-theme="mystery"] body.sunset-home::after,
html[data-theme="mystery"] body.staff-page::after,
html[data-theme="mystery"] body.rules-page::after,
html[data-theme="mystery"] body.guest-ticket-page::after,
html[data-theme="mystery"] body.auth-page::after,
html[data-theme="mystery"] body.player-dashboard-page::after {
  background:
    radial-gradient(ellipse at 24% 54%, rgba(168, 121, 255, .28), transparent 36%),
    radial-gradient(ellipse at 78% 22%, rgba(219, 187, 255, .14), transparent 30%),
    linear-gradient(90deg, rgba(145, 89, 255, .16), transparent 34%, rgba(98, 69, 180, .14));
  opacity: .3;
  filter: blur(1px);
  animation: themeMysteryMist 22s ease-in-out infinite alternate;
}

@keyframes frostSnowFall {
  from {
    transform: translate3d(0, -24px, 0);
  }
  to {
    transform: translate3d(-34px, 160px, 0);
  }
}

@keyframes themeOceanDrift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(2%, 1%, 0) scale(1.05);
  }
}

@keyframes themeGoldSpark {
  from {
    background-position: 0 0, 0 0, 0 0;
    transform: translate3d(0, 0, 0);
  }
  to {
    background-position: 120px 220px, -160px 260px, 0 0;
    transform: translate3d(1%, -1%, 0);
  }
}

@keyframes themeLifeFloat {
  from {
    background-position: 0 0, 0 0, 0 0;
    transform: translate3d(-1%, 1%, 0);
  }
  to {
    background-position: -110px 180px, 0 0, 0 0;
    transform: translate3d(1%, -1%, 0);
  }
}

@keyframes themeMysteryMist {
  from {
    transform: translate3d(-3%, 0, 0) scale(1.03);
  }
  to {
    transform: translate3d(3%, -1%, 0) scale(1.07);
  }
}

@keyframes allianceSceneDrift {
  0% {
    background-position: 0 0, 100% 0, 0 0, 0 0;
  }
  100% {
    background-position: 3% 2%, 96% 5%, 48px -36px, -42px 38px;
  }
}

@keyframes allianceVideoPulse {
  from {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: .86;
  }
  to {
    transform: scale(1.05) translate3d(-1.5%, 1%, 0);
    opacity: .98;
  }
}

@keyframes allianceTextureDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 96px 48px, 140px 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sunset-home::before,
  body.staff-page::before,
  body.rules-page::before,
  body.guest-ticket-page::before,
  body.auth-page::before,
  body.player-dashboard-page::before,
  .theme-video-bg::before,
  body.sunset-home::after,
  body.staff-page::after,
  body.rules-page::after,
  body.guest-ticket-page::after,
  body.auth-page::after,
  body.player-dashboard-page::after {
    animation: none !important;
  }
}

.brand-logo,
.login-logo,
.sunset-brand .brand-logo,
.dashboard-brand img,
.panel-brand img,
.player-brand img,
.player-logo img {
  filter: var(--theme-logo-filter) drop-shadow(0 0 18px var(--theme-logo-glow)) !important;
  transition: filter .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.login-logo,
.sunset-brand .brand-logo,
.dashboard-brand img,
.panel-brand img,
.player-brand img,
.player-logo img {
  border-color: color-mix(in srgb, var(--theme-accent) 30%, transparent) !important;
  box-shadow: 0 0 28px var(--theme-logo-glow) !important;
}

.site-header,
.sunset-header {
  border-top: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 18%, transparent) !important;
  background: linear-gradient(180deg, rgba(4, 9, 18, 0.54), rgba(4, 9, 18, 0.08)) !important;
  box-shadow: none !important;
}

.theme-fab {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  bottom: 18px !important;
  left: 18px !important;
  font-size: 20px !important;
  z-index: 10050 !important;
  pointer-events: auto !important;
}

.theme-panel {
  width: min(286px, calc(100vw - 28px)) !important;
  padding: 12px !important;
  gap: 8px !important;
  border-radius: 16px !important;
  bottom: 80px !important;
  left: 14px !important;
  z-index: 10049 !important;
  border-color: var(--theme-border) !important;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-accent) 10%, transparent), rgba(255,255,255,.03)),
    var(--theme-surface-strong) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48), 0 0 36px var(--theme-panel-glow) !important;
}

.theme-panel.is-open,
.theme-fab:hover + .theme-panel,
.theme-fab:focus + .theme-panel,
.theme-panel:hover,
.theme-panel:focus-within {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.theme-panel h2 {
  margin: 0 0 6px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.theme-choice {
  min-height: 48px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  gap: 8px !important;
  grid-template-columns: 22px 1fr 28px !important;
}

.theme-choice strong {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.theme-choice small {
  display: none !important;
}

.choice-check {
  width: 22px !important;
  height: 22px !important;
  font-size: 13px !important;
}

.choice-swatch {
  width: 28px !important;
  height: 28px !important;
}

.alliance-reborn .sunset-status-card,
.alliance-reborn .feature-card,
.alliance-reborn .leaderboard-panel,
.alliance-reborn .metric-strip article,
.guest-ticket-card,
.auth-card,
.auth-side,
.player-dashboard-surface,
.ticket-sidebar-panel,
.ticket-chat-panel {
  border-color: var(--theme-border) !important;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-accent) 8%, transparent), rgba(255, 255, 255, 0.025)),
    var(--theme-surface) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), 0 0 34px var(--theme-panel-glow) !important;
}

.button.primary,
.auth-submit.button.primary,
.sunset-nav > .button.primary {
  border-color: color-mix(in srgb, var(--theme-accent) 48%, transparent) !important;
  background: linear-gradient(180deg, var(--theme-accent), var(--theme-accent-2)) !important;
  color: #061018 !important;
  box-shadow: 0 16px 42px var(--theme-panel-glow) !important;
}

.button:not(.primary),
.sunset-steps a,
.back-home {
  border-color: var(--theme-border) !important;
  background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface)) !important;
  color: rgba(241, 247, 255, 0.9) !important;
}

.sunset-nav .nav-links a.is-active,
.sunset-nav .nav-links a:hover,
.section-kicker,
.status-marquee span::before {
  color: var(--theme-accent-2) !important;
}

.global-ticker {
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-inline: -50vw;
  border-top-color: color-mix(in srgb, var(--theme-accent) 24%, transparent);
  border-bottom-color: color-mix(in srgb, var(--theme-accent) 22%, transparent);
  background: rgba(3, 7, 14, 0.84);
}

.global-ticker-track {
  min-width: 200vw;
  padding-block: 15px;
  animation-duration: 28s;
}

.choice-swatch.gold {
  background: radial-gradient(circle at 30% 30%, #fff8ca, #ffd66e 55%, #a76312);
}

.choice-swatch.life {
  background: radial-gradient(circle at 30% 30%, #d9ffe8, #3dff9c 55%, #0d6d34);
}

.choice-swatch.mystery {
  background: radial-gradient(circle at 30% 30%, #f1edff, #9d8cff 55%, #33206f);
}

.player-entry-chip {
  min-width: 164px;
  max-width: 220px;
  min-height: 48px;
  padding: 6px 10px 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border: 1px solid rgba(255, 205, 92, .42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 86% 50%, rgba(255, 205, 92, .16), transparent 42%),
    linear-gradient(145deg, rgba(32, 17, 4, .92), rgba(16, 8, 2, .72));
  color: #ffe5a8;
  text-decoration: none;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .26),
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 22px rgba(247, 189, 65, .16);
  transform: translateZ(0);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.player-entry-chip:hover {
  border-color: rgba(255, 218, 117, .7);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 0 30px rgba(247, 189, 65, .26);
}

.player-entry-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
  font-size: 14px;
  direction: ltr;
  transform: translateX(5px);
  color: transparent;
  background: linear-gradient(100deg, #ffeab6 0%, #f7bd41 38%, #ffffff 52%, #ffd66b 68%, #ffeab6 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 12px rgba(247, 189, 65, .18);
  animation: playerNameShine 7.5s ease-in-out infinite;
}

.player-entry-avatar {
  order: -1;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 218, 117, .82);
  background: #130902;
  box-shadow:
    0 0 0 3px rgba(255, 194, 64, .1),
    0 0 18px rgba(247, 189, 65, .42);
  animation: playerFaceGlow 4.8s ease-in-out infinite;
}

@keyframes playerNameShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes playerFaceGlow {
  0%, 100% {
    border-color: rgba(255, 218, 117, .58);
    box-shadow: 0 0 0 3px rgba(255, 194, 64, .08), 0 0 12px rgba(247, 189, 65, .28);
  }
  50% {
    border-color: rgba(255, 242, 196, .95);
    box-shadow: 0 0 0 3px rgba(255, 194, 64, .16), 0 0 24px rgba(247, 189, 65, .58);
  }
}

@media (max-width: 640px) {
  .player-entry-chip {
    min-width: min(180px, 100%);
    min-height: 46px;
  }

  .player-entry-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .player-entry-name {
    font-size: 13px;
  }
}

html.is-low-power .theme-video-bg,
html.is-low-power .theme-video-bg video {
  display: none !important;
}

html.is-low-power body.sunset-home::before,
html.is-low-power body.staff-page::before,
html.is-low-power body.rules-page::before,
html.is-low-power body.guest-ticket-page::before,
html.is-low-power body.auth-page::before,
html.is-low-power body.player-dashboard-page::before {
  animation: none !important;
  background-size: cover !important;
  opacity: .42 !important;
  will-change: auto !important;
}

html.is-low-power *,
html.is-low-power *::before,
html.is-low-power *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

html.is-low-power .global-ticker-track,
html.is-low-power .status-marquee-track {
  animation-duration: 40s !important;
  animation-iteration-count: infinite !important;
}

html.is-low-power .hero-status-card,
html.is-low-power .sunset-status-card,
html.is-low-power .feature-card,
html.is-low-power .leaderboard-panel,
html.is-low-power .metric-strip article,
html.is-low-power .guest-ticket-card,
html.is-low-power .auth-card,
html.is-low-power .auth-side,
html.is-low-power .player-dashboard-surface,
html.is-low-power .ticket-sidebar-panel,
html.is-low-power .ticket-chat-panel,
html.is-low-power .admin-ticket-panel,
html.is-low-power .admin-ticket-list,
html.is-low-power .admin-ticket-chat,
html.is-low-power .admin-ticket-head {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28) !important;
}

html.is-low-power .brand-logo,
html.is-low-power .login-logo,
html.is-low-power .sunset-brand .brand-logo,
html.is-low-power .dashboard-brand img,
html.is-low-power .panel-brand img,
html.is-low-power .player-brand img,
html.is-low-power .player-logo img {
  filter: none !important;
}

html.is-low-power .motion-item {
  opacity: 1 !important;
  transform: none !important;
}

html.is-low-power .ticket-row:hover,
html.is-low-power .ticket-row.is-active,
html.is-low-power .feature-card:hover,
html.is-low-power .management-card:hover,
html.is-low-power .player-menu a:hover,
html.is-low-power .player-menu a.is-active {
  transform: none !important;
}

@media (max-width: 820px), (pointer: coarse) {
  .theme-video-bg,
  .theme-video-bg video {
    display: none !important;
  }

  body.sunset-home,
  body.staff-page,
  body.rules-page,
  body.guest-ticket-page,
  body.auth-page,
  body.player-dashboard-page {
    background-attachment: scroll !important;
  }

  body.sunset-home::before,
  body.staff-page::before,
  body.rules-page::before,
  body.guest-ticket-page::before,
  body.auth-page::before,
  body.player-dashboard-page::before {
    animation: none !important;
    background-size: cover !important;
    opacity: .45 !important;
    will-change: auto !important;
  }

  .hero-status-card,
  .sunset-status-card,
  .feature-card,
  .leaderboard-panel,
  .metric-strip article,
  .guest-ticket-card,
  .auth-card,
  .auth-side,
  .player-dashboard-surface,
  .ticket-sidebar-panel,
  .ticket-chat-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3) !important;
  }
}
/* Griffin store refresh */
.alliance-store-page .player-dashboard-surface {
  background:
    radial-gradient(circle at 18% 12%, rgba(87, 229, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 30%, rgba(139, 92, 246, 0.12), transparent 24rem),
    linear-gradient(135deg, rgba(8, 14, 26, 0.96), rgba(13, 19, 38, 0.94));
}

.store-hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(20, 35, 56, 0.92), rgba(10, 14, 29, 0.88)),
    radial-gradient(circle at 72% 18%, rgba(34, 211, 238, 0.22), transparent 18rem);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.store-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 4% -42px 42%;
  height: 110px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.18), transparent);
  transform: perspective(480px) rotateX(64deg);
}

.store-hero-panel h1 {
  margin: .35rem 0;
  color: #f8fbff;
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: 0;
}

.store-hero-panel p {
  max-width: 760px;
  color: rgba(226, 232, 240, 0.78);
  line-height: 2;
}

.store-nav-3d {
  position: relative;
  z-index: 4;
  display: flex;
  gap: .85rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: .9rem;
  margin: 0 0 1.25rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 24px;
  background: rgba(7, 10, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 55px rgba(0,0,0,.24);
  overflow: visible;
}

.store-nav-item {
  position: relative;
  padding-bottom: .7rem;
  margin-bottom: -.7rem;
}

.store-nav-item > a {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 58px;
  padding: .75rem 1.1rem;
  color: rgba(226, 232, 240, .72);
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22, 28, 50, .92), rgba(9, 14, 30, .86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 28px rgba(0,0,0,.18);
  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.store-nav-item:hover > a,
.store-nav-item.is-active > a {
  color: #eaffff;
  border-color: rgba(34, 211, 238, .62);
  box-shadow: 0 18px 35px rgba(34, 211, 238, .14), inset 0 1px 0 rgba(255,255,255,.16);
  transform: translateY(-2px);
}

.store-nav-icon,
.store-dropdown span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #67e8f9;
  background: rgba(8, 145, 178, .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

.store-nav-icon svg,
.store-dropdown svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  display: grid;
  width: min(300px, calc(100vw - 32px));
  gap: .55rem;
  padding: .7rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.98);
  border: 1px solid rgba(103, 232, 249, .2);
  border-radius: 18px;
  background: rgba(10, 14, 31, .96);
  box-shadow: 0 28px 70px rgba(0,0,0,.36);
  transition: opacity .18s ease, transform .18s ease;
}

.store-dropdown::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: -.8rem;
  height: .8rem;
}

.store-nav-item:nth-last-child(-n + 2) .store-dropdown {
  right: auto;
  left: 0;
}

.store-nav-item:hover .store-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.store-nav-item:focus-within .store-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.store-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  min-height: 54px;
  padding: .55rem .7rem;
  color: #f8fafc;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 14px;
  background: rgba(15, 23, 42, .78);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.store-dropdown a:hover {
  transform: translateX(-4px);
  border-color: currentColor;
  background: rgba(30, 41, 59, .88);
}

.store-dropdown .tone-gold { color: #fbbf24; }
.store-dropdown .tone-violet { color: #a78bfa; }
.store-dropdown .tone-pink { color: #f472b6; }
.store-dropdown .tone-red { color: #fb7185; }
.store-dropdown .tone-green { color: #34d399; }
.store-dropdown .tone-silver { color: #cbd5e1; }
.store-dropdown .tone-cyan { color: #22d3ee; }

.alliance-store-page .player-sidebar,
.gang-dashboard-page .player-sidebar {
  width: 286px;
  min-width: 286px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(103, 232, 249, .2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 211, 238, .14), transparent 13rem),
    linear-gradient(165deg, rgba(14, 20, 37, .95), rgba(4, 7, 15, .98));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .36),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.alliance-store-page .player-logo,
.gang-dashboard-page .player-logo {
  margin-bottom: 28px;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.alliance-store-page .player-logo span,
.gang-dashboard-page .player-logo span {
  color: #f8fbff;
  font-size: 20px;
  font-weight: 900;
}

.alliance-store-page .player-logo strong,
.gang-dashboard-page .player-logo strong {
  color: rgba(226, 232, 240, .72);
  font-size: 15px;
  letter-spacing: 0;
}

.alliance-store-page .player-menu,
.gang-dashboard-page .player-menu {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 4px 0 10px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, .75) rgba(15, 23, 42, .45);
}

.alliance-store-page .player-menu a,
.gang-dashboard-page .player-menu a,
.alliance-store-page .player-logout,
.gang-dashboard-page .player-logout {
  position: relative;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px 10px 14px;
  overflow: hidden;
  color: rgba(226, 232, 240, .72);
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(28, 35, 56, .86), rgba(8, 12, 26, .9));
  box-shadow:
    0 14px 28px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.08);
  transform: perspective(700px) translateZ(0);
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}

.alliance-store-page .player-menu a::before,
.gang-dashboard-page .player-menu a::before,
.alliance-store-page .player-logout::before,
.gang-dashboard-page .player-logout::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.12), transparent 38%, rgba(34,211,238,.08));
  opacity: 0;
  transition: opacity .16s ease;
}

.alliance-store-page .player-menu a:hover,
.gang-dashboard-page .player-menu a:hover,
.alliance-store-page .player-menu a.is-active,
.gang-dashboard-page .player-menu a.is-active {
  color: #ecfeff;
  border-color: rgba(103, 232, 249, .72);
  background:
    radial-gradient(circle at 12% 22%, rgba(103, 232, 249, .16), transparent 8rem),
    linear-gradient(145deg, rgba(18, 48, 70, .9), rgba(9, 17, 32, .94));
  box-shadow:
    0 18px 38px rgba(34, 211, 238, .13),
    inset 0 1px 0 rgba(255,255,255,.16);
  transform: perspective(700px) rotateX(2deg) translateY(-1px);
}

.alliance-store-page .player-menu a:hover::before,
.gang-dashboard-page .player-menu a:hover::before,
.alliance-store-page .player-menu a.is-active::before,
.gang-dashboard-page .player-menu a.is-active::before {
  opacity: 1;
}

.alliance-store-page .menu-icon,
.gang-dashboard-page .menu-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  color: #e5e7eb;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.alliance-store-page .menu-icon svg,
.gang-dashboard-page .menu-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alliance-store-page .player-menu a.is-active .menu-icon,
.gang-dashboard-page .player-menu a.is-active .menu-icon,
.alliance-store-page .player-menu a:hover .menu-icon,
.gang-dashboard-page .player-menu a:hover .menu-icon {
  color: #061018;
  border-color: rgba(103, 232, 249, .65);
  background: linear-gradient(135deg, #e9fbff, #36dce8);
  box-shadow: 0 10px 30px rgba(34, 211, 238, .22), inset 0 1px 0 rgba(255,255,255,.35);
}

.alliance-store-page .player-logout,
.gang-dashboard-page .player-logout {
  margin-top: 14px;
  color: #fca5a5;
}

.store-market-shell {
  padding: 1.15rem;
  border: 1px solid rgba(103, 232, 249, .18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(9, 13, 28, .82), rgba(15, 23, 42, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 28px 70px rgba(0,0,0,.28);
}

.store-market-shell > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .8rem 1.2rem;
}

.store-market-shell > header span {
  color: #67e8f9;
  font-weight: 900;
}

.store-market-shell > header h2 {
  margin: .25rem 0;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.store-market-shell > header p {
  color: rgba(226, 232, 240, .66);
}

.store-market-shell > header strong {
  padding: .65rem 1rem;
  border-radius: 999px;
  color: #031118;
  background: linear-gradient(135deg, #dffbff, #22d3ee);
}

.store-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.store-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: .25rem;
}

.store-subcategory-card {
  --tone: 34, 211, 238;
  position: relative;
  display: grid;
  min-height: 180px;
  align-content: center;
  justify-items: center;
  gap: .7rem;
  overflow: hidden;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(var(--tone), .32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--tone), .2), transparent 12rem),
    linear-gradient(150deg, rgba(35, 43, 66, .88), rgba(7, 11, 24, .95));
  box-shadow:
    0 24px 54px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.12);
  transform: perspective(850px) translateY(0);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.store-subcategory-card::after {
  content: "";
  position: absolute;
  inset: auto 12% -42px;
  height: 90px;
  background: rgba(var(--tone), .12);
  filter: blur(22px);
}

.store-subcategory-card:hover {
  border-color: rgba(var(--tone), .72);
  box-shadow:
    0 30px 70px rgba(var(--tone), .14),
    0 28px 58px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.16);
  transform: perspective(850px) translateY(-5px) rotateX(3deg);
}

.store-subcategory-card span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(var(--tone), .5);
  border-radius: 20px;
  color: rgb(var(--tone));
  background: rgba(var(--tone), .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 14px 32px rgba(var(--tone), .12);
}

.store-subcategory-card svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-subcategory-card strong {
  font-size: 1.35rem;
}

.store-subcategory-card small {
  color: rgba(226, 232, 240, .62);
  line-height: 1.8;
}

.store-subcategory-card.tone-gold { --tone: 251, 191, 36; }
.store-subcategory-card.tone-violet { --tone: 167, 139, 250; }
.store-subcategory-card.tone-pink { --tone: 244, 114, 182; }
.store-subcategory-card.tone-red { --tone: 251, 113, 133; }
.store-subcategory-card.tone-green { --tone: 52, 211, 153; }
.store-subcategory-card.tone-silver { --tone: 203, 213, 225; }
.store-subcategory-card.tone-cyan { --tone: 34, 211, 238; }

.store-product-3d {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 24px;
  background:
    linear-gradient(155deg, rgba(35, 43, 66, .9), rgba(7, 11, 24, .94)),
    radial-gradient(circle at 78% 8%, rgba(34, 211, 238, .18), transparent 14rem);
  box-shadow: 0 22px 50px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.12);
  transform: perspective(900px) rotateX(0) rotateY(0);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.store-product-3d:hover {
  border-color: rgba(103, 232, 249, .56);
  box-shadow: 0 28px 70px rgba(34, 211, 238, .14), inset 0 1px 0 rgba(255,255,255,.16);
  transform: perspective(900px) rotateX(2deg) translateY(-4px);
}

.store-product-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.08), transparent 42%);
  transform: translateX(70%);
  opacity: .5;
}

.store-product-3d .store-card-media {
  margin: .8rem;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(2, 6, 23, .55);
}

.store-product-open {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.store-product-open:focus-visible {
  outline: 2px solid rgb(var(--tone, 34, 211, 238));
  outline-offset: 4px;
  border-radius: 24px;
}

.store-product-3d .store-compact-price {
  display: inline-flex;
  width: fit-content;
  margin-top: .7rem;
  padding: .55rem .8rem;
  border-radius: 14px;
  color: rgb(var(--tone, 34, 211, 238));
  background: rgba(var(--tone, 34, 211, 238), .1);
  border: 1px solid rgba(var(--tone, 34, 211, 238), .3);
}

.store-product-modal[hidden] {
  display: none;
}

.store-product-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.store-product-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 211, 238, .16), transparent 28rem),
    rgba(1, 6, 18, .78);
  backdrop-filter: blur(8px);
}

.store-product-detail {
  --tone: 34, 211, 238;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 520px) minmax(280px, 430px);
  gap: 1rem;
  width: min(100%, 980px);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(var(--tone), .5);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(31, 41, 65, .96), rgba(7, 10, 26, .98)),
    radial-gradient(circle at 20% 8%, rgba(var(--tone), .18), transparent 22rem);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, .58),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 46px rgba(var(--tone), .12);
  animation: storeDetailIn .16s ease-out both;
}

.store-product-detail.tone-gold { --tone: 251, 191, 36; }
.store-product-detail.tone-violet { --tone: 167, 139, 250; }
.store-product-detail.tone-pink { --tone: 244, 114, 182; }
.store-product-detail.tone-red { --tone: 251, 113, 133; }
.store-product-detail.tone-green { --tone: 52, 211, 153; }
.store-product-detail.tone-silver { --tone: 203, 213, 225; }
.store-product-detail.tone-cyan { --tone: 34, 211, 238; }

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

.store-detail-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

.store-detail-media {
  min-height: 360px;
  margin: 0;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 22px 55px rgba(0,0,0,.34);
}

.store-detail-media > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.store-detail-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.store-detail-body h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.25;
}

.store-detail-body p {
  margin: 0;
  color: rgba(226,232,240,.78);
  line-height: 2;
}

.store-detail-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(var(--tone), .28);
  border-radius: 18px;
  background: rgba(var(--tone), .08);
}

.store-detail-price span {
  color: rgba(226,232,240,.66);
}

.store-detail-price strong {
  color: rgb(var(--tone));
  font-size: 1.25rem;
}

.store-detail-actions {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: .75rem;
  align-items: end;
}

.store-detail-actions .store-quantity {
  margin: 0;
}

.store-modal-open {
  overflow: hidden;
}

.store-product-3d .store-card-media > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

.store-product-3d .store-card-body {
  padding: .35rem 1.1rem 1.1rem;
}

.store-product-3d h3 {
  color: #fff;
  font-size: 1.25rem;
}

.store-product-3d p {
  min-height: 3.4rem;
  color: rgba(226,232,240,.72);
  line-height: 1.8;
}

.store-product-3d .store-card-footer {
  align-items: center;
}

.store-product-3d.tone-gold { --tone: 251, 191, 36; }
.store-product-3d.tone-violet { --tone: 167, 139, 250; }
.store-product-3d.tone-pink { --tone: 244, 114, 182; }
.store-product-3d.tone-red { --tone: 251, 113, 133; }
.store-product-3d.tone-green { --tone: 52, 211, 153; }
.store-product-3d.tone-silver { --tone: 203, 213, 225; }
.store-product-3d.tone-cyan { --tone: 34, 211, 238; }

.store-product-3d .store-badge {
  color: rgb(var(--tone, 34, 211, 238));
  border-color: rgba(var(--tone, 34, 211, 238), .4);
  background: rgba(var(--tone, 34, 211, 238), .1);
}

.store-dev-card {
  display: grid;
  place-items: center;
  min-height: 280px;
  text-align: center;
  border: 1px dashed rgba(52, 211, 153, .45);
  border-radius: 24px;
  color: #dffdf1;
  background: radial-gradient(circle at center, rgba(52, 211, 153, .14), rgba(15, 23, 42, .55));
}

.store-dev-card span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, .35);
  border-radius: 24px;
  background: rgba(52, 211, 153, .1);
}

.store-dev-card svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.store-admin-3d .store-form,
.store-admin-3d .store-admin-list {
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(22, 28, 50, .9), rgba(8, 12, 25, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 22px 50px rgba(0,0,0,.26);
}

@media (max-width: 760px) {
  .store-hero-panel,
  .store-market-shell > header {
    align-items: stretch;
    flex-direction: column;
  }

  .store-nav-3d {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-dropdown {
    position: static;
    width: auto;
    margin-top: .5rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .store-product-detail {
    grid-template-columns: 1fr;
    padding: .75rem;
  }

  .store-detail-media,
  .store-detail-media > img {
    min-height: 240px;
  }

  .store-detail-actions {
    grid-template-columns: 1fr;
  }
}

/* Store layout hardening: keep the sidebar and shop content from overlapping. */
.alliance-store-page .player-dashboard-frame {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "store-content store-sidebar";
  gap: 24px;
  align-items: start;
  width: min(1500px, calc(100% - 48px));
  min-height: auto;
  margin: 28px auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.alliance-store-page .player-sidebar {
  grid-area: store-sidebar;
  position: sticky;
  top: 18px;
  z-index: 8;
  width: auto !important;
  min-width: 0 !important;
  max-width: 300px;
  max-height: calc(100vh - 36px);
  margin: 0 !important;
}

.alliance-store-page .player-dashboard-surface {
  grid-area: store-content;
  min-width: 0;
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, .18);
  border-radius: 28px;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.alliance-store-page .store-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  min-height: 260px;
  overflow: hidden;
}

.alliance-store-page .store-hero-panel > div {
  min-width: 0;
}

.alliance-store-page .store-hero-panel h1 {
  max-width: 100%;
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  line-height: 1.2;
}

.alliance-store-page .store-hero-panel p {
  max-width: 820px;
}

.alliance-store-page .store-hero-panel .button {
  align-self: center;
  justify-self: start;
  width: max-content;
  max-width: 220px;
  white-space: normal;
}

.alliance-store-page .store-nav-3d,
.alliance-store-page .store-market-shell {
  position: relative;
  z-index: 2;
}

@media (max-width: 1180px) {
  .alliance-store-page .player-dashboard-frame {
    grid-template-columns: 1fr;
    grid-template-areas:
      "store-sidebar"
      "store-content";
    width: min(960px, calc(100% - 28px));
  }

  .alliance-store-page .player-sidebar {
    position: relative;
    top: auto;
    max-width: none;
    max-height: none;
  }

  .alliance-store-page .player-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .alliance-store-page .player-dashboard-frame {
    width: min(100% - 18px, 640px);
    gap: 16px;
    margin: 12px auto;
  }

  .alliance-store-page .player-dashboard-surface {
    border-radius: 20px;
  }

  .alliance-store-page .store-hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .alliance-store-page .store-hero-panel .button {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .alliance-store-page .player-menu {
    grid-template-columns: 1fr;
  }
}

/* Shared dashboard sidebar for store and the next dashboard-like pages. */
.alliance-store-page .player-dashboard-frame {
  grid-template-columns: minmax(0, 1fr) 300px !important;
  grid-template-areas: "store-content store-sidebar" !important;
}

.alliance-store-page .dash-sidebar {
  grid-area: store-sidebar;
  position: sticky;
  top: 18px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: auto;
  max-width: 300px;
  height: calc(100vh - 36px);
  min-height: 0;
  padding: 20px 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #38e8ff) 28%, rgba(255,255,255,.12));
  border-radius: 28px;
  background: rgba(7, 12, 26, .78);
  box-shadow:
    0 30px 88px rgba(0,0,0,.44),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -18px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-style: preserve-3d;
}

.alliance-store-page .dash-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--theme-accent, #38e8ff), transparent 2px),
    radial-gradient(circle at 100% 10%, color-mix(in srgb, var(--theme-accent, #38e8ff) 18%, transparent), transparent 190px),
    repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 52px);
  opacity: .9;
}

.alliance-store-page .dash-sidebar::after {
  content: "";
  position: absolute;
  inset: 12px auto 12px 10px;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, var(--theme-accent, #38e8ff), transparent);
  box-shadow: 0 0 24px var(--theme-accent, #38e8ff);
  pointer-events: none;
}

.alliance-store-page .dash-brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.015)),
    rgba(0,0,0,.16);
  box-shadow:
    0 16px 36px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -14px 22px rgba(0,0,0,.18);
}

.alliance-store-page .dash-brand img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 0 28px color-mix(in srgb, var(--theme-accent, #38e8ff) 35%, transparent);
}

.alliance-store-page .dash-brand strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.25;
}

.alliance-store-page .dash-brand span span {
  display: block;
  margin-top: 4px;
  color: #9da7b8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 3px;
}

.alliance-store-page .dash-menu {
  display: grid;
  gap: 10px;
  min-height: 0;
  margin: 0 -4px;
  padding: 4px 4px 4px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-accent, #38e8ff) rgba(255,255,255,.06);
}

.alliance-store-page .dash-menu::-webkit-scrollbar { width: 6px; }
.alliance-store-page .dash-menu::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 99px;
}
.alliance-store-page .dash-menu::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: linear-gradient(180deg, var(--theme-accent, #38e8ff), color-mix(in srgb, var(--theme-accent, #38e8ff) 30%, transparent));
  box-shadow: 0 0 14px var(--theme-accent, #38e8ff);
}

.alliance-store-page .dash-menu a {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 12px;
  overflow: hidden;
  color: #a6adbc;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018) 48%, rgba(0,0,0,.12)),
    rgba(7, 13, 30, .42);
  box-shadow:
    0 12px 26px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -16px 24px rgba(0,0,0,.2);
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease, padding .18s ease;
}

.alliance-store-page .dash-menu a::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 8px;
  width: 3px;
  border-radius: 99px;
  background: var(--theme-accent, #38e8ff);
  box-shadow: 0 0 18px var(--theme-accent, #38e8ff);
  opacity: 0;
  transform: scaleY(.35);
  transition: opacity .18s ease, transform .18s ease;
}

.alliance-store-page .dash-menu a::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.12), transparent 28%);
  opacity: .28;
}

.alliance-store-page .dash-menu a:hover,
.alliance-store-page .dash-menu a.is-active {
  padding-right: 20px;
  color: #dffcff;
  border-color: color-mix(in srgb, var(--theme-accent, #38e8ff) 55%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-accent, #38e8ff) 22%, rgba(255,255,255,.06)), rgba(255,255,255,.025) 54%, rgba(0,0,0,.16)),
    rgba(8, 25, 45, .72);
  box-shadow:
    0 20px 42px color-mix(in srgb, var(--theme-accent, #38e8ff) 22%, rgba(0,0,0,.22)),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -12px 22px rgba(0,0,0,.18);
  transform: translateX(-7px);
}

.alliance-store-page .dash-menu a:hover::before,
.alliance-store-page .dash-menu a.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.alliance-store-page .menu-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.alliance-store-page .dash-menu .icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--theme-accent, #38e8ff);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-accent, #38e8ff) 12%, rgba(255,255,255,.11)), rgba(255,255,255,.025)),
    rgba(2,7,17,.42);
  box-shadow:
    0 12px 24px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -12px 18px rgba(0,0,0,.28);
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.alliance-store-page .dash-line-icon {
  display: block;
  width: 23px;
  height: 23px;
  opacity: .9;
  filter: drop-shadow(0 0 7px color-mix(in srgb, currentColor 42%, transparent));
}

.alliance-store-page .dash-menu a:hover .icon,
.alliance-store-page .dash-menu a.is-active .icon {
  color: #06101b;
  border-color: rgba(255,255,255,.32);
  background: linear-gradient(145deg, #dffcff, var(--theme-accent, #38e8ff));
  box-shadow:
    0 16px 34px color-mix(in srgb, var(--theme-accent, #38e8ff) 24%, rgba(0,0,0,.18)),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -12px 18px color-mix(in srgb, var(--theme-accent, #38e8ff) 22%, rgba(0,0,0,.2));
  transform: translateY(-1px);
}

.alliance-store-page .dash-logout {
  flex: 0 0 auto;
  margin-top: auto;
  color: #fca5a5;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .alliance-store-page .player-dashboard-frame {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "store-sidebar"
      "store-content" !important;
  }

  .alliance-store-page .dash-sidebar {
    position: relative;
    top: auto;
    max-width: none;
    height: auto;
    max-height: none;
  }

  .alliance-store-page .dash-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .alliance-store-page .dash-menu {
    grid-template-columns: 1fr;
  }
}

/* Keep the store sidebar on the same side as the main dashboard sidebar. */
.alliance-store-page .player-dashboard-frame {
  grid-template-columns: 300px minmax(0, 1fr) !important;
  grid-template-areas: "store-sidebar store-content" !important;
}

@media (max-width: 1180px) {
  .alliance-store-page .player-dashboard-frame {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "store-sidebar"
      "store-content" !important;
  }
}

/* Gang management page hardening: same dashboard shell, no overlap, themed background. */
.gang-dashboard-page {
  min-height: 100vh;
  place-items: start center;
  padding: 28px 18px;
  background:
    var(--theme-page-image-layer, none),
    radial-gradient(circle at 76% 18%, color-mix(in srgb, var(--theme-accent, #38e8ff) 18%, transparent), transparent 28rem),
    #030712 !important;
}

.gang-dashboard-page .player-dashboard-frame {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  grid-template-areas: "gang-sidebar gang-content" !important;
  gap: 24px;
  align-items: start;
  width: min(1500px, calc(100% - 32px));
  min-height: auto;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.gang-dashboard-page .player-sidebar {
  grid-area: gang-sidebar;
  position: sticky;
  top: 18px;
  z-index: 8;
  width: auto !important;
  min-width: 0 !important;
  max-width: 300px;
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  margin: 0 !important;
}

.gang-dashboard-page .player-dashboard-surface {
  grid-area: gang-content;
  min-width: 0;
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #38e8ff) 22%, rgba(255,255,255,.12));
  border-radius: 28px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-accent, #38e8ff) 8%, transparent), rgba(255,255,255,.025)),
    rgba(7, 12, 26, .76) !important;
  box-shadow:
    0 32px 92px rgba(0, 0, 0, .38),
    0 0 36px var(--theme-panel-glow, rgba(56, 232, 255, .18)),
    inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.gang-dashboard-page .player-logo img {
  display: none !important;
}

.gang-dashboard-page .management-hero {
  align-items: center;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--theme-accent, #38e8ff) 30%, rgba(255,255,255,.12));
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--theme-accent, #38e8ff) 16%, transparent), transparent 22rem),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}

.gang-dashboard-page .management-hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.gang-dashboard-page .management-hero p:not(.eyebrow) {
  max-width: 760px;
}

.gang-dashboard-page .gang-subnav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gang-dashboard-page .gang-member-list,
.gang-dashboard-page .gang-log-list {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-accent, #38e8ff) rgba(255,255,255,.06);
}

.gang-dashboard-page .gang-member-row {
  min-width: 960px;
}

.gang-dashboard-page .gang-member-actions .button {
  min-width: 76px;
  white-space: nowrap;
}

.gang-dashboard-page .gang-grade-form select {
  max-width: 160px;
}

@media (max-width: 1180px) {
  .gang-dashboard-page .player-dashboard-frame {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "gang-sidebar"
      "gang-content" !important;
    width: min(960px, calc(100% - 22px));
  }

  .gang-dashboard-page .player-sidebar {
    position: relative;
    top: auto;
    max-width: none;
    height: auto;
    max-height: none;
  }

  .gang-dashboard-page .player-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gang-dashboard-page .gang-subnav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .gang-dashboard-page {
    padding: 12px 8px;
  }

  .gang-dashboard-page .player-dashboard-frame {
    width: min(100% - 8px, 640px);
    gap: 16px;
  }

  .gang-dashboard-page .player-dashboard-surface,
  .gang-dashboard-page .player-sidebar {
    border-radius: 20px;
  }

  .gang-dashboard-page .player-menu {
    grid-template-columns: 1fr;
  }
}

/* Shared public header: home, rules, and staff use the same brand/nav/actions grid. */
.site-header .sunset-nav {
  display: grid !important;
  grid-template-columns: minmax(230px, 290px) minmax(300px, 1fr) minmax(430px, 500px) !important;
  grid-template-areas: "brand links actions";
  align-items: center !important;
  gap: 22px !important;
  width: min(1680px, calc(100% - 56px)) !important;
  min-height: 80px !important;
  margin-inline: auto !important;
  direction: rtl;
}

.site-header,
.sunset-header {
  border-bottom-color: rgba(255, 205, 92, .24) !important;
  background:
    linear-gradient(180deg, rgba(18, 9, 2, .68), rgba(18, 9, 2, .22)),
    rgba(6, 3, 0, .72) !important;
  box-shadow: 0 16px 46px rgba(0, 0, 0, .24), 0 0 28px rgba(247, 189, 65, .08);
}

.site-header .sunset-brand {
  grid-area: brand;
  justify-self: end !important;
  min-width: 0;
  direction: rtl;
}

.site-header .sunset-brand .brand-copy {
  min-width: 0;
  justify-items: start !important;
  text-align: left !important;
}

.site-header .sunset-brand strong {
  display: block;
}

.site-header .sunset-brand {
  direction: ltr !important;
  display: inline-flex !important;
  flex-direction: row !important;
  gap: 18px !important;
}

.site-header .sunset-brand .brand-logo {
  order: 2;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 12px rgba(245, 178, 48, .42)) !important;
  box-shadow: none !important;
  animation: griffinLogoGlow 5.6s ease-in-out infinite;
}

.site-header .sunset-brand .brand-copy {
  order: 1;
  width: max-content;
  flex: 0 0 auto;
  justify-items: end !important;
  text-align: right !important;
}

.site-header .sunset-brand strong {
  color: transparent;
  background: linear-gradient(100deg, #fff6cc 0%, #ffd45f 32%, #ffffff 48%, #e7a31a 68%, #fff0b8 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Vazirmatn, Vazir, IRANSans, Tahoma, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.22;
  text-shadow: 0 0 16px rgba(245, 178, 48, .24);
  animation: griffinTextShine 8s ease-in-out infinite;
}

.site-header .sunset-brand small {
  margin-top: 6px;
  color: rgba(210, 214, 224, .58) !important;
  text-shadow:
    0 0 10px rgba(190, 196, 208, .22),
    0 0 20px rgba(255, 216, 117, .08);
}

@media (min-width: 981px) {
  .site-header .sunset-nav .nav-links {
    transform: translateX(-58px);
  }
}

@keyframes griffinTextShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes griffinLogoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 9px rgba(245, 178, 48, .34)) drop-shadow(0 0 2px rgba(255, 244, 203, .12));
  }
  45%, 55% {
    filter: drop-shadow(0 0 30px rgba(255, 213, 91, .9)) drop-shadow(0 0 14px rgba(255, 248, 218, .48));
  }
  70% {
    filter: drop-shadow(0 0 16px rgba(245, 178, 48, .5)) drop-shadow(0 0 5px rgba(255, 244, 203, .2));
  }
}

.site-header .sunset-nav .nav-links {
  grid-area: links;
  position: static !important;
  inset: auto !important;
  display: flex;
  justify-content: center !important;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.site-header .sunset-nav .nav-links a {
  color: rgba(255, 246, 220, .68) !important;
}

.site-header .sunset-nav .nav-links a.is-active,
.site-header .sunset-nav .nav-links a:hover {
  color: #ffd979 !important;
  text-shadow: 0 0 14px rgba(247,189,65,.36);
}

.site-header .sunset-nav .nav-actions {
  grid-area: actions;
  display: flex !important;
  flex-direction: row;
  align-items: center !important;
  justify-self: start !important;
  width: min(100%, 500px);
  gap: 10px !important;
  direction: ltr;
}

.site-header .sunset-nav .button.primary {
  flex: 0 0 190px;
  width: 190px;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1.4;
}

.site-header .sunset-nav .menu-button {
  display: none;
}

.site-announcer-button {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #38e8ff) 35%, rgba(255, 255, 255, .16));
  border-radius: 14px;
  background:
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--theme-accent, #38e8ff) 18%, transparent), transparent 100px),
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035));
  box-shadow: 0 14px 32px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: right;
}

.site-header .sunset-nav .site-announcer-button {
  flex: 1 1 260px;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  min-height: 42px !important;
  padding: 7px 9px !important;
  border-radius: 14px !important;
  gap: 8px !important;
}

.site-header .sunset-nav .site-announcer-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
}

.site-header .sunset-nav .site-announcer-icon svg {
  width: 21px !important;
  height: 21px !important;
}

.site-header .sunset-nav .site-announcer-copy strong {
  font-size: .82rem !important;
}

.site-header .sunset-nav .site-announcer-copy span {
  font-size: .66rem !important;
}

.site-header .sunset-nav .site-announcer-count {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.site-announcer-button[hidden] {
  display: none !important;
}

.site-announcer-button::before {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .05);
  content: "NOTICE";
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: 3px;
  pointer-events: none;
}

.site-announcer-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #f2ffff, var(--theme-accent, #38e8ff));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--theme-accent, #38e8ff) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, .8);
  color: #00131a;
}

.site-announcer-icon svg {
  width: 21px;
  height: 21px;
}

.site-announcer-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 1px;
}

.site-announcer-copy strong {
  overflow: hidden;
  font-size: .82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-announcer-copy span {
  overflow: hidden;
  color: #aeb9c9;
  font-size: .66rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-announcer-count {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--theme-accent, #38e8ff);
  font-size: 12px;
  font-weight: 950;
}

.site-announcer-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(1, 5, 12, .72);
  backdrop-filter: blur(10px);
}

.site-announcer-modal.is-open {
  display: grid;
}

.site-announcer-dialog {
  width: min(720px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #38e8ff) 28%, rgba(255, 255, 255, .12));
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(9, 15, 32, .98), rgba(5, 9, 19, .96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.site-announcer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-announcer-head h2,
.site-announcer-head p {
  margin: 0;
}

.site-announcer-head p {
  margin-top: 4px;
  color: rgba(226, 236, 249, .66);
}

.site-announcer-close {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 950;
}

.site-announcer-list {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.landing-announcement-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #38e8ff) 24%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-accent, #38e8ff) 10%, transparent), rgba(255, 255, 255, .035)),
    rgba(8, 13, 27, .9);
}

.landing-announcement-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.landing-announcement-card h2,
.landing-announcement-card p {
  margin: 0;
}

.landing-announcement-card h2 {
  font-size: 1rem;
}

.landing-announcement-card p {
  margin-top: 10px;
  color: rgba(226, 236, 249, .74);
  line-height: 1.9;
}

.landing-announcement-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-accent, #38e8ff) 14%, transparent);
  color: var(--theme-accent, #38e8ff);
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header .sunset-nav {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "brand actions"
      "links links";
    width: min(100% - 28px, 1180px) !important;
    min-height: 70px !important;
    padding: 10px 0;
  }

  .site-header .sunset-nav .nav-actions {
    display: flex !important;
    align-items: center !important;
    width: auto;
  }

  .site-header .sunset-nav .site-announcer-button {
    flex: 0 0 46px;
    width: 46px;
    min-height: 42px;
    grid-template-columns: 1fr;
    padding: 4px;
  }

  .site-header .sunset-nav .site-announcer-button::before,
  .site-header .sunset-nav .site-announcer-copy,
  .site-header .sunset-nav .site-announcer-count {
    display: none;
  }

  .site-header .sunset-nav .site-announcer-icon {
    width: 36px;
    height: 36px;
  }

  .site-header .sunset-nav .menu-button {
    display: grid !important;
  }

  .site-header .sunset-nav .nav-links {
    display: none !important;
    grid-area: links;
    flex-direction: column;
    align-items: stretch;
    justify-content: start !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 6px;
    padding: 10px !important;
    border: 1px solid color-mix(in srgb, var(--theme-accent, #38e8ff) 22%, transparent) !important;
    border-radius: 14px;
    background: rgba(5, 10, 24, .96) !important;
  }

  .site-header .sunset-nav .nav-links.is-open {
    display: flex !important;
  }

  .site-header .sunset-nav .nav-links a {
    min-height: 42px;
    justify-content: center;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .site-header .sunset-nav {
    width: min(100% - 20px, 640px) !important;
    gap: 10px !important;
  }

  .site-header .sunset-brand {
    gap: 9px !important;
  }

  .site-header .sunset-brand .brand-logo {
    width: 38px !important;
    height: 38px !important;
  }

  .site-header .sunset-brand strong {
    font-size: 18px !important;
  }

  .site-header .sunset-brand small {
    max-width: 116px;
    overflow: hidden;
    font-size: 8px !important;
    letter-spacing: 2px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .sunset-nav .nav-actions {
    gap: 8px !important;
  }

  .site-header .sunset-nav .nav-actions .button.primary {
    display: none !important;
  }
}

/* Store fixes: keep category dropdowns usable and make product media square. */
.alliance-store-page .player-dashboard-surface {
  overflow: visible !important;
}

.alliance-store-page .store-nav-3d {
  z-index: 90 !important;
  overflow: visible !important;
}

.alliance-store-page .store-nav-item {
  z-index: 1;
}

.alliance-store-page .store-nav-item:hover,
.alliance-store-page .store-nav-item:focus-within {
  z-index: 95;
}

.alliance-store-page .store-dropdown {
  z-index: 100;
}

.alliance-store-page .store-market-shell {
  position: relative;
  z-index: 1 !important;
}

.store-product-3d .store-card-media,
.store-admin-item img {
  aspect-ratio: 1 / 1;
}

.store-product-3d .store-card-media {
  min-height: 0 !important;
}

.store-product-3d .store-card-media > img,
.store-admin-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-payment-control {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(103, 232, 249, .18);
  border-radius: 18px;
  background: rgba(15, 23, 42, .48);
}

.store-payment-control > span,
.store-payment-panel > span {
  color: rgba(226, 232, 240, .72);
  font-size: 13px;
  font-weight: 900;
}

.store-payment-grid,
.store-payment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-payment-toggle {
  display: grid !important;
  grid-template-columns: auto minmax(58px, auto) minmax(96px, 1fr);
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px !important;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  cursor: pointer;
}

.store-payment-toggle input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #67e8f9;
}

.store-payment-toggle .store-payment-amount {
  width: 100% !important;
  min-width: 0;
  height: 34px !important;
  padding: 6px 9px !important;
  border-radius: 10px !important;
  text-align: center;
}

.store-payment-toggle strong,
.store-payment-chips,
.store-payment-chips b {
  color: #eaffff;
  font-size: 12px;
  font-weight: 950;
}

.store-product-3d .store-payment-chips {
  width: fit-content;
  margin-top: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(103, 232, 249, .2);
  border-radius: 999px;
  background: rgba(103, 232, 249, .08);
}

.store-payment-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(var(--tone, 34, 211, 238), .24);
  border-radius: 18px;
  background: rgba(var(--tone, 34, 211, 238), .08);
}

.store-payment-panel .store-payment-chips b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(var(--tone, 34, 211, 238), .28);
  border-radius: 999px;
  background: rgba(2, 6, 23, .32);
}

.store-detail-actions .button[disabled] {
  cursor: not-allowed;
  opacity: .65;
}

@media (max-width: 760px) {
  .alliance-store-page .player-dashboard-surface {
    overflow: hidden !important;
  }

  .alliance-store-page .store-nav-3d {
    z-index: 2 !important;
  }
}

/* Griffin gold polish */
:root {
  scrollbar-color: rgba(255, 194, 64, .78) rgba(18, 14, 8, .58);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(18, 14, 8, .58);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(18, 14, 8, .58);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 224, 92, .92), rgba(255, 151, 31, .78));
}

.alliance-store-page {
  --theme-accent: #ffc240;
  --theme-accent-2: #ff981f;
}

.alliance-store-page .player-dashboard-surface {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 194, 64, .18), transparent 27rem),
    radial-gradient(circle at 84% 26%, rgba(255, 132, 31, .12), transparent 24rem),
    linear-gradient(135deg, rgba(24, 16, 8, .96), rgba(9, 10, 15, .95)) !important;
}

.alliance-store-page .dash-sidebar,
.alliance-store-page .store-hero-panel,
.alliance-store-page .store-nav-3d,
.alliance-store-page .store-market-shell,
.alliance-store-page .store-product-detail,
.alliance-store-page .store-payment-control,
.alliance-store-page .store-payment-panel {
  border-color: rgba(255, 194, 64, .24) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34), 0 0 28px rgba(255, 177, 36, .08) !important;
}

.alliance-store-page .store-hero-panel {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 194, 64, .22), transparent 18rem),
    linear-gradient(145deg, rgba(34, 24, 12, .93), rgba(11, 10, 15, .9)) !important;
}

.alliance-store-page .store-hero-panel::after {
  background: linear-gradient(90deg, transparent, rgba(255, 194, 64, .22), transparent) !important;
  animation: griffinGoldSweep 5.5s ease-in-out infinite;
}

.alliance-store-page .store-hero-panel h1,
.alliance-store-page .store-market-shell > header h2,
body.rules-page .rules-hero h1,
body.rules-page .rules-document h2 {
  color: #fff3c4 !important;
  text-shadow: 0 0 18px rgba(255, 194, 64, .18);
  background: linear-gradient(90deg, #fff8dc, #ffc240 46%, #ffffff 52%, #ff981f 62%, #fff3c4);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: griffinTextShine 7s ease-in-out infinite;
}

.alliance-store-page .store-hero-panel p,
.alliance-store-page .store-market-shell > header p,
body.rules-page .rules-hero p,
body.rules-page .rules-document p,
body.rules-page .rules-side-panel a {
  text-shadow: 0 0 14px rgba(255, 194, 64, .08);
}

.alliance-store-page .store-nav-item > a,
.alliance-store-page .store-dropdown a,
.alliance-store-page .dash-menu a {
  border-color: rgba(255, 194, 64, .16) !important;
  background: linear-gradient(145deg, rgba(32, 24, 14, .9), rgba(10, 10, 15, .88)) !important;
}

.alliance-store-page .store-nav-item:hover > a,
.alliance-store-page .store-nav-item.is-active > a,
.alliance-store-page .dash-menu a:hover,
.alliance-store-page .dash-menu a.is-active {
  color: #fff4c6 !important;
  border-color: rgba(255, 194, 64, .62) !important;
  box-shadow: 0 18px 36px rgba(255, 151, 31, .14), inset 0 1px 0 rgba(255, 255, 255, .16) !important;
}

.alliance-store-page .store-nav-icon,
.alliance-store-page .store-dropdown span,
.alliance-store-page .dash-menu .icon,
.alliance-store-page .store-payment-toggle input[type="checkbox"] {
  color: #ffc240 !important;
  accent-color: #ffc240;
  background: rgba(255, 194, 64, .12) !important;
}

.alliance-store-page .store-dropdown {
  border-color: rgba(255, 194, 64, .24) !important;
  background: rgba(18, 14, 9, .96) !important;
}

.alliance-store-page .store-product-3d,
.alliance-store-page .store-subcategory-card,
.alliance-store-page .store-dev-card {
  --tone: 255, 194, 64;
}

.alliance-store-page .store-dropdown .tone-gold,
.alliance-store-page .store-dropdown .tone-violet,
.alliance-store-page .store-dropdown .tone-pink,
.alliance-store-page .store-dropdown .tone-red,
.alliance-store-page .store-dropdown .tone-green,
.alliance-store-page .store-dropdown .tone-silver,
.alliance-store-page .store-dropdown .tone-cyan {
  color: #ffc240;
}

html[data-theme="gold"] body.rules-page {
  background:
    radial-gradient(ellipse at 18% 10%, rgba(255, 194, 64, .22), transparent 32rem),
    radial-gradient(ellipse at 78% 24%, rgba(255, 126, 31, .16), transparent 30rem),
    radial-gradient(ellipse at 50% 112%, rgba(255, 194, 64, .12), transparent 42rem),
    linear-gradient(135deg, #100b06 0%, #08090e 48%, #170d04 100%) !important;
}

html[data-theme="gold"] body.rules-page::before {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 219, 112, .18) 48%, transparent 54%),
    repeating-linear-gradient(105deg, transparent 0 34px, rgba(255, 194, 64, .055) 36px 37px, transparent 40px 72px) !important;
  opacity: .38 !important;
  animation: griffinRulesGlow 15s ease-in-out infinite alternate !important;
}

html[data-theme="gold"] body.rules-page::after {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 229, 148, .34) 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 36%, rgba(255, 168, 36, .28) 0 1px, transparent 1.8px),
    linear-gradient(180deg, rgba(5, 5, 7, .04), rgba(5, 5, 7, .62)) !important;
  background-size: 220px 220px, 300px 300px, 100% 100% !important;
  opacity: .42 !important;
  animation: griffinGoldDust 22s linear infinite !important;
}

body.rules-page .rules-hero-card,
body.rules-page .rules-stat-strip div,
body.rules-page .rules-side-panel,
body.rules-page .rules-document {
  border-color: rgba(255, 194, 64, .24) !important;
  background: rgba(14, 12, 10, .72) !important;
  box-shadow: 0 24px 66px rgba(0, 0, 0, .34), 0 0 26px rgba(255, 194, 64, .08) !important;
}

body.rules-page .rules-hero-card strong,
body.rules-page .rules-stat-strip strong,
body.rules-page .rules-document p::before,
body.rules-page .rules-side-panel a:hover {
  color: #ffc240 !important;
}

.scoreboard-icon {
  display: inline-grid !important;
  width: 22px;
  height: 22px;
  place-items: center;
  flex: 0 0 22px;
}

.scoreboard-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) saturate(.1) brightness(1.45) opacity(.78);
  transition: filter .2s ease, transform .2s ease;
}

.scoreboard-tab:hover,
.scoreboard-panel:hover {
  color: #fff4c6 !important;
  border-color: rgba(255, 194, 64, .56) !important;
  box-shadow: 0 18px 42px rgba(255, 151, 31, .14), 0 0 22px rgba(255, 194, 64, .12) !important;
}

.scoreboard-tab:hover .scoreboard-icon img,
.scoreboard-tab.is-active .scoreboard-icon img,
.scoreboard-panel:hover .scoreboard-icon img {
  filter: grayscale(0) sepia(1) saturate(3.6) hue-rotate(350deg) brightness(1.15) drop-shadow(0 0 10px rgba(255, 194, 64, .42));
  transform: translateY(-1px) scale(1.06);
}

.scoreboard-panel:hover .scoreboard-panel-head strong,
.scoreboard-panel:hover .scoreboard-panel-head small,
.scoreboard-panel:hover .leader-row strong,
.scoreboard-panel:hover .leader-row small {
  color: #fff0b2 !important;
}

@keyframes griffinTextShine {
  0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 2px rgba(255, 194, 64, .08)); }
  50% { background-position: 100% 50%; filter: drop-shadow(0 0 12px rgba(255, 194, 64, .16)); }
}

@keyframes griffinGoldSweep {
  0%, 100% { transform: translateX(-10%) perspective(480px) rotateX(64deg); opacity: .45; }
  50% { transform: translateX(10%) perspective(480px) rotateX(64deg); opacity: .85; }
}

@keyframes griffinRulesGlow {
  from { transform: translate3d(-1.5%, -1%, 0); opacity: .24; }
  to { transform: translate3d(1.5%, 1%, 0); opacity: .42; }
}

@keyframes griffinGoldDust {
  from { background-position: 0 0, 80px 40px, 0 0; }
  to { background-position: 220px 220px, -220px 300px, 0 0; }
}
