/* ===================================================================
   MALVERA ONLINE — Complete Theme
   Built from scratch. Purple palette, glassmorphism, clean layout.
   =================================================================== */

:root {
  --bg-body: #0c0820;
  --bg-card: rgba(24, 18, 61, 0.6);
  --bg-card-header: rgba(126, 96, 195, 0.12);
  --bg-input: rgba(30, 22, 62, 0.85);
  --border: rgba(203, 180, 255, 0.1);
  --border-hover: rgba(203, 180, 255, 0.22);
  --accent: #cbb4ff;
  --purple: #7e60c3;
  --purple-dim: #5a4290;
  --text: #e2d8ff;
  --text-dim: rgba(226, 216, 255, 0.5);
  --green: #8fffd1;
  --blue: #a0d8ff;
  --red: #ff8fb1;
  --yellow: #ffd8a0;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Bootstrap token overrides */
  --bs-body-bg: #0c0820;
  --bs-body-color: #e2d8ff;
  --bs-border-color: rgba(203, 180, 255, 0.1);
  --bs-link-color: #ab93f2;
  --bs-primary: #7e60c3;
  --bs-table-bg: rgba(24, 18, 61, 0.5);
  --bs-table-color: #e2d8ff;
  --bs-table-border-color: rgba(203, 180, 255, 0.08);
  --bs-table-striped-bg: rgba(126, 96, 195, 0.06);
  --bs-table-hover-bg: rgba(126, 96, 195, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--purple) #0e0a25;
}
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #0e0a25; }
::-webkit-scrollbar-thumb { background: var(--purple-dim); border-radius: 99px; }
::selection { background: rgba(126,96,195,.4); color: #fff; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-body);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('../img/background.png') center / cover no-repeat;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 5%, rgba(126,96,195,.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(80,50,160,.07) 0%, transparent 50%),
    linear-gradient(180deg, rgba(12,8,32,.25) 0%, transparent 35%, rgba(12,8,32,.45) 100%);
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--accent);
  font-weight: 700;
}

a {
  color: #ab93f2;
  text-decoration: none;
  transition: color .15s var(--ease);
}
a:hover { color: var(--accent); }

/* ============================================================
   NAVBAR
   ============================================================ */
