:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(12, 20, 33, 0.72);
  --panel-strong: rgba(16, 28, 45, 0.88);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #9ca8ba;
  --emerald: #25f2a6;
  --gold: #f6c860;
  --danger: #ff6b7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 242, 166, 0.18), transparent 26rem),
    radial-gradient(circle at 80% 5%, rgba(246, 200, 96, 0.14), transparent 22rem),
    linear-gradient(135deg, #04060b 0%, #07111f 48%, #05070d 100%);
  color: var(--text);
}

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

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 30px;
  flex-wrap: wrap;
}

.brand,
.nav-links,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(37, 242, 166, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 242, 166, 0.22), rgba(246, 200, 96, 0.12));
  color: var(--emerald);
  box-shadow: 0 0 30px rgba(37, 242, 166, 0.16);
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

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

.language-switcher {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.language-switcher a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.language-switcher a.active,
.language-switcher a:hover {
  background: rgba(37, 242, 166, 0.13);
  color: var(--emerald);
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.mock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 0 18px;
  padding: 0 14px;
  border: 1px solid rgba(246, 200, 96, 0.34);
  border-radius: 999px;
  background: rgba(246, 200, 96, 0.1);
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 18px 48px rgba(246, 200, 96, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  min-height: 620px;
  align-items: center;
}

.hero h1,
.page-hero h1,
.alliance-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 760px;
  margin: 24px 0 0;
  color: #c8d1df;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-panel {
  width: min(820px, 100%);
  margin-top: 34px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(2, 8, 16, 0.62);
}

.search-panel label {
  display: block;
  margin: 0 0 8px 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.36fr) auto;
  gap: 10px;
  align-items: end;
}

.field-group {
  min-width: 0;
}

.kingdom-field input {
  text-align: center;
}

input,
button,
.button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: 1px solid transparent;
}

input:focus {
  outline-color: rgba(37, 242, 166, 0.55);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--emerald), #8fffd3);
  color: #02130d;
  cursor: pointer;
  font-weight: 900;
}

.button.secondary {
  margin-top: 16px;
  border: 1px solid rgba(246, 200, 96, 0.35);
  background: rgba(246, 200, 96, 0.12);
  color: var(--gold);
}

.hero-dashboard {
  padding: 28px;
  background: linear-gradient(145deg, rgba(16, 28, 45, 0.9), rgba(11, 17, 30, 0.62));
}

.hero-dashboard p,
.hero-dashboard strong {
  display: block;
  margin: 0;
}

.hero-dashboard strong {
  margin-top: 8px;
  font-size: 2.7rem;
}

.status-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 28px var(--emerald);
}

.mini-grid,
.feature-grid,
.kpi-grid {
  display: grid;
  gap: 16px;
}

.mini-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.mini-grid span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.mini-grid b {
  display: block;
  color: var(--text);
  font-size: 1.3rem;
}

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

.feature-card,
.panel,
.kpi-card,
.profile-card,
.alliance-hero {
  padding: 24px;
}

.feature-card h2,
.panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.feature-card p,
.muted,
.alliance-hero p,
.profile-card p {
  color: var(--muted);
  line-height: 1.65;
}

.featured {
  border-color: rgba(37, 242, 166, 0.36);
  box-shadow: 0 24px 80px rgba(37, 242, 166, 0.12);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 900;
}

.page-hero.compact {
  padding-top: 24px;
}

.profile-card,
.alliance-hero,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.profile-photo {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: clamp(92px, 16vw, 132px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(246, 200, 96, 0.46);
  border-radius: 30px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(246, 200, 96, 0.18), rgba(37, 242, 166, 0.12)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.06),
    0 0 54px rgba(246, 200, 96, 0.14);
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(37, 242, 166, 0.28);
  border-radius: 22px;
  pointer-events: none;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo span {
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  text-shadow: 0 0 24px rgba(246, 200, 96, 0.28);
}

.profile-card h1,
.alliance-hero h1 {
  font-size: clamp(2.35rem, 6vw, 5rem);
}

.profile-power {
  min-width: 180px;
  text-align: right;
}

.search-context {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-top: 8px;
  padding: 0 11px;
  border: 1px solid rgba(37, 242, 166, 0.24);
  border-radius: 999px;
  background: rgba(37, 242, 166, 0.09);
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 800;
}

.profile-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-levels span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(246, 200, 96, 0.3);
  border-radius: 999px;
  background: rgba(246, 200, 96, 0.09);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.profile-power span,
.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.profile-power strong,
.kpi-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
}

.kpi-grid {
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0;
}

