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

:root {
  --bg-page: #f7f5fc;
  --bg-card: #ffffff;
  --bg-card-alt: #f5f3ff;
  --bg-soft: #ede9fe;
  --bg-input: #f8f7fc;
  --bg-dark: #07040f;
  --bg-dark-2: #10091e;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2ddf5;

  /* Royal Amethyst Purple + Gold Crown Paleti (Logo ile tam uyumlu) */
  --brand-50: #faf5ff;
  --brand-100: #f3e8ff;
  --brand-200: #e9d5ff;
  --brand-500: #9333ea;
  --brand-600: #7e22ce;
  --brand-700: #6b21a8;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;

  --discord-500: #5865f2;
  --discord-600: #4752c4;
  --pink-500: #ec4899;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --red-500: #ef4444;
  --red-100: #fee2e2;

  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(88, 28, 135, 0.11);
  --shadow-lg: 0 22px 48px rgba(7, 4, 15, 0.28);
}

/* KOYU TEMA */
html[data-theme="dark"] {
  --bg-page: #07040f;
  --bg-card: #10091e;
  --bg-card-alt: #160e29;
  --bg-soft: #1d1236;
  --bg-input: #0a0515;
  --bg-dark: #05020b;
  --bg-dark-2: #0c0618;
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-color: rgba(192, 132, 252, 0.14);

  --brand-50: rgba(147, 51, 234, 0.12);
  --brand-100: rgba(147, 51, 234, 0.2);
  --brand-200: rgba(192, 132, 252, 0.34);
  --brand-700: #d8b4fe;

  --emerald-100: rgba(16, 185, 129, 0.16);
  --red-100: rgba(239, 68, 68, 0.16);

  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 16px 38px rgba(0, 0, 0, 0.52);
  --shadow-lg: 0 26px 58px rgba(0, 0, 0, 0.72);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23a855f7' stroke-width='1' stroke-opacity='0.09'%3E%3Crect x='10' y='10' width='12' height='12' rx='2'/%3E%3Cpath d='M48 14l8 4-8 4-8-4z'/%3E%3Crect x='42' y='44' width='10' height='10' rx='2'/%3E%3Cpath d='M16 48h10M21 43v10'/%3E%3C/g%3E%3C/svg%3E");
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================================
   NAVBAR & PROFİL MENÜSÜ
   ========================================= */
.site-nav {
  width: 100%;
  z-index: 60;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(7, 4, 15, 0.9) 0%, rgba(7, 4, 15, 0.32) 78%, transparent 100%);
}

.site-nav.nav-solid {
  position: sticky;
  top: 0;
  background: rgba(7, 4, 15, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 132, 252, 0.14);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35);
}

.site-nav .container {
  max-width: 1340px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 76px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0d0718;
  border: 1.5px solid rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.44rem 0.5rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 0.6rem;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.14);
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a855f7, #fbbf24);
}

.nav-link.nav-discord {
  color: #c7d2fe;
}

.nav-link.nav-discord:hover {
  background: rgba(88, 101, 242, 0.25);
  color: #ffffff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  border: 1px solid rgba(192, 132, 252, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fbbf24;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover {
  background: rgba(168, 85, 247, 0.24);
  transform: translateY(-1px);
}

.profile-menu-wrap {
  position: relative;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(192, 132, 252, 0.24);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.32rem 0.82rem 0.32rem 0.38rem;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.user-pill:hover {
  background: rgba(147, 51, 234, 0.24);
  border-color: rgba(192, 132, 252, 0.5);
  transform: translateY(-1px);
}

.user-pill-avatar {
  width: 34px;
  height: 34px;
  border-radius: 0.6rem;
  background: #1a1030;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.user-pill-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.user-pill-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.user-pill-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Sağ üst Profil Dropdown */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 295px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  display: none;
  z-index: 120;
  animation: fadeSlide 0.18s ease;
  color: var(--text-main);
}

.profile-dropdown.open {
  display: block;
}

.profile-dd-header {
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--bg-soft);
  margin-bottom: 0.5rem;
}

.profile-dd-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.profile-dd-links {
  display: grid;
  gap: 0.25rem;
}

.profile-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-body);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.profile-dd-item:hover {
  background: var(--bg-soft);
  color: var(--text-main);
}

.profile-dd-item.danger {
  color: #ef4444;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.65rem;
  border-radius: 0 0 0.65rem 0.65rem;
}

.profile-dd-item.danger:hover {
  background: var(--red-100);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 0.65rem;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  place-items: center;
}

