:root {
  --primary: #1e3a5f;
  --primary-light: #2563eb;
  --accent: #10b981;
  --accent-dark: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --bg: #f1f5f9;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg, #f1f5f9);
  color: var(--text, #1e293b);
  display: flex;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.sidebar-brand,
.brand-name {
  font-family: 'Outfit', sans-serif;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w, 260px);
  background: var(--primary, #1e3a5f);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light, #2563eb);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.sidebar-user {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-light, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.user-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-balance {
  color: var(--accent, #10b981);
  font-size: 13px;
  font-weight: 600;
}

.sidebar-nav {
  padding: 12px 12px 24px;
  flex: 1;
}

.nav-section-title {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 16px 8px 6px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-nav .nav-link.active {
  background: var(--primary-light, #2563eb);
  color: #fff;
  font-weight: 600;
}

.sidebar-nav .nav-link.text-danger {
  color: #fca5a5 !important;
}

.sidebar-nav .nav-link.text-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.sidebar-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
}

/* ========== MAIN WRAPPER ========== */
.main-wrapper {
  margin-left: var(--sidebar-w, 260px);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== TOPBAR ========== */
.topbar {
  height: var(--topbar-h, 64px);
  background: var(--card-bg, #ffffff);
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.topbar-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary, #1e3a5f);
}

.topbar-icon {
  color: var(--text-muted, #64748b);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-icon:hover {
  color: var(--primary, #1e3a5f);
}

.notif-dot {
  position: absolute;
  top: -5px;
  right: -6px;
  background: var(--danger, #ef4444);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary, #1e3a5f);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.sidebar-open-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text, #1e293b);
  cursor: pointer;
  margin-right: 12px;
}

/* ========== CONTENT AREA ========== */
.content-area {
  flex: 1;
  padding: 28px 28px 48px;
}

/* ========== CARDS ========== */
.card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 16px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.card-body {
  padding: 20px;
}

.stat-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.stat-icon.green {
  background: #d1fae5;
  color: #059669;
}

.stat-icon.yellow {
  background: #fef3c7;
  color: #d97706;
}

.stat-icon.red {
  background: #fee2e2;
  color: #dc2626;
}

.stat-icon.purple {
  background: #ede9fe;
  color: #7c3aed;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text, #1e293b);
}

/* ========== BUTTONS ========== */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-light, #2563eb);
  border-color: var(--primary-light, #2563eb);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-success {
  background: var(--accent, #10b981);
  border-color: var(--accent, #10b981);
}

.btn-success:hover {
  background: var(--accent-dark, #059669);
  border-color: var(--accent-dark, #059669);
}

/* ========== FORMS ========== */
.form-control,
.form-select {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 14px;
  color: var(--text, #1e293b);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

/* ========== TABLES ========== */
.table {
  font-size: 14px;
}

.table thead th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  border-bottom: 2px solid var(--border, #e2e8f0);
  background: #f8fafc;
  padding: 12px 16px;
}

.table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: var(--border, #e2e8f0);
}

.table tbody tr:hover {
  background: #f8fafc;
}

/* ========== BADGES ========== */
.badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 11px;
}

/* ========== REWARD CARD ========== */
.reward-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reward-card {
  width: 180px;
  height: 240px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
}

.reward-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.reward-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.reward-number {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -2px;
}

.reward-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.reward-card-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 24px;
}

@keyframes numberSpin {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-4px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes cardReveal {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.reward-card.revealed {
  animation: cardReveal 0.4s ease;
  cursor: default;
}

/* ========== PLAN CARD ========== */
.plan-card {
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  background: var(--card-bg, #ffffff);
}

.plan-card:hover {
  border-color: var(--primary-light, #2563eb);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.1));
}

.plan-card.featured {
  border-color: var(--primary-light, #2563eb);
}

.plan-card-header {
  background: var(--primary, #1e3a5f);
  padding: 24px;
  text-align: center;
}

.plan-card-header.featured {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
}

.plan-price {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
}

.plan-price sup {
  font-size: 18px;
  font-weight: 600;
}

.plan-price-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.plan-name {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-card-body {
  padding: 24px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.plan-feature:last-child {
  border-bottom: none;
}

.plan-feature .bi-check-circle-fill {
  color: var(--accent, #10b981);
}

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body.auth-body {
  display: block;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo .brand-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light, #2563eb);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text, #1e293b);
  margin-bottom: 4px;
}

.auth-subtitle {
  color: var(--text-muted, #64748b);
  font-size: 14px;
}

/* ========== SIDEBAR OVERLAY (MOBILE) ========== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.show {
    display: block;
  }
  .main-wrapper {
    margin-left: 0;
  }
}

/* ========== STATUS PILLS ========== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-active,
.status-approved {
  background: #d1fae5;
  color: #065f46;
}

.status-inactive,
.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-suspended,
.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status-in_progress,
.status-open {
  background: #dbeafe;
  color: #1e40af;
}

.status-submitted {
  background: #ede9fe;
  color: #5b21b6;
}

.status-expired {
  background: #f3f4f6;
  color: #6b7280;
}

.status-completed,
.status-resolved {
  background: #d1fae5;
  color: #065f46;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state-icon {
  font-size: 64px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.empty-state-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  margin-top: 8px;
}

/* ========== COUNTDOWN TIMER ========== */
.countdown-timer {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-light, #2563eb);
}

.countdown-timer.warning {
  color: var(--warning, #f59e0b);
}

.countdown-timer.danger {
  color: var(--danger, #ef4444);
  animation: pulse 0.5s ease infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========== NOTIFICATIONS ========== */
.notif-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  transition: background 0.15s;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item.unread {
  background: #eff6ff;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-title {
  font-weight: 600;
  font-size: 14px;
}

.notif-msg {
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted, #64748b);
}

/* ========== REFERRAL LINK BOX ========== */
.ref-link-box {
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  word-break: break-all;
}

/* ========== JOB TYPE BADGES ========== */
.job-type-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-type-telegram {
  background: #e0f2fe;
  color: #0369a1;
}

.job-type-facebook_like,
.job-type-facebook_comment {
  background: #dbeafe;
  color: #1d4ed8;
}

.job-type-youtube {
  background: #fee2e2;
  color: #dc2626;
}

.job-type-twitter {
  background: #cffafe;
  color: #0e7490;
}

.job-type-instagram {
  background: #fce7f3;
  color: #9d174d;
}

.job-type-other {
  background: #f3f4f6;
  color: #4b5563;
}

/* ========== RESPONSIVE FIXES ========== */

/* ট্যাবলেট ও মোবাইলের জন্য সাধারণ সমন্বয় */
@media (max-width: 992px) {
  .content-area {
    padding: 20px 16px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .stat-value {
    font-size: 20px;
  }
}

/* মোবাইল ডিভাইস (max-width: 768px) */
@media (max-width: 768px) {
  /* ফন্ট সাইজ কমানো */
  body {
    font-size: 13px;
  }

  .topbar-title {
    font-size: 16px;
  }

  .card-header {
    font-size: 14px;
    padding: 12px 16px;
  }

  .card-body {
    padding: 16px;
  }

  /* কার্ড গ্রিডকে স্ট্যাক করা */
  .row {
    flex-direction: column;
    gap: 16px;
  }

  .col-md-3, .col-md-4, .col-md-6, .col-lg-4 {
    width: 100%;
    margin-bottom: 12px;
  }

  /* টেবিলের জন্য হরাইজন্টাল স্ক্রল */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 600px; /* প্রয়োজনমতো কমাতে পারেন */
  }

  .table thead th,
  .table tbody td {
    padding: 10px 12px;
    font-size: 12px;
  }

  /* রিওয়ার্ড কার্ড সেন্টারিং */
  .reward-card-wrap {
    margin-bottom: 20px;
  }

  .reward-card {
    width: 140px;
    height: 200px;
  }

  .reward-number {
    font-size: 36px;
  }

  /* প্ল্যান কার্ড */
  .plan-card {
    margin-bottom: 20px;
  }

  /* ফর্ম এলিমেন্ট */
  .form-control, .form-select {
    font-size: 13px;
    padding: 8px 12px;
  }

  /* স্ট্যাটাস পিল */
  .status-pill {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* নোটিফিকেশন আইটেম */
  .notif-item {
    padding: 10px;
    gap: 10px;
  }

  /* অথ কার্ড */
  .auth-card {
    padding: 24px 20px;
    margin: 16px;
  }

  .auth-title {
    font-size: 20px;
  }

  /* টপবারের আইকন ও ইউজার */
  .topbar-icon {
    font-size: 18px;
  }

  .topbar-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .notif-dot {
    width: 12px;
    height: 12px;
    font-size: 7px;
    top: -3px;
    right: -4px;
  }

  /* সাইডবার খোলা বোতাম */
  .sidebar-open-btn {
    font-size: 20px;
    margin-right: 8px;
  }
}

/* খুব ছোট ডিভাইস (max-width: 480px) */
@media (max-width: 480px) {
  .content-area {
    padding: 12px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .badge {
    font-size: 9px;
  }
}
/* ═══════════════════════════════════════════════════════
   EarnHub v3.1 — Enhanced Mobile Responsiveness
   ═══════════════════════════════════════════════════════ */

/* ── Base responsive table wrapper ── */
.table-responsive { -webkit-overflow-scrolling: touch; }

/* ── Sidebar overlay for mobile ── */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    width: 260px;
    z-index: 1050;
    transition: left 0.25s ease;
    overflow-y: auto;
  }
  .sidebar.open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,.5); }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1049;
  }
  .sidebar-overlay.show { display: block; }
  .main-wrapper { margin-left: 0 !important; }
  .topbar { padding: 10px 14px; }
  .sidebar-toggle { display: flex !important; }
  .content-area { padding: 14px; }
}

/* ── Topbar mobile ── */
@media (max-width: 575.98px) {
  .topbar-title { display: none; }
  .topbar { gap: 8px; }
  .topbar-right { gap: 8px; }
}

/* ── Stat cards responsive grid ── */
@media (max-width: 767.98px) {
  .stat-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 11px; }
}

/* ── Cards ── */
@media (max-width: 575.98px) {
  .card { border-radius: 10px; }
  .card-header { padding: 12px 14px; font-size: 13px; }
  .card-body  { padding: 12px 14px; }
}

/* ── Auth pages ── */
@media (max-width: 575.98px) {
  .auth-page  { padding: 12px; align-items: flex-start; padding-top: 40px; }
  .auth-card  { padding: 24px 18px; border-radius: 12px; width: 100%; }
  .auth-title { font-size: 20px; }
}

/* ── Tables → stack on mobile ── */
@media (max-width: 575.98px) {
  .mobile-stack thead { display: none; }
  .mobile-stack tr {
    display: block;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px;
  }
  .mobile-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    border: none;
  }
  .mobile-stack td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 11px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-right: 8px;
  }
}

/* ── Plan cards mobile ── */
@media (max-width: 575.98px) {
  .plan-card { margin-bottom: 14px; }
  .plan-name { font-size: 16px; }
  .plan-price { font-size: 32px; }
}

/* ── Reward cards ── */
@media (max-width: 480px) {
  .reward-card { width: 120px; height: 170px; }
  .reward-number { font-size: 30px; }
}

/* ── Forms mobile ── */
@media (max-width: 575.98px) {
  .form-control, .form-select, .form-control-lg {
    font-size: 14px;
    padding: 10px 12px;
  }
  .btn-lg { font-size: 14px; padding: 10px 18px; }
  .input-group-text { font-size: 13px; }
}

/* ── Chat on mobile ── */
@media (max-width: 575.98px) {
  .chat-wrap    { height: calc(100vh - 80px); border-radius: 0; border: none; }
  .chat-sidebar { width: 60px; min-width: 60px; }
  .chat-sidebar-head h6,
  .conv-info,
  .conv-meta    { display: none !important; }
  .conv-item    { justify-content: center; padding: 10px 6px; }
  .new-chat-btn { display: none !important; }
  .msg-bubble   { max-width: 85%; font-size: 13px; }
}

/* ── Admin tables ── */
@media (max-width: 767.98px) {
  .admin-table-actions { display: flex; flex-wrap: wrap; gap: 4px; }
  th, td { white-space: nowrap; }
  /* Allow key columns to wrap */
  td.allow-wrap, th.allow-wrap { white-space: normal; min-width: 120px; }
}

/* ── Modals ── */
@media (max-width: 575.98px) {
  .modal-dialog { margin: 8px; }
  .modal-content { border-radius: 12px; }
}

/* ── Pagination ── */
@media (max-width: 575.98px) {
  .pagination .page-link { padding: 5px 9px; font-size: 12px; }
}

/* ── Fix button groups on small screens ── */
@media (max-width: 575.98px) {
  .btn-group-mobile { display: flex; flex-direction: column; gap: 6px; }
  .btn-group-mobile .btn { width: 100%; }
}

/* ── Utility: hide on mobile ── */
.d-mobile-none { display: none !important; }
@media (min-width: 576px) { .d-mobile-none { display: initial !important; } }

/* ── Utility: full-width on mobile ── */
@media (max-width: 575.98px) {
  .w-mobile-100 { width: 100% !important; }
  .mb-mobile-2 { margin-bottom: 8px !important; }
}
