/* =========================================================
   TRAF.CC Base Styles
   ========================================================= */

/* 1) CSS Variables (theme) */
:root {
  --bg: #070b16;
  --bg-2: #0b1220;
  --bg-3: #0f172a;
  --card: rgba(14, 22, 38, 0.7);
  --card-border: rgba(255, 255, 255, 0.10);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

  --text: #eaf4ff;
  --text-2: #bfe0ff;
  --muted: #99b4d1;

  --primary-500: #22d3ee;
  --primary-600: #0ea5e9;
  --primary-700: #0284c7;

  --accent-500: #6366f1;
  --accent-600: #4f46e5;

  --success-500: #22c55e;
  --warning-500: #f59e0b;
  --danger-500: #ef4444;

  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-bg: rgba(10, 16, 28, 0.72);
  --glass-hover: rgba(255, 255, 255, 0.08);

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
}
/* Pink theme accent override */
.theme-pink {
  --primary-500: #f472b6;  /* pink-400/500 */
  --primary-600: #ec4899;  /* pink-600 */
  --primary-700: #db2777;  /* pink-700 */
  --accent-500: #fb7185;   /* rose-400/500 */
  --accent-600: #f43f5e;   /* rose-500/600 */
}
/* Optional: subtle pink-hover on nav links in this theme */
.theme-pink .nav-link:hover { background: rgba(236,72,153,0.10); color:#fff; }

/* 2) Reset & Base */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  background: radial-gradient(1200px 600px at 20% -10%, #0a1425, #070b16 70%) fixed;
  color: var(--text);
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary-500); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Utilities spacing */
.m-0 { margin: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-4 { margin-top: 1.25rem !important; }
.p-0 { padding: 0 !important; }
.py-4 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.text-center { text-align: center !important; }
.center { display: flex; align-items: center; justify-content: center; }
.w-100 { width: 100% !important; }

/* Custom Modal/Popup Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  animation: fadeIn 0.2s ease forwards;
  padding: 20px;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

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

.modal-box {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  max-width: 460px;
  width: 100%;
  padding: 0;
  animation: slideIn 0.3s ease;
  overflow: hidden;
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.modal-icon.success { color: var(--success-500); }
.modal-icon.error { color: var(--danger-500); }
.modal-icon.warning { color: var(--warning-500); }
.modal-icon.info { color: var(--primary-500); }

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.modal-body {
  padding: 24px 28px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.15);
}

.modal-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.modal-btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.3);
}

.modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.4);
}

.modal-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  border: 1px solid var(--glass-border);
}

.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

@media (max-width: 500px) {
  .modal-box { max-width: 100%; margin: 20px; }
  .modal-header, .modal-body, .modal-footer { padding: 20px; }
}

/* 3) Layout & Containers */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px;
}

.container.wide { max-width: 1300px; }

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

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

/* Site Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar .navbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-logo { width: 36px; height: 36px; }
.brand-text { font-weight: 900; letter-spacing: .4px; color: var(--text); }

.navbar-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.info-line {
  color: var(--primary-500);
  font-size: 14px;
  margin: 12px 0 4px;
}

.nav-link {
  color: var(--text-2);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.nav-link:hover { background: var(--glass-hover); color: #ffffff; text-decoration: none; }
.nav-link.action { color: #e5fdff; border-color: rgba(255,255,255,0.18); }

.balance-pill {
  background: linear-gradient(180deg, rgba(34,211,238,.18), rgba(99,102,241,.16));
  color: var(--text);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
}

.nav-btn { margin-left: 8px; }

.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-toggle { display: inline-flex; align-items: center; gap: 10px; }

.avatar-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-500); color: #051520; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}

.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: rgba(10,16,28,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 8px; display: none;
  box-shadow: 0 18px 42px rgba(0,0,0,.45);
}
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; padding: 8px 10px; color: var(--text); border-radius: 8px; text-decoration: none; }
.dropdown-item:hover { background: var(--glass-hover); text-decoration: none; }
.dropdown-divider { height: 1px; margin: 6px 0; background: rgba(255,255,255,.12); }

.site-main { display: block; margin-top: 0; }

@media (max-width: 768px) {
  .navbar .navbar-wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .navbar-nav { gap: 10px; }
}

/* 3.5) Sidebar & Two-Column Layout */
.main-columns {
  display: grid;
  grid-template-columns: 1fr 320px; /* Fixed width for right column */
  gap: 20px;
  align-items: start;
}

/* Dashboard Layout (used by dashboard.php) */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
}

