/* =========================================================
   Dragon Coins Shop — Main Stylesheet
   ========================================================= */

:root {
  --primary:      #f59e0b;      /* Dragon gold */
  --primary-dark: #d97706;
  --accent:       #7c3aed;      /* Purple */
  --accent-dark:  #6d28d9;
  --dark:         #0f0f1a;
  --dark2:        #1a1a2e;
  --dark3:        #16213e;
  --card-bg:      #1e1e35;
  --border:       rgba(245,158,11,.18);
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --success:      #10b981;
  --danger:       #ef4444;
  --warning:      #f59e0b;
  --info:         #3b82f6;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,.45);
  --shadow-gold:  0 0 20px rgba(245,158,11,.25);
  --transition:   .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Page background effect ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(124,58,237,.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(245,158,11,.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Container ───────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,15,26,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(245,158,11,.4);
  letter-spacing: -.5px;
}
.navbar-brand img { width: 36px; height: 36px; }
.navbar-brand span { color: #fff; }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px 6px 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

.coins-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(245,158,11,.08));
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 50px;
  padding: 5px 14px;
  font-weight: 700;
  color: var(--primary);
  font-size: .9rem;
  white-space: nowrap;
}
.coins-badge i { font-size: .85rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #0f0f1a;
  box-shadow: 0 4px 15px rgba(245,158,11,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(245,158,11,.45); color: #0f0f1a; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(124,58,237,.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(124,58,237,.45); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: rgba(245,158,11,.1); color: var(--primary); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; transform: translateY(-1px); }

.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: var(--radius); }

.btn-icon {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--dark2);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-icon:hover { background: rgba(245,158,11,.1); border-color: var(--primary); color: var(--primary); }

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary);
  color: #000;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--primary) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto 32px; }

.hero-coins-anim {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 60px 0; position: relative; z-index: 1; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.section-title p { color: var(--text-muted); font-size: 1rem; }
.section-title .underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ── Package Cards ───────────────────────────────────────── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.package-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.package-card:hover::before { opacity: 1; }
.package-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245,158,11,.4);
  box-shadow: var(--shadow-gold);
}

