/* ═══════════════════════════════════════════════════════
   MOBILE VERSION CSS — Fresh, Colorful, Gen-Z Design
   ═══════════════════════════════════════════════════════ */

/* Import fun fonts for mobile */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Righteous&display=swap');

:root {
  --m-pink: #ff4d8d;
  --m-purple: #7c3aed;
  --m-cyan: #00d4e8;
  --m-yellow: #ffd60a;
  --m-orange: #ff6b35;
  --m-green: #00c48c;
  --m-dark: #0d0d1a;
  --m-card: #1a1a2e;
  --m-card2: #16213e;
  --m-text: #f0f0ff;
  --m-muted: #a0a0c0;
  --m-border: rgba(255,255,255,0.1);
  --m-gradient: linear-gradient(135deg, #0d0d1a 0%, #1a0a2e 50%, #0d1a2e 100%);
}

/* GLOBAL MOBILE RESET */
body.mobile-mode {
  font-family: 'Nunito', system-ui, sans-serif !important;
  background: var(--m-gradient) !important;
  background-attachment: fixed !important;
  color: var(--m-text) !important;
  min-height: 100vh !important;
}

body.mobile-mode * {
  box-sizing: border-box;
}

/* Animated background stars effect */
body.mobile-mode::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255,77,141,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124,58,237,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0,212,232,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── MOBILE HEADER ─────────────────────────────────────────── */
body.mobile-mode header {
  background: rgba(13,13,26,0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,77,141,0.2) !important;
  box-shadow: 0 2px 20px rgba(255,77,141,0.15) !important;
  padding: 0 16px !important;
  height: 60px !important;
}

body.mobile-mode .logo {
  color: var(--m-pink) !important;
  font-family: 'Righteous', cursive !important;
  font-size: 1.1rem !important;
}

body.mobile-mode .logo img {
  border-radius: 10px !important;
  box-shadow: 0 0 12px rgba(255,77,141,0.4) !important;
}

body.mobile-mode .h-nav a,
body.mobile-mode .h-nav button {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--m-text) !important;
  border-radius: 12px !important;
  padding: 7px 12px !important;
  font-size: 0.78rem !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
}

body.mobile-mode .h-nav a:hover,
body.mobile-mode .h-nav a.primary {
  background: linear-gradient(135deg, var(--m-pink), var(--m-purple)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(255,77,141,0.4) !important;
}

body.mobile-mode .buyer-badge {
  background: linear-gradient(135deg, var(--m-green), #00a876) !important;
  box-shadow: 0 4px 12px rgba(0,196,140,0.3) !important;
  border-radius: 12px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
}

/* ── VIEW TOGGLE BUTTON ────────────────────────────────────── */
.view-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 7px 13px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: none !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
}

/* Desktop mode toggle button */
.view-toggle-btn.desktop-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(99,102,241,0.3) !important;
}

.view-toggle-btn.desktop-btn:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
}

/* Mobile mode toggle button */
.view-toggle-btn.mobile-btn {
  background: linear-gradient(135deg, #ff4d8d, #7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(255,77,141,0.4) !important;
  font-family: 'Nunito', sans-serif !important;
  border-radius: 12px !important;
}

.view-toggle-btn.mobile-btn:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 20px rgba(255,77,141,0.5) !important;
}

/* ── MOBILE HERO ───────────────────────────────────────────── */
body.mobile-mode .hero {
  background: transparent !important;
  padding: 48px 16px 36px !important;
  text-align: center !important;
  position: relative !important;
}

body.mobile-mode .hero::before {
  background: none !important;
}

body.mobile-mode .hero::after {
  background: radial-gradient(circle, rgba(255,77,141,0.15) 0%, transparent 70%) !important;
}

body.mobile-mode .hero-badge {
  background: linear-gradient(135deg, rgba(255,77,141,0.2), rgba(124,58,237,0.2)) !important;
  border: 1px solid rgba(255,77,141,0.4) !important;
  color: var(--m-pink) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
}

body.mobile-mode .hero h1 {
  color: var(--m-text) !important;
  font-family: 'Righteous', cursive !important;
  font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
  text-shadow: 0 0 40px rgba(255,77,141,0.3) !important;
}

