/* ============================================================
   DZPEEK public site
   Palette derived from the brand banner (neon purple/magenta).
   Mobile-first. Breakpoints: 992px / 767px / 576px / 400px.
   ============================================================ */

:root {
  /* Surfaces */
  --bg-body:        #0a0612;
  --bg-body-2:      #0f0819;
  --bg-header:      rgba(14, 8, 25, 0.88);
  --bg-card:        #150c26;
  --bg-card-hover:  #1c1133;
  --bg-input:       #0f0819;
  --bg-hover:       #201339;

  /* Borders */
  --border-subtle:  #251744;
  --border-strong:  #3d2466;

  /* Text */
  --text-primary:   #f2ecff;
  --text-secondary: #b3a4cc;
  --text-muted:     #6f6394;

  /* Brand */
  --primary:        #b34dff;
  --primary-hover:  #c76bff;
  --primary-deep:   #7c2dd4;
  --primary-soft:   rgba(179, 77, 255, 0.14);
  --primary-glow:   rgba(179, 77, 255, 0.55);

  --magenta:        #e843e8;
  --magenta-soft:   rgba(232, 67, 232, 0.14);
  --magenta-glow:   rgba(232, 67, 232, 0.5);

  /* Status */
  --danger:         #ff3d6e;
  --danger-soft:    rgba(255, 61, 110, 0.14);
  --success:        #22e0a1;
  --success-soft:   rgba(34, 224, 161, 0.14);
  --warning:        #ffb63d;
  --warning-soft:   rgba(255, 182, 61, 0.10);
  --info:           #56a8ff;
  --info-soft:      rgba(86, 168, 255, 0.14);

  /* Misc */
  --radius:         14px;
  --radius-sm:      10px;
  --radius-lg:      18px;
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.5);
  --shadow:         0 10px 30px rgba(0,0,0,0.45);
  --shadow-lg:      0 24px 60px rgba(0,0,0,0.6);

  --header-h:       66px;
  --touch:          44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(1400px 700px at 15% -10%, rgba(179,77,255,0.14), transparent 60%),
    radial-gradient(1000px 600px at 100% 5%, rgba(232,67,232,0.10), transparent 55%),
    radial-gradient(900px 500px at 50% 110%, rgba(124,45,212,0.08), transparent 60%),
    var(--bg-body);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-hover); }
::selection { background: var(--primary); color: #fff; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-header);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: env(safe-area-inset-top);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), var(--magenta-glow), transparent);
  opacity: .55;
  pointer-events: none;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  min-width: 0;
  flex-shrink: 0;
}
.site-brand:hover { color: var(--text-primary); }
.site-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-brand i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--magenta));
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 24px var(--primary-glow);
  flex-shrink: 0;
}

/* Logo replacement */
.site-logo {
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(179,77,255,0.35));
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: .875rem;
  border-radius: var(--radius-sm);
  transition: all .15s;
  white-space: nowrap;
  position: relative;
}
.site-nav-link i { font-size: .95rem; }
.site-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.site-nav-link.active {
  color: #fff;
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(179,77,255,0.25), 0 0 20px rgba(179,77,255,0.15);
}
.site-nav-link.active i {
  color: var(--primary);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-left: 6px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--magenta));
  color: #fff !important;
  font-weight: 600;
  font-size: .85rem;
  transition: all .18s;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(179,77,255,0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.btn-admin:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(179,77,255,0.55), inset 0 0 0 1px rgba(255,255,255,0.12);
}

/* Hamburger */
.mobile-toggle {
  display: none;
  width: var(--touch);
  height: var(--touch);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all .15s;
  flex-shrink: 0;
}
.mobile-toggle:hover { border-color: var(--border-strong); }
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero / banner ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  padding: 3rem 0 2.25rem;
  text-align: center;
  isolation: isolate;
  background: #0a0612;
  border: 1px solid var(--border-subtle);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(179,77,255,0.35), transparent 65%),
    linear-gradient(
      180deg,
      rgba(10,6,18,0.55) 0%,
      rgba(10,6,18,0.72) 50%,
      rgba(10,6,18,0.94) 100%
    );
  z-index: 1;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }
.hero-content { max-width: 780px; margin: 0 auto; padding: 0 16px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(179,77,255,0.10);
  border: 1px solid rgba(179,77,255,0.35);
  font-size: .78rem;
  font-weight: 600;
  color: #e6d4ff;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 24px rgba(179,77,255,0.18), inset 0 0 12px rgba(179,77,255,0.06);
  text-shadow: 0 0 8px rgba(179,77,255,0.4);
}

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-live {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34,224,161,0.8);
  animation: pulse 1.8s ease-out infinite;
}
.dot-off { background: var(--danger); box-shadow: 0 0 8px rgba(255,61,110,0.7); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,224,161,0.6), 0 0 8px rgba(34,224,161,0.8); }
  100% { box-shadow: 0 0 0 10px rgba(34,224,161,0), 0 0 8px rgba(34,224,161,0.8); }
}

.hero-title {
  font-size: clamp(1.65rem, 6vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.7rem;
  padding: 0 4px;
  background: linear-gradient(180deg, #ffffff 0%, #e6d4ff 40%, var(--primary) 85%, var(--magenta) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 40px rgba(179,77,255,0.35),
    0 0 80px rgba(232,67,232,0.15);
  overflow-wrap: anywhere;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.25));
}
.hero-sub {
  color: #cbb8e6;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 auto 1.75rem;
  max-width: 540px;
  padding: 0 8px;
  text-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.connect-box {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: rgba(21,12,38,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(179,77,255,0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 30px rgba(179,77,255,0.2);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.connect-ip {
  display: flex;
  flex-direction: column;
  padding: 6px 14px;
  text-align: left;
  justify-content: center;
  min-width: 0;
}
.connect-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.connect-ip code {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: none;
  padding: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 0 12px rgba(179,77,255,0.5);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: var(--touch);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--magenta));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  border: 0;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(179,77,255,0.45), inset 0 0 0 1px rgba(255,255,255,0.1);
}
.btn-copy:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(179,77,255,0.7), inset 0 0 0 1px rgba(255,255,255,0.16);
}
.btn-copy.copied {
  background: linear-gradient(135deg, var(--success), #0ea47a);
  box-shadow: 0 0 24px rgba(34,224,161,0.55), inset 0 0 0 1px rgba(255,255,255,0.1);
}

/* ---------- Stats grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1.75rem;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(145deg, var(--bg-card), #1a1030);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all .2s;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(179,77,255,0.4), transparent);
  opacity: .7;
}
.stat-card:hover {
  border-color: rgba(179,77,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(179,77,255,0.15);
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(179,77,255,0.2), rgba(232,67,232,0.15));
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(179,77,255,0.25), 0 0 20px rgba(179,77,255,0.15);
}
.stat-body { min-width: 0; flex: 1; }
.stat-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* ---------- Sections / cards ---------- */
.card-section { margin-bottom: 1.75rem; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.section-header h1,
.section-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.section-header h1 i,
.section-header h2 i {
  color: var(--primary);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}
.btn-more:hover { color: var(--primary); text-shadow: 0 0 8px var(--primary-glow); }

.card-block {
  background: linear-gradient(145deg, var(--bg-card), #170d2a);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 12px 14px;
}

/* ---------- Tables ---------- */
.table {
  color: var(--text-primary);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  margin: 0;
  width: 100%;
  border-collapse: collapse;
}
.table thead th {
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .1em;
  font-weight: 800;
  padding: 12px 14px;
  white-space: nowrap;
  text-align: left;
}
.table tbody td {
  border-color: var(--border-subtle);
  padding: 13px 14px;
  vertical-align: middle;
  font-size: .86rem;
}
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--bg-card-hover); }

.table-responsive { -webkit-overflow-scrolling: touch; overflow-x: auto; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.badge-danger {
  background: var(--danger-soft) !important;
  color: #ff8ba8;
  border: 1px solid rgba(255,61,110,0.4);
  box-shadow: 0 0 12px rgba(255,61,110,0.2);
}
.badge-success {
  background: var(--success-soft) !important;
  color: #6df0c4;
  border: 1px solid rgba(34,224,161,0.4);
  box-shadow: 0 0 12px rgba(34,224,161,0.2);
}
.badge-muted {
  background: rgba(255,255,255,0.05) !important;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.badge-info {
  background: var(--info-soft) !important;
  color: #a0d0ff;
  border: 1px solid rgba(86,168,255,0.4);
  box-shadow: 0 0 12px rgba(86,168,255,0.2);
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .9rem;
  min-height: var(--touch);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus, .form-select:focus {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft), 0 0 20px rgba(179,77,255,0.25);
  outline: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236f6394'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 34px;
}
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.input-group-text {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-right: 0;
  color: var(--text-muted);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  min-height: var(--touch);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all .18s;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-outline-light {
  border-color: var(--border-strong);
  color: var(--text-secondary);
  background: transparent;
}
.btn-outline-light:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(179,77,255,0.2);
}

/* ---------- Bans toolbar ---------- */
.page-header { margin-bottom: 1.25rem; }
.page-header h1 {
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  background: linear-gradient(180deg, #fff, #d4b8ff 70%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-header p { color: var(--text-secondary); font-size: .9rem; margin: 0; }

.bans-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.bans-toolbar .input-group { flex: 1 1 220px; min-width: 0; }
.bans-toolbar .bans-status { flex: 0 0 auto; width: auto; min-width: 130px; max-width: 180px; }
.bans-toolbar .btn { flex: 0 0 auto; }

/* ---------- Flags ---------- */
img.flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(179,77,255,0.35), 0 0 8px rgba(179,77,255,0.15);
  vertical-align: middle;
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 2.25rem;
  opacity: .35;
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: .82rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(179,77,255,0.35), rgba(232,67,232,0.25), transparent);
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer-links a { color: var(--text-secondary); }
.site-footer-links a:hover { color: var(--primary); text-shadow: 0 0 8px var(--primary-glow); }

/* ---------- Scan page ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.step-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(145deg, var(--bg-card), #1a1030);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all .2s;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(179,77,255,0.4), transparent);
  opacity: .7;
}
.step-card:hover {
  border-color: rgba(179,77,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(179,77,255,0.15);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--magenta));
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 0 20px var(--primary-glow), inset 0 0 0 1px rgba(255,255,255,0.15);
}
.step-body { min-width: 0; }
.step-body h3 {
  font-size: .95rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.step-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: .85rem;
  line-height: 1.6;
}
.step-body strong { color: var(--text-primary); font-weight: 700; }

/* ---------- Warning box ---------- */
.warning-box {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--warning-soft);
  border: 1px solid rgba(255,182,61,0.35);
  border-radius: var(--radius);
  box-shadow: inset 0 0 40px rgba(255,182,61,0.05);
}
.warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,182,61,0.15);
  color: #ffce7a;
  font-size: 1.15rem;
  box-shadow: 0 0 20px rgba(255,182,61,0.25);
}
.warning-body { min-width: 0; }
.warning-body h3 {
  font-size: .95rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffce7a;
}
.warning-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: .85rem;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: linear-gradient(145deg, var(--bg-card), #170d2a);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s;
}
.faq-item[open] {
  border-color: rgba(179,77,255,0.35);
  box-shadow: 0 0 30px rgba(179,77,255,0.1);
}
.faq-item summary {
  padding: 14px 16px;
  min-height: var(--touch);
  cursor: pointer;
  font-weight: 700;
  font-size: .88rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  font-size: .72rem;
  transition: transform .2s;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--primary-glow));
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-answer {
  padding: 0 16px 16px;
  color: var(--text-secondary);
  font-size: .85rem;
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta-box {
  text-align: center;
  padding: 2.25rem 1.25rem;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(179,77,255,0.25), transparent 65%),
    linear-gradient(145deg, var(--bg-card), #1a1030);
  border: 1px solid rgba(179,77,255,0.25);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), var(--magenta-glow), transparent);
}
.cta-box h2 {
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, #d4b8ff 70%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-box p {
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  font-size: .9rem;
}