.package-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-new         { background: var(--info);    color: #fff; }
.badge-best-seller { background: var(--primary); color: #000; }
.badge-hot         { background: var(--danger);  color: #fff; }
.badge-sale        { background: var(--success); color: #fff; }

.package-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: block;
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { filter: drop-shadow(0 0 6px rgba(245,158,11,.4)); }
  50%      { filter: drop-shadow(0 0 18px rgba(245,158,11,.7)); }
}

.package-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.package-coins {
  margin-bottom: 16px;
}
.package-coins .main-coins {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.package-coins .bonus-coins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  color: var(--success);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: 50px;
  padding: 2px 10px;
  margin-top: 6px;
}
.package-coins .total-coins {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.package-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
.package-price .currency { font-size: .85rem; font-weight: 500; color: var(--text-muted); margin-left: 2px; }

.package-original-price {
  font-size: .88rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.package-actions {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

/* ── Cart Drawer ─────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 95vw);
  background: var(--dark2);
  border-left: 1px solid var(--border);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.5);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-meta { font-size: .78rem; color: var(--text-muted); }

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #000; }
.qty-num { font-weight: 700; font-size: .9rem; min-width: 22px; text-align: center; }

.cart-item-price { font-weight: 700; color: var(--primary); font-size: .9rem; white-space: nowrap; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.cart-total-amount { font-size: 1.4rem; font-weight: 800; color: var(--primary); }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-empty i { font-size: 3.5rem; opacity: .3; display: block; margin-bottom: 14px; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  padding: 16px;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95) translateY(10px);
  transition: transform .25s;
  box-shadow: var(--shadow);
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }

.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
  padding: 2px;
}
.modal-close:hover { color: #fff; }

/* ── Payment Methods ─────────────────────────────────────── */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255,255,255,.02);
}
.payment-method-card:hover { border-color: var(--primary); background: rgba(245,158,11,.05); }
.payment-method-card.selected { border-color: var(--primary); background: rgba(245,158,11,.08); }

.payment-method-card input[type=radio] { display: none; }

.payment-logo { width: 60px; height: 30px; object-fit: contain; border-radius: 4px; }

.payment-method-name { font-weight: 600; font-size: .95rem; }
.payment-method-desc { font-size: .8rem; color: var(--text-muted); }

.payment-tick {
  margin-left: auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.payment-method-card.selected .payment-tick {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

/* Package detail in modal */
.package-modal-detail {
  background: rgba(245,158,11,.06);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}
.package-modal-detail .pkg-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.package-modal-detail .pkg-coins { font-size: 2rem; font-weight: 900; color: var(--primary); }
.package-modal-detail .pkg-bonus { color: var(--success); font-size: .85rem; }
.package-modal-detail .pkg-price { font-size: 1.2rem; font-weight: 700; margin-top: 8px; }

/* ── Gift Code Section ───────────────────────────────────── */
.gift-code-section {
  background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(245,158,11,.06));
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin: 0 20px;
}
.gift-code-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 16px auto 0;
}
.gift-code-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  outline: none;
  transition: border-color var(--transition);
}
.gift-code-form input::placeholder { text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.gift-code-form input:focus { border-color: var(--accent); }

/* ── Order History ───────────────────────────────────────── */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.orders-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); font-weight: 600; }
.orders-table tr:hover td { background: rgba(255,255,255,.02); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.status-pending   { background: rgba(245,158,11,.15); color: var(--warning);  border: 1px solid rgba(245,158,11,.25); }
.status-completed { background: rgba(16,185,129,.12); color: var(--success);  border: 1px solid rgba(16,185,129,.25); }
.status-failed    { background: rgba(239,68,68,.12);  color: var(--danger);   border: 1px solid rgba(239,68,68,.25); }
.status-refunded  { background: rgba(59,130,246,.12); color: var(--info);     border: 1px solid rgba(59,130,246,.25); }

/* ── Form Inputs ─────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .92rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.form-control:focus { border-color: var(--primary); background: rgba(245,158,11,.05); }
.form-control::placeholder { color: var(--text-muted); }

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h4 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 22px; }

/* ── Login Page ──────────────────────────────────────────── */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.login-logo {
  text-align: center;
  margin-bottom: 30px;
}
.login-logo .icon { font-size: 3rem; color: var(--primary); }
.login-logo h2 { font-size: 1.4rem; font-weight: 800; margin-top: 8px; }
.login-logo p { color: var(--text-muted); font-size: .9rem; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-danger  { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }
.alert-info    { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
}
.footer a { color: var(--primary); }

/* ── Success / Error Pages ───────────────────────────────── */
.result-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 60px 20px;
}
.result-icon { font-size: 5rem; margin-bottom: 20px; }
.result-icon.success { color: var(--success); }
.result-icon.error   { color: var(--danger);  }

/* ── Admin ───────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 250px;
  background: var(--dark2);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-main { flex: 1; padding: 30px; min-width: 0; }

.sidebar-brand {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-nav { padding: 12px 0; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--primary);
  background: rgba(245,158,11,.06);
  border-left-color: var(--primary);
}
.sidebar-nav a i { width: 18px; text-align: center; }

.sidebar-nav .section-label {
  padding: 14px 20px 6px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(148,163,184,.5);
  font-weight: 700;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.gold    { background: rgba(245,158,11,.15); color: var(--primary); }
.stat-icon.purple  { background: rgba(124,58,237,.15); color: var(--accent);  }
.stat-icon.green   { background: rgba(16,185,129,.15); color: var(--success); }
.stat-icon.blue    { background: rgba(59,130,246,.15); color: var(--info);    }

.stat-info .value { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-info .label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* ── Utilities ───────────────────────────────────────────── */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger)  !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-center  { text-align: center; }
.fw-bold      { font-weight: 700; }
.mt-1 { margin-top: 6px; }   .mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }  .mt-4 { margin-top: 30px; }
.mb-1 { margin-bottom: 6px; }.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px;}.mb-4 { margin-bottom: 30px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.w-100 { width: 100%; }

/* ── Loader ──────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .packages-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .hero { padding: 50px 16px 40px; }
  .navbar-brand span.brand-text { display: none; }
  .gift-code-form { flex-direction: column; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .packages-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .user-info .username-text { display: none; }
}