.main-nav {
  background: rgba(12, 8, 32, .6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
  z-index: 1050;
}

/* Brand */
.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 0;
}
.brand-main {
  color: #fff;
}
.brand-accent {
  background: linear-gradient(135deg, var(--purple), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Toggler */
.navbar-toggler {
  border: 1px solid var(--border);
  background: rgba(126,96,195,.1);
  color: var(--accent);
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(126,96,195,.25); }
.navbar-toggler:hover { background: rgba(126,96,195,.2); border-color: var(--border-hover); color: #fff; }

/* Desktop nav links */
.main-nav .navbar-nav .nav-link {
  color: var(--accent);
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .015em;
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
  position: relative;
}

.main-nav .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  border-radius: 99px;
  transition: width .25s var(--ease);
}

.main-nav .navbar-nav .nav-link:hover {
  color: #fff;
  background: rgba(126,96,195,.08);
}
.main-nav .navbar-nav .nav-link:hover::after {
  width: 50%;
}

/* CTA Button */
.btn-cta {
  background: linear-gradient(135deg, var(--purple), #9b7ee8);
  color: #fff;
  font-weight: 600;
  font-size: .82rem;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .2s var(--ease);
  box-shadow: 0 2px 12px rgba(126,96,195,.2);
  text-decoration: none;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #9b7ee8, var(--accent));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(126,96,195,.3);
}

/* ---- Mobile collapse content ---- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(14, 10, 38, .95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: .75rem;
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav .navbar-nav {
    gap: .1rem;
  }

  .main-nav .navbar-nav .nav-link {
    font-size: .9rem;
    padding: .6rem .8rem;
  }
  .main-nav .navbar-nav .nav-link::after { display: none; }
}

/* Mobile extra nav sections */
.mobile-nav-extra {
  padding-top: .5rem;
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: .75rem;
}

.mobile-nav-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: .35rem;
  margin-top: .85rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: .15rem 0 0;
}
.mobile-nav-list li a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .5rem;
  color: var(--text);
  font-size: .88rem;
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
}
.mobile-nav-list li a i { opacity: .4; width: 1.1rem; text-align: center; font-size: .85rem; }
.mobile-nav-list li a:hover { background: rgba(126,96,195,.1); color: #fff; }
.mobile-nav-list li a:hover i { opacity: 1; }

.mobile-nav-account {
  padding: .4rem 0 .25rem;
}

.mobile-login-form {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */
.content-wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

/* ============================================================
   GLASS CARD — the only card component
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.25rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(126,96,195,.08);
}

/* Card label header */
.card-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: .55rem 1rem;
  margin: -1.3rem -1.3rem 1rem;
}

/* Info variant */
.glass-card--info {
  background: rgba(20, 67, 128, 0.55);
  border-color: rgba(160,216,255,.12);
}

/* Backward compat: .box maps to glass-card */
.box {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.25rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.box:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(126,96,195,.08);
}
.box h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: .55rem 1rem;
  margin: -1.3rem -1.3rem 1rem;
  text-align: center;
}
.box ul { padding-left: 0; }
.box ul li { list-style: none; }
.box ul li a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .5rem;
  color: var(--text);
  font-size: .84rem;
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
}
.box ul li a i { opacity: .4; width: 1.1rem; text-align: center; font-size: .8rem; }
.box ul li a:hover { background: rgba(126,96,195,.1); color: #fff; }
.box ul li a:hover i { opacity: 1; }

.box-red {
  background: rgba(80, 20, 20, 0.55);
  border: 1px solid rgba(255,143,177,.12);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.25rem;
}
.box-green {
  background: rgba(20, 80, 35, 0.55);
  border: 1px solid rgba(143,255,209,.12);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.25rem;
}
.box-blue {
  background: rgba(20, 67, 128, 0.55);
  border: 1px solid rgba(160,216,255,.12);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.25rem;
}

/* ============================================================
   SIDEBAR COMPONENTS
   ============================================================ */

/* Sidebar links */
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0 -.65rem;
}
.sidebar-links li a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .65rem;
  color: var(--text);
  font-size: .84rem;
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
}
.sidebar-links li a i {
  opacity: .4;
  width: 1.1rem;
  text-align: center;
  font-size: .8rem;
  transition: opacity .15s var(--ease);
}
.sidebar-links li a:hover { background: rgba(126,96,195,.1); color: #fff; }
.sidebar-links li a:hover i { opacity: 1; }

/* Link groups within a card */
.link-group + .link-group {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.link-group-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .25rem;
}

/* Login form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.form-field-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Discord widget */
.discord-widget {
  background: linear-gradient(135deg, rgba(88,101,242,.1), rgba(126,96,195,.06));
  border: 1px solid rgba(88,101,242,.15);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  margin-bottom: 1.25rem;
  text-align: center;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.discord-widget:hover {
  border-color: rgba(88,101,242,.3);
  box-shadow: 0 0 20px rgba(88,101,242,.07);
}
.discord-icon {
  font-size: 1.8rem;
  color: #5865f2;
  margin-bottom: .5rem;
  filter: drop-shadow(0 0 8px rgba(88,101,242,.25));
}
.discord-text {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: .85rem;
}
.btn-discord {
  background: #5865f2;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: .8rem;
  padding: .45rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  justify-content: center;
  transition: all .15s var(--ease);
}
.btn-discord:hover {
  background: #4752c4;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(88,101,242,.25);
}

/* Kick widget */
.kick-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.kick-header {
  background: linear-gradient(135deg, rgba(83,252,24,.06), rgba(126,96,195,.04));
  border-bottom: 1px solid var(--border);
  padding: .5rem .85rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #53fc18;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.kick-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #53fc18;
  box-shadow: 0 0 6px #53fc18;
  animation: pulse 2s infinite;
}
.kick-widget iframe {
  display: block;
  width: 100%;
  height: 160px;
  border: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* Info banner */
.info-banner {
  text-align: center;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--text);
}
.info-banner a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.info-banner a:hover { color: #fff; }

/* ============================================================
   FORMS
   ============================================================ */
input.form-control,
select.form-control,
textarea.form-control {
  background: var(--bg-input);
  border: 1px solid rgba(126,96,195,.18);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .84rem;
  padding: .5rem .75rem;
  transition: all .15s var(--ease);
}
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  background: rgba(36, 26, 72, .95);
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(126,96,195,.12);
  color: #fff;
  outline: none;
}
input.form-control::placeholder { color: var(--text-dim); font-size: .8rem; }

.forgot-link {
  display: block;
  text-align: center;
  margin-top: .45rem;
  font-size: .75rem;
  color: var(--text-dim);
  transition: color .15s var(--ease);
}
.forgot-link:hover { color: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #7e60c3;
  --bs-btn-border-color: rgba(126,96,195,.5);
  --bs-btn-hover-bg: #9b7ee8;
  --bs-btn-hover-border-color: rgba(155,126,232,.6);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #cbb4ff;
  --bs-btn-active-border-color: #cbb4ff;
  --bs-btn-active-color: #18123d;
  --bs-btn-disabled-bg: #5a4290;
  --bs-btn-disabled-border-color: #5a4290;
  --bs-btn-disabled-color: rgba(255,255,255,.4);
  font-weight: 600;
  font-size: .84rem;
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
  box-shadow: 0 2px 8px rgba(126,96,195,.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(126,96,195,.25); }
.btn-primary:active { transform: translateY(0); }

/* ============================================================
   TABLES, PAGINATION, ALERTS, FORM-TEXT
   ============================================================ */
.table {
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .86rem;
}
.table thead th {
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

.pagination {
  --bs-pagination-color: var(--bs-link-color);
  --bs-pagination-bg: rgba(24,18,61,.5);
  --bs-pagination-border-color: var(--border);
  --bs-pagination-hover-color: #fff;
  --bs-pagination-hover-bg: rgba(126,96,195,.12);
  --bs-pagination-hover-border-color: var(--border-hover);
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(126,96,195,.2);
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: var(--purple);
  --bs-pagination-active-border-color: var(--purple);
  --bs-pagination-disabled-color: rgba(255,255,255,.3);
  --bs-pagination-disabled-bg: rgba(24,18,61,.35);
  --bs-pagination-disabled-border-color: var(--border);
  gap: 2px;
}
.page-link { border-radius: var(--radius-sm) !important; }

.alert {
  --bs-alert-border-radius: var(--radius-sm);
  font-size: .88rem;
}
.alert-info {
  --bs-alert-color: var(--text);
  --bs-alert-bg: rgba(160,216,255,.06);
  --bs-alert-border-color: rgba(160,216,255,.18);
}
.alert-success {
  --bs-alert-color: var(--text);
  --bs-alert-bg: rgba(73,119,64,.25);
  --bs-alert-border-color: rgba(143,255,209,.12);
  --bs-alert-link-color: var(--green);
}
.alert-danger {
  --bs-alert-color: var(--text);
  --bs-alert-bg: rgba(80,20,20,.3);
  --bs-alert-border-color: rgba(255,143,177,.12);
}

.form-text { color: var(--text-dim); font-size: .8rem; }

.list-unstyled {
  margin-top: 0;
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 1.5rem 0;
  color: var(--text-dim);
  font-size: .78rem;
  text-align: center;
}
.footer-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  opacity: .3;
  margin: 0 auto 1rem;
}

/* ============================================================
   UTILITY
   ============================================================ */
.no-radius { border-radius: 0 !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .content-wrap { padding-top: 1rem; }
  .glass-card { padding: 1rem; border-radius: var(--radius-sm); }
  .card-label {
    margin: -1rem -1rem .85rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: .5rem .8rem;
  }
  .box h5 {
    margin: -1rem -1rem .85rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: .5rem .8rem;
  }
  .box { padding: 1rem; border-radius: var(--radius-sm); }
}

@media (min-width: 992px) {
  .sidebar-col {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(126,96,195,.25) transparent;
  }
  .sidebar-col::-webkit-scrollbar { width: 3px; }
  .sidebar-col::-webkit-scrollbar-track { background: transparent; }
  .sidebar-col::-webkit-scrollbar-thumb { background: rgba(126,96,195,.25); border-radius: 99px; }
}

/* ============================================================
   SHOP / PAYMENTS PAGE
   ============================================================ */

/* Points banner */
.points-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(126,96,195,.18), rgba(203,180,255,.06));
  border: 1px solid rgba(126,96,195,.2);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.25rem;
}
.points-banner-icon {
  font-size: 1.8rem;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(203,180,255,.25));
}
.points-banner-info { flex: 1; }
.points-banner-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.points-banner-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* Shop card */
.shop-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.shop-card:hover {
  border-color: var(--border-hover);
}