.mobile-drawer {
  display: none;
  background: #0a0516;
  border-top: 1px solid rgba(192, 132, 252, 0.14);
  padding: 1rem 1.25rem 1.25rem;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  display: grid;
  gap: 0.4rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  position: relative;
  min-height: 485px;
  padding: 7.5rem 0 6.5rem;
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(180deg, rgba(7, 4, 15, 0.56) 0%, rgba(16, 9, 30, 0.4) 48%, rgba(7, 4, 15, 0.97) 100%),
    url("../img/hero-bg.svg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-centerpiece {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.hero-side {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-side-left {
  justify-content: flex-end;
  text-align: right;
}

.hero-side-right {
  justify-content: flex-start;
  text-align: left;
}

.hero-square-badge {
  width: 58px;
  height: 58px;
  border-radius: 1rem;
  background: #ffffff;
  color: var(--brand-600);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-side-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 1rem;
  transition: transform 0.2s ease;
}

.hero-side-btn:hover .hero-square-badge {
  transform: scale(1.07);
  box-shadow: 0 14px 32px rgba(147, 51, 234, 0.4);
}

.hero-side-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.hero-side-sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e9d5ff;
  display: block;
  margin-top: 0.15rem;
}

.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo-emblem {
  width: 196px;
  height: 196px;
  border-radius: 50%;
  padding: 4px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, rgba(147, 51, 234, 0.12) 65%, transparent 100%);
  box-shadow: 0 0 42px rgba(168, 85, 247, 0.45), 0 0 18px rgba(245, 158, 11, 0.22);
  animation: heroPulse 2.8s ease-in-out infinite;
  overflow: hidden;
}

.hero-logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-brand-pill {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  background: rgba(16, 9, 30, 0.76);
  border: 1px solid rgba(192, 132, 252, 0.35);
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fbbf24;
}

@keyframes heroPulse {
  0%,
  100% {
    transform: scale(0.97);
  }
  50% {
    transform: scale(1.03);
  }
}

/* =========================================
   MAIN LAYOUT & CARDS
   ========================================= */
.main-content {
  flex: 1;
}

.overlap-section {
  margin-top: -3.25rem;
  position: relative;
  z-index: 10;
}

.section-gap {
  margin-top: 1.75rem;
}

.grid-10 {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 1.5rem;
  align-items: start;
}

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.card-alt {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.card-pad {
  padding: 1.5rem;
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
}

/* =========================================
   BUTTONS, BADGES & ROLLER
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.34);
}

.btn-soft {
  background: var(--brand-100);
  color: var(--brand-700);
}

.btn-soft:hover {
  background: var(--brand-200);
}

.btn-discord {
  background: var(--discord-500);
  color: #ffffff;
}

.btn-discord:hover {
  background: var(--discord-600);
  box-shadow: 0 8px 18px rgba(88, 101, 242, 0.32);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-soft);
}

.btn-dark {
  background: #0b0617;
  color: #ffffff;
  border-color: rgba(192, 132, 252, 0.24);
}

.btn-dark:hover {
  background: #170d2e;
}

.btn-danger-soft {
  background: var(--red-100);
  color: #ef4444;
}

.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.26);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 0.85rem;
  background: var(--brand-100);
  color: var(--brand-500);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-box-discord {
  background: rgba(88, 101, 242, 0.16);
  color: #818cf8;
}

.icon-box-pink {
  background: rgba(236, 72, 153, 0.16);
  color: var(--pink-500);
}

.icon-box-emerald {
  background: var(--emerald-100);
  color: var(--emerald-500);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
}

.badge-orange {
  background: var(--brand-100);
  color: var(--brand-700);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.34);
}

.badge-emerald {
  background: var(--emerald-100);
  color: #10b981;
}

.badge-discord {
  background: rgba(88, 101, 242, 0.18);
  color: #818cf8;
}

.badge-slate {
  background: var(--bg-soft);
  color: var(--text-muted);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 1.8s infinite;
  margin-right: 0.3rem;
  vertical-align: middle;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Resmi Sunucu Rol Rozetleri */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.role-kurucu {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(239, 68, 68, 0.25));
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.role-aac-plus {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.28), rgba(147, 51, 234, 0.28));
  color: #f0abfc;
  border: 1px solid rgba(217, 70, 239, 0.45);
}

.role-aac {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.role-admin {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.38);
}

.role-moderator {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.role-uzman-rehber {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.38);
}

.role-rehber {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.38);
}

