/* ==========================================
   HUSTLERBESTLOGS - Complete Stylesheet
   ========================================== */

/* --- Variables / Theme --- */
:root {
  --gold: #d4af37;
  --gold-light: #fbbf24;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --sidebar-w: 280px;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navbar --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  gap: 1rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.logo span, .logo-gold { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.btn-gold:hover { opacity: 0.9; filter: brightness(1.1); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

/* --- Theme Toggle --- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.theme-toggle:hover { border-color: var(--gold); }

/* --- Hamburger --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* --- Wallet Balance --- */
.wallet-balance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.wallet-balance i { color: var(--gold); }

.desktop-only { display: flex; gap: 0.75rem; align-items: center; }

/* --- Auth buttons group --- */
.auth-btns { display: flex; gap: 0.6rem; align-items: center; }

/* ==========================================
   MOBILE SIDEBAR
   ========================================== */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0; right: -320px;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background: var(--bg-card);
  z-index: 1001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-sidebar.active { right: 0; }

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--border);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem;
}

.sidebar-links {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  flex: 1;
}

.sidebar-links li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.sidebar-links li a:hover {
  background: rgba(212,175,55,0.08);
  color: var(--gold);
}

.logout-link { color: var(--danger) !important; }

.sidebar-footer {
  padding: 1.2rem 1rem;
  border-top: 1px solid var(--border);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btns .btn { min-width: 180px; }

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.stat-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
}

.stat-card h3 {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Sections --- */
.section, .section-alt {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
}

.underline {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 0.7rem auto 0;
  border-radius: 2px;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card i {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Feature List --- */
.feature-list {
  max-width: 700px;
  margin: 0 auto;
}

.feature-list li {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  position: relative;
  padding-left: 1.8rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* --- Testimonials --- */
.testimonials {
  padding: 4rem 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
}

.testimonial p {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.author {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.9rem;
}

/* --- FAQ --- */
.faq {
  padding: 4rem 0;
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- CTA --- */
.cta {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta .btn { min-width: 200px; }

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.footer-col p,
.footer-col li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-col li i {
  width: 20px;
  color: var(--gold);
  margin-right: 0.3rem;
}

footer > .container > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  width: 100%;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.form-card {
  max-width: 440px;
  margin: 2rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}

.form-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-card .btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

/* --- Alerts --- */
.alert {
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error, .alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ==========================================
   DASHBOARD SPECIFIC
   ========================================== */
.dashboard {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: calc(100vh - 60px);
}

.dash-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
}

.dash-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.dash-sidebar a:hover,
.dash-sidebar a.active {
  background: rgba(212,175,55,0.08);
  color: var(--gold);
  border-right: 3px solid var(--gold);
}

.dash-main {
  padding: 2rem;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.dash-card h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.dash-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:hover { background: rgba(212,175,55,0.03); }

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
.wa-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.wa-float:hover { transform: scale(1.1); }

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.wa-float::after {
  content: "Chat with us";
  position: absolute;
  right: 60px;
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}

.wa-float:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   BOTTOM NAV (mobile only)
   ========================================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  justify-content: space-around;
  padding: 0.6rem 0;
  z-index: 99;
}

.bottom-nav a {
  text-align: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.bottom-nav a i {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.bottom-nav a.active {
  color: var(--gold);
}

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
}

/* ==========================================
   DASHBOARD
   ========================================== */
.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.welcome-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-text h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.welcome-text h1 span { color: var(--gold); }

.welcome-text p { color: var(--text-muted); font-size: 1rem; }

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card-dash {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card-dash:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.icon-wallet { background: rgba(212,175,55,0.15); color: var(--gold); }
.icon-orders { background: rgba(0,200,81,0.15); color: #00c851; }
.icon-spent { background: rgba(255,68,68,0.15); color: #ff4444; }
.icon-deposit { background: rgba(33,150,243,0.15); color: #2196f3; }
.icon-key { background: rgba(156,39,176,0.15); color: #9c27b0; }

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.activity-card, .keys-card, .quick-actions {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.activity-card h3, .keys-card h3, .quick-actions h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.activity-item, .key-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child, .key-item:last-child { border-bottom: none; }

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0,200,81,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00c851;
  font-weight: bold;
}

.key-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(156,39,176,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9c27b0;
  font-weight: bold;
}

.activity-content, .key-content { flex: 1; }

.activity-text, .key-text { font-size: 0.95rem; color: var(--text); }
.activity-text strong, .key-text strong { color: var(--text); }
.activity-time, .key-time { font-size: 0.85rem; color: var(--text-muted); }
.activity-amount { font-weight: 700; color: #00c851; }

.key-box {
  background: var(--bg);
  padding: 0.6rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

.copy-btn {
  padding: 0.4rem 0.8rem;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.activity-empty, .keys-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: opacity 0.2s;
}

.action-btn:hover { opacity: 0.9; }

.btn-orders { background: var(--gold); color: #000; }
.btn-marketplace { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }

.action-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .dashboard-container { padding: 1.5rem 1rem 6rem 1rem; }
  .welcome-text h1 { font-size: 1.3rem; }
  .stat-value { font-size: 1.2rem; }
}

/* ==========================================
   MARKETPLACE
   ========================================== */
.market-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 6rem 1rem;
}

.market-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.market-header p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-bar input, .search-bar select {
  flex: 1;
  min-width: 200px;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
}

.search-bar button {
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  background: var(--gold);
  border: none;
  cursor: pointer;
  color: #000;
  font-weight: 700;
  transition: opacity 0.2s;
}

.search-bar button:hover { opacity: 0.9; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.product-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212,175,55,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.price-tag {
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.stock-info { color: var(--text-muted); font-size: 0.9rem; }

.qty-input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.buy-btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.buy-btn:hover { opacity: 0.9; }
.buy-btn:disabled { background: var(--text-muted); cursor: not-allowed; }

@media(max-width: 600px){
  .product-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   ORDERS
   ========================================== */
.orders-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 6rem 1rem;
}

.orders-header h1 {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.orders-header p { color: var(--text-muted); }

.orders-table {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  border-collapse: collapse;
}

.orders-table th {
  text-align: left;
  padding: 1rem;
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.orders-table td {
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.order-id { color: var(--gold); font-weight: 700; }

.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.status-completed { background: rgba(0,200,81,0.15); color: #00c851; }
.status-pending { background: rgba(255,187,0,0.15); color: #ffbb00; }
.status-failed { background: rgba(255,68,68,0.15); color: #ff4444; }

.orders-mobile { display: none; flex-direction: column; gap: 1rem; }

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.order-card-body { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.pagination a {
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.pagination a.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .orders-table { display: none; }
  .orders-mobile { display: flex; }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .navbar { padding: 0.7rem 1rem; }
  .nav-links,
  .desktop-only { display: none !important; }
  .hamburger { display: block; }
  .logo { font-size: 1.1rem; }

  .hero { padding: 3rem 1.2rem; }
  .hero h1 { font-size: 1.8rem; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card h3 { font-size: 1.6rem; }

  .section { padding: 2.5rem 0; }
  .card { padding: 1.5rem; }

  .dashboard {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    display: none;
  }
  .dash-main { padding: 1rem; }

  .form-card {
    margin: 1rem;
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-btns .btn { min-width: 140px; }
}

@media (min-width: 769px) {
  .mobile-sidebar,
  .sidebar-overlay { display: none; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