.shop-card-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border);
  padding: .7rem 1.2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent);
}

.shop-provider-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.shop-badge {
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 99px;
  background: rgba(126,96,195,.15);
  border: 1px solid rgba(126,96,195,.25);
  color: var(--accent);
}
.shop-badge--recommended {
  background: rgba(143,255,209,.1);
  border-color: rgba(143,255,209,.2);
  color: var(--green);
}

.shop-card-subtitle {
  padding: .35rem 1.2rem;
  font-size: .74rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.shop-card-body {
  padding: .5rem .75rem;
}

/* Shop row — single purchase option */
.shop-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .5rem;
  border-bottom: 1px solid rgba(203,180,255,.05);
  transition: background .15s var(--ease);
}
.shop-row:last-child,
.shop-row:last-of-type { border-bottom: none; }
.shop-row:hover { background: rgba(126,96,195,.04); }

.shop-row-info { flex: 1; min-width: 0; }
.shop-row-points {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  color: #fff;
}
.shop-row-desc {
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: .1rem;
}

.shop-row-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .84rem;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
  min-width: 70px;
}

.shop-row-action {
  display: inline-flex;
}

.btn-shop {
  background: linear-gradient(135deg, var(--purple), #9b7ee8);
  color: #fff;
  font-weight: 600;
  font-size: .76rem;
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  border: none;
  white-space: nowrap;
  transition: all .15s var(--ease);
  box-shadow: 0 2px 8px rgba(126,96,195,.15);
  text-decoration: none;
}
.btn-shop:hover {
  background: linear-gradient(135deg, #9b7ee8, var(--accent));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(126,96,195,.25);
}

/* Code redemption form (inline) */
.code-form {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}
.code-form .form-control {
  flex: 1;
}
.code-form .btn {
  flex-shrink: 0;
}

.shop-hint {
  display: block;
  font-size: .7rem;
  color: var(--yellow);
  margin-top: .3rem;
}

/* Cashbill custom amount */
.cashbill-custom {
  display: flex;
  align-items: flex-end;
  gap: .85rem;
  padding: .4rem .25rem;
}
.cashbill-custom-field {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 110px;
}
.cashbill-custom-result {
  flex: 1;
  text-align: center;
}
.cashbill-custom-result-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
}
.cashbill-custom-result-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* Responsive shop */
@media (max-width: 575.98px) {
  .shop-row {
    flex-wrap: wrap;
    gap: .4rem .75rem;
  }
  .shop-row-info { flex-basis: 100%; }
  .shop-row-price { flex: 1; }

  .code-form {
    flex-direction: column;
  }
  .code-form .btn { width: 100%; }

  .cashbill-custom {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }

  .points-banner { flex-direction: column; text-align: center; }
}

/* ============================================================
   HIGHSCORES PAGE
   ============================================================ */

/* Title */
.hs-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  padding: .6rem 0;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hs-title i { color: var(--accent); }
.hs-title-dim {
  font-weight: 500;
  color: var(--text-dim);
  font-size: .9rem;
}

/* Table overrides */
.hs-table {
  margin-bottom: 0;
}
.hs-table td,
.hs-table th {
  vertical-align: middle;
}

.hs-col-rank { width: 50px; text-align: center; }
.hs-col-guild { width: 60px; text-align: center; }
.hs-col-value { text-align: right; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }

/* Rank numbers */
.hs-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-dim);
}
.hs-rank-top1 { background: linear-gradient(135deg, rgba(255,215,0,.2), rgba(255,180,0,.08)); color: #ffd700; border: 1px solid rgba(255,215,0,.25); }
.hs-rank-top2 { background: linear-gradient(135deg, rgba(192,192,192,.15), rgba(192,192,192,.05)); color: #c0c0c0; border: 1px solid rgba(192,192,192,.2); }
.hs-rank-top3 { background: linear-gradient(135deg, rgba(205,127,50,.15), rgba(205,127,50,.05)); color: #cd7f32; border: 1px solid rgba(205,127,50,.2); }

/* Player cell */
.hs-player {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.hs-player-info { min-width: 0; }
.hs-player-name {
  display: block;
  font-weight: 600;
  font-size: .86rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-player-name:hover { color: var(--accent); }
.hs-player-detail {
  font-size: .72rem;
  color: var(--text-dim);
}

/* Online status dot */
.status-dot--online {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px rgba(143,255,209,.4);
  flex-shrink: 0;
}
.status-dot--offline {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(226,216,255,.2);
  flex-shrink: 0;
}

/* Guild logo */
.hs-guild-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

/* Paginator */
.hs-paginator {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .75rem 0;
  justify-content: center;
}
.hs-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(24,18,61,.5);
  border: 1px solid var(--border);
  transition: all .15s var(--ease);
  text-decoration: none;
}
.hs-page:hover {
  background: rgba(126,96,195,.12);
  border-color: var(--border-hover);
  color: #fff;
}
.hs-page-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 2px 8px rgba(126,96,195,.25);
}
.hs-page-active:hover {
  background: var(--purple);
  color: #fff;
}

/* Outline secondary btn for Clear */
.btn-outline-secondary {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-dim);
  font-weight: 600;
  font-size: .84rem;
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
}
.btn-outline-secondary:hover {
  background: rgba(226,216,255,.06);
  border-color: var(--accent);
  color: var(--accent);
}

/* Select styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cbb4ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  padding-right: 2rem;
}

@media (max-width: 575.98px) {
  .hs-col-guild { display: none; }
  .hs-col-value { font-size: .78rem; }
  .hs-player-name { font-size: .82rem; }
}

/* ============================================================
   PLAYER VIEW PAGE
   ============================================================ */

/* ----- Hero banner ----- */
.pv-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background:
    radial-gradient(ellipse 80% 120% at 20% -20%, rgba(126,96,195,.35), transparent 60%),
    radial-gradient(ellipse 60% 100% at 90% 110%, rgba(100,60,200,.2), transparent 50%),
    linear-gradient(145deg, rgba(24,18,61,.85), rgba(12,8,32,.95));
  border: 1px solid var(--border);
  padding: 1.5rem 1.5rem 1.25rem;
}
.pv-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--accent), var(--purple));
  opacity: .7;
}

