/* ═══════════════════════════════════════════════════════
   PTC SCRIPT - Main Stylesheet
   Purple Theme | White Background | Professional
═══════════════════════════════════════════════════════ */

:root {
  --purple:       #7c3aed;
  --purple-light: #8b5cf6;
  --purple-dark:  #6d28d9;
  --purple-soft:  #ede9fe;
  --white:        #ffffff;
  --bg:           #ffffff;
  --card-bg:      #faf9ff;
  --text:         #1f2937;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --shadow-sm:    0 2px 8px rgba(124,58,237,.08);
  --shadow:       0 4px 20px rgba(124,58,237,.12);
  --shadow-lg:    0 8px 40px rgba(124,58,237,.18);
  --radius:       14px;
  --radius-sm:    10px;
  --radius-lg:    20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--purple-light); border-radius: 10px; }

/* ─── BUTTONS ─── */
.btn-purple {
  background: var(--purple);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: .55rem 1.4rem;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.btn-purple:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,.35);
  color: #fff;
}
.btn-purple:active { transform: translateY(0); }
.btn-purple-lg {
  padding: .8rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius);
}
.btn-outline-purple {
  background: transparent;
  color: var(--purple) !important;
  border: 2px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: .5rem 1.4rem;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.btn-outline-purple:hover {
  background: var(--purple);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,.25);
}
.btn-danger-sm {
  background: #fee2e2;
  color: #dc2626 !important;
  border: none;
  border-radius: 8px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-danger-sm:hover { background: #fca5a5; transform: translateY(-1px); }

.btn-success-sm {
  background: #d1fae5;
  color: #059669 !important;
  border: none;
  border-radius: 8px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-success-sm:hover { background: #a7f3d0; transform: translateY(-1px); }

/* ─── CARDS ─── */
.card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); }
.card-body { padding: 1.2rem; }

.stat-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all .3s;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.stat-icon {
  width: 46px; height: 46px;
  background: var(--purple-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--purple);
}
.stat-label { font-size: .72rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem; }
.stat-value { font-size: 1.3rem; font-weight: 700; color: var(--text); line-height: 1; }

/* ─── NAVBAR ─── */
.main-navbar {
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  padding: .8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.navbar-brand-text { font-weight: 700; font-size: 1.3rem; color: var(--purple) !important; }
.nav-link { color: var(--text) !important; font-weight: 500; font-size: .9rem; padding: .5rem .9rem; border-radius: 8px; transition: all .2s; }
.nav-link:hover, .nav-link.active { color: var(--purple) !important; background: var(--purple-soft); }
.hamburger { background: none; border: none; cursor: pointer; padding: .3rem; }
.hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--text); border-radius: 4px;
  transition: all .3s; margin: 5px 0;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }
.mobile-menu {
  display: none; background: #fff;
  border-bottom: 1.5px solid var(--border);
  padding: 1rem;
}
.mobile-menu.open { display: block; animation: slideDown .25s ease; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

/* ─── SIDEBAR (Dashboard) ─── */
.sidebar {
  width: 260px;
  min-width: 260px;
  min-height: 100vh;
  background: #fff;
  border-right: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: visible;
  flex-shrink: 0;
  z-index: 100;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--purple-light); border-radius:4px; }
.sidebar-logo {
  padding: 1.5rem 1.2rem;
  border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center; gap: .8rem;
}
.sidebar-logo .logo-icon {
  width: 42px; height: 42px; background: var(--purple);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; flex-shrink: 0;
}
.sidebar-logo .logo-text { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.sidebar-nav { padding: 1rem .8rem; }
.sidebar-nav-label { font-size: .7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; padding: .5rem .7rem; margin-top: .5rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  color: var(--text-muted) !important; font-weight: 500; font-size: .9rem;
  text-decoration: none; transition: all .2s; margin-bottom: .2rem;
}
.sidebar-link i { width: 20px; text-align: center; font-size: 1rem; }
.sidebar-link:hover, .sidebar-link.active { background: var(--purple-soft); color: var(--purple) !important; }
.sidebar-link.active i { color: var(--purple); }
.main-content { display: flex; flex-direction: column; flex: 1; min-height: 100vh; min-width: 0; }

/* Dashboard Navbar */
.dash-topbar {
  background: #fff; border-bottom: 1.5px solid var(--border);
  padding: .8rem 1.5rem; margin: -1.5rem -1.5rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.topbar-user { display: flex; align-items: center; gap: .8rem; }
.user-avatar {
  width: 38px; height: 38px; background: var(--purple-soft);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--purple); font-size: 1rem; font-weight: 600;
}

/* ─── MOBILE SIDEBAR ─── */
@media (max-width: 991.98px) {
  .sidebar { position: fixed; transform: translateX(-100%); height: 100vh; }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main-content { flex: 1; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.4); z-index: 998;
  }
  .sidebar-overlay.show { display: block; }
}

/* ─── HERO (Index) ─── */
.hero-section {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f0fdf4 100%);
  padding: 3.5rem 0 2.5rem;
  min-height: 70vh;
  display: flex; align-items: center;
}
.hero-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--purple-soft); color: var(--purple);
  padding: .35rem .9rem; border-radius: 50px;
  font-size: .78rem; font-weight: 600; margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; color: var(--text); line-height: 1.2;
  margin-bottom: .9rem;
}
.hero-title span { color: var(--purple); }
.hero-desc { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.8rem; line-height: 1.7; }