/* ============================================================
   TABLET (<= 991px)
   ============================================================ */
@media (max-width: 991px) {
  .mobile-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 16px;
    background: linear-gradient(180deg, var(--bg-body), #120a22);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 60px rgba(179,77,255,0.15);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .18s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav-link {
    padding: 12px 14px;
    min-height: var(--touch);
    font-size: .95rem;
    border-radius: var(--radius-sm);
  }
  .site-nav-link span { display: inline; }
  .site-nav-link i { width: 20px; text-align: center; font-size: 1rem; }
  .btn-admin {
    margin: 4px 0 0;
    padding: 13px 16px;
    justify-content: center;
    font-size: .92rem;
  }
}

/* ============================================================
   PHONE (<= 767px)
   ============================================================ */
@media (max-width: 767px) {
  body { font-size: 14.5px; }
  .container { padding-left: 14px; padding-right: 14px; }

  .site-logo { height: 34px; max-width: 150px; }

  .hero { padding: 2rem 0 1.5rem; border-radius: 12px; }
  .hero::before { opacity: 0.28; background-position: center top; }
  .hero::after {
    background:
      radial-gradient(500px 260px at 50% 0%, rgba(179,77,255,0.3), transparent 65%),
      linear-gradient(
        180deg,
        rgba(10,6,18,0.7) 0%,
        rgba(10,6,18,0.85) 55%,
        rgba(10,6,18,0.96) 100%
      );
  }
  .hero-badge { font-size: .72rem; padding: 6px 12px; margin-bottom: 1rem; }
  .hero-title { margin-bottom: .5rem; }
  .hero-sub { font-size: .9rem; margin-bottom: 1.25rem; }

  .connect-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 10px;
    gap: 8px;
  }
  .connect-ip { text-align: center; padding: 6px 4px; }
  .connect-ip code { font-size: 1rem; }
  .btn-copy { width: 100%; }

  .stats-grid { gap: 8px; }
  .stat-card { padding: 12px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; font-size: 1rem; }
  .stat-label { font-size: .62rem; }
  .stat-value { font-size: 1rem; }

  .section-header h1,
  .section-header h2 { font-size: 1.05rem; }

  .card-block { padding: 10px 12px; }

  /* Table to stacked cards */
  .table-responsive { overflow: visible; }
  .table.responsive-table thead { display: none; }
  .table.responsive-table,
  .table.responsive-table tbody,
  .table.responsive-table tr,
  .table.responsive-table td {
    display: block;
    width: 100%;
  }
  .table.responsive-table tr {
    padding: 12px;
    margin-bottom: 10px;
    background: linear-gradient(145deg, var(--bg-card), #170d2a);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color .15s;
  }
  .table.responsive-table tr:hover {
    background: linear-gradient(145deg, var(--bg-card), #170d2a);
    border-color: rgba(179,77,255,0.35);
  }
  .table.responsive-table tr:last-child { margin-bottom: 0; }
  .table.responsive-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px dashed rgba(179,77,255,0.12);
    font-size: .86rem;
    text-align: right;
  }
  .table.responsive-table td:last-child { border-bottom: 0; padding-bottom: 0; }
  .table.responsive-table td:first-child { padding-top: 0; }
  .table.responsive-table td::before {
    content: attr(data-label);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: left;
  }
  .table.responsive-table td[data-label=""]::before { display: none; }
  .table.responsive-table td .d-flex.flex-column { align-items: flex-end; text-align: right; }
  .table.responsive-table td.text-end,
  .table.responsive-table td:has(.btn) { justify-content: flex-end; }

  .table.responsive-table td[colspan] {
    display: block;
    padding: 0;
    border: 0;
  }
  .table.responsive-table td[colspan]::before { display: none; }
  .table.responsive-table td[colspan] .empty-state { padding: 2rem 1rem; }

  .bans-toolbar { gap: 8px; }
  .bans-toolbar .input-group { flex: 1 1 100%; min-width: 0; }
  .bans-toolbar .bans-status { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; }
  .bans-toolbar .btn { flex: 1 1 auto; }

  .steps-grid { grid-template-columns: 1fr; gap: 10px; }
  .step-card { padding: 14px; }
  .step-number { width: 36px; height: 36px; font-size: .95rem; }
  .step-body h3 { font-size: .9rem; }

  .warning-box { padding: 14px; }
  .warning-icon { width: 38px; height: 38px; font-size: 1rem; }

  .cta-box { padding: 1.75rem 1rem; }

  .site-footer { margin-top: 2rem; padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom)); }
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: .8rem;
  }
  .site-footer-links { gap: 14px; }
}