.pv-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 99px;
  margin-bottom: .65rem;
}
.pv-status--on {
  background: rgba(143,255,209,.08);
  border: 1px solid rgba(143,255,209,.2);
  color: var(--green);
}
.pv-status--off {
  background: rgba(226,216,255,.04);
  border: 1px solid rgba(226,216,255,.1);
  color: var(--text-dim);
}
.pv-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pv-status--on .pv-status-dot {
  background: var(--green);
  box-shadow: 0 0 8px rgba(143,255,209,.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
.pv-status--off .pv-status-dot {
  background: rgba(226,216,255,.25);
}

.pv-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .15rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.pv-vocation {
  font-size: .85rem;
  color: var(--text-dim);
  font-weight: 500;
}
.pv-vocation strong {
  color: var(--accent);
  font-weight: 700;
}
.pv-former {
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: .4rem;
  font-style: italic;
  opacity: .7;
}

/* Tags (Banned, Viewing, etc.) */
.pv-tag {
  display: inline-block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: .35rem;
}
.pv-tag--red {
  background: rgba(255,80,80,.1);
  border: 1px solid rgba(255,80,80,.2);
  color: var(--red);
}
.pv-tag--purple {
  background: rgba(126,96,195,.1);
  border: 1px solid rgba(126,96,195,.2);
  color: var(--accent);
}

/* ----- Info rows ----- */
.pv-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.1rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(203,180,255,.07);
}
.pv-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: .35rem;
  padding: .35rem 0;
}
.pv-row-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.pv-row-label::after {
  content: ':';
}
.pv-row-value {
  font-size: .84rem;
  font-weight: 600;
  color: #fff;
}
.pv-row-value a { color: #fff; }
.pv-row-value a:hover { color: var(--accent); }
.pv-row-value .pv-muted { color: var(--text-dim); font-weight: 500; }

/* Guild logo inline */
.pv-guild-img {
  width: 18px; height: 18px;
  object-fit: contain;
  border-radius: 4px;
  vertical-align: -3px;
  margin-right: .25rem;
}

/* ----- Section blocks ----- */
.pv-section {
  margin-bottom: 1.25rem;
}
.pv-section-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .65rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--border);
}
.pv-section-head i {
  font-size: .8rem;
  color: var(--purple);
}