body.mobile-mode .hero h1 span {
  background: linear-gradient(135deg, var(--m-pink), var(--m-cyan), var(--m-yellow)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  background-size: 200% auto !important;
  animation: shimmer 3s linear infinite !important;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

body.mobile-mode .hero p {
  color: var(--m-muted) !important;
  font-size: 0.95rem !important;
}

body.mobile-mode .hero-chip {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--m-text) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
}

body.mobile-mode .hero-chip.g {
  background: rgba(0,196,140,0.1) !important;
  border-color: rgba(0,196,140,0.3) !important;
  color: var(--m-green) !important;
}

/* ── MOBILE PRODUCT GRID ───────────────────────────────────── */
body.mobile-mode .products {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 14px !important;
}

body.mobile-mode .products-wrap {
  padding: 40px 14px !important;
}

body.mobile-mode .sec-head h2 {
  color: var(--m-text) !important;
  font-family: 'Righteous', cursive !important;
}

body.mobile-mode .sec-head .count {
  background: rgba(255,255,255,0.08) !important;
  color: var(--m-muted) !important;
}

/* ── MOBILE PRODUCT CARD ───────────────────────────────────── */
body.mobile-mode .p-card {
  background: var(--m-card) !important;
  border: 1px solid var(--m-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
  overflow: hidden !important;
}

body.mobile-mode .p-card:hover {
  border-color: rgba(255,77,141,0.4) !important;
  box-shadow: 0 8px 30px rgba(255,77,141,0.2) !important;
  transform: translateY(-4px) !important;
}

body.mobile-mode .p-card-bar {
  height: 3px !important;
  background: linear-gradient(90deg, var(--m-pink), var(--m-purple), var(--m-cyan)) !important;
  background-size: 200% auto !important;
  animation: shimmer 2s linear infinite !important;
}

body.mobile-mode .p-card-top {
  background: linear-gradient(170deg, rgba(255,77,141,0.05), transparent) !important;
  padding: 20px 14px 12px !important;
}

body.mobile-mode .p-card-top h3 {
  color: var(--m-text) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
}

body.mobile-mode .p-card-top p {
  color: var(--m-muted) !important;
  font-size: 0.72rem !important;
}

body.mobile-mode .p-card-body {
  border-top: 1px solid var(--m-border) !important;
  padding: 12px 14px 16px !important;
  background: rgba(0,0,0,0.2) !important;
}

body.mobile-mode .p-price .amt {
  color: var(--m-yellow) !important;
  font-family: 'Righteous', cursive !important;
  font-size: 1.6rem !important;
}

body.mobile-mode .p-price .original {
  color: var(--m-muted) !important;
}

body.mobile-mode .p-price .unit {
  color: var(--m-muted) !important;
  font-size: 0.78rem !important;
}

body.mobile-mode .discount-badge {
  background: linear-gradient(135deg, var(--m-orange), #ff3d00) !important;
  font-weight: 900 !important;
}

body.mobile-mode .dur-tag {
  background: rgba(0,196,140,0.1) !important;
  border-color: rgba(0,196,140,0.3) !important;
  color: var(--m-green) !important;
}

body.mobile-mode .p-btns {
  flex-direction: column !important;
  gap: 7px !important;
}

body.mobile-mode .p-btn {
  border-radius: 10px !important;
  padding: 9px 8px !important;
  font-size: 0.78rem !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  width: 100% !important;
}

body.mobile-mode .p-btn-wa {
  background: linear-gradient(135deg, #25d366, #075e54) !important;
  box-shadow: 0 3px 10px rgba(37,211,102,0.25) !important;
}

body.mobile-mode .p-btn-credits {
  background: linear-gradient(135deg, var(--m-pink), var(--m-purple)) !important;
  box-shadow: 0 3px 10px rgba(255,77,141,0.3) !important;
}

body.mobile-mode .p-btn-cart {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
  color: var(--m-text) !important;
}

body.mobile-mode .p-btn-cart:hover,
body.mobile-mode .p-btn-cart.added {
  background: linear-gradient(135deg, var(--m-cyan), var(--m-purple)) !important;
  border-color: transparent !important;
}

/* ── MOBILE BANNERS ────────────────────────────────────────── */
body.mobile-mode .banner-cap {
  background: linear-gradient(135deg, rgba(13,13,26,0.9), rgba(26,10,46,0.9)) !important;
  color: var(--m-text) !important;
}

body.mobile-mode .banner-card {
  border: 1px solid var(--m-border) !important;
}

/* ── MOBILE FOOTER ─────────────────────────────────────────── */
body.mobile-mode footer {
  background: rgba(0,0,0,0.6) !important;
  border-top: 1px solid var(--m-border) !important;
}

body.mobile-mode .footer-col h4 {
  color: var(--m-pink) !important;
  font-family: 'Nunito', sans-serif !important;
}

body.mobile-mode .footer-col a {
  color: var(--m-muted) !important;
  font-family: 'Nunito', sans-serif !important;
}

body.mobile-mode .footer-col a:hover {
  color: var(--m-cyan) !important;
}

body.mobile-mode .footer-brand .logo {
  color: var(--m-pink) !important;
}

body.mobile-mode .footer-wa-btn {
  background: linear-gradient(135deg, var(--m-green), #007a5e) !important;
  box-shadow: 0 4px 15px rgba(0,196,140,0.25) !important;
  border-radius: 12px !important;
}

/* ── MOBILE LOGIN PAGE ─────────────────────────────────────── */
body.mobile-mode .card {
  background: var(--m-card) !important;
  border: 1px solid var(--m-border) !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 60px rgba(255,77,141,0.1) !important;
}

body.mobile-mode h1 {
  color: var(--m-text) !important;
  font-family: 'Righteous', cursive !important;
}

body.mobile-mode .sub {
  color: var(--m-muted) !important;
}

body.mobile-mode .field label {
  color: var(--m-muted) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
}

body.mobile-mode .field input {
  background: rgba(255,255,255,0.05) !important;
  border: 1.5px solid var(--m-border) !important;
  color: var(--m-text) !important;
  font-family: 'Nunito', sans-serif !important;
}

body.mobile-mode .field input:focus {
  border-color: var(--m-pink) !important;
  background: rgba(255,77,141,0.05) !important;
  box-shadow: 0 0 0 3px rgba(255,77,141,0.15) !important;
}

body.mobile-mode .btn {
  background: linear-gradient(135deg, var(--m-pink), var(--m-purple)) !important;
  box-shadow: 0 4px 20px rgba(255,77,141,0.35) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  border: none !important;
}

body.mobile-mode .btn:hover {
  filter: brightness(1.1) !important;
  box-shadow: 0 6px 25px rgba(255,77,141,0.5) !important;
}

body.mobile-mode .info {
  background: rgba(0,212,232,0.08) !important;
  border-color: rgba(0,212,232,0.25) !important;
  color: var(--m-cyan) !important;
}

body.mobile-mode .msg {
  background: rgba(255,77,141,0.08) !important;
  border-color: rgba(255,77,141,0.3) !important;
  color: #ff6b9d !important;
}

/* ── MOBILE DASHBOARD ──────────────────────────────────────── */
body.mobile-mode .dashboard-wrap,
body.mobile-mode .dash-wrap {
  background: transparent !important;
  color: var(--m-text) !important;
  padding: 16px !important;
}

/* Dashboard cards and sections */
body.mobile-mode .stat-card,
body.mobile-mode .info-card,
body.mobile-mode .dash-card,
body.mobile-mode [class*="card"] {
  background: var(--m-card) !important;
  border: 1px solid var(--m-border) !important;
  color: var(--m-text) !important;
  border-radius: 18px !important;
}

body.mobile-mode .tab-btn,
body.mobile-mode [class*="tab"] {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
}

/* Tables in mobile */
body.mobile-mode table {
  background: transparent !important;
  color: var(--m-text) !important;
}

body.mobile-mode th {
  background: rgba(255,77,141,0.1) !important;
  color: var(--m-pink) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  border-bottom: 1px solid var(--m-border) !important;
}

body.mobile-mode td {
  border-bottom: 1px solid var(--m-border) !important;
  color: var(--m-text) !important;
}

body.mobile-mode tr:hover td {
  background: rgba(255,255,255,0.03) !important;
}

/* ── MOBILE ADMIN PANEL ────────────────────────────────────── */
body.mobile-mode .admin-wrap,
body.mobile-mode .admin-sidebar,
body.mobile-mode .admin-content {
  background: transparent !important;
  color: var(--m-text) !important;
}

body.mobile-mode .admin-header,
body.mobile-mode [class*="admin-head"] {
  background: rgba(13,13,26,0.95) !important;
  border-bottom: 1px solid var(--m-border) !important;
  color: var(--m-text) !important;
}

/* Admin nav/sidebar links */
body.mobile-mode .admin-nav a,
body.mobile-mode .sidebar a,
body.mobile-mode [class*="nav"] a {
  color: var(--m-muted) !important;
  font-family: 'Nunito', sans-serif !important;
  border-radius: 10px !important;
}

body.mobile-mode .admin-nav a:hover,
body.mobile-mode .admin-nav a.active,
body.mobile-mode .sidebar a:hover,
body.mobile-mode .sidebar a.active {
  background: linear-gradient(135deg, rgba(255,77,141,0.2), rgba(124,58,237,0.2)) !important;
  color: var(--m-pink) !important;
}

/* Stat/metric cards */
body.mobile-mode .stat-val,
body.mobile-mode [class*="metric"],
body.mobile-mode [class*="count"] {
  color: var(--m-yellow) !important;
  font-family: 'Righteous', cursive !important;
}

/* Buttons in admin */
body.mobile-mode .btn-primary,
body.mobile-mode button[class*="primary"],
body.mobile-mode input[type="submit"] {
  background: linear-gradient(135deg, var(--m-pink), var(--m-purple)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(255,77,141,0.3) !important;
}

body.mobile-mode .btn-success,
body.mobile-mode button[class*="success"] {
  background: linear-gradient(135deg, var(--m-green), #007a5e) !important;
  border: none !important;
  border-radius: 12px !important;
}

body.mobile-mode .btn-danger,
body.mobile-mode button[class*="danger"] {
  background: linear-gradient(135deg, #ff4444, #cc0000) !important;
  border: none !important;
  border-radius: 12px !important;
}

/* Form inputs in admin */
body.mobile-mode input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.mobile-mode textarea,
body.mobile-mode select {
  background: rgba(255,255,255,0.06) !important;
  border: 1.5px solid var(--m-border) !important;
  color: var(--m-text) !important;
  border-radius: 10px !important;
  font-family: 'Nunito', sans-serif !important;
}

body.mobile-mode input:focus,
body.mobile-mode textarea:focus,
body.mobile-mode select:focus {
  border-color: var(--m-pink) !important;
  box-shadow: 0 0 0 3px rgba(255,77,141,0.12) !important;
  outline: none !important;
}

body.mobile-mode select option {
  background: var(--m-dark) !important;
  color: var(--m-text) !important;
}

/* Labels */
body.mobile-mode label {
  color: var(--m-muted) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
}

/* Badges/tags */
body.mobile-mode .badge,
body.mobile-mode [class*="badge"],
body.mobile-mode [class*="tag"] {
  border-radius: 8px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
}

/* Cart drawer mobile */
body.mobile-mode .cart-drawer {
  background: var(--m-card) !important;
  border-left: 1px solid var(--m-border) !important;
}

body.mobile-mode .cart-head {
  background: rgba(0,0,0,0.3) !important;
  border-bottom: 1px solid var(--m-border) !important;
  color: var(--m-text) !important;
}

body.mobile-mode .cart-head h3 {
  color: var(--m-text) !important;
}

body.mobile-mode .cart-item-name {
  color: var(--m-text) !important;
}

body.mobile-mode .cart-item-price {
  color: var(--m-yellow) !important;
}

body.mobile-mode .cart-foot {
  background: rgba(0,0,0,0.4) !important;
  border-top: 1px solid var(--m-border) !important;
}

body.mobile-mode .cart-total-lbl {
  color: var(--m-muted) !important;
}

body.mobile-mode .cart-total-amt {
  color: var(--m-yellow) !important;
}

/* Modals mobile */
body.mobile-mode .modal-box {
  background: var(--m-card) !important;
  border: 1px solid var(--m-border) !important;
  color: var(--m-text) !important;
}

/* ── MOBILE SCROLLBAR ──────────────────────────────────────── */
body.mobile-mode ::-webkit-scrollbar {
  width: 4px !important;
}

body.mobile-mode ::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02) !important;
}

body.mobile-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--m-pink), var(--m-purple)) !important;
  border-radius: 2px !important;
}

/* ── MOBILE VIEW INDICATOR ─────────────────────────────────── */
body.mobile-mode .mobile-mode-indicator {
  display: flex !important;
}

.mobile-mode-indicator {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(255,77,141,0.9), rgba(124,58,237,0.9));
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  pointer-events: none;
  z-index: 9999;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(255,77,141,0.3);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}

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

/* Section headings in mobile */
body.mobile-mode h2:not(.modal-box h2) {
  color: var(--m-text) !important;
}

body.mobile-mode h3:not(.p-card-top h3):not(.cart-head h3) {
  color: var(--m-text) !important;
}

/* Links */
body.mobile-mode a:not(.p-btn):not(.h-nav a):not(.logo):not(.view-toggle-btn) {
  color: var(--m-cyan) !important;
}

/* Mobile friendly spacing for small screens */
@media (max-width: 480px) {
  body.mobile-mode .products {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  
  body.mobile-mode .p-price .amt {
    font-size: 1.3rem !important;
  }
  
  body.mobile-mode .hero h1 {
    font-size: 1.6rem !important;
  }
}

/* ═══════════════════════════════════════════════════════
   CONTRAST FIX PATCH — Bright text/bg issues in mobile
   ═══════════════════════════════════════════════════════ */

/* ── UNIVERSAL: Force all light backgrounds dark ──── */
body.mobile-mode div,
body.mobile-mode section,
body.mobile-mode article,
body.mobile-mode aside:not(.sidebar),
body.mobile-mode main {
  background-color: transparent;
}

/* Any element that has inline white/light bg */
body.mobile-mode [style*="background:#fff"],
body.mobile-mode [style*="background: #fff"],
body.mobile-mode [style*="background:white"],
body.mobile-mode [style*="background:#f8fafc"],
body.mobile-mode [style*="background:#f1f5f9"],
body.mobile-mode [style*="background:#eff6ff"],
body.mobile-mode [style*="background:#f0fdf4"],
body.mobile-mode [style*="background:var(--sur)"],
body.mobile-mode [style*="background:var(--bg)"] {
  background: rgba(255,255,255,0.06) !important;
  color: var(--m-text) !important;
}

/* ── TABLES: Full dark treatment ─────────────────── */
body.mobile-mode table {
  background: var(--m-card) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  color: var(--m-text) !important;
}

body.mobile-mode thead {
  background: rgba(255,77,141,0.12) !important;
}

body.mobile-mode th {
  background: rgba(255,77,141,0.12) !important;
  color: #ff8ab8 !important;
  font-weight: 800 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(255,77,141,0.2) !important;
  white-space: nowrap !important;
}

body.mobile-mode td {
  background: transparent !important;
  color: var(--m-text) !important;
  padding: 11px 14px !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  font-size: 0.83rem !important;
}

body.mobile-mode tbody tr {
  background: transparent !important;
  transition: background 0.15s !important;
}

body.mobile-mode tbody tr:hover {
  background: rgba(255,255,255,0.04) !important;
}

body.mobile-mode tbody tr:hover td {
  background: transparent !important;
}

/* Zebra rows */
body.mobile-mode tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02) !important;
}

/* Table wrapper scroll */
body.mobile-mode .table-wrap,
body.mobile-mode [class*="table-"] {
  background: var(--m-card) !important;
  border: 1px solid var(--m-border) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* ── TEXT: Force readable colors ─────────────────── */
/* Dark text on dark bg fix */
body.mobile-mode [style*="color:#0f172a"],
body.mobile-mode [style*="color:#1e293b"],
body.mobile-mode [style*="color:#334155"],
body.mobile-mode [style*="color:#475569"],
body.mobile-mode [style*="color:var(--tx)"],
body.mobile-mode [style*="color:#111"] {
  color: var(--m-text) !important;
}

body.mobile-mode [style*="color:#64748b"],
body.mobile-mode [style*="color:#94a3b8"],
body.mobile-mode [style*="color:var(--mu)"] {
  color: var(--m-muted) !important;
}

/* All plain p, span, div text */
body.mobile-mode p,
body.mobile-mode span:not(.badge):not(.nav-bdg):not(.cart-count),
body.mobile-mode li,
body.mobile-mode dt,
body.mobile-mode dd {
  color: inherit;
}

/* ── CARDS / BOXES: All should be dark ───────────── */
body.mobile-mode .card,
body.mobile-mode .box,
body.mobile-mode .panel,
body.mobile-mode .widget,
body.mobile-mode [class*="-card"]:not(.p-card),
body.mobile-mode [class*="-box"],
body.mobile-mode [class*="-panel"],
body.mobile-mode [class*="-widget"] {
  background: var(--m-card) !important;
  border: 1px solid var(--m-border) !important;
  color: var(--m-text) !important;
}

/* ── INFO/ALERT BOXES ────────────────────────────── */
body.mobile-mode .info,
body.mobile-mode .info-box,
body.mobile-mode [class*="info-"],
body.mobile-mode [class*="-info"] {
  background: rgba(0,212,232,0.08) !important;
  border-color: rgba(0,212,232,0.2) !important;
  color: #7ee8f5 !important;
}

body.mobile-mode .success,
body.mobile-mode [class*="success-"],
body.mobile-mode [class*="-success"] {
  background: rgba(0,196,140,0.08) !important;
  border-color: rgba(0,196,140,0.2) !important;
  color: #5debb8 !important;
}

body.mobile-mode .warning,
body.mobile-mode [class*="warn"],
body.mobile-mode [class*="-warning"] {
  background: rgba(255,214,10,0.08) !important;
  border-color: rgba(255,214,10,0.2) !important;
  color: #ffe566 !important;
}

body.mobile-mode .error,
body.mobile-mode .msg,
body.mobile-mode [class*="error"],
body.mobile-mode [class*="-err"] {
  background: rgba(255,77,77,0.08) !important;
  border-color: rgba(255,77,77,0.2) !important;
  color: #ff8a8a !important;
}

/* Flash messages */
body.mobile-mode .flash,
body.mobile-mode [id*="flash"],
body.mobile-mode [class*="flash"] {
  background: rgba(0,196,140,0.1) !important;
  border: 1px solid rgba(0,196,140,0.25) !important;
  color: #5debb8 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
}

/* ── ADMIN PANEL SPECIFIC ────────────────────────── */
/* Admin topbar */
body.mobile-mode .topbar,
body.mobile-mode .tb-l,
body.mobile-mode .tb-r {
  background: rgba(13,13,26,0.98) !important;
  border-bottom: 1px solid rgba(255,77,141,0.15) !important;
  color: var(--m-text) !important;
}

body.mobile-mode .tb-title {
  color: var(--m-text) !important;
  font-family: 'Righteous', cursive !important;
}

/* Admin sidebar */
body.mobile-mode .sidebar {
  background: rgba(13,13,26,0.98) !important;
  border-right: 1px solid rgba(255,77,141,0.1) !important;
}

body.mobile-mode .sb-logo {
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

body.mobile-mode .sb-title {
  color: var(--m-text) !important;
  font-weight: 800 !important;
}

body.mobile-mode .sb-sub {
  color: var(--m-pink) !important;
  font-size: 0.72rem !important;
}

body.mobile-mode .nav-item {
  color: var(--m-muted) !important;
  border-radius: 10px !important;
  margin: 2px 6px !important;
  transition: all 0.2s !important;
}

body.mobile-mode .nav-item:hover,
body.mobile-mode .nav-item.on {
  background: linear-gradient(135deg, rgba(255,77,141,0.15), rgba(124,58,237,0.15)) !important;
  color: var(--m-pink) !important;
  border-color: rgba(255,77,141,0.2) !important;
}

body.mobile-mode .nav-bdg {
  background: var(--m-pink) !important;
  color: #fff !important;
}

body.mobile-mode .sb-foot a {
  color: var(--m-muted) !important;
}

body.mobile-mode .sb-foot a:hover {
  color: var(--m-cyan) !important;
}

/* Admin content area */
body.mobile-mode .content {
  background: transparent !important;
  color: var(--m-text) !important;
}

body.mobile-mode .main {
  background: var(--m-gradient) !important;
  background-attachment: fixed !important;
}

/* Admin stat/summary cards */
body.mobile-mode .stat-card,
body.mobile-mode [class*="stat-"],
body.mobile-mode [class*="-stat"] {
  background: var(--m-card) !important;
  border: 1px solid var(--m-border) !important;
  color: var(--m-text) !important;
  border-radius: 16px !important;
}

body.mobile-mode [class*="stat-"] h3,
body.mobile-mode [class*="stat-"] .label,
body.mobile-mode [class*="stat-"] p {
  color: var(--m-muted) !important;
}

body.mobile-mode [class*="stat-"] .value,
body.mobile-mode [class*="stat-"] strong,
body.mobile-mode [class*="stat-"] b {
  color: var(--m-yellow) !important;
  font-family: 'Righteous', cursive !important;
}

/* ── SECTION HEADERS ─────────────────────────────── */
body.mobile-mode .sec-title,
body.mobile-mode .section-title,
body.mobile-mode .page-title,
body.mobile-mode [class*="sec-head"] h2,
body.mobile-mode [class*="page-head"] h2 {
  color: var(--m-text) !important;
  font-family: 'Righteous', cursive !important;
}

/* ── TABS ─────────────────────────────────────────── */
body.mobile-mode [class*="tabs"],
body.mobile-mode [class*="tab-bar"],
body.mobile-mode [class*="tab-list"] {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid var(--m-border) !important;
  border-radius: 12px !important;
  padding: 4px !important;
}

body.mobile-mode [class*="tab-btn"],
body.mobile-mode [class*="tab-item"],
body.mobile-mode .tab {
  color: var(--m-muted) !important;
  background: transparent !important;
  border-radius: 9px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  transition: all 0.2s !important;
}

body.mobile-mode [class*="tab-btn"].active,
body.mobile-mode [class*="tab-btn"].on,
body.mobile-mode [class*="tab-item"].active,
body.mobile-mode .tab.active {
  background: linear-gradient(135deg, var(--m-pink), var(--m-purple)) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(255,77,141,0.3) !important;
}

/* ── FORMS (all pages) ───────────────────────────── */
body.mobile-mode .form-group,
body.mobile-mode .field,
body.mobile-mode [class*="form-"] {
  color: var(--m-text) !important;
}

body.mobile-mode .form-group label,
body.mobile-mode .field label,
body.mobile-mode label {
  color: rgba(160,160,192,0.9) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
}

body.mobile-mode input[type="text"],
body.mobile-mode input[type="email"],
body.mobile-mode input[type="password"],
body.mobile-mode input[type="number"],
body.mobile-mode input[type="tel"],
body.mobile-mode input[type="url"],
body.mobile-mode input[type="search"],
body.mobile-mode textarea,
body.mobile-mode select {
  background: rgba(255,255,255,0.06) !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
  color: var(--m-text) !important;
  border-radius: 11px !important;
  font-family: 'Nunito', sans-serif !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

body.mobile-mode input::placeholder,
body.mobile-mode textarea::placeholder {
  color: rgba(160,160,192,0.4) !important;
}

body.mobile-mode input:focus,
body.mobile-mode textarea:focus,
body.mobile-mode select:focus {
  border-color: rgba(255,77,141,0.6) !important;
  background: rgba(255,77,141,0.05) !important;
  box-shadow: 0 0 0 3px rgba(255,77,141,0.1) !important;
  outline: none !important;
}

body.mobile-mode select option {
  background: #1a1a2e !important;
  color: var(--m-text) !important;
}

/* Checkbox/radio */
body.mobile-mode input[type="checkbox"],
body.mobile-mode input[type="radio"] {
  accent-color: var(--m-pink) !important;
}

/* ── BUTTONS: Admin action buttons ───────────────── */
body.mobile-mode .tb-btn {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--m-text) !important;
  border-radius: 9px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  transition: all 0.2s !important;
}

body.mobile-mode .tb-btn:hover {
  background: rgba(255,255,255,0.12) !important;
}

body.mobile-mode .tb-btn.danger {
  background: rgba(255,68,68,0.1) !important;
  border-color: rgba(255,68,68,0.2) !important;
  color: #ff8a8a !important;
}

body.mobile-mode .tb-btn.danger:hover {
  background: rgba(255,68,68,0.2) !important;
}

/* ── MODAL/DIALOG FIX ────────────────────────────── */
body.mobile-mode .modal,
body.mobile-mode [class*="modal-"],
body.mobile-mode [id*="modal"],
body.mobile-mode dialog {
  background: #1a1a2e !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--m-text) !important;
  border-radius: 20px !important;
}

body.mobile-mode .modal-header,
body.mobile-mode [class*="modal-head"] {
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

body.mobile-mode .modal-footer,
body.mobile-mode [class*="modal-foot"] {
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  background: rgba(0,0,0,0.2) !important;
}

/* ── PAGINATION ──────────────────────────────────── */
body.mobile-mode .pagination,
body.mobile-mode [class*="pager"],
body.mobile-mode [class*="paginate"] {
  color: var(--m-text) !important;
}

body.mobile-mode .pagination a,
body.mobile-mode .pagination button,
body.mobile-mode [class*="page-btn"] {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid var(--m-border) !important;
  color: var(--m-text) !important;
  border-radius: 8px !important;
}

body.mobile-mode .pagination a.active,
body.mobile-mode .pagination button.active,
body.mobile-mode [class*="page-btn"].active {
  background: linear-gradient(135deg, var(--m-pink), var(--m-purple)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* ── DROPDOWNS ───────────────────────────────────── */
body.mobile-mode .dropdown-menu,
body.mobile-mode [class*="dropdown-"] {
  background: #1a1a2e !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
}

body.mobile-mode .dropdown-item,
body.mobile-mode [class*="dropdown-"] a,
body.mobile-mode [class*="dropdown-"] button {
  color: var(--m-text) !important;
  background: transparent !important;
}

body.mobile-mode .dropdown-item:hover {
  background: rgba(255,77,141,0.1) !important;
  color: var(--m-pink) !important;
}

/* ── TOOLTIPS ────────────────────────────────────── */
body.mobile-mode [data-tooltip]:before,
body.mobile-mode .tooltip {
  background: #1a1a2e !important;
  color: var(--m-text) !important;
  border: 1px solid var(--m-border) !important;
  border-radius: 8px !important;
}

/* ── BREADCRUMBS ─────────────────────────────────── */
body.mobile-mode .breadcrumb,
body.mobile-mode [class*="breadcrumb"] {
  color: var(--m-muted) !important;
  background: transparent !important;
}

body.mobile-mode .breadcrumb a {
  color: var(--m-cyan) !important;
}

/* ── STATUS BADGES (common patterns) ────────────── */
body.mobile-mode .badge-active,
body.mobile-mode [class*="status-active"],
body.mobile-mode .status-green {
  background: rgba(0,196,140,0.15) !important;
  color: #5debb8 !important;
  border: 1px solid rgba(0,196,140,0.25) !important;
}

body.mobile-mode .badge-expired,
body.mobile-mode [class*="status-expired"],
body.mobile-mode .status-red {
  background: rgba(255,68,68,0.12) !important;
  color: #ff8a8a !important;
  border: 1px solid rgba(255,68,68,0.2) !important;
}

body.mobile-mode .badge-pending,
body.mobile-mode [class*="status-pending"],
body.mobile-mode .status-yellow {
  background: rgba(255,214,10,0.1) !important;
  color: #ffe566 !important;
  border: 1px solid rgba(255,214,10,0.2) !important;
}

/* ── DASHBOARD SPECIFIC ──────────────────────────── */
/* Balance display */
body.mobile-mode .balance,
body.mobile-mode [class*="balance"],
body.mobile-mode [class*="wallet"] {
  color: var(--m-yellow) !important;
  font-family: 'Righteous', cursive !important;
}

/* Subscription cards */
body.mobile-mode .sub-card,
body.mobile-mode [class*="sub-card"],
body.mobile-mode [class*="subscription-card"] {
  background: var(--m-card) !important;
  border: 1px solid var(--m-border) !important;
  color: var(--m-text) !important;
}

body.mobile-mode .dash-header {
  background: rgba(13,13,26,0.95) !important;
  border-bottom: 1px solid rgba(255,77,141,0.15) !important;
}

body.mobile-mode .user-name {
  color: var(--m-text) !important;
  font-weight: 800 !important;
}

body.mobile-mode .user-id {
  color: var(--m-muted) !important;
}

body.mobile-mode .avatar {
  background: linear-gradient(135deg, var(--m-pink), var(--m-purple)) !important;
  color: #fff !important;
  border: none !important;
}

/* ── EMPTY STATES ────────────────────────────────── */
body.mobile-mode .empty-state,
body.mobile-mode [class*="empty"],
body.mobile-mode .no-data {
  color: var(--m-muted) !important;
  background: transparent !important;
}

/* ── HR / DIVIDERS ───────────────────────────────── */
body.mobile-mode hr {
  border-color: rgba(255,255,255,0.07) !important;
}

/* ── OVERRIDE: Anything still showing white bg ─── */
body.mobile-mode *:not(img):not(video):not(iframe):not(svg):not(canvas) {
  /* Catch-all: if computed bg is pure white, override */
}

/* Target common white-bg utility classes */
body.mobile-mode .bg-white,
body.mobile-mode .bg-light,
body.mobile-mode .bg-gray-50,
body.mobile-mode .bg-gray-100,
body.mobile-mode .bg-slate-50,
body.mobile-mode .bg-slate-100 {
  background: rgba(255,255,255,0.05) !important;
  color: var(--m-text) !important;
}

/* ── HEADINGS everywhere ─────────────────────────── */
body.mobile-mode h1,
body.mobile-mode h2,
body.mobile-mode h3,
body.mobile-mode h4,
body.mobile-mode h5,
body.mobile-mode h6 {
  color: var(--m-text) !important;
}

/* ── STRONG / B tags ─────────────────────────────── */
body.mobile-mode strong,
body.mobile-mode b {
  color: var(--m-text) !important;
}

/* Small/caption text */
body.mobile-mode small,
body.mobile-mode .text-muted,
body.mobile-mode .text-secondary,
body.mobile-mode [class*="muted"],
body.mobile-mode [class*="secondary"] {
  color: var(--m-muted) !important;
}

/* ═══════════════════════════════════════════════════════
   ADMIN PANEL — WHITE/LIGHT THEME OVERRIDE
   (Only applies when body has both .adm AND .mobile-mode)
   ═══════════════════════════════════════════════════════ */

/* Reset dark background for admin */
body.adm.mobile-mode {
  background: #f1f5f9 !important;
  background-attachment: unset !important;
  color: #0f172a !important;
  font-family: 'Nunito', system-ui, sans-serif !important;
}

body.adm.mobile-mode::before {
  display: none !important;
}

/* Main layout area */
body.adm.mobile-mode .main {
  background: #f1f5f9 !important;
  background-attachment: unset !important;
}

body.adm.mobile-mode .content {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Sidebar — clean white with accent */
body.adm.mobile-mode .sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 2px 0 12px rgba(0,0,0,0.06) !important;
}

body.adm.mobile-mode .sb-logo {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  border-bottom: none !important;
  padding: 18px 16px !important;
}

body.adm.mobile-mode .sb-icon {
  background: rgba(255,255,255,0.2) !important;
  border-radius: 12px !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.3rem !important;
}

body.adm.mobile-mode .sb-title {
  color: #ffffff !important;
  font-weight: 800 !important;
}

body.adm.mobile-mode .sb-sub {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.72rem !important;
}

body.adm.mobile-mode .nav-item {
  color: #475569 !important;
  background: transparent !important;
  border-radius: 10px !important;
  margin: 2px 6px !important;
  font-weight: 700 !important;
}

body.adm.mobile-mode .nav-item:hover {
  background: #f1f5f9 !important;
  color: #6366f1 !important;
}

body.adm.mobile-mode .nav-item.on {
  background: linear-gradient(135deg, #ede9fe, #dbeafe) !important;
  color: #6366f1 !important;
  font-weight: 800 !important;
}

body.adm.mobile-mode .nav-bdg {
  background: #ef4444 !important;
  color: #fff !important;
}

body.adm.mobile-mode .sb-foot {
  border-top: 1px solid #e2e8f0 !important;
}

body.adm.mobile-mode .sb-foot a {
  color: #64748b !important;
}

body.adm.mobile-mode .sb-foot a:hover {
  color: #6366f1 !important;
}

/* Topbar */
body.adm.mobile-mode .topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06) !important;
  color: #0f172a !important;
}

body.adm.mobile-mode .tb-title {
  color: #0f172a !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
}

body.adm.mobile-mode .tb-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
}

body.adm.mobile-mode .tb-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

body.adm.mobile-mode .tb-btn.danger {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

/* Cards/Boxes */
body.adm.mobile-mode .card,
body.adm.mobile-mode .box,
body.adm.mobile-mode .panel,
body.adm.mobile-mode [class*="-card"]:not(.p-card),
body.adm.mobile-mode [class*="-box"],
body.adm.mobile-mode [class*="-panel"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* Stat cards */
body.adm.mobile-mode .stat-card,
body.adm.mobile-mode [class*="stat-"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

body.adm.mobile-mode [class*="stat-"] .label,
body.adm.mobile-mode [class*="stat-"] p,
body.adm.mobile-mode [class*="stat-"] h3 {
  color: #64748b !important;
}

body.adm.mobile-mode [class*="stat-"] .value,
body.adm.mobile-mode [class*="stat-"] strong,
body.adm.mobile-mode [class*="stat-"] b {
  color: #6366f1 !important;
  font-family: 'Nunito', sans-serif !important;
}

/* Tables */
body.adm.mobile-mode table {
  background: #ffffff !important;
  color: #0f172a !important;
}

body.adm.mobile-mode thead {
  background: #f8fafc !important;
}

body.adm.mobile-mode th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  font-weight: 800 !important;
}

body.adm.mobile-mode td {
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

body.adm.mobile-mode tbody tr:hover td {
  background: #f8fafc !important;
}

body.adm.mobile-mode tbody tr:nth-child(even) td {
  background: #fafafa !important;
}

/* Table wrapper */
body.adm.mobile-mode .table-wrap,
body.adm.mobile-mode [class*="table-"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

/* Text colors */
body.adm.mobile-mode h1,
body.adm.mobile-mode h2,
body.adm.mobile-mode h3,
body.adm.mobile-mode h4,
body.adm.mobile-mode h5,
body.adm.mobile-mode h6 {
  color: #0f172a !important;
  font-family: 'Nunito', sans-serif !important;
}

body.adm.mobile-mode p,
body.adm.mobile-mode span:not(.badge):not(.nav-bdg),
body.adm.mobile-mode li,
body.adm.mobile-mode label {
  color: inherit !important;
}

body.adm.mobile-mode strong,
body.adm.mobile-mode b {
  color: #0f172a !important;
}

body.adm.mobile-mode small,
body.adm.mobile-mode .text-muted,
body.adm.mobile-mode [class*="muted"] {
  color: #64748b !important;
}

/* Forms */
body.adm.mobile-mode input[type="text"],
body.adm.mobile-mode input[type="email"],
body.adm.mobile-mode input[type="password"],
body.adm.mobile-mode input[type="number"],
body.adm.mobile-mode input[type="tel"],
body.adm.mobile-mode input[type="url"],
body.adm.mobile-mode input[type="search"],
body.adm.mobile-mode textarea,
body.adm.mobile-mode select {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #0f172a !important;
  border-radius: 10px !important;
}

body.adm.mobile-mode input::placeholder,
body.adm.mobile-mode textarea::placeholder {
  color: #94a3b8 !important;
}

body.adm.mobile-mode input:focus,
body.adm.mobile-mode textarea:focus,
body.adm.mobile-mode select:focus {
  border-color: #6366f1 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12) !important;
}

body.adm.mobile-mode select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

body.adm.mobile-mode label {
  color: #475569 !important;
  font-weight: 700 !important;
}

/* Buttons */
body.adm.mobile-mode .btn-primary,
body.adm.mobile-mode button[class*="primary"],
body.adm.mobile-mode input[type="submit"] {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(99,102,241,0.25) !important;
}

body.adm.mobile-mode .btn-success,
body.adm.mobile-mode button[class*="success"] {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  border: none !important;
}

body.adm.mobile-mode .btn-danger,
body.adm.mobile-mode button[class*="danger"] {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
  border: none !important;
}

/* Alert/info boxes */
body.adm.mobile-mode .info,
body.adm.mobile-mode .info-box,
body.adm.mobile-mode [class*="info-"] {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

body.adm.mobile-mode .success,
body.adm.mobile-mode [class*="success-"] {
  background: #f0fdf4 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}

body.adm.mobile-mode .warning,
body.adm.mobile-mode [class*="warn"] {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #d97706 !important;
}

body.adm.mobile-mode .error,
body.adm.mobile-mode .msg,
body.adm.mobile-mode [class*="error"] {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

/* Flash messages */
body.adm.mobile-mode .flash,
body.adm.mobile-mode [class*="flash"] {
  background: #f0fdf4 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}

/* Badges */
body.adm.mobile-mode .badge-active,
body.adm.mobile-mode [class*="status-active"] {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #bbf7d0 !important;
}

body.adm.mobile-mode .badge-expired,
body.adm.mobile-mode [class*="status-expired"] {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

body.adm.mobile-mode .badge-pending,
body.adm.mobile-mode [class*="status-pending"] {
  background: #fffbeb !important;
  color: #d97706 !important;
  border-color: #fde68a !important;
}

/* Modals */
body.adm.mobile-mode .modal,
body.adm.mobile-mode [class*="modal-"],
body.adm.mobile-mode dialog {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

body.adm.mobile-mode .modal-header,
body.adm.mobile-mode [class*="modal-head"] {
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

body.adm.mobile-mode .modal-footer,
body.adm.mobile-mode [class*="modal-foot"] {
  border-top: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

/* Dropdowns */
body.adm.mobile-mode .dropdown-menu,
body.adm.mobile-mode [class*="dropdown-"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

body.adm.mobile-mode .dropdown-item {
  color: #475569 !important;
}

body.adm.mobile-mode .dropdown-item:hover {
  background: #f1f5f9 !important;
  color: #6366f1 !important;
}

/* Inline style overrides for white bg */
body.adm.mobile-mode [style*="background:#fff"],
body.adm.mobile-mode [style*="background: #fff"],
body.adm.mobile-mode [style*="background:white"],
body.adm.mobile-mode [style*="background:#f8fafc"],
body.adm.mobile-mode [style*="background:#f1f5f9"] {
  background: unset !important;
}

/* Scrollbar for admin */
body.adm.mobile-mode ::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}

/* View toggle button in admin topbar stays colorful */
body.adm.mobile-mode .tb-btn[href*="toggle_view"] {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ══════════════════════════════════════════════════════
   v19 MOBILE ENHANCEMENTS — Better Home Page
   ══════════════════════════════════════════════════════ */

/* Improved hero section */
body.mobile-mode .hero {
  padding: 40px 16px 32px !important;
}

body.mobile-mode .hero-badge {
  font-size: 0.68rem !important;
  padding: 5px 14px !important;
  margin-bottom: 14px !important;
}

body.mobile-mode .hero h1 {
  font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
  margin-bottom: 12px !important;
}

body.mobile-mode .hero p {
  font-size: 0.88rem !important;
  margin-bottom: 20px !important;
  line-height: 1.6 !important;
}

body.mobile-mode .hero-chips {
  gap: 7px !important;
}

body.mobile-mode .hero-chip {
  font-size: 0.72rem !important;
  padding: 5px 11px !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: var(--m-text) !important;
  border-radius: 20px !important;
}

/* Tight compact product grid on mobile */
body.mobile-mode .products {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

body.mobile-mode .products-wrap {
  padding: 28px 12px 40px !important;
}

/* Product card — more compact on small screens */
body.mobile-mode .p-card {
  border-radius: 16px !important;
}

body.mobile-mode .p-card-top {
  padding: 16px 12px 10px !important;
}

body.mobile-mode .p-card-top img {
  width: 52px !important;
  height: 52px !important;
}

body.mobile-mode .p-card-top h3 {
  font-size: 0.85rem !important;
  margin-top: 8px !important;
}

body.mobile-mode .p-card-body {
  padding: 10px 12px 14px !important;
}

body.mobile-mode .p-price .amt {
  font-size: 1.4rem !important;
}

/* Section heading on mobile */
body.mobile-mode .sec-head h2 {
  font-size: 1.05rem !important;
}

/* Bundle section on mobile */
body.mobile-mode [style*="padding:40px 5%;background:#f8fafc"] {
  background: rgba(255,255,255,0.04) !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  padding: 28px 12px !important;
}

body.mobile-mode [style*="border:2px solid #c7d2fe;overflow:hidden"] {
  background: var(--m-card) !important;
  border-color: rgba(99,102,241,0.4) !important;
  border-radius: 16px !important;
}

/* Buyer balance badge — bigger on mobile */
body.mobile-mode .buyer-badge {
  font-size: 0.75rem !important;
  padding: 7px 11px !important;
}

/* Header on small screens — tighter */
@media(max-width:400px) {
  body.mobile-mode .logo span { display: none !important; }
  body.mobile-mode header { padding: 0 10px !important; }
  body.mobile-mode .h-nav { gap: 5px !important; }
  body.mobile-mode .products { grid-template-columns: 1fr 1fr !important; }
}