/* ============================================================
   SMALL PHONE (<= 400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero-title { letter-spacing: -0.015em; }
  .stat-card { padding: 10px; gap: 8px; }
  .stat-icon { width: 34px; height: 34px; font-size: .9rem; }
  .stat-value { font-size: .92rem; }
  .btn, .btn-copy, .form-control, .form-select { font-size: .85rem; }
  .card-block { padding: 8px 10px; }
  .table.responsive-table tr { padding: 10px; }
  .table.responsive-table td { font-size: .82rem; padding: 6px 0; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .mobile-toggle, .bans-toolbar, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Connect actions ---------- */
.connect-box {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  background: rgba(21,12,38,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(179,77,255,0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 30px rgba(179,77,255,0.2);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.connect-ip {
  display: flex;
  flex-direction: column;
  padding: 6px 16px 6px 8px;
  text-align: left;
  justify-content: center;
  min-width: 0;
}
.connect-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.connect-ip code {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: none;
  padding: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 0 12px rgba(179,77,255,0.5);
}

.connect-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Steam button */
.btn-steam,
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: var(--touch);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  border: 0;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-steam {
  background: linear-gradient(135deg, #1b6fb8, #0e4d8c);
  color: #fff !important;
  box-shadow: 0 0 24px rgba(27,111,184,0.5), inset 0 0 0 1px rgba(255,255,255,0.12);
}
.btn-steam i { font-size: 1.15rem; }
.btn-steam:hover {
  color: #fff !important;
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2279c5, #1058a0);
  box-shadow: 0 8px 30px rgba(27,111,184,0.75), inset 0 0 0 1px rgba(255,255,255,0.18);
}

.btn-copy {
  background: linear-gradient(135deg, var(--primary), var(--magenta));
  color: #fff;
  box-shadow: 0 0 24px rgba(179,77,255,0.45), inset 0 0 0 1px rgba(255,255,255,0.1);
}
.btn-copy:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(179,77,255,0.7), inset 0 0 0 1px rgba(255,255,255,0.16);
}
.btn-copy.copied {
  background: linear-gradient(135deg, var(--success), #0ea47a);
  box-shadow: 0 0 24px rgba(34,224,161,0.55), inset 0 0 0 1px rgba(255,255,255,0.1);
}

/* Mobile: stack */
@media (max-width: 767px) {
  .connect-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 12px;
    gap: 10px;
  }
  .connect-ip {
    text-align: center;
    padding: 4px 8px 10px;
    border-bottom: 1px dashed rgba(179,77,255,0.15);
    width: 100%;
  }
  .connect-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .btn-steam, .btn-copy {
    width: 100%;
    padding: 12px 12px;
    font-size: .88rem;
  }
}

@media (max-width: 400px) {
  .connect-actions { grid-template-columns: 1fr; }
}

/* ---------- Shop ---------- */
.hero-simple { padding: 2.25rem 0 1.5rem; }
.hero-simple .hero-title { margin-bottom: .5rem; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.shop-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px;
  background: linear-gradient(150deg, var(--bg-card), #170d2a);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all .22s;
  min-width: 0;
}
.shop-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(179,77,255,0.5), transparent);
  opacity: .8;
}
.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(179,77,255,0.35);
  box-shadow: 0 20px 50px rgba(179,77,255,0.18);
}

/* Head */
.shop-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.shop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  font-size: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 0 24px rgba(179,77,255,0.25);
  background: linear-gradient(135deg, rgba(179,77,255,0.2), rgba(232,67,232,0.15));
  color: var(--primary);
}