.main-content {
  min-width: 0; /* Prevents grid overflow */
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 72px; /* below sticky navbar */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 12px;
}

.sidebar-section {
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 8px 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.sidebar-link {
  display: block;
  color: var(--text);
  padding: 8px 10px;
  margin: 6px 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
}
.sidebar-link:hover { background: var(--glass-hover); text-decoration: none; }

.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1001;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 960px) {
  .main-columns,
  .dashboard-layout { grid-template-columns: 1fr; }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile: hide sidebar off-canvas to avoid pushing content down */
  .sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    height: calc(100vh - 58px);
    width: 86%;
    max-width: 320px;
    transform: translateX(-110%);
    transition: transform .2s ease;
    z-index: 1100;
    overflow: auto;
    display: none;
  }
  .sidebar.active { display: block; transform: translateX(0); }

  /* Ensure main content starts immediately on mobile */
  .dashboard-layout { padding-top: 0; }
  .main-content { margin-top: 0; }
}

/* Sidebar 2.1 — visual refresh */
.sidebar.glass {
    width: 260px;
    background: linear-gradient(180deg, rgba(23,28,45,.72), rgba(16,21,36,.64));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 16px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow: auto;
    box-shadow: 0 10px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(6px);
}
.sidebar .brand { display:flex; align-items:center; gap:12px; margin-bottom: 6px; }
.sidebar .logo {
    width:32px; height:32px; border-radius:8px;
    background:#1f6feb; display:flex; align-items:center; justify-content:center;
    color:#fff; font-weight:700;
}
.sidebar .name { font-weight:700; letter-spacing:.2px; }
.sidebar .group { margin-top: 14px; }
.sidebar .group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.55);
    margin: 12px 8px 6px;
    /* NEW: subtle accent line to add structure */
    position: relative;
}
.sidebar .group-title::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: -6px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34,211,238,.35), transparent);
}

.sidebar .menu { display:flex; flex-direction:column; gap:6px; }
.sidebar .menu-item {
    position: relative;
    display:flex; align-items:center; gap:10px;
    padding:10px 14px;
    border-radius:12px;
    color: rgba(255,255,255,.9);
    text-decoration:none;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
    font-weight: 700; /* NEW: bolder links */
}
.sidebar .menu-item::before {
    content:'';
    position:absolute; left:6px; top:9px; bottom:9px; width:3px;
    border-radius:3px; background: transparent;
    transition: background .2s ease, transform .2s ease;
}
.sidebar .menu-item:hover {
    background: rgba(255,255,255,.08);
    color:#fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.sidebar .menu-item:hover::before { background: rgba(120,210,255,.85); transform: scaleX(1.2); }
/* Active state: brighter gradient chip and glow rail */
.sidebar .menu-item.active {
    background: linear-gradient(180deg, rgba(34,211,238,.22), rgba(34,211,238,.12));
    color:#e6f6ff;
    box-shadow: 0 6px 18px rgba(34,211,238,.25), inset 0 0 0 1px rgba(34,211,238,.45);
}
.sidebar .menu-item.active::before { background: #29a8ff; }
/* Pink theme — sidebar hover/active accent */
.theme-pink .sidebar .menu-item:hover::before {
  background: rgba(244,114,182,.85); /* pink glow rail */
}
.theme-pink .sidebar .menu-item.active {
  background: linear-gradient(180deg, rgba(236,72,153,.22), rgba(236,72,153,.12));
  color: #ffeef7;
  box-shadow: 0 6px 18px rgba(236,72,153,.25), inset 0 0 0 1px rgba(236,72,153,.45);
}
.theme-pink .sidebar .menu-item.active::before {
  background: #ec4899;
}
/* Show a “SOON” pill for disabled items */
.sidebar .menu-item.disabled {
    opacity:.7;
    cursor:not-allowed;
    position: relative;
}
.sidebar .menu-item.disabled::after {
    content:'SOON';
    margin-left: auto;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 999px;
    color: #06131b;
    background: linear-gradient(180deg, var(--accent-600), var(--accent-500));
    border: 1px solid rgba(99,102,241,.6);
}

@media (max-width: 991px) {
    .sidebar.glass { position: static; height: auto; top: 0; }
}

/* 4) Cards */
.card {
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00));
}