.role-deneme-rehberi {
  background: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.38);
}

.role-oyuncu {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* =========================================
   PROMO SLIDER & FORMS
   ========================================= */
.promo-slider {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(125deg, rgba(7, 4, 15, 0.94) 0%, rgba(22, 12, 42, 0.84) 58%, rgba(147, 51, 234, 0.35) 100%),
    url("../img/store-hero.svg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  border: 1px solid rgba(192, 132, 252, 0.16);
}

.promo-slide {
  display: none;
  animation: fadeSlide 0.35s ease;
}

.promo-slide.active {
  display: block;
}

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

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.slider-dot {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.slider-dot.active {
  width: 38px;
  background: #a855f7;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.68rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 0.88rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.input-password-wrap {
  position: relative;
}

.input-password-wrap .form-control {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  display: grid;
  place-items: center;
}

.password-toggle:hover {
  color: var(--text-main);
}

/* =========================================
   SPECIAL SECTIONS
   ========================================= */
.promo-register-banner {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(110deg, var(--bg-card) 0%, var(--bg-card) 60%, var(--brand-50) 60.2%, var(--brand-100) 100%);
}

.stat-strip-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-strip-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
}

.stat-strip-card.bar-pink::after {
  background: var(--pink-500);
}

.stat-strip-card.bar-orange::after {
  background: linear-gradient(90deg, #9333ea, #fbbf24);
}

.stat-strip-card.bar-discord::after {
  background: var(--discord-500);
}

.cta-dark-banner {
  margin-top: 2.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(95deg, rgba(7, 4, 15, 0.95) 0%, rgba(16, 9, 30, 0.85) 55%, rgba(147, 51, 234, 0.65) 100%),
    url("../img/hero-bg.svg") center/cover no-repeat;
  color: #ffffff;
  padding: 2.4rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border: 1px solid rgba(192, 132, 252, 0.16);
}

/* =========================================
   SUBPAGE HEADER, PROFILE & TABLES
   ========================================= */
.subpage-header {
  background: linear-gradient(135deg, #07040f 0%, #190d33 100%);
  color: #ffffff;
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(192, 132, 252, 0.14);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.profile-layout {
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.profile-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.profile-tab-btn:hover {
  background: var(--bg-soft);
  color: var(--text-main);
}

.profile-tab-btn.active {
  background: var(--brand-100);
  color: var(--brand-700);
  border-color: var(--brand-200);
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-soft);
}

/* =========================================
   AUTH SPLIT LAYOUT
   ========================================= */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 42% 58%;
}

.auth-sidebar {
  position: relative;
  background:
    linear-gradient(180deg, rgba(7, 4, 15, 0.48) 0%, rgba(7, 4, 15, 0.94) 100%),
    url("../img/auth-side.svg") center/cover no-repeat;
  color: #ffffff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-main {
  background-color: var(--bg-page);
  background-image: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  margin-top: 3.5rem;
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 3.25rem 0 1.75rem;
  border-top: 1px solid rgba(192, 132, 252, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-title {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.84rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #c084fc;
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* =========================================
   ALERTS & TOAST
   ========================================= */
.alert {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.84rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

html:not([data-theme="dark"]) .alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.alert-success {
  background: var(--emerald-100);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}

html:not([data-theme="dark"]) .alert-success {
  color: #065f46;
}

.alert-warning {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-700);
}

.alert-danger {
  background: var(--red-100);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

html:not([data-theme="dark"]) .alert-danger {
  color: #991b1b;
}

.toast-container {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999;
  display: grid;
  gap: 0.6rem;
  max-width: 360px;
}

.toast {
  background: #10091e;
  color: #ffffff;
  padding: 0.85rem 1.1rem;
  border-radius: 0.8rem;
  font-size: 0.84rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-left: 4px solid #a855f7;
  animation: fadeSlide 0.25s ease;
}

/* =========================================
   LEGAL DOCS
   ========================================= */
.legal-doc h2 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.legal-doc p,
.legal-doc li {
  color: var(--text-body);
  font-size: 0.92rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: grid;
  }
  .grid-10,
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .hero-centerpiece {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }
  .hero-side-left,
  .hero-side-right {
    justify-content: center;
    text-align: left;
  }
  .hero-side-left .hero-side-btn {
    flex-direction: row-reverse;
  }
  .grid-2,
  .grid-3,
  .auth-split {
    grid-template-columns: 1fr;
  }
  .auth-sidebar {
    min-height: 220px;
  }
  .promo-register-banner {
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-card);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