.shop-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.shop-tagline {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Features */
.shop-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.shop-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.shop-features li i {
  color: var(--primary);
  font-size: .78rem;
  margin-top: 5px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--primary-glow));
}
.shop-features li strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ---------- Tier overrides ---------- */

/* VIP - purple (default palette) */

/* Gold VIP - gold/amber, featured */
.tier-gold .shop-icon {
  background: linear-gradient(135deg, rgba(255,193,7,0.25), rgba(255,140,0,0.15));
  color: #ffc107;
  box-shadow: inset 0 0 0 1px rgba(255,193,7,0.35), 0 0 24px rgba(255,193,7,0.35);
}
.tier-gold .shop-features li i { color: #ffc107; filter: drop-shadow(0 0 6px rgba(255,193,7,0.6)); }
.tier-gold.featured {
  border-color: rgba(255,193,7,0.45);
  box-shadow: 0 0 40px rgba(255,193,7,0.15);
}
.tier-gold.featured::before {
  background: linear-gradient(90deg, transparent, rgba(255,193,7,0.7), transparent);
}
.tier-gold.featured:hover {
  border-color: rgba(255,193,7,0.7);
  box-shadow: 0 24px 60px rgba(255,193,7,0.25);
}

.featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc107, #ff8a00);
  color: #1a0f00;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 0 20px rgba(255,193,7,0.5);
}
.featured-badge i { font-size: .7rem; }