.card-body { padding: 18px; }
.card-footer { padding: 14px 18px; border-top: 1px solid var(--glass-border); }

.panel-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 18px;
}

/* 5) Typography */
h1, h2, h3, h4, h5, h6 { color: var(--text); margin: 0 0 10px; font-weight: 900; }
.muted { color: var(--muted); }

/* 6) Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition: transform .06s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.35); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn.btn-lg { padding: 12px 18px; border-radius: 14px; }

.btn-primary {
  background: linear-gradient(180deg, var(--primary-600), var(--primary-500));
  color: #06131b;
  border-color: rgba(34,211,238,.6);
  box-shadow: 0 8px 18px rgba(34,211,238,.28);
}
.btn-primary:hover { filter: brightness(1.06); }
/* Compatibility: support "btn primary" class usage */
.btn.primary {
  background: linear-gradient(180deg, var(--primary-600), var(--primary-500));
  color: #06131b;
  border: 1px solid color-mix(in hsl, var(--primary-600) 60%, transparent);
  box-shadow: 0 8px 18px color-mix(in hsl, var(--primary-500) 28%, transparent);
}
.btn.primary:hover { filter: brightness(1.06); }
/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in hsl, red, white)) {
  .btn.primary { border-color: rgba(236,72,153,.45); box-shadow: 0 8px 18px rgba(236,72,153,.22); }
  .theme-pink .btn-primary { border-color: rgba(236,72,153,.45); box-shadow: 0 8px 18px rgba(236,72,153,.22); }
}

.btn-success {
  background: linear-gradient(180deg, #16a34a, var(--success-500));
  color: #04140a;
  border-color: rgba(34,197,94,.6);
  box-shadow: 0 8px 18px rgba(34,197,94,.28);
}
.btn-warning {
  background: linear-gradient(180deg, #f59e0b, #fbbf24);
  color: #2a1600;
  border-color: rgba(251,191,36,.6);
}
.btn-danger {
  background: linear-gradient(180deg, #ef4444, #f87171);
  color: #2a0000;
  border-color: rgba(248,113,113,.6);
}
.btn-info {
  background: linear-gradient(180deg, #3b82f6, #60a5fa);
  color: #03122e;
  border-color: rgba(96,165,250,.6);
}

.btn-outline-primary {
  background: transparent;
  border-color: rgba(34,211,238,.6);
  color: var(--primary-500);
}

/* 7) Chips */
.chip, .logo-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
  font-weight: 800;
  gap: 8px;
}

/* 8) Hero sections */
.hero,
.hero-xl,
.page-hero {
  position: relative;
  background: radial-gradient(900px 400px at 80% -10%, #0a1425, #070b16 70%) fixed;
}

.hero-xl { padding: 0 0 32px 0; }

.zx-gradient {
  background:
    radial-gradient(800px 500px at -10% -10%, rgba(8, 147, 255, 0.10), transparent 60%),
    radial-gradient(800px 500px at 110% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
    var(--bg);
}

/* 9) Forms */
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}

/* 9a) Auth page layout */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 32px 0 48px;
}

.auth-page .container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.auth-card .card-body { padding: 24px; }

.tab-nav {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.tab-btn.active {
  background: linear-gradient(180deg, var(--primary-600), var(--primary-500));
  color: #041018;
  border-color: rgba(34,211,238,0.5);
}

/* 10) Faucet hero (CLAIM area) */
.theme-faucet .fz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(34,211,238,0.15) 0%, rgba(99,102,241,0.12) 100%);
  border-bottom: 1px solid rgba(34,211,238,0.25);
}

.fz-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fz-icon {
  font-size: 1.8rem;
  opacity: 0.9;
}

.fz-title {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}

.fz-sub {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 2px 0 0;
}

.fz-meta {
  display: flex;
  align-items: center;
}

.fz-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  min-width: 80px;
}

.fz-badge-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fz-badge-time {
  font-size: 1rem;
  font-weight: 900;
  color: #ef4444;
  font-family: 'Courier New', monospace;
}

.fz-body { display: grid; gap: 16px; }
.fz-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.fz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-600), var(--primary-500));
  box-shadow: inset 0 0 8px rgba(0,0,0,.35);
}