/* ----- Timeline deaths ----- */
.pv-timeline {
  position: relative;
  padding-left: 1.2rem;
}
.pv-timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom, var(--purple), transparent);
}
.pv-timeline-item {
  position: relative;
  padding-bottom: .85rem;
}
.pv-timeline-item:last-child { padding-bottom: 0; }
.pv-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid var(--bg-body);
  box-shadow: 0 0 0 1px var(--purple);
}
.pv-timeline-date {
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: .1rem;
  font-family: 'Inconsolata', monospace;
}
.pv-timeline-text {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.55;
}
.pv-timeline-text b { color: #fff; font-weight: 700; }
.pv-timeline-text a { color: var(--accent); }
.pv-timeline-text a:hover { text-decoration: underline; }

/* ----- Character cards ----- */
.pv-chars {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.pv-char {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  background: rgba(126,96,195,.04);
  border: 1px solid var(--border);
  transition: all .2s var(--ease);
}
.pv-char:hover {
  background: rgba(126,96,195,.08);
  border-color: var(--border-hover);
}
.pv-char--active {
  background: rgba(126,96,195,.1);
  border-color: rgba(126,96,195,.25);
}
.pv-char-name {
  font-weight: 700;
  font-size: .86rem;
  color: #fff;
  flex: 1;
}
.pv-char-name a { color: inherit; }
.pv-char-name a:hover { color: var(--accent); }
.pv-char-detail {
  font-size: .76rem;
  color: var(--text-dim);
}
.pv-char-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pv-char-dot--on {
  background: var(--green);
  box-shadow: 0 0 6px rgba(143,255,209,.4);
}
.pv-char-dot--off {
  background: rgba(226,216,255,.15);
}

/* ----- Search bar ----- */
.pv-search {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(126,96,195,.04);
  border: 1px solid var(--border);
}

@media (max-width: 575.98px) {
  .pv-hero { padding: 1rem; }
  .pv-name { font-size: 1.25rem; }
  .pv-info { grid-template-columns: 1fr; }
  .pv-row { grid-template-columns: 75px 1fr; }
  .pv-char { flex-wrap: wrap; gap: .4rem; }
}


/* ============================================================
   ACCOUNT VIEW PAGE
   ============================================================ */

/* ----- Dashboard hero ----- */
.av-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background:
    radial-gradient(ellipse 90% 140% at 10% -30%, rgba(126,96,195,.4), transparent 55%),
    radial-gradient(ellipse 50% 80% at 95% 120%, rgba(143,255,209,.08), transparent 50%),
    linear-gradient(160deg, rgba(24,18,61,.9), rgba(12,8,32,.97));
  border: 1px solid var(--border);
}
.av-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--accent), var(--green), var(--accent), var(--purple));
  background-size: 200% 100%;
  animation: av-gradient 6s linear infinite;
}
@keyframes av-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.av-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.av-greeting {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .2rem;
}
.av-email {
  font-family: 'Inconsolata', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.av-created {
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: .15rem;
}
.av-logout {
  font-size: .72rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 99px;
  background: rgba(255,143,177,.06);
  border: 1px solid rgba(255,143,177,.18);
  color: var(--red);
  transition: all .2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.av-logout:hover {
  background: rgba(255,143,177,.12);
  border-color: rgba(255,143,177,.3);
  color: var(--red);
}

/* Points counter */
.av-points {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(126,96,195,.08);
  border: 1px solid rgba(126,96,195,.18);
  margin-bottom: 1rem;
}
.av-points-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), rgba(203,180,255,.3));
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.av-points-info {
  flex: 1;
}
.av-points-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.av-points-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.av-points-count span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: .3rem;
}
.av-points-buy {
  font-size: .72rem;
  font-weight: 700;
  padding: .4rem 1rem;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--purple), rgba(126,96,195,.7));
  color: #fff;
  border: none;
  text-decoration: none;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.av-points-buy:hover {
  background: linear-gradient(135deg, rgba(126,96,195,.9), var(--purple));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(126,96,195,.3);
}

