/* ============================================
   dollarhack — Black & White Premium Theme
   ============================================ */

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

:root {
  --black: #080808;
  --black-2: #0f0f0f;
  --black-3: #141414;
  --black-4: #1a1a1a;
  --border: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.45);
  --text-muted: rgba(255, 255, 255, 0.25);
  --green: #4ade80;
  --yellow: #fbbf24;
  --font-main: 'Space Grotesk', 'Inter', sans-serif;
  --accent: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* ============================================
   NAV
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--text);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: white;
  color: black;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

.nav-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 4px 14px 4px 4px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.nav-profile-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-avatar-img,
.nav-avatar-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-avatar-img {
  object-fit: cover;
}

.nav-avatar-letter {
  background: white;
  color: black;
  font-size: 13px;
  font-weight: 700;
}

.nav-username {
  color: white;
  font-size: 13px;
  font-weight: 500;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: var(--black-2);
  border: 1px solid var(--border);
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
}

/* ============================================
   DASHBOARD NEW PANELS
   ============================================ */

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

@media (max-width: 768px) {
  .dash-grid-2 { grid-template-columns: 1fr; }
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-light);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .3s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background-color: #22c55e;
  border-color: #22c55e;
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: white;
}

/* Session List */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.session-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 8px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.session-item:last-child {
  border-bottom: none;
}
.session-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.session-item.active .session-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.session-details {
  flex: 1;
}
.session-title {
  font-weight: 500;
  font-size: 14px;
  color: white;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.session-meta {
  font-size: 12px;
  color: var(--text-dim);
}
.badge-active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.success .toast-icon { color: #10B981; }
.toast.error .toast-icon { color: #EF4444; }

/* ============================================
   CROPPER MODAL (CARD MODE)
   ============================================ */
.cropper-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cropper-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.cropper-workspace {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Telegram-like circular crop mask overrides */
.cropper-view-box {
  border-radius: 50% !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2) !important;
}
.cropper-face {
  border-radius: 50% !important;
  background-color: transparent !important;
}
/* Hide all the ugly blue borders and points */
.cropper-line,
.cropper-point,
.cropper-dashed,
.cropper-center {
  display: none !important;
}
/* Darken the area outside the circle heavily */
.cropper-modal {
  background-color: rgba(0,0,0,0.85) !important;
  opacity: 1 !important;
}

/* ============================================
   BUTTONS
   ============================================ */

/* --- Shared base --- */
.btn-primary, .btn-ghost, .btn-ice, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
}

.btn-primary:active, .btn-ghost:active, .btn-ice:active, .btn-danger:active {
  transform: scale(0.97) !important;
  opacity: 0.9;
}

/* --- Primary (white) --- */
.btn-primary {
  background: #ffffff;
  color: #0a0a0a;
  padding: 11px 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
  transform: skewX(-20deg);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255,255,255,0.14);
}

.btn-primary:hover::before {
  animation: btn-shine 0.65s ease-out;
}

@keyframes btn-shine {
  100% { left: 200%; }
}

/* --- Ghost (outline) --- */
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  padding: 11px 22px;
  border-color: rgba(255,255,255,0.12);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

/* --- Ice (freeze) --- */
.btn-ice {
  background: rgba(148,210,255,0.08);
  color: rgba(148,210,255,0.85);
  padding: 11px 22px;
  border-color: rgba(148,210,255,0.22);
}

.btn-ice:hover {
  background: rgba(148,210,255,0.14);
  color: rgba(148,210,255,1);
  border-color: rgba(148,210,255,0.38);
  transform: translateY(-1px);
}

.btn-ice:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

/* --- Danger (unlink / destructive) --- */
.btn-danger {
  background: rgba(239,68,68,0.08);
  color: rgba(239,68,68,0.85);
  padding: 11px 22px;
  border-color: rgba(239,68,68,0.22);
}

.btn-danger:hover {
  background: rgba(239,68,68,0.14);
  color: rgba(239,68,68,1);
  border-color: rgba(239,68,68,0.38);
  transform: translateY(-1px);
}

/* --- Size modifier --- */
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ============================================
   HERO
   ============================================ */
body {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 180px 32px 60px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(8,8,8,0.9) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  opacity: 0;
  animation: slideUpFade 0.8s ease forwards 0.2s;
}

.hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 400;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50% { opacity: 0.6; box-shadow: 0 0 12px var(--green); }
}