.btn-claim-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #06131b;
  background: linear-gradient(180deg, var(--primary-600), var(--primary-500));
  border: 1px solid rgba(34,211,238,.6);
  box-shadow: 0 10px 26px rgba(34,211,238,.35);
}
.btn-claim-large:disabled {
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(20%);
}

/* Captcha area */
.fz-captcha {
  background: rgba(255,255,255,0.04);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.14);
}
.captcha-question {
    color: #ff4da6; /* pink accent */
    font-weight: 800;
}
.fz-captcha .fz-captcha-title {
    color: #ff4da6;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.captcha-error {
    color: #ff4d4f; /* red */
    font-weight: 700;
    margin-bottom: 6px;
}
.fz-captcha-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
@media (max-width: 640px) { .fz-captcha-row { grid-template-columns: 1fr; } }

/* 11) Daily Bonus Streak – 2 days per row with proper state styling */
.theme-bonus .streak-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.streak-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  min-height: 70px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text);
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: all 0.3s ease;
  position: relative;
}

.theme-bonus .streak-badge .streak-amount {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8bdcff;
  opacity: 0.9;
}

/* Next claimable day - glowing animation */
.streak-badge--next {
  background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary-500) 100%);
  color: #06131b;
  border-color: rgba(34,211,238,.6);
  box-shadow: 0 0 20px rgba(34,211,238,.4);
  animation: pulseGlow 2s infinite ease-in-out;
}

.streak-badge--next .streak-amount {
  color: #06131b;
  opacity: 1;
}

/* Claimed/completed days - ghosted with overlay */
.streak-badge--done {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: #6b7280;
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  opacity: 0.5;
}

.streak-badge--done::before {
  content: "CLAIMED";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(34,197,94,0.9);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.streak-badge--done .streak-amount {
  opacity: 0.3;
  color: #6b7280;
}

/* Future/pending days - muted appearance */
.streak-badge--pending {
  background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  color: #9ca3af;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  opacity: 0.7;
}

.streak-badge--pending .streak-amount {
  color: #6b7280;
  opacity: 0.8;
}

.btn-bonus {
  background: linear-gradient(180deg, var(--accent-600), var(--accent-500));
  color: #06091b;
  border: 1px solid rgba(99,102,241,.55);
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-bonus:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

/* Moving glow animation for next claimable day */
@keyframes pulseGlow {
  0% { 
    transform: scale(1);
    box-shadow: 0 0 20px rgba(34,211,238,.4), 0 0 40px rgba(34,211,238,.2);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(34,211,238,.6), 0 0 60px rgba(34,211,238,.3);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 0 20px rgba(34,211,238,.4), 0 0 40px rgba(34,211,238,.2);
  }
}

/* 12) Tables (claims/admin) */
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--glass-border);
}
tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  color: #06131b;
}
.badge.ok, .badge-success { background: var(--success-500); }
.badge-warning { background: var(--warning-500); }
.badge-muted, .muted-badge { background: rgba(255,255,255,0.22); color: var(--text); }

/* 13) Home/index cards layout helpers */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.modern .card { background: var(--glass-bg); border: 1px solid var(--glass-border); }
.card.big { padding: 18px; }

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

/* 14) Misc utilities used in templates */
.prose p { margin: 0 0 10px; color: var(--text-2); }
.logo-chip { background: rgba(255,255,255,0.08); }

