/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  /* Navbar */
  .navbar, .nav {
    padding: 10px 16px !important;
  }
  .nav-container {
    padding: 10px 16px !important;
  }
  .logo {
    font-size: 1.1rem !important;
  }
  .nav-links {
    display: none !important; /* Hide desktop menu */
  }
  .mobile-menu-btn {
    display: flex !important;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.3rem;
    cursor: pointer;
  }

  /* Main content */
  .main-content, .main {
    margin-top: 60px !important;
    padding: 20px 14px !important;
  }

  /* Stats grid */
  .stats-grid, .grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Cards */
  .stat-card, .card, .trade-card, .chart-card, .side-card {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  /* Content grid (dashboard) */
  .content-grid {
    grid-template-columns: 1fr !important;
  }

  /* Action buttons */
  .action-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Tables */
  table {
    font-size: 0.8rem !important;
  }
  th, td {
    padding: 8px !important;
  }

  /* Forms */
  .input-group input, .input input {
    padding: 12px !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
  }

  /* Wallet boxes */
  .balance-info, .row {
    grid-template-columns: 1fr !important;
  }

  /* Quick amounts */
  .quick-amounts, .quick {
    gap: 6px !important;
  }
  .quick-btn, .quick button {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }

  /* Portfolio donut */
  .donut-container {
    width: 160px !important;
    height: 160px !important;
  }

  /* Welcome title */
  .welcome-title, h1 {
    font-size: 1.3rem !important;
  }

  /* Footer */
  .footer {
    padding: 20px 14px !important;
    font-size: 0.75rem !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .action-grid {
    grid-template-columns: 1fr !important;
  }
  .price-value {
    font-size: 1.6rem !important;
  }
  .stat-value {
    font-size: 1.5rem !important;
  }
  .total-value, .total b {
    font-size: 1.3rem !important;
  }
  .btn, .submit-btn {
    padding: 12px !important;
    font-size: 1rem !important;
  }
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Fix iOS tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