.kpi-card.accent strong {
  color: var(--emerald);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.alliance-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.alliance-hero-premium {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(24px, 5vw, 46px);
  border-color: rgba(37, 242, 166, 0.24);
  background:
    linear-gradient(135deg, rgba(37, 242, 166, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(17, 29, 48, 0.92), rgba(4, 8, 16, 0.72)),
    radial-gradient(circle at 88% 24%, rgba(246, 200, 96, 0.22), transparent 18rem);
}

.alliance-hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
}

.alliance-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(96px, 16vw, 148px);
  aspect-ratio: 1;
  margin-right: clamp(18px, 4vw, 34px);
  place-items: center;
  border: 1px solid rgba(246, 200, 96, 0.5);
  border-radius: 32px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(246, 200, 96, 0.2), rgba(37, 242, 166, 0.1)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.06),
    0 0 70px rgba(246, 200, 96, 0.18);
}

.alliance-emblem::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(37, 242, 166, 0.36);
  border-radius: 24px;
}

.alliance-emblem span {
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-shadow: 0 0 28px rgba(246, 200, 96, 0.32);
}

.alliance-hero-copy,
.alliance-hero-side {
  position: relative;
  z-index: 1;
}

.alliance-hero-copy {
  max-width: 760px;
}

.alliance-hero-subtitle {
  max-width: 680px;
  margin: 18px 0 0;
  color: #cbd7e8;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.alliance-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.alliance-meta span,
.live-chip,
.gold-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9e2ef;
  font-size: 0.78rem;
  font-weight: 800;
}

.live-chip {
  border-color: rgba(37, 242, 166, 0.34);
  color: var(--emerald);
}

.gold-badge {
  border-color: rgba(246, 200, 96, 0.32);
  color: var(--gold);
}

.alliance-hero-side {
  display: grid;
  justify-items: end;
  gap: 14px;
  min-width: 190px;
}

.alliance-kpis {
  perspective: 900px;
}

.alliance-kpi {
  position: relative;
  overflow: hidden;
  animation: kpi-rise 0.7s ease both;
}

.alliance-kpi:nth-child(2) {
  animation-delay: 0.08s;
}

.alliance-kpi:nth-child(3) {
  animation-delay: 0.16s;
}

.alliance-kpi:nth-child(4) {
  animation-delay: 0.24s;
}

.alliance-kpi::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 84px;
  background: radial-gradient(circle, rgba(37, 242, 166, 0.16), transparent 62%);
  transition: transform 0.28s ease;
}

.alliance-kpi:hover::after {
  transform: translateY(-16px);
}

.alliance-kpi i {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  box-shadow: 0 0 24px rgba(37, 242, 166, 0.38);
}

.alliance-kpi small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.podium-section {
  margin: 24px 0;
  padding: 24px;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 22px;
}

.podium-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(2, 8, 16, 0.52);
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: -42% -18% auto;
  height: 150px;
  background: radial-gradient(circle, rgba(246, 200, 96, 0.2), transparent 64%);
}

.podium-1 {
  min-height: 280px;
  border-color: rgba(246, 200, 96, 0.42);
  box-shadow: 0 24px 80px rgba(246, 200, 96, 0.11);
}

.podium-2,
.podium-3 {
  min-height: 242px;
}

.podium-rank {
  position: relative;
  color: var(--gold);
  font-weight: 900;
}

.podium-avatar {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  margin: 22px 0;
  place-items: center;
  border: 1px solid rgba(37, 242, 166, 0.42);
  border-radius: 20px;
  background: rgba(37, 242, 166, 0.1);
  color: var(--emerald);
  font-weight: 900;
}

.podium-card h3,
.podium-card strong,
.podium-card small {
  position: relative;
  display: block;
  margin: 0;
}

.podium-card h3 {
  font-size: 1.05rem;
}

.podium-card strong {
  margin-top: 10px;
  font-size: 1.6rem;
}

.podium-card small {
  margin-top: 6px;
  color: var(--muted);
}

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