/* Responsive adjustments */
@media (max-width: 960px) {
  .main-columns,
  .dashboard-layout { 
    grid-template-columns: 1fr; 
  }
  
  .theme-bonus .streak-badges {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .theme-bonus .streak-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .streak-badge {
    min-height: 60px;
    padding: 10px 6px;
  }
  
  .fz-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* NEW: High-contrast headings */
.dashboard-title {
  color: #e7fdff; /* very bright for H1 */
  text-shadow: 0 2px 18px rgba(34,211,238,.25);
  letter-spacing: .3px;
}
.panel-head h2 {
  color: var(--primary-500); /* cyan accent for H2 */
  text-shadow: 0 1px 10px rgba(34,211,238,.20);
  letter-spacing: .2px;
}
.balance-card .card-title {
  color: var(--accent-500); /* purple accent for small section titles */
}

/* NEW: Clickable "Your Ads" rows */
.posts-table tbody tr {
  cursor: pointer;
  transition: background .15s ease, transform .02s ease;
}
.posts-table tbody tr:hover { background: rgba(255,255,255,.04); }
.posts-table tbody tr:active { transform: scale(.998); }
.posts-table th.balance-head,
.posts-table td.balance-left { text-align: center; }
.posts-table .balance-left {
  font-weight: 700;
  color: #b7f1ff;
  white-space: nowrap;
}
.posts-table .balance-left.spent {
  color: #94a3b8;
  opacity: 0.85;
}

/* NEW: Compact inline edit button */
.btn.btn-xs {
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 8px;
  margin-left: 8px;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.35); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn.btn-lg { padding: 12px 18px; border-radius: 14px; }

.btn-primary {
  background: linear-gradient(180deg, var(--primary-600), var(--primary-500));
  color: #06131b;
  border-color: rgba(34,211,238,.6);
  box-shadow: 0 8px 18px rgba(34,211,238,.28);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-success {
  background: linear-gradient(180deg, #16a34a, var(--success-500));
  color: #04140a;
  border-color: rgba(34,197,94,.6);
  box-shadow: 0 8px 18px rgba(34,197,94,.28);
}
.btn-warning {
  background: linear-gradient(180deg, #f59e0b, #fbbf24);
  color: #2a1600;
  border-color: rgba(251,191,36,.6);
}
.btn-danger {
  background: linear-gradient(180deg, #ef4444, #f87171);
  color: #2a0000;
  border-color: rgba(248,113,113,.6);
}
.btn-info {
  background: linear-gradient(180deg, #3b82f6, #60a5fa);
  color: #03122e;
  border-color: rgba(96,165,250,.6);
}

.btn-outline-primary {
  background: transparent;
  border-color: rgba(34,211,238,.6);
  color: var(--primary-500);
}

/* 7) Chips */
.chip, .logo-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
  font-weight: 800;
  gap: 8px;
}

/* 8) Hero sections */
.hero,
.hero-xl,
.page-hero {
  position: relative;
  background: radial-gradient(900px 400px at 80% -10%, #0a1425, #070b16 70%) fixed;
}
.hero-xl { padding: 0 0 32px 0; }
.page-hero.gradient { padding: 36px 0; }

/* Remove top padding on the first hero container to eliminate gap below navbar */
.hero.hero-xl > .container,
.hero.hero-xl > .container.wide {
  padding-top: 0;
}

.zx-gradient {
  background:
    radial-gradient(800px 500px at -10% -10%, rgba(8, 147, 255, 0.10), transparent 60%),
    radial-gradient(800px 500px at 110% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
    var(--bg);
}

/* 9) Forms */
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}

/* 10) Faucet hero (CLAIM area) */
.theme-faucet .fz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(34,211,238,0.15) 0%, rgba(99,102,241,0.12) 100%);
  border-bottom: 1px solid rgba(34,211,238,0.25);
}

.fz-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fz-icon {
  font-size: 1.8rem;
  opacity: 0.9;
}

.fz-title {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}

.fz-sub {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 2px 0 0;
}

.fz-meta {
  display: flex;
  align-items: center;
}

.fz-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  min-width: 80px;
}

.fz-badge-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fz-badge-time {
  font-size: 1rem;
  font-weight: 900;
  color: #ef4444;
  font-family: 'Courier New', monospace;
}

.fz-body { display: grid; gap: 16px; }
.fz-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.fz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-600), var(--primary-500));
  box-shadow: inset 0 0 8px rgba(0,0,0,.35);
}

.btn-claim-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #06131b;
  background: linear-gradient(180deg, var(--primary-600), var(--primary-500));
  border: 1px solid rgba(34,211,238,.6);
  box-shadow: 0 10px 26px rgba(34,211,238,.35);
}
.btn-claim-large:disabled {
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(20%);
}