/* Admin - blue/cyan */
.tier-admin .shop-icon {
  background: linear-gradient(135deg, rgba(86,168,255,0.22), rgba(0,200,255,0.15));
  color: #56a8ff;
  box-shadow: inset 0 0 0 1px rgba(86,168,255,0.35), 0 0 24px rgba(86,168,255,0.3);
}
.tier-admin .shop-features li i { color: #56a8ff; filter: drop-shadow(0 0 6px rgba(86,168,255,0.5)); }
.tier-admin:hover { border-color: rgba(86,168,255,0.4); box-shadow: 0 20px 50px rgba(86,168,255,0.18); }

/* Super Admin - crimson/magenta */
.tier-super .shop-icon {
  background: linear-gradient(135deg, rgba(255,61,110,0.22), rgba(232,67,232,0.15));
  color: #ff3d6e;
  box-shadow: inset 0 0 0 1px rgba(255,61,110,0.4), 0 0 24px rgba(255,61,110,0.35);
}
.tier-super .shop-features li i { color: #ff3d6e; filter: drop-shadow(0 0 6px rgba(255,61,110,0.6)); }
.tier-super:hover { border-color: rgba(255,61,110,0.4); box-shadow: 0 20px 50px rgba(255,61,110,0.2); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; gap: 12px; }
  .shop-card { padding: 18px 16px; gap: 14px; }
  .shop-icon { width: 46px; height: 46px; font-size: 1.2rem; }
  .shop-name { font-size: 1.2rem; }
  .shop-features li { font-size: .85rem; }
  .featured-badge { top: 12px; right: 12px; padding: 4px 9px; font-size: .62rem; }
}

/* ---------- GSAP animations ---------- */

/* Page loader */
#gsap-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(800px 400px at 50% 40%, rgba(179,77,255,0.25), transparent 60%),
    #0a0612;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#gsap-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gsap-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.gsap-loader-logo {
  width: 120px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: gsapPulse 1.6s ease-in-out infinite;
}
.gsap-loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(179,77,255,.75)) drop-shadow(0 0 48px rgba(232,67,232,.45));
}
@keyframes gsapPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.gsap-loader-brand {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .22em;
  color: #fff;
  text-shadow: 0 0 20px rgba(179,77,255,.7);
}
.gsap-loader-bar {
  width: 220px;
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.gsap-loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #b34dff, #e843f8, #b34dff, transparent);
  animation: gsapBar 1.3s ease-in-out infinite;
}
@keyframes gsapBar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}

/* Particles canvas */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}
.site-main { position: relative; z-index: 1; }
.site-header { z-index: 1001; }

/* Typing cursor on hero title */
.hero-title {
  position: relative;
}
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: .95em;
  margin-left: 6px;
  vertical-align: -0.1em;
  background: linear-gradient(180deg, #b34dff, #e843e8);
  box-shadow: 0 0 12px rgba(179,77,255,.8);
  border-radius: 2px;
  animation: cursorBlink 1s steps(2) infinite;
}
@keyframes cursorBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #gsap-loader, #particles { display: none !important; }
  .typing-cursor { display: none; }
}
/* ---------- Loader safety ---------- */
/* If JS fails to hide the loader, CSS hides it after 4 seconds */
#gsap-loader { animation: loaderAutoHide 0s linear 3.2s forwards; }
@keyframes loaderAutoHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