/* Status badges row */
.av-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.av-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 99px;
}
.av-badge i { font-size: .72rem; }
.av-badge--premium {
  background: rgba(255,216,160,.06);
  border: 1px solid rgba(255,216,160,.18);
  color: var(--yellow);
}
.av-badge--free {
  background: rgba(226,216,255,.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.av-badge--key-yes {
  background: rgba(143,255,209,.06);
  border: 1px solid rgba(143,255,209,.18);
  color: var(--green);
}
.av-badge--key-no {
  background: rgba(255,143,177,.06);
  border: 1px solid rgba(255,143,177,.15);
  color: var(--red);
}
.av-badge--banned {
  background: rgba(255,80,80,.08);
  border: 1px solid rgba(255,80,80,.2);
  color: var(--red);
}

/* ----- Quick actions ----- */
.av-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.av-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  font-weight: 600;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(126,96,195,.04);
  color: var(--text);
  text-decoration: none;
  transition: all .2s var(--ease);
}
.av-action i { font-size: .82rem; color: var(--purple); }
.av-action:hover {
  background: rgba(126,96,195,.1);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-1px);
}
.av-action--danger {
  border-color: rgba(255,143,177,.15);
  background: rgba(255,143,177,.04);
}
.av-action--danger i { color: var(--red); }
.av-action--danger:hover {
  background: rgba(255,143,177,.1);
  border-color: rgba(255,143,177,.25);
  color: var(--red);
}

