/* Nuclear mobile fix — forces solid backgrounds on all pages */
@media(max-width:900px){

  /* Force CSS variables to solid values */
  :root{
    --bg:#080808;
    --bg1:#111111;
    --bg2:#181818;
    --bg3:#1f1f1f;
    --border:#272727;
    --border2:#333333;
    --gold:#FFD700;
    --white:#ffffff;
    --g7:#aaaaaa;
    --g6:#777777;
    --g5:#444444;
  }

  /* Kill all blur */
  *{
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  /* Base */
  html{ background:#080808 !important; }
  body{ background:#080808 !important; background-color:#080808 !important; }
  .main{ background:#080808 !important; }

  /* Topbar / sidebar */
  .topbar{ background:#111111 !important; border-bottom:1px solid #272727 !important; }
  .sidebar{ background:#111111 !important; }
  .sidebar-nav{ background:#111111 !important; }
  .sidebar-user{ background:#111111 !important; }
  .sidebar-user-inner{ background:#181818 !important; }
  .sidebar-overlay{ background:rgba(0,0,0,.9) !important; backdrop-filter:none !important; }

  /* Every possible card/box class */
  .card, .stat-card, .raffle-card, .live-card,
  .win-card, .p-card, .section-card, .perm-card,
  .user-row, .wallet-row, .profile-card, .feature-card,
  .feature, .hero, .stats-bar-item, .add-form,
  .tba-card, .mint-row, .entrant-card, .raffle-row,
  .user-perm-row, .perm-check, .conn-row,
  .empty, .item-card, .stat-card,
  div[class*="card"], div[class*="-card"],
  div[class*="card-"]{
    background:#111111 !important;
    background-color:#111111 !important;
    border-color:#272727 !important;
  }

  /* Stats bar */
  .stats-bar{ background:#272727 !important; border-color:#272727 !important; }
  .stats-bar-item{ background:#111111 !important; }

  /* Hero section */
  .hero{ background:#111111 !important; border-color:#272727 !important; }
  .hero::before{ display:none !important; }

  /* Forms */
  input, select, textarea, .form-input{
    background:#181818 !important;
    background-color:#181818 !important;
    border-color:#333333 !important;
    color:#ffffff !important;
  }

  /* Modals */
  .modal{ background:#111111 !important; background-color:#111111 !important; }
  .modal-overlay{ background:rgba(0,0,0,.95) !important; }

  /* Filter / nav buttons */
  .filter-btn{ background:transparent !important; }
  .filter-btn.active{ background:#1f1f1f !important; border-color:#FFD700 !important; color:#FFD700 !important; }
  .nav-link.active{ background:#1f1f1f !important; }
  .nav-link:hover{ background:#1a1a1a !important; }

  /* Buttons */
  .btn-gold, .btn.btn-gold{ background:#FFD700 !important; color:#000 !important; }
  .btn-discord{ background:#5865F2 !important; color:#fff !important; }
  .btn-danger{ background:#ef4444 !important; color:#fff !important; }
  .glass-btn-gold{ background:#FFD700 !important; color:#000 !important; }
  .glass-btn-white{ background:#222222 !important; color:#fff !important; }
  .glass-btn-red{ background:#ef4444 !important; color:#fff !important; }

  /* Badges — fix rgba backgrounds */
  .badge-gold{ background:#1a1500 !important; border-color:#3d3000 !important; }
  .badge-green{ background:#001a06 !important; border-color:#003d0e !important; }
  .badge-blue{ background:#00091a !important; border-color:#001a3d !important; }
  .badge-gray{ background:#1a1a1a !important; border-color:#333 !important; }

  /* Tabs */
  .tab-btn.active{ background:transparent !important; border-color:#FFD700 !important; color:#FFD700 !important; }
  .tabs{ border-color:#272727 !important; }

  /* Calendar grid */
  .cal-cell, .cal-day-header{ background:#111111 !important; }
  .cal-cell.today{ background:#181818 !important; }
  .cal-cell.other-month{ background:#090909 !important; }

  /* Log table */
  .log-table td{ background:#111111 !important; }
  .log-table tr:hover td{ background:#181818 !important; }

  /* Pagination */
  .pagination a{ background:#111111 !important; }

  /* Section headers */
  .section-head{ border-color:#272727 !important; }
  .divider{ background:#272727 !important; }

  /* Auctions glass buttons specifically */
  .bid-btn, button[class*="bid"], button[class*="withdraw"]{
    background:#FFD700 !important; color:#000 !important;
  }
}