/* ─── SECTION ─── */
.section { padding: 3rem 0; }
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: .4rem; }
.section-sub { color: var(--text-muted); margin-bottom: 2.5rem; }

/* ─── FORMS ─── */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
  outline: none;
}
.form-label { font-weight: 500; font-size: .875rem; color: #374151; margin-bottom: .4rem; }

/* ─── MODAL ─── */
.custom-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(15,10,40,.5); backdrop-filter: blur(4px);
  z-index: 2000; align-items: center; justify-content: center;
}
.custom-modal.open { display: flex; animation: fadeIn .2s ease; }
.modal-box {
  background: #fff; border-radius: 24px;
  padding: 2.5rem; max-width: 440px; width: 90%;
  box-shadow: 0 25px 80px rgba(0,0,0,.2);
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: #f3f4f6; border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: background .2s;
}
.modal-close:hover { background: #e5e7eb; }

/* ─── BADGES ─── */
.badge-active   { background: #d1fae5; color: #059669; }
.badge-inactive { background: #f3f4f6; color: #6b7280; }
.badge-paused   { background: #fef3c7; color: #d97706; }
.badge-complete { background: #dbeafe; color: #2563eb; }
.badge-pending  { background: #fef3c7; color: #d97706; }
.badge-failed   { background: #fee2e2; color: #dc2626; }
.status-badge { padding: .25rem .75rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }

/* ─── AD CARDS (PTC) ─── */
.ad-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .3s; position: relative;
}
.ad-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ad-card.viewed { opacity: .6; }
.ad-card.viewed::after {
  content: '✓ Viewed'; position: absolute; top: .6rem; right: .6rem;
  background: #d1fae5; color: #059669; font-size: .7rem; font-weight: 600;
  padding: .2rem .6rem; border-radius: 50px;
}
.ad-card-body { padding: 1.2rem; }
.ad-site-name { font-weight: 600; font-size: .95rem; margin-bottom: .25rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-site-desc { font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ad-reward { display: flex; align-items: center; gap: .4rem; color: var(--purple); font-weight: 700; font-size: .9rem; }
.ad-timer-badge { background: var(--purple-soft); color: var(--purple); padding: .25rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }

/* ─── QUICK ACTIONS ─── */
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem .8rem;
  text-decoration: none; color: var(--text);
  transition: all .25s; text-align: center;
}
.quick-btn:hover { background: var(--purple-soft); border-color: var(--purple); color: var(--purple); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.quick-btn i { font-size: 1.5rem; color: var(--purple); }
.quick-btn span { font-size: .8rem; font-weight: 500; }

/* ─── TABLES ─── */
.table-custom { width: 100%; border-collapse: collapse; }
.table-custom th {
  background: var(--card-bg); color: var(--text-muted);
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; padding: .9rem 1rem; border-bottom: 1.5px solid var(--border);
}
.table-custom td { padding: .9rem 1rem; border-bottom: 1px solid #f3f4f6; font-size: .875rem; vertical-align: middle; }
.table-custom tr:last-child td { border-bottom: none; }
.table-custom tr:hover td { background: #faf9ff; }
.table-responsive { overflow-x: auto; border-radius: var(--radius); border: 1.5px solid var(--border); }

/* ─── TIMER PAGE ─── */
.timer-circle {
  width: 140px; height: 140px;
  background: var(--purple-soft);
  border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; margin: 0 auto;
  border: 4px solid var(--purple);
  box-shadow: 0 0 0 8px rgba(124,58,237,.1);
}
.timer-number { font-size: 2.8rem; font-weight: 800; color: var(--purple); line-height: 1; }
.timer-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; }

/* ─── ALERTS ─── */
.alert-purple { background: var(--purple-soft); border: 1.5px solid rgba(124,58,237,.2); color: var(--purple); border-radius: var(--radius-sm); padding: .9rem 1.2rem; font-size: .875rem; }
.alert-success { background: #d1fae5; border: 1.5px solid #a7f3d0; color: #065f46; border-radius: var(--radius-sm); padding: .9rem 1.2rem; font-size: .875rem; }
.alert-danger { background: #fee2e2; border: 1.5px solid #fca5a5; color: #991b1b; border-radius: var(--radius-sm); padding: .9rem 1.2rem; font-size: .875rem; }

/* ─── HOW IT WORKS ─── */
.step-circle {
  width: 60px; height: 60px; background: var(--purple-soft);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--purple); font-size: 1.4rem; margin: 0 auto 1rem; font-weight: 700;
}

/* ─── PAYMENT METHODS ─── */
.payment-badge {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: .8rem 1.5rem;
  font-weight: 600; font-size: .9rem; color: var(--text);
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .2s;
}
.payment-badge:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }

/* ─── FOOTER ─── */
.main-footer {
  background: #faf9ff; border-top: 1.5px solid var(--border);
  padding: 2.5rem 0 1.5rem; margin-top: auto;
}
.footer-bottom { border-top: 1.5px solid var(--border); padding-top: 1.5rem; margin-top: 1.5rem; text-align: center; font-size: .8rem; color: var(--text-muted); }

/* ─── PAGE HEADER ─── */
.page-header { margin-bottom: 1.5rem; }
.page-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.page-header p { font-size: .875rem; color: var(--text-muted); }

/* ─── REFERRAL LINK BOX ─── */
.ref-link-box {
  background: var(--card-bg); border: 1.5px dashed var(--purple);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.ref-link-box input { background: transparent; border: none; outline: none; flex: 1; font-size: .875rem; color: var(--text); min-width: 200px; }
.copy-btn { background: var(--purple); color: #fff; border: none; border-radius: 8px; padding: .4rem .9rem; font-size: .8rem; font-weight: 500; cursor: pointer; transition: all .2s; white-space: nowrap; }
.copy-btn:hover { background: var(--purple-dark); }

/* ─── UTILITIES ─── */
.text-purple { color: var(--purple) !important; }
.bg-purple   { background: var(--purple) !important; }
.bg-purple-soft { background: var(--purple-soft) !important; }
.fw-700 { font-weight: 700 !important; }
.fw-600 { font-weight: 600 !important; }
.rounded-custom { border-radius: var(--radius) !important; }
.divider { height: 1.5px; background: var(--border); margin: 1.5rem 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; opacity: .3; margin-bottom: 1rem; display: block; color: var(--purple); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-card { padding: 1.5rem; }
  .stat-value { font-size: 1.2rem; }
  .section { padding: 2.5rem 0; }
}

/* ─── CHANGE 4: TOAST NOTIFICATIONS ─── */
#toast-container {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  pointer-events: none;
}
.toast-msg {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  padding: .85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 260px;
  max-width: 340px;
  pointer-events: auto;
  border-left: 4px solid var(--purple);
  animation: toastIn .3s cubic-bezier(.4,0,.2,1);
  font-size: .875rem;
}
.toast-msg.success { border-color: #059669; }
.toast-msg.error   { border-color: #dc2626; }
.toast-msg.info    { border-color: #2563eb; }
.toast-msg.warning { border-color: #d97706; }
.toast-icon { width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.9rem; }
.toast-msg.success .toast-icon { background:#d1fae5;color:#059669; }
.toast-msg.error   .toast-icon { background:#fee2e2;color:#dc2626; }
.toast-msg.info    .toast-icon { background:#dbeafe;color:#2563eb; }
.toast-msg.warning .toast-icon { background:#fef3c7;color:#d97706; }
.toast-msg          .toast-icon { background:var(--purple-soft);color:var(--purple); }
.toast-title { font-weight:600; color:var(--text); line-height:1.2; }
.toast-body  { font-size:.8rem; color:var(--text-muted); line-height:1.3; }
.toast-close { margin-left:auto;background:none;border:none;cursor:pointer;color:var(--text-muted);font-size:.9rem;flex-shrink:0;padding:0 .2rem; }
.toast-close:hover { color:var(--text); }
@keyframes toastIn  { from{opacity:0;transform:translateX(40px);} to{opacity:1;transform:translateX(0);} }
@keyframes toastOut { from{opacity:1;transform:translateX(0);}    to{opacity:0;transform:translateX(40px);} }
.toast-msg.removing { animation: toastOut .25s ease forwards; }
/* ─── LAYOUT WRAPPER — flex container for sidebar + content ─── */
.layout-wrapper {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  width: 100%;
}

/* Admin sidebar uses same sticky flex approach */
.sidebar {
  /* sticky so it stays visible while page scrolls */
  position: sticky;
  top: 0;
}

/* Mobile: layout wrapper stacks */
@media (max-width: 991.98px) {
  .layout-wrapper {
    display: block;
  }
  .sidebar {
    position: fixed !important;
    top: 0; left: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 999;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile First Fixes
   Targets: 768px (tablets) and 575px (phones)
═══════════════════════════════════════════════════════ */

/* ─── PAGE BODY PADDING ─── */
@media (max-width: 991.98px) {
  .page-body { padding: 1rem !important; overflow-x: hidden !important; }
  .topbar { padding: .7rem 1rem; }
}
@media (max-width: 575.98px) {
  .page-body { padding: .75rem !important; }
}

/* ─── CARDS ─── */
@media (max-width: 575.98px) {
  .card { border-radius: 12px; }
  .card-body { padding: .9rem; }
  .stat-card { padding: .8rem; flex-direction: row; align-items: center; gap: .75rem; }
  .stat-icon { width: 38px; height: 38px; font-size: .9rem; flex-shrink: 0; }
  .stat-value { font-size: 1.1rem; }
  .stat-label { font-size: .65rem; }
}

/* ─── STAT CARDS ROW ─── */
@media (max-width: 575.98px) {
  .row.g-4 > [class*="col-"] { padding: .35rem; }
  .row.g-3 > [class*="col-"] { padding: .3rem; }
}

/* ─── QUICK ACTIONS — dashboard ─── */
@media (max-width: 575.98px) {
  .quick-btn { padding: .6rem .4rem; font-size: .72rem; }
  .quick-btn i { font-size: 1.1rem; }
}

/* ─── TABLES ─── */
@media (max-width: 767.98px) {
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-custom th, .table-custom td { font-size: .75rem; padding: .5rem .5rem; white-space: nowrap; }
}
@media (max-width: 575.98px) {
  .table-custom th, .table-custom td { font-size: .7rem; padding: .4rem .4rem; }
}

/* ─── FORMS ─── */
@media (max-width: 575.98px) {
  .form-control { font-size: .85rem; padding: .5rem .75rem; }
  .form-label { font-size: .82rem; }
  .btn-purple-lg { padding: .65rem 1rem; font-size: .9rem; }
}

/* ─── WITHDRAW PAGE ─── */
@media (max-width: 767.98px) {
  .currency-card { padding: .5rem .3rem !important; }
  .currency-card .fw-700 { font-size: .8rem; }
  .currency-card small { font-size: .65rem; }
  #currencyGrid .col-4 { padding: .25rem; }
}

/* ─── DASHBOARD STAT CARDS (top 4) ─── */
@media (max-width: 575.98px) {
  .row.g-4 .stat-card .stat-value { font-size: 1rem; }
  .row.g-4 .stat-card { padding: .75rem; }
}

/* ─── BREADCRUMB / PAGE TITLE ─── */
@media (max-width: 575.98px) {
  .fw-600[style*="font-size:1rem"] { font-size: .9rem !important; }
}

/* ─── TOPBAR ─── */
@media (max-width: 575.98px) {
  .topbar { padding: .6rem .75rem; }
  .topbar-user .user-avatar { width: 32px; height: 32px; font-size: .8rem; }
  .topbar-user div { display: none; } /* hide email on tiny screens */
}

/* ─── EARNINGS BREAKDOWN / ACCOUNT SUMMARY ─── */
@media (max-width: 991.98px) {
  .row.g-4 > .col-lg-6 { margin-bottom: .5rem; }
}

/* ─── FAUCET / DAILY BONUS ─── */
@media (max-width: 575.98px) {
  .math-captcha-wrap { padding: .5rem; }
  .math-captcha-wrap input { max-width: 90px !important; font-size: .95rem !important; }
}

/* ─── ADMIN PANEL ─── */
@media (max-width: 991.98px) {
  .admin-sidebar { position: fixed !important; transform: translateX(-100%); height: 100vh; z-index: 999; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { width: 100% !important; padding: 1rem; }
}
@media (max-width: 575.98px) {
  .admin-main { padding: .75rem; }
  .admin-top-bar { padding: .6rem .75rem; font-size: .82rem; }
}

/* ─── MODALS / ALERTS ─── */
@media (max-width: 575.98px) {
  .alert-success, .alert-danger, .alert-info {
    font-size: .82rem;
    padding: .6rem .9rem;
    border-radius: 10px;
  }
}

/* ─── BADGES / STATUS ─── */
@media (max-width: 575.98px) {
  .status-badge { font-size: .65rem; padding: .15rem .5rem; }
}

/* ─── TOAST ─── */
@media (max-width: 575.98px) {
  #toast-container { right: .5rem; left: .5rem; top: .5rem; }
  .toast-msg { min-width: unset; max-width: 100%; font-size: .82rem; }
}

/* ─── HISTORY PAGE ─── */
@media (max-width: 767.98px) {
  .history-table th:nth-child(3),
  .history-table td:nth-child(3) { display: none; } /* hide description col */
}

/* ─── OFFERWALL / BITCOTASKS CARDS ─── */
@media (max-width: 575.98px) {
  .bt-card, .ow-card { padding: .8rem; border-radius: 12px; }
  .bt-tab, .ow-tab { padding: .4rem .7rem; font-size: .78rem; }
  .btn-visit, .btn-ow { padding: .5rem .8rem; font-size: .8rem; margin-top: .6rem; }
}

/* ─── LIVE RATES TABLE ─── */
@media (max-width: 575.98px) {
  .live-rates-row { font-size: .75rem; }
}

/* ─── PREVENT HORIZONTAL SCROLL ─── */
html, body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 991.98px) {
  .layout-wrapper { overflow-x: hidden; }
}