.hero-title {
  font-size: clamp(64px, 9vw, 108px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.title-thin { font-weight: 300; color: rgba(255,255,255,0.55); }
.title-bold { font-weight: 800; color: #fff; }

.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.01em;
  max-width: 380px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  justify-content: center;
}

/* ---- HERO VISUAL ---- */
.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dollar-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: card-float 5s ease-in-out infinite;
}

.hero-dollar {
  font-family: var(--font-main);
  font-size: 140px;
  font-weight: 700;
  color: white;
  line-height: 1;
  position: relative;
  z-index: 2;
  letter-spacing: -0.06em;
  text-shadow:
    0 0 60px rgba(255,255,255,0.15),
    0 0 120px rgba(255,255,255,0.06);
}

.dollar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 3s ease-in-out infinite;
}

.ring-1 { width: 180px; height: 180px; animation-delay: 0s; }
.ring-2 { width: 230px; height: 230px; animation-delay: 0.6s; border-color: rgba(255,255,255,0.04); }
.ring-3 { width: 280px; height: 280px; animation-delay: 1.2s; border-color: rgba(255,255,255,0.025); }

@keyframes ring-pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.04); }
}

.dollar-spark {
  position: absolute;
  border-radius: 50%;
  background: white;
}

.s1 { width: 4px; height: 4px; top: 22%; left: 18%; opacity: 0.5; animation: spark-blink 2.1s ease infinite; }
.s2 { width: 3px; height: 3px; top: 15%; right: 22%; opacity: 0.35; animation: spark-blink 1.7s ease infinite 0.4s; }
.s3 { width: 5px; height: 5px; bottom: 20%; left: 14%; opacity: 0.4; animation: spark-blink 2.5s ease infinite 0.8s; }
.s4 { width: 3px; height: 3px; bottom: 18%; right: 18%; opacity: 0.3; animation: spark-blink 1.9s ease infinite 1.2s; }

@keyframes spark-blink {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.5); }
}