/* ----- Section ----- */
.av-section {
  margin-bottom: 1.5rem;
}
.av-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.av-section-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.av-section-title i {
  font-size: .82rem;
  color: var(--purple);
}
.av-section-action {
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.av-section-action:hover { text-decoration: underline; }

/* ----- Character cards ----- */
.av-chars {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.av-char {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(126,96,195,.03);
  transition: all .2s var(--ease);
}
.av-char:hover {
  background: rgba(126,96,195,.07);
  border-color: var(--border-hover);
}
.av-char-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.av-char-dot--on {
  background: var(--green);
  box-shadow: 0 0 8px rgba(143,255,209,.45);
}
.av-char-dot--off {
  background: rgba(226,216,255,.15);
}
.av-char-info {
  flex: 1;
  min-width: 0;
}
.av-char-name {
  font-weight: 700;
  font-size: .88rem;
  color: #fff;
}
.av-char-name a { color: inherit; }
.av-char-name a:hover { color: var(--accent); }
.av-char-detail {
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: .05rem;
}
.av-char-badge {
  display: inline-block;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .45rem;
  border-radius: 99px;
  margin-left: .3rem;
  vertical-align: middle;
}
.av-char-badge--warn {
  background: rgba(255,216,160,.08);
  border: 1px solid rgba(255,216,160,.2);
  color: var(--yellow);
}
.av-char-actions {
  display: flex;
  gap: .35rem;
  flex-shrink: 0;
}
.av-char-btn {
  font-size: .66rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(126,96,195,.06);
  color: var(--text);
  text-decoration: none;
  transition: all .15s var(--ease);
}
.av-char-btn:hover {
  background: rgba(126,96,195,.14);
  border-color: var(--border-hover);
  color: #fff;
}
.av-char-btn--danger {
  border-color: rgba(255,143,177,.15);
  color: var(--red);
}
.av-char-btn--danger:hover {
  background: rgba(255,143,177,.1);
  border-color: rgba(255,143,177,.25);
}
.av-char-btn--warn {
  border-color: rgba(255,216,160,.15);
  color: var(--yellow);
}
.av-char-btn--warn:hover {
  background: rgba(255,216,160,.08);
  border-color: rgba(255,216,160,.25);
}

.av-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(143,255,209,.2);
  background: rgba(143,255,209,.03);
  color: var(--green);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s var(--ease);
  margin-top: .5rem;
}
.av-create:hover {
  background: rgba(143,255,209,.07);
  border-color: rgba(143,255,209,.35);
  color: var(--green);
  transform: translateY(-1px);
}

/* ----- Cam entries ----- */
.av-cam {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(126,96,195,.03);
  margin-bottom: .4rem;
  transition: all .2s var(--ease);
}
.av-cam:hover {
  background: rgba(126,96,195,.07);
  border-color: var(--border-hover);
}
.av-cam-num {
  font-family: 'Inconsolata', monospace;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-dim);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.av-cam-info { flex: 1; min-width: 0; }
.av-cam-name {
  font-weight: 700;
  font-size: .84rem;
  color: #fff;
}
.av-cam-detail {
  font-size: .7rem;
  color: var(--text-dim);
}
.av-cam-date {
  font-family: 'Inconsolata', monospace;
  font-size: .7rem;
  color: var(--text-dim);
  flex-shrink: 0;
}
.av-cam-btn {
  font-size: .66rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(126,96,195,.06);
  color: var(--text);
  text-decoration: none;
  transition: all .15s var(--ease);
  flex-shrink: 0;
}
.av-cam-btn:hover {
  background: rgba(126,96,195,.14);
  border-color: var(--border-hover);
  color: #fff;
}

@media (max-width: 575.98px) {
  .av-hero { padding: 1.25rem 1rem; }
  .av-top { flex-direction: column; gap: .5rem; }
  .av-points { flex-direction: column; text-align: center; gap: .6rem; }
  .av-actions { flex-direction: column; }
  .av-char { flex-wrap: wrap; }
  .av-char-actions { width: 100%; justify-content: flex-end; }
  .av-cam { flex-wrap: wrap; gap: .4rem; }
}


/* ============================================================
   RULES PAGE
   ============================================================ */

.ru-intro {
  font-size: .84rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.ru-intro a { color: var(--accent); }
.ru-intro a:hover { text-decoration: underline; }

.ru-section {
  margin-bottom: 1.75rem;
}

.ru-heading {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .92rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.ru-heading-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), rgba(203,180,255,.25));
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.ru-heading i {
  font-size: .88rem;
  color: var(--purple);
}

.ru-sub {
  font-size: .82rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: .45rem;
  margin-top: .65rem;
}

.ru-warn {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 99px;
  background: rgba(255,216,160,.06);
  border: 1px solid rgba(255,216,160,.15);
  color: var(--yellow);
  margin-bottom: .55rem;
}

.ru-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
}
.ru-list li {
  position: relative;
  padding: .3rem 0 .3rem 1.4rem;
  font-size: .82rem;
  color: var(--text);
  line-height: 1.6;
}
.ru-list li::before {
  content: attr(data-letter);
  position: absolute;
  left: 0;
  top: .3rem;
  font-family: 'Inconsolata', monospace;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-dim);
  width: 1.1rem;
}

.ru-note {
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  background: rgba(126,96,195,.05);
  border: 1px solid var(--border);
  margin-top: .5rem;
}
.ru-note a { color: var(--accent); }
.ru-note a:hover { text-decoration: underline; }

.ru-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.ru-footer a { color: var(--yellow); font-weight: 600; }
.ru-footer a:hover { text-decoration: underline; }


/* ============================================================
   GUILD LIST PAGE
   ============================================================ */