/* Captcha area */
.fz-captcha {
  background: rgba(255,255,255,0.04);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.14);
}
.captcha-question {
    color: #ff4da6; /* pink */
    font-weight: 800;
}
.fz-captcha .fz-captcha-title {
    color: #ff4da6;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.claim-status {
    font-weight: 700;
    margin-bottom: 8px;
}
.claim-status--success {
    color: #00c853; /* green */
}
.claim-status--error {
    color: #ff4d4f; /* red */
}
.claim-status--inline {
    text-align: right;
}

/* Gray-out captcha during cooldown */
.fz-captcha.is-disabled {
    opacity: 0.6;
}
.fz-captcha.is-disabled .form-control {
    background-color: #202a38;
    color: #8a93a6;
    cursor: not-allowed;
}
.fz-captcha-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
@media (max-width: 640px) { .fz-captcha-row { grid-template-columns: 1fr; } }

/* 11) Daily Bonus Streak – 2 days per row with proper state styling */
.theme-bonus .streak-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.streak-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  min-height: 70px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text);
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: all 0.3s ease;
  position: relative;
}

.theme-bonus .streak-badge .streak-amount {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8bdcff;
  opacity: 0.9;
}

/* Next claimable day - glowing animation */
.streak-badge--next {
  background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary-500) 100%);
  color: #06131b;
  border-color: rgba(34,211,238,.6);
  box-shadow: 0 0 20px rgba(34,211,238,.4);
  animation: pulseGlow 2s infinite ease-in-out;
}

.streak-badge--next .streak-amount {
  color: #06131b;
  opacity: 1;
}

/* Claimed/completed days - ghosted with overlay */
.streak-badge--done {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: #6b7280;
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  opacity: 0.5;
}

.streak-badge--done::before {
  content: "CLAIMED";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(34,197,94,0.9);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.streak-badge--done .streak-amount {
  opacity: 0.3;
  color: #6b7280;
}

/* Future/pending days - muted appearance */
.streak-badge--pending {
  background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  color: #9ca3af;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  opacity: 0.7;
}

.streak-badge--pending .streak-amount {
  color: #6b7280;
  opacity: 0.8;
}

.btn-bonus {
  background: linear-gradient(180deg, var(--accent-600), var(--accent-500));
  color: #06091b;
  border: 1px solid rgba(99,102,241,.55);
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-bonus:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

/* Moving glow animation for next claimable day */
@keyframes pulseGlow {
  0% { 
    transform: scale(1);
    box-shadow: 0 0 20px rgba(34,211,238,.4), 0 0 40px rgba(34,211,238,.2);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(34,211,238,.6), 0 0 60px rgba(34,211,238,.3);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 0 20px rgba(34,211,238,.4), 0 0 40px rgba(34,211,238,.2);
  }
}

/* 12) Tables (claims/admin) */
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--glass-border);
}
tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  color: #06131b;
}
.badge.ok, .badge-success { background: var(--success-500); }
.badge-warning { background: var(--warning-500); }
.badge-muted, .muted-badge { background: rgba(255,255,255,0.22); color: var(--text); }

/* 13) Home/index cards layout helpers */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.modern .card { background: var(--glass-bg); border: 1px solid var(--glass-border); }
.card.big { padding: 18px; }

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

/* 14) Misc utilities used in templates */
.prose p { margin: 0 0 10px; color: var(--text-2); }
.logo-chip { background: rgba(255,255,255,0.08); }

/* Responsive adjustments */
@media (max-width: 960px) {
  .main-columns,
  .dashboard-layout { 
    grid-template-columns: 1fr; 
  }
  
  .theme-bonus .streak-badges {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .theme-bonus .streak-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .streak-badge {
    min-height: 60px;
    padding: 10px 6px;
  }
  
  .fz-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}