/* ---- LOADER CARD PREVIEW ---- */
.hero-loader-preview {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-card {
  width: 280px;
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px 22px 20px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 80px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: card-float 4s ease-in-out infinite;
  position: relative;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.loader-top-bar {
  position: absolute;
  top: 14px;
  right: 14px;
}

.lb-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }

.loader-icon {
  margin-bottom: 12px;
  opacity: 0.85;
}

.lc-name {
  font-size: 16px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.lc-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lc-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.lc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lc-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.lc-val {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.lc-green { color: var(--green); }

.lc-wait {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  align-self: flex-start;
}

.lc-progress-wrap {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.lc-progress-bar {
  height: 100%;
  background: white;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.lc-status {
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.04em;
  align-self: flex-end;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 300;
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 120px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.feature-card {
  padding: 32px 28px;
  background: var(--black-2);
  border: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
  cursor: default;
}

.feature-card:hover { background: var(--black-3); }

.features-grid .feature-card + .feature-card {
  border-left: 1px solid var(--border);
}

.features-grid .feature-card:nth-child(4),
.features-grid .feature-card:nth-child(5),
.features-grid .feature-card:nth-child(6) {
  border-top: 1px solid var(--border);
}

.features-grid .feature-card:nth-child(4) {
  border-left: none;
}

.feat-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================
   STATUS
   ============================================ */
.status-section {
  padding: 120px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.status-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.st-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  padding: 12px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.st-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  align-items: center;
  transition: background 0.15s;
}

.st-row:last-child { border-bottom: none; }
.st-row:hover { background: rgba(255,255,255,0.02); }

.st-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  width: fit-content;
  letter-spacing: 0.03em;
}

.st-green {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.st-yellow {
  background: rgba(251, 191, 36, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(251, 191, 36, 0.2);
  animation: pulse-yellow 2s ease infinite;
}

@keyframes pulse-yellow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================
   INFO STRIP
   ============================================ */
.info-strip {
  border-top: 1px solid var(--border);
  padding: 0 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.info-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 48px 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 40px;
}

.info-item:first-child { padding-left: 0; }
.info-item:last-child { padding-right: 0; }

.info-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.info-text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.info-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding: 40px 32px 120px;
  max-width: 900px;
  margin: 0 auto;
}

.section-header {
  opacity: 0;
  animation: slideUpFade 0.8s ease forwards 0.4s;
}

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

.price-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  position: relative;
  transition: border-color 0.4s, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
  opacity: 0;
  animation: slideUpFade 0.8s ease forwards;
}

#price-day { animation-delay: 0.5s; }
#price-month { animation-delay: 0.6s; }
#price-lifetime { animation-delay: 0.7s; }

.price-card:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(255,255,255,0.04);
}

.price-featured {
  background: var(--black-3);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 60px rgba(0,0,0,0.5);
}

.price-featured:hover {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 25px 70px rgba(0,0,0,0.6), 0 0 30px rgba(255,255,255,0.08);
}

.pc-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: black;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.pc-period {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pc-price {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 24px;
  line-height: 1;
}

.pc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pc-list li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
  font-weight: 300;
}

.pc-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.2);
  font-size: 11px;
}

.pc-btn {
  width: 100%;
  padding: 11px;
  font-size: 13px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

.footer-legal {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-left: auto;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   NAV ICON
   ============================================ */
.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.9;
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--black-2);
  padding: 40px 32px;
}

.stats-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.stat-num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 400;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 500px) {
  .stats-inner { gap: 16px; flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-num { font-size: 26px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-left: none !important; }
  .features-grid .feature-card + .feature-card { border-left: none; border-top: 1px solid var(--border); }

  .st-header, .st-row { grid-template-columns: 1.5fr 1fr; }
  .st-header span:nth-child(2), .st-header span:nth-child(4),
  .st-row span:nth-child(2), .st-row span:nth-child(4) { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { margin-left: 0; }
  .nav-links { display: none; }
}

/* ============================================
   AUTH PAGE (LOGIN / REGISTER)
   ============================================ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  position: relative;
  z-index: 10;
  opacity: 0;
  animation: slideUpFade 0.6s ease forwards 0.1s;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
  text-decoration: none;
}

.auth-logo .nav-icon {
  width: 24px;
  height: 24px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-dim);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-main);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.auth-submit {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font-size: 15px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  border-radius: 4px;
  height: 65px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  cursor: pointer;
  position: relative;
}

.cf-logo {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cf-logo span {
  color: #999;
  font-size: 10px;
  font-family: sans-serif;
  margin-top: 2px;
}

.cf-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #ccc;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cf-checkbox.checking {
  border-color: transparent;
  border-top-color: #f6821f;
  border-radius: 50%;
  animation: cf-spin 1s linear infinite;
}

.cf-checkbox.success {
  border-color: #28a745;
  background: #28a745;
}

.cf-checkbox.success::after {
  content: '';
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.cf-text {
  color: #333;
  font-size: 14px;
  font-family: sans-serif;
}

@keyframes cf-spin {
  to { transform: rotate(360deg); }
}

/* CLOUDFLARE INTERSTITIAL OVERLAY */
.cf-overlay {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  color: #333;
}

.cf-overlay-inner {
  max-width: 600px;
  padding: 40px;
  text-align: center;
}

.cf-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-top-color: #f6821f;
  border-radius: 50%;
  animation: cf-spin 1s linear infinite;
  margin: 0 auto 30px;
}

.cf-overlay h1 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #333;
}

.cf-overlay p {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

.cf-ray {
  font-size: 12px;
  color: #999;
  margin-top: 60px;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.auth-footer a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
  transition: color 0.2s;
  cursor: pointer;
}

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

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  display: none;
  margin-bottom: 16px;
}

/* ============================================
   DASHBOARD / CABINET
   ============================================ */
.dashboard-page {
  padding-top: 100px;
  min-height: calc(100vh - 100px);
}

.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

@media (max-width: 800px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUpFade 0.6s ease forwards;
}

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

.dash-user-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dash-avatar {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.dash-avatar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background-color: rgba(0, 0, 0, 0.75);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.dash-avatar:hover::after {
  opacity: 1;
}

.dash-username {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.dash-role {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.dash-nav-link:hover, .dash-nav-link.active {
  background: rgba(255,255,255,0.05);
  color: white;
}

.dash-nav-link.logout {
  color: rgba(239, 68, 68, 0.8);
}
.dash-nav-link.logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

#admin-nav-link:hover {
  background: rgba(74, 222, 128, 0.1) !important;
  border-color: rgba(74, 222, 128, 0.3) !important;
  color: #4ade80 !important;
}

.dash-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  animation: slideUpFade 0.6s ease forwards 0.15s;
}

.dash-panel {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}

.dash-panel-header {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 16px;
}

.sub-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.sub-info p {
  font-size: 13px;
  color: var(--text-dim);
}

.sub-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}

.sub-status.active {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.sub-status.inactive {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.sub-action {
  display: flex;
  gap: 12px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Verification Form Switcher Tabs (Premium Pill & Liquid Glass Design) */
.verification-tabs {
  display: flex;
  margin-bottom: 24px;
  border-radius: 99px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.verification-tabs .tab-btn {
  flex: 1;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  border-radius: 99px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.verification-tabs .tab-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}
.verification-tabs .tab-btn.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FORUM STYLES
   ============================================ */
.forum-container {
  max-width: 1200px;
  margin: 120px auto 120px;
  padding: 0 24px;
}

.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
}

.forum-title-group h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.forum-title-group p {
  color: var(--text-dim);
  font-size: 14px;
}

.forum-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.forum-sidebar {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 100px;
}

.forum-sidebar-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.forum-categories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.forum-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.forum-cat-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.forum-cat-item.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.forum-cat-count {
  font-size: 11px;
  background: var(--black-3);
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

/* Threads List */
.forum-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forum-thread-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.forum-thread-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.forum-thread-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.forum-thread-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black-4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  overflow: hidden;
}

.forum-thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forum-thread-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forum-thread-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.forum-thread-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.forum-thread-meta-author {
  font-weight: 500;
  color: var(--text);
}

.forum-thread-meta-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.badge-admin {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-sub {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-member {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.badge-banned {
  background: rgba(185, 28, 28, 0.15);
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.4);
}

/* Admin Panel Styles */
.admin-table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: white;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr {
  transition: background-color 0.2s;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.admin-badge-active {
  color: var(--green);
  font-weight: 500;
}

.admin-badge-banned {
  color: #ef4444;
  font-weight: 500;
}

.admin-ip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 8px;
}

.admin-ip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  font-size: 13px;
}

.admin-ip-address {
  font-family: monospace;
  color: white;
}

.admin-ip-reason {
  color: var(--text-dim);
  font-size: 11px;
}


.forum-thread-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.forum-thread-replies {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 13px;
}

/* Post Detail Styles */
.thread-detail-container {
  max-width: 1000px;
  margin: 120px auto 120px;
  padding: 0 24px;
}

.thread-header {
  margin-bottom: 32px;
}

.thread-category-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.thread-header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.forum-post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.forum-post {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 180px;
}

.forum-post-author {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.03), inset -10px 0 20px rgba(0, 0, 0, 0.3);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.forum-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black-4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 12px;
  overflow: hidden;
}

.forum-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forum-author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.forum-post-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.forum-post-body {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  white-space: pre-wrap;
  flex: 1;
}

.forum-post-footer {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 12px;
}

/* Reply Editor */
.forum-reply-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.forum-reply-box {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.forum-textarea {
  width: 100%;
  height: 150px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 16px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.forum-textarea:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Create Thread Modal / Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--black-2);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text);
}

.forum-form-group {
  margin-bottom: 20px;
}

.forum-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.forum-input, .forum-select {
  width: 100%;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.forum-input:focus, .forum-select:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.forum-select option {
  background: var(--black-2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .forum-grid {
    grid-template-columns: 1fr;
  }
  
  .forum-sidebar {
    position: static;
  }
  
  .forum-post {
    grid-template-columns: 1fr;
  }
  
  .forum-post-author {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
    min-height: auto;
    padding: 16px 24px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 0;
  }
  
  .forum-author-avatar {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    font-size: 16px;
  }
}

/* Attachment styling */
.forum-attachment-group {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forum-attachment-input-wrapper {
  position: relative;
  display: inline-block;
}

.forum-attachment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.forum-attachment-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.forum-attachment-preview {
  display: none;
  position: relative;
  max-width: 240px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  background: var(--black-3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.forum-attachment-preview.active {
  display: block;
}

.forum-attachment-preview img,
.forum-attachment-preview video {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  display: block;
}

.forum-attachment-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.forum-attachment-remove-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Embedded Media in Posts */
.forum-post-media {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 600px;
  background: var(--black-3);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
}

.forum-post-media img,
.forum-post-media video {
  max-width: 100%;
  max-height: 400px;
  display: block;
  object-fit: contain;
}

/* User Profile Modal */
.user-profile-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.user-profile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.user-profile-card {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.user-profile-overlay.active .user-profile-card {
  transform: translateY(0) scale(1);
}

.user-profile-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.user-profile-close:hover {
  color: white;
}

.user-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.user-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--black-3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: white;
  font-weight: 600;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

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

.user-profile-name {
  font-size: 20px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
}

.user-profile-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: -5px;
}

.user-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.user-profile-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-profile-stat-value {
  font-size: 16px;
  font-weight: 500;
  color: white;
}

/* Delete Button */
.forum-delete-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  -webkit-font-smoothing: antialiased;
}

.forum-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.forum-author-name {
  cursor: pointer;
  transition: opacity 0.2s;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.forum-author-name:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.forum-author-avatar {
  cursor: pointer;
  transition: transform 0.2s;
}
.forum-author-avatar:hover {
  transform: scale(1.05);
}

/* Custom Confirm Modal */
.confirm-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.confirm-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-card {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 340px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.confirm-overlay.active .confirm-card {
  transform: translateY(0) scale(1);
}

.confirm-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.confirm-message {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-btn-cancel {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.confirm-btn-danger {
  padding: 8px 16px;
  background: #dc2626;
  border: 1px solid #b91c1c;
  color: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-btn-danger:hover {
  background: #ef4444;
}

/* ==========================================
   LANGUAGE SWITCHER
========================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.lang-btn:hover {
  color: white;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

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

/* ============================================
   iOS-STYLE LIQUID GLASS & PAGE TRANSITIONS
   ============================================ */

/* Page enter animation — opacity only, no transform (transform on body breaks position:fixed nav) */
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: pageEnter 0.15s ease both;
}

body.page-exit {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Liquid glass — nav upgrade (only when scrolled) */
#navbar.scrolled {
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
}

/* Liquid glass panels */
.dash-panel,
.checkout-card,
.auth-card,
.forum-thread-card,
.forum-sidebar,
.forum-reply-box {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

/* Smooth link transitions */
a, button {
  transition: opacity 0.18s ease, color 0.18s ease, background 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

/* Glass card hover effect */
.price-card,
.dash-panel,
.forum-thread-card {
  transition: border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s ease;
}

/* Sidebar nav link smooth tab transitions */
.dash-section-view {
  animation: pageEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Smooth scroll for all anchor navigation */
html {
  scroll-behavior: smooth;
}

/* Glass modal backdrops */
.cropper-modal-overlay,
.modal-overlay,
.confirm-overlay,
.crypto-modal {
  backdrop-filter: saturate(180%) blur(16px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(16px) !important;
}

/* Liquid glass active nav link indicator */
.nav-links a.active,
.nav-links a:hover {
  color: white;
}

/* Frosted forum cards */
.forum-post {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* iOS-style spring button press */
.btn-primary:active,
.btn-ghost:active,
.btn-ice:active,
.btn-danger:active,
button:active {
  transform: scale(0.96) !important;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