.member-power-row {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.member-power-heading {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
}

.member-power-heading span {
  color: var(--gold);
  font-weight: 900;
}

.member-power-heading em {
  color: var(--text);
  font-style: normal;
  font-weight: 900;
}

.member-power-row small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.power-track {
  overflow: hidden;
  height: 9px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.power-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  box-shadow: 0 0 18px rgba(37, 242, 166, 0.32);
  animation: power-fill 0.9s ease both;
}

.growth-panel .growth-row {
  border-color: rgba(37, 242, 166, 0.11);
}

.alliance-warning-panel {
  border-color: rgba(255, 107, 122, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 107, 122, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(10, 14, 22, 0.72);
}

.warning-count {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
}

@keyframes kpi-rise {
  from {
    opacity: 0;
    transform: translateY(18px) rotateX(10deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes power-fill {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.warning-panel {
  grid-column: 1 / -1;
}

.tool-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(37, 242, 166, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(18, 29, 47, 0.9), rgba(6, 10, 18, 0.74));
}

.tool-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1;
}

.tool-hero p {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.65;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.last-updated {
  margin-top: 12px;
  color: var(--gold) !important;
  font-weight: 800;
}

.codes-grid,
.status-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.status-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 24px;
}

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

.code-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(37, 242, 166, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(37, 242, 166, 0.08), transparent),
    rgba(255, 255, 255, 0.04);
}

.code-card.expired {
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.7;
}

.code-card span,
.code-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.code-card strong {
  display: block;
  margin: 6px 0;
  color: var(--text);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.copy-code-button {
  min-height: 42px;
  border-radius: 14px;
  background: rgba(37, 242, 166, 0.12);
  color: var(--emerald);
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.status-badge.active {
  border: 1px solid rgba(37, 242, 166, 0.35);
  background: rgba(37, 242, 166, 0.12);
  color: var(--emerald);
}

.status-badge.expired {
  border: 1px solid rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.12);
  color: var(--danger);
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.status-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.status-list dt {
  color: var(--muted);
  font-weight: 800;
}

.status-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.news-featured,
.news-card,
.news-article {
  padding: 24px;
}

.news-featured {
  margin-bottom: 24px;
  border-color: rgba(246, 200, 96, 0.28);
  background:
    linear-gradient(135deg, rgba(246, 200, 96, 0.1), transparent),
    rgba(255, 255, 255, 0.045);
}

.news-featured h2,
.news-card h2,
.news-card h3,
.news-article h1 {
  margin: 0;
}

.news-featured p,
.news-card p,
.article-summary {
  color: var(--muted);
  line-height: 1.7;
}

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

.news-card {
  display: grid;
  gap: 16px;
}

.news-card img,
.news-hero-image {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.news-card img {
  aspect-ratio: 16 / 9;
}

.news-meta,
.breadcrumb,
.tag-list,
.article-cta,
.admin-actions,
.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.news-meta span,
.breadcrumb,
.tag-list a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.breadcrumb {
  margin-bottom: 18px;
}

.breadcrumb a,
.tag-list a {
  color: var(--emerald);
}

.news-article {
  max-width: 920px;
  margin: 0 auto 28px;
}

.news-article h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
}

.article-summary {
  font-size: 1.15rem;
}

.article-content {
  margin-top: 28px;
  color: #d9e2ef;
  line-height: 1.85;
}

.article-content h2,
.article-content h3 {
  margin-top: 30px;
  color: var(--text);
}

.article-content a {
  color: var(--emerald);
  font-weight: 800;
}

.tag-list {
  margin-top: 26px;
}

.tag-list a {
  padding: 8px 11px;
  border: 1px solid rgba(37, 242, 166, 0.22);
  border-radius: 999px;
  background: rgba(37, 242, 166, 0.08);
}

.article-cta {
  margin-top: 28px;
}

.related-posts {
  margin-top: 32px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-form textarea {
  min-height: 110px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
}

.admin-actions form {
  display: inline-flex;
}

.admin-actions button {
  min-height: 34px;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.growth-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.growth-pill.positive {
  background: rgba(37, 242, 166, 0.13);
  color: var(--emerald);
}

.growth-pill.negative,
.warning-count {
  background: rgba(255, 107, 122, 0.14);
  color: var(--danger);
}

.chart-placeholder {
  display: grid;
  min-height: 260px;
  margin-top: 20px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(37, 242, 166, 0.08), rgba(255, 255, 255, 0.03));
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  padding: 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.growth-list,
.inactive-list {
  display: grid;
  gap: 12px;
}

.growth-row,
.inactive-list div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.growth-row span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(246, 200, 96, 0.12);
  color: var(--gold);
  font-weight: 900;
}

.growth-row em {
  color: var(--emerald);
  font-style: normal;
  font-weight: 900;
}

.inactive-list div {
  grid-template-columns: 1fr;
}

.inactive-list span {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .content-grid,
  .alliance-grid,
  .kpi-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 28px;
  }

  .profile-card,
  .alliance-hero,
  .panel-header,
  .tool-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-main {
    align-items: flex-start;
  }

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

  .alliance-emblem {
    margin: 0 0 20px;
  }

  .alliance-hero-side {
    justify-items: start;
    min-width: 0;
  }

  .podium {
    grid-template-columns: 1fr;
  }

  .podium-card,
  .podium-1,
  .podium-2,
  .podium-3 {
    min-height: auto;
  }

  .codes-grid,
  .status-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .tool-actions {
    justify-content: flex-start;
  }

  .profile-power {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar,
  .search-row,
  .nav-links,
  .language-switcher {
    display: grid;
  }

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

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .alliance-hero-premium,
  .podium-section,
  .panel,
  .kpi-card {
    border-radius: 20px;
    padding: 18px;
  }

  .member-power-heading,
  .growth-row,
  .code-card,
  .status-list div {
    grid-template-columns: 32px 1fr;
  }

  .profile-main {
    flex-direction: column;
  }

  .member-power-heading em,
  .growth-row em {
    grid-column: 2;
  }

  .code-card,
  .status-list div {
    grid-template-columns: 1fr;
  }
}
