/* ============================================
   BLUBOX - MAIN STYLESHEET
   Dark + Emerald Green Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-brands/css/uicons-brands.css');
@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-solid-rounded/css/uicons-solid-rounded.css');
@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-regular-rounded/css/uicons-regular-rounded.css');

:root {
  --bg-primary:   #080f0a;
  --bg-secondary: #0e1a10;
  --bg-card:      rgba(255,255,255,0.03);
  --bg-card-hover:rgba(255,255,255,0.06);
  --glass:        rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --blue-primary: #059669;
  --blue-light:   #10b981;
  --blue-bright:  #34d399;
  --blue-dark:    #064e3b;
  --blue-deeper:  #065f46;
  --accent:       #6ee7b7;
  --text-primary: #f1f5f9;
  --text-muted:   #94a3b8;
  --text-dim:     #64748b;
  --green:        #22c55e;
  --red:          #ef4444;
  --orange:       #f97316;
  --border:       rgba(255,255,255,0.07);
  --shadow:       0 8px 32px rgba(0,0,0,0.6);
  --radius:       14px;
  --radius-sm:    10px;
  --transition:   all 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* BACKGROUND MESH */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(5,150,105,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(6,78,59,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
a { color: var(--blue-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-bright); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--blue-dark); border-radius: 99px; }

/* GLASS CARD */
.card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.card:hover { background: var(--bg-card-hover); border-color: rgba(16,185,129,0.2); }

/* ============================================
   BUTTONS — Pill shape + glow effects
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-deeper));
  color: #fff;
  box-shadow: 0 4px 20px rgba(5,150,105,0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-deeper), var(--blue-primary));
  box-shadow: 0 6px 28px rgba(5,150,105,0.6);
  transform: translateY(-2px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--blue-light);
  color: var(--blue-light);
}
.btn-outline:hover {
  background: rgba(16,185,129,0.12);
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  box-shadow: 0 0 16px rgba(16,185,129,0.2);
}
.btn-glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,0.1); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.btn-success { background: linear-gradient(135deg,#16a34a,#22c55e); color:#fff; box-shadow: 0 4px 16px rgba(34,197,94,0.3); }
.btn-success:hover { box-shadow: 0 6px 22px rgba(34,197,94,0.45); transform: translateY(-2px); }
.btn-danger  { background: linear-gradient(135deg,#dc2626,#ef4444); color:#fff; box-shadow: 0 4px 16px rgba(239,68,68,0.3); }
.btn-danger:hover { box-shadow: 0 6px 22px rgba(239,68,68,0.45); transform: translateY(-2px); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 13px 36px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* FORMS */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-light);
  background: rgba(16,185,129,0.06);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.form-control::placeholder { color: var(--text-dim); }
.input-group { position: relative; }
.input-group .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 16px;
}
.input-group .form-control { padding-left: 40px; }
.input-group .input-icon-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16px;
}
.form-error { color: var(--red); font-size: 12px; margin-top: 5px; display: block; }
.form-hint  { color: var(--text-dim); font-size: 12px; margin-top: 5px; display: block; }