.gl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.gl-card {
  display: flex;
  gap: .85rem;
  padding: .85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(126,96,195,.03);
  transition: all .25s var(--ease);
  text-decoration: none;
  color: inherit;
}
.gl-card:hover {
  background: rgba(126,96,195,.08);
  border-color: rgba(126,96,195,.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  color: inherit;
}

.gl-logo {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(126,96,195,.08);
  border: 1px solid var(--border);
}

.gl-info {
  flex: 1;
  min-width: 0;
}
.gl-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .2rem;
  line-height: 1.25;
}
.gl-desc {
  font-size: .76rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-dim);
  font-size: .86rem;
}

.gl-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(143,255,209,.2);
  background: rgba(143,255,209,.03);
  color: var(--green);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s var(--ease);
  margin-top: .75rem;
}
.gl-create:hover {
  background: rgba(143,255,209,.07);
  border-color: rgba(143,255,209,.35);
  color: var(--green);
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .gl-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PLAYERS ONLINE PAGE
   ============================================================ */

/* ----- Live counter banner ----- */
.ol-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  background:
    radial-gradient(ellipse 70% 130% at 15% -20%, rgba(143,255,209,.12), transparent 55%),
    radial-gradient(ellipse 50% 90% at 90% 120%, rgba(126,96,195,.15), transparent 50%),
    linear-gradient(160deg, rgba(24,18,61,.9), rgba(12,8,32,.97));
  border: 1px solid var(--border);
}
.ol-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--accent), var(--green));
  opacity: .6;
}
.ol-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ol-banner-info {}
.ol-banner-world {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .1rem;
}
.ol-banner-meta {
  font-size: .76rem;
  color: var(--text-dim);
}
.ol-banner-count {
  display: flex;
  align-items: baseline;
  gap: .4rem;
}
.ol-banner-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  letter-spacing: -.03em;
}
.ol-banner-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ----- Chart ----- */
.ol-chart-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(126,96,195,.03);
  padding: .75rem;
  margin-bottom: 1.25rem;
  height: 220px;
}
.ol-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ----- World cards (overview) ----- */
.ol-worlds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-bottom: .75rem;
}
.ol-world {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(126,96,195,.03);
  text-decoration: none;
  color: inherit;
  transition: all .25s var(--ease);
}
.ol-world:hover {
  background: rgba(126,96,195,.08);
  border-color: rgba(126,96,195,.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  color: inherit;
}
.ol-world-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  min-width: 42px;
  text-align: center;
  flex-shrink: 0;
}
.ol-world-info { flex: 1; min-width: 0; }
.ol-world-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
}
.ol-world-detail {
  font-size: .7rem;
  color: var(--text-dim);
  margin-top: .05rem;
}
.ol-world-detail img {
  width: 14px; height: 10px;
  vertical-align: -1px;
  margin-right: .2rem;
}

.ol-record {
  text-align: center;
  font-size: .76rem;
  color: var(--text-dim);
  padding: .5rem;
  margin-bottom: 1rem;
}
.ol-record strong { color: #fff; }

/* ----- Player list ----- */
.ol-list {
  display: flex;
  flex-direction: column;
}
.ol-player {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: .6rem;
  padding: .45rem .65rem;
  border-radius: 6px;
  transition: background .15s var(--ease);
}
.ol-player:hover {
  background: rgba(126,96,195,.06);
}
.ol-player-rank {
  font-family: 'Inconsolata', monospace;
  font-size: .74rem;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
}
.ol-player-name {
  font-size: .84rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.ol-player-name a { color: inherit; }
.ol-player-name a:hover { color: var(--accent); }
.ol-player-name img {
  width: 16px; height: 11px;
  vertical-align: -1px;
}
.ol-player-level {
  font-family: 'Inconsolata', monospace;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}
.ol-player-voc {
  font-size: .74rem;
  color: var(--text-dim);
  text-align: right;
  min-width: 100px;
}

/* World info rows */
.ol-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: .85rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(203,180,255,.07);
}
.ol-info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: .35rem;
  padding: .25rem 0;
}
.ol-info-label {
  font-size: .66rem;
  font-weight: 600;
  color: var(--text-dim);
}
.ol-info-label::after { content: ':'; }
.ol-info-value {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
}
.ol-info-value img {
  width: 16px; height: 11px;
  vertical-align: -1px;
  margin-right: .2rem;
}

@media (max-width: 575.98px) {
  .ol-banner { padding: 1rem; }
  .ol-banner-num { font-size: 1.5rem; }
  .ol-worlds { grid-template-columns: 1fr; }
  .ol-player { grid-template-columns: 28px 1fr auto; }
  .ol-player-voc { display: none; }
  .ol-info { grid-template-columns: 1fr; }
}