/* BADGE */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-success { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-danger  { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-blue    { background: rgba(16,185,129,0.15); color: var(--blue-bright); }
.badge-orange  { background: rgba(249,115,22,0.15); color: var(--orange); }
.badge-muted   { background: rgba(255,255,255,0.06); color: var(--text-muted); }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: 1px;
}
.navbar-brand img { height: 36px; width: auto; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.navbar-nav .nav-link {
  padding: 8px 14px;
  border-radius: 99px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.navbar-nav .nav-link.active { color: var(--blue-bright); }

/* BOTTOM NAV (Mobile) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}
.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  min-width: 60px;
}
.bottom-nav-item i { font-size: 20px; }
.bottom-nav-item.active { color: var(--blue-bright); }
.bottom-nav-item.active i {
  filter: drop-shadow(0 0 6px rgba(52,211,153,0.6));
}

/* PAGE WRAPPER */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 60px);
  padding-bottom: 80px;
}

/* SECTION */
.section { padding: 24px 0; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* CATEGORY GRID */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(5,150,105,0.06));
  opacity: 0;
  transition: var(--transition);
}
.cat-card:hover { border-color: rgba(16,185,129,0.4); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(5,150,105,0.15); }
.cat-card:hover::before { opacity: 1; }
.cat-icon { font-size: 32px; margin-bottom: 10px; display: block; line-height: 1; }
.cat-icon.facebook  { color: #1877f2; }
.cat-icon.instagram { color: #e1306c; }
.cat-icon.twitter   { color: #1da1f2; }
.cat-icon.tiktok    { color: #ff0050; }
.cat-icon.gmail     { color: #ea4335; }
.cat-icon.snapchat  { color: #fffc00; }
.cat-icon.linkedin  { color: #0a66c2; }
.cat-icon.youtube   { color: #ff0000; }
.cat-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.cat-count { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

/* PRODUCT LIST */
.product-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
  margin-bottom: 10px;
}
.product-item:hover { border-color: rgba(16,185,129,0.25); background: var(--bg-card-hover); }
.product-meta { flex: 1; }
.product-name { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.product-desc { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--blue-bright); white-space: nowrap; }
.product-stock { font-size: 11px; margin-top: 3px; }

/* STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}
.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.blue   { background: rgba(5,150,105,0.15); color: var(--blue-bright); }
.stat-icon.green  { background: rgba(34,197,94,0.15); color: var(--green); }
.stat-icon.orange { background: rgba(249,115,22,0.15); color: var(--orange); }
.stat-icon.red    { background: rgba(239,68,68,0.15); color: var(--red); }
.stat-text { flex: 1; min-width: 0; overflow: hidden; }
.stat-value {
  font-size: 14px;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-label { font-size: 12px; color: var(--text-dim); white-space: nowrap; }

/* WALLET CARD */
.wallet-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-deeper), var(--blue-primary));
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.wallet-card::after {
  content: '';
  position: absolute;
  width: 150px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -80px; right: -60px;
}
.wallet-balance { font-size: 32px; font-weight: 900; font-family: 'Space Grotesk', sans-serif; letter-spacing: -1px; }
.wallet-label   { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 8px; }

/* WALLET CARD ACTIONS */
.wallet-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.wallet-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ACCOUNT NUMBER BOX */
.acct-box {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.acct-number { font-size: 12px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; letter-spacing: 3px; }
.acct-meta   { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ADS SLIDER */
.ads-slider { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; }
.ads-track { display: flex; transition: transform 0.5s ease; }
.ad-slide {
  min-width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.ad-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}
.ad-title { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.ad-message { font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.5; }
.ads-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.ads-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--border); cursor: pointer; transition: var(--transition); }
.ads-dot.active { background: var(--blue-light); width: 18px; }

/* ALERTS */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); color: #4ade80; }
.alert-danger   { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: #f87171; }
.alert-info     { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }
.alert-warning  { background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.25); color: #fdba74; }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px 20px 0 0;
  padding: 28px 22px 30px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: 99px; margin: 0 auto 20px; }
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 18px; }

/* TOAST */
.toast-container {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}
.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
}
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* PWA BANNER */
.pwa-banner {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 16px;
  padding: 14px 18px;
  width: calc(100% - 32px);
  max-width: 400px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  display: none;
  animation: fadeUp 0.4s ease;
}
.pwa-banner.show { display: flex; align-items: center; gap: 12px; }
@keyframes fadeUp { from { opacity:0; transform: translateX(-50%) translateY(20px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.pwa-icon { font-size: 30px; flex-shrink: 0; }
.pwa-text { flex: 1; }
.pwa-text strong { display: block; font-size: 14px; color: #fff; }
.pwa-text span { font-size: 12px; color: rgba(255,255,255,0.7); }
.pwa-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* TICKET / MESSAGES */
.ticket-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.ticket-item:hover { border-color: rgba(16,185,129,0.3); }
.msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 8px;
}
.msg-bubble.user   { background: var(--blue-primary); color: #fff; margin-left: auto; border-radius: 12px 4px 12px 12px; }
.msg-bubble.admin  { background: rgba(255,255,255,0.06); color: var(--text-primary); margin-right: auto; border-radius: 4px 12px 12px 12px; }
.msg-meta { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
.msg-list { display: flex; flex-direction: column; padding: 12px 0; min-height: 200px; max-height: 380px; overflow-y: auto; }

/* LOADING */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,0.12);
  border-top-color: var(--blue-light);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 768px) {
  .bottom-nav { display: block; }
  .navbar-nav { display: none; }
  .page-wrapper { padding-bottom: 100px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .modal-box { max-height: 85vh; }
  .wallet-balance { font-size: 26px; }
}
@media (min-width: 769px) {
  .pwa-banner { bottom: 30px; }
}

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* COPY BTN */
.copy-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  transition: var(--transition);
}
.copy-btn:hover { background: rgba(255,255,255,0.16); }

/* PAGE HEADER */
.page-header {
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.page-header h2 { font-size: 20px; }
.page-header p  { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-dim); }
.empty-state i { font-size: 48px; display: block; margin-bottom: 14px; color: var(--blue-dark); }
.empty-state p { font-size: 14px; color: var(--text-dim); }

/* TABLE */
.bb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bb-table th { background: rgba(255,255,255,0.03); color: var(--text-dim); padding: 10px 12px; text-align: left; font-weight: 700; border-bottom: 1px solid var(--border); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; }
.bb-table td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; }
.bb-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* SUPPORT BUTTON */
.support-fab {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 900;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-deeper));
  border: none;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(5,150,105,0.4);
  transition: var(--transition);
  text-decoration: none;
}
.support-fab:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(5,150,105,0.6); color: #fff; }

/* NOTIFICATION DOT */
.notif-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

/* PROFILE AVATAR */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.avatar-lg { width: 70px; height: 70px; font-size: 26px; }

/* CHANNEL LINKS */
.channel-links { display: flex; gap: 10px; margin-top: 16px; }
.channel-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.channel-btn.whatsapp { background: rgba(37,211,102,0.12); color: #25d366; border: 1px solid rgba(37,211,102,0.2); }
.channel-btn.whatsapp:hover { background: rgba(37,211,102,0.2); }
.channel-btn.telegram { background: rgba(41,182,246,0.12); color: #29b6f6; border: 1px solid rgba(41,182,246,0.2); }
.channel-btn.telegram:hover { background: rgba(41,182,246,0.2); }
.wallet-card.premium-wallet {
    margin-top: 20px; /* Creates clean breathing room below the ads slider */
    position: relative;
    z-index: 1;
}

/* --- PREMIUM WALLET CARD CLEAN FIX --- */
.wallet-card.premium-wallet {
    margin-top: 20px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #6c32ee, #4b1fa6);
    border-radius: 20px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(108, 50, 238, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wallet-card.premium-wallet .wallet-title {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wallet-card.premium-wallet .wallet-amount {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.wallet-card.premium-wallet .account-gen-btn,
.wallet-card.premium-wallet .wallet-account {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.wallet-card.premium-wallet .wallet-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.wallet-card.premium-wallet .wallet-action-link {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.wallet-card.premium-wallet .wallet-action-link:hover,
.wallet-card.premium-wallet .account-gen-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* --- ABSOLUTE ROOT BACKGROUND FIX --- */
body {
    background: url('/assets/img/bg.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    background-color: #0b0f19 !important;
}

html, body, .main-wrapper, .app-container {
    background-color: transparent !important;
}

/* --- CHANGE ALL GREEN CARDS AND ACCENTS TO DARK BLUE --- */
.bg-success, 
[class*="success"], 
.card.bg-success, 
.wallet-card, 
.balance-card,
[class*="wallet"] {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%) !important;
    border-color: #1e3a8a !important;
}

/* Change green buttons to dark blue/bright blue */
.btn-success, 
button.btn-success, 
a.btn-success,
.btn[class*="green"] {
    background: #2563eb !important;
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

/* Make the registration container/card compact */
.card, .register-container, .auth-card {
    padding: 20px !important;
    max-width: 400px;
    margin: 10px auto !important;
    box-sizing: border-box;
}

/* Tighten spacing between form fields */
.form-group, .mb-3 {
    margin-bottom: 10px !important;
}

/* Reduce input field heights and padding */
.form-control, input {
    padding: 8px 12px !important;
    font-size: 13px !important;
    height: auto !important;
}

/* Shrink header elements and logos to save vertical space */
.logo, img {
    max-width: 35px !important;
    margin-bottom: 2px !important;
}

h3, .auth-title {
    font-size: 18px !important;
    margin-bottom: 5px !important;
}

p, .auth-subtitle {
    font-size: 12px !important;
    margin-bottom: 10px !important;
}

.referral-card-modern {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(18, 18, 30, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.referral-left {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.referral-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.profile-card-modern {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(18, 18, 30, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ref-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ref-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.ref-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.ref-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

.ref-code-box {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

#userReferralCode {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #60a5fa;
}

.ref-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.ref-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.ref-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.ref-stat-label {
    font-size: 11px;
    color: #9ca3af;
}

.ref-actions-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.ref-btn-primary, .ref-btn-secondary, .ref-btn-share {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.ref-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ref-btn-secondary {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.ref-btn-share {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 12px 20px;
}

.ref-btn-primary:active, .ref-btn-secondary:active, .ref-btn-share:active {
    transform: scale(0.96);
}







.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin: 15px 0;
}

.marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}



