/* nhieuvuspam1 Deposit Styles Integration */
:root {
    --nh-bg: #0f172a;
    --nh-surface: #1e293b;
    --nh-border: rgba(59, 130, 246, 0.2);
    --nh-text: #e2e8f0;
    --nh-muted: #64748b;
    --nh-sub: #94a3b8;
    --nh-primary: #60a5fa;
    --nh-primary2: #6366f1;
    --nh-green: #4ade80;
    --nh-yellow: #fbbf24;
    --nh-red: #f87171;
    --nh-blue: #60a5fa;
    --nh-orange: #fb923c;
    --nh-cyan: #22d3ee;
    --nh-radius: 12px;
}

.nh-hero-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--nh-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.nh-hero-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
}

.nh-hero-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.12) 0%, transparent 70%);
}

.nh-hero-total {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.nh-hero-label {
    font-size: 12px;
    color: var(--nh-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.nh-hero-amount {
    font-size: 32px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.nh-hero-amount small {
    font-size: 16px;
    font-weight: 400;
    color: var(--nh-sub);
}

.nh-balance-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.nh-balance-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.2s;
}

.nh-balance-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.nh-balance-box .bb-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
}

.nh-balance-box .bb-amount {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.nh-balance-box .bb-label {
    font-size: 11px;
    color: var(--nh-sub);
    line-height: 1.3;
}

.bb-deposit .bb-icon {
    background: rgba(251, 146, 60, 0.15);
    color: var(--nh-orange);
}

.bb-earned .bb-icon {
    background: rgba(74, 222, 128, 0.15);
    color: var(--nh-green);
}

.nh-balance-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.nh-btag {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.nh-btag-deposit {
    background: rgba(251, 146, 60, 0.08);
    border: 1px solid rgba(251, 146, 60, 0.2);
    color: var(--nh-orange);
}

.nh-btag-earned {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: var(--nh-green);
}

.nh-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--nh-sub);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nh-deposit-panel {
    background: var(--nh-surface);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.nh-bank-info-grid {
    display: grid;
    gap: 12px;
}

.nh-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid var(--nh-border);
}

.nh-bank-row-label {
    font-size: 11px;
    color: var(--nh-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.nh-bank-row-val {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-align: right;
}

.nh-bank-row-val.highlight {
    color: var(--nh-green);
    font-size: 18px;
    font-weight: 700;
}

.nh-transfer-content-box {
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 146, 60, 0.08) 100%);
    border: 1px dashed rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nh-tc-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--nh-yellow);
    letter-spacing: 0.3px;
}

.nh-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--nh-blue);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.15s;
    white-space: nowrap;
}

.nh-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--nh-blue);
}

.nh-copy-btn.copied {
    color: var(--nh-green);
    border-color: rgba(74, 222, 128, 0.4);
}

.nh-notice-list {
    list-style: none;
    margin-top: 14px;
    padding: 0;
}

.nh-notice-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--nh-sub);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.nh-notice-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nh-notice-list li i {
    color: var(--nh-yellow);
    flex-shrink: 0;
    margin-top: 2px;
}

.nh-history-panel {
    background: var(--nh-surface);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius);
    padding: 0;
    overflow: hidden;
}

.nh-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.nh-history-table th {
    padding: 12px 14px;
    color: var(--nh-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--nh-border);
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
}

.nh-history-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.nh-history-table tr:last-child td {
    border-bottom: none;
}

.nh-history-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.nh-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.nh-status-pending {
    background: rgba(251, 191, 36, 0.12);
    color: var(--nh-yellow);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.nh-status-completed {
    background: rgba(74, 222, 128, 0.12);
    color: var(--nh-green);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.nh-status-rejected {
    background: rgba(248, 113, 113, 0.12);
    color: var(--nh-red);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.nh-amt-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--nh-sub);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.nh-amt-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nh-deposit-input:focus {
    border-color: var(--nh-primary);
}

.nh-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastFadeOut {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(20px) scale(0.95); opacity: 0; }
}

/* RESPONSIVE */
@media(max-width: 480px) {
    .nh-hero-amount { font-size: 26px; }
    .nh-balance-box .bb-amount { font-size: 15px; }
    .nh-bank-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .nh-bank-row-val { text-align: left; }
    .nh-transfer-content-box { flex-direction: column; gap: 10px; text-align: center; }
}

:root {
  --bg-dark: #0b0e11;
  --bg-card: #161a1e;
  --bg-card-hover: #1c2126;
  --bg-header: rgba(11, 14, 17, 0.95);
  --border-color: #262c33;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #00cfc8;
  --accent-glow: rgba(0, 207, 200, 0.3);
  --gradient-accent: linear-gradient(135deg, #00cfc8, #008f8a);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Header Styles */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.header-container { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 20px;
}

.header-left {
  flex-shrink: 0;
}

.navbar {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.header-right {
  flex-shrink: 0;
}

.nav-links { 
  display: flex; 
  list-style: none; 
  gap: 30px; 
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 24px; color: var(--accent); }
.logo-text { font-size: 20px; font-weight: 800; color: white; letter-spacing: 1px; }
.logo-text span { color: var(--accent); }
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.action-item { position: relative; cursor: pointer; color: var(--text-secondary); font-size: 18px; transition: color 0.3s; }
.action-item:hover { color: white; }
.action-item .badge {
  position: absolute; top: -5px; right: -5px;
  background: #ef4444; color: white; font-size: 10px;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.user-balance-header {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px; border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}
.user-balance-header:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}
.balance-label { font-size: 11px; color: var(--text-muted); }
.balance-value { font-size: 13px; font-weight: 700; color: var(--accent); }
.balance-plus {
  width: 18px; height: 18px; background: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--bg-dark); cursor: pointer;
}

/* Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  margin-top: 30px;
  align-items: start;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0, 207, 200, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 207, 200, 0.4);
  filter: brightness(1.1);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 207, 200, 0.05);
  box-shadow: 0 0 15px rgba(0, 207, 200, 0.1);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

.btn-block { width: 100%; }

/* Filter Tabs & Pills */
.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab:hover, .filter-tab.active {
  background: var(--gradient-accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Category Pills */
.pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.pill:hover, .pill.active {
  background: rgba(0, 207, 200, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

/* Auth Pages (Login/Register) */
.auth-page {
  background: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.auth-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; text-decoration: none;
  margin-bottom: 30px;
}

.auth-logo i { font-size: 32px; color: var(--accent); }
.auth-logo span { font-size: 24px; font-weight: 800; color: white; letter-spacing: 1px; }
.auth-logo span span { color: var(--accent); }

.auth-card h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 30px;
  color: white;
}

.form-group { margin-bottom: 20px; position: relative; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-wrapper { position: relative; }

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 15px 12px 45px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: var(--accent);
  background: rgba(0, 207, 200, 0.05);
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.auth-link {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Charge Page Styles */
.charge-page { padding-top: 40px; padding-bottom: 80px; }

.charge-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.charge-card h1 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 30px;
  text-align: center;
}

.balance-display {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

.balance-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.amount-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 15px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.amount-btn:hover, .amount-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 207, 200, 0.05);
}

.charge-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.charge-method {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.charge-method:hover, .charge-method.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 207, 200, 0.05);
}

.charge-methods-container { margin-bottom: 30px; }
.charge-methods-container h3 { font-size: 16px; font-weight: 700; margin-bottom: 15px; color: var(--text-secondary); }

.qr-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
}

.qr-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 25px;
  background: white;
  padding: 10px;
  border-radius: 10px;
}

.qr-wrapper img { width: 100%; height: 100%; object-fit: contain; }

.qr-scan-line {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

.bank-details {
  text-align: left;
  background: rgba(0,0,0,0.2);
  padding: 20px;
  border-radius: var(--radius-sm);
}

.bank-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.bank-row span { color: var(--text-muted); }
.bank-row strong { color: white; }
.bank-row.content-row strong { color: var(--accent); font-family: monospace; font-size: 16px; }

.history-list {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.history-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.history-item:last-child { border-bottom: none; }
.history-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0, 207, 200, 0.1); color: var(--accent); }
.history-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.history-info p { font-size: 12px; color: var(--text-muted); }
.history-amount { font-weight: 800; color: white; }
.history-status { font-size: 11px; padding: 4px 8px; border-radius: 4px; font-weight: 700; }
.history-status-container { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.btn-check-sepay { background: var(--accent-color); color: white; border: none; padding: 4px 8px; border-radius: 4px; font-size: 10px; cursor: pointer; transition: all 0.3s; }
.btn-check-sepay:hover { background: var(--primary-color); transform: translateY(-1px); }
.btn-check-sepay:disabled { background: #ccc; cursor: not-allowed; }
.status-pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-completed { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-failed { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Sidebars */
aside { display: flex; flex-direction: column; gap: 20px; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.card-header {
  padding: 16px; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: 10px;
}
.card-header i { color: var(--accent); font-size: 18px; }
.card-header h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Main Content */
.welcome-text { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }

.search-container { margin-bottom: 30px; }
.search-wrapper {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 2px;
  display: flex; align-items: center;
  transition: border-color 0.3s;
}
.search-wrapper:focus-within { border-color: var(--accent); }
.search-wrapper i.fa-search { position: absolute; left: 20px; color: var(--text-muted); }
.search-wrapper input {
  flex: 1; background: none; border: none; outline: none;
  color: white; padding: 12px 12px 12px 50px; font-size: 14px;
}
.search-btn {
  background: var(--accent); color: var(--bg-dark);
  border: none; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; transition: transform 0.3s;
}
.search-btn:hover { transform: scale(1.05); }

/* Categories */
.category-filters { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.filter-group { display: flex; align-items: center; gap: 20px; }
.filter-label { font-size: 12px; font-weight: 800; color: var(--text-muted); min-width: 80px; }
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-secondary); padding: 8px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.pill:hover, .pill.active { border-color: var(--accent); color: var(--accent); background: rgba(0, 207, 200, 0.05); }

/* Grid Header */
.section-top-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color);
}
.section-top-bar h2 { font-size: 18px; font-weight: 800; }
.view-controls { display: flex; align-items: center; gap: 16px; }

.sort-select {
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-secondary); padding: 6px 12px; border-radius: var(--radius-sm);
  outline: none; font-size: 13px;
}

.view-toggle { display: flex; gap: 4px; background: var(--bg-card); padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.view-toggle button {
  background: none; border: none; color: var(--text-muted);
  width: 28px; height: 28px; border-radius: 4px; cursor: pointer;
}
.view-toggle button.active { background: #374151; color: var(--accent); }

.pagination-simple { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-secondary); }
.pagination-simple button {
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-secondary); width: 30px; height: 30px; border-radius: 4px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pagination-simple button:disabled { opacity: 0.3; cursor: not-allowed; }

/* Game Cards */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

.game-card {
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-color);
  overflow: hidden; cursor: pointer; transition: all 0.3s;
  position: relative;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
}

.game-card-cover { position: relative; height: 280px; overflow: hidden; }
.game-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.game-card:hover .game-card-cover img { transform: scale(1.05); }

.game-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: #7c3aed; color: white; padding: 4px 10px;
  border-radius: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase;
  z-index: 2;
}
.game-card-platform {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  color: white; padding: 4px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; z-index: 2;
}

.game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(11, 14, 17, 0.95) 100%);
  z-index: 1;
}

.game-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px; z-index: 2;
}
.game-card-content h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

#auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

#auth-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

#auth-buttons .login-btn {
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

#auth-buttons .login-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

#auth-buttons .register-btn {
  background: var(--gradient-accent);
  color: var(--bg-dark);
}

#auth-buttons .register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

#auth-buttons .user-info {
  color: var(--text-secondary);
  font-weight: 500;
}

#auth-buttons .user-balance-text {
  color: var(--accent);
  font-weight: 700;
}

#auth-buttons .logout-btn {
  color: #ef4444 !important;
}

#auth-buttons .logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}
.game-card-meta i { color: #fbbf24; }

.game-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; }
.game-price { color: var(--accent); font-size: 16px; font-weight: 800; }
.game-stock-badge { font-size: 10px; background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; color: var(--text-secondary); }

/* Account Cards */
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.account-card {
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-color);
  overflow: hidden; transition: all 0.3s;
}
.account-card:hover { border-color: var(--accent); transform: translateY(-5px); }

.account-card-cover { position: relative; height: 160px; overflow: hidden; }
.account-card-cover img { width: 100%; height: 100%; object-fit: cover; }

.account-card-body { padding: 16px; }
.account-card-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: white; }
.account-card-body p { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; height: 36px; overflow: hidden; }

.account-card-info { font-size: 11px; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }

.account-card-footer { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 16px; 
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.account-stock { 
  font-size: 11px; 
  color: #10b981; 
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.account-stock.out { color: #ef4444; }
.account-sold { 
  font-size: 11px; 
  color: var(--text-muted); 
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-buy {
  width: 100%; background: var(--accent); color: var(--bg-dark);
  border: none; padding: 10px; border-radius: var(--radius-sm);
  font-weight: 700; cursor: pointer; transition: all 0.3s;
}
.btn-buy:hover { opacity: 0.9; transform: scale(1.02); }
.btn-buy:disabled { background: #374151; color: var(--text-muted); cursor: not-allowed; }

/* Ad Banner */
.ad-banner {
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-color);
  overflow: hidden; cursor: pointer;
}
.ad-banner img { width: 100%; height: 350px; object-fit: cover; }
.ad-content { padding: 16px; }
.ad-content h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--text-muted); margin-bottom: 16px; }
.ad-meta span { display: flex; align-items: center; gap: 4px; }
.ad-meta .fa-star { color: #fbbf24; }
.ad-badge { background: #374151; color: #fbbf24; border: 1px solid #fbbf24; padding: 1px 6px; border-radius: 4px; font-weight: 800; font-size: 9px; }

.ad-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 12px; }
.ad-footer .price { color: var(--accent); font-size: 18px; font-weight: 900; }
.ad-footer .stock { font-size: 11px; color: var(--text-muted); }

/* Modal & Other styles from original */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 7, 9, 0.9);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  backdrop-filter: blur(10px);
}
.modal {
  background: #161a1e; width: 90%; max-width: 500px;
  border-radius: 24px; border: 1px solid var(--border-color);
  position: relative; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.modal-close {
  position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); color: white; width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; z-index: 100; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.modal-close:hover { background: #ef4444; border-color: #ef4444; color: white; transform: rotate(90deg); }

.modal-cover { position: relative; height: 220px; width: 100%; }
.modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(22, 26, 30, 0.95) 100%);
}
.modal-watermark {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px; text-transform: uppercase; z-index: 10;
}
.modal-cover-content {
  position: absolute; bottom: 20px; left: 24px; right: 24px; z-index: 20;
}
.modal-badge {
  display: inline-block; background: var(--accent); color: var(--bg-dark);
  padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 800;
  margin-bottom: 8px; text-transform: uppercase;
}
.modal-cover-content h2 { font-size: 22px; font-weight: 800; color: white; margin: 0; }

.modal-details { padding: 24px; }

/* Purchase Modal Styling */
.purchase-modal-content {
  padding: 40px 30px;
  text-align: center;
}

.purchase-modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
}

.purchase-modal-icon.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.2);
}

.purchase-modal-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 2px solid rgba(16, 185, 129, 0.2);
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

.acc-credentials {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.cred-row {
  margin-bottom: 16px;
}

.cred-row:last-child {
  margin-bottom: 0;
}

.cred-row .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.value-box {
  background: #0b0e11;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.value-box code {
  color: var(--accent);
  font-family: 'Inter', monospace;
  font-size: 14px;
  font-weight: 600;
}

.copy-mini {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s;
}

.copy-mini:hover {
  color: white;
}

.modal-note {
  font-size: 12px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-actions {
  margin-top: 20px;
}

.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border-color);
}
.detail-row:last-of-type { border-bottom: none; }
.detail-label { font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.detail-label i { width: 16px; text-align: center; }
.detail-value { font-size: 15px; font-weight: 700; color: white; }
.detail-value.price { color: var(--accent); font-size: 18px; }

.detail-info {
  background: rgba(255, 255, 255, 0.03); border-radius: 8px;
  padding: 12px; margin: 16px 0; font-size: 13px; color: var(--text-secondary);
  border: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px;
}
.detail-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 24px;
}

.footer-col ul li a i { color: var(--accent); font-size: 10px; margin-right: 8px; transition: transform 0.3s; }
.footer-col ul li a:hover i { transform: translateX(3px); }

.contact-info li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.contact-info li i { width: 20px; color: var(--accent); font-size: 14px; text-align: center; }

/* Responsive adjustments */
@media (max-width: 1200px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar-right { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 992px) {
  .main-layout { grid-template-columns: 1fr; }
  .header-container { flex-wrap: wrap; gap: 15px; justify-content: center; }
  .navbar { order: 3; width: 100%; }
  .nav-links { justify-content: center; gap: 20px; }
  .header-right { order: 2; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .header-actions { gap: 10px; }
  .user-balance-header { padding: 4px 8px; }
  .logo-text { font-size: 18px; }
  .footer { padding: 60px 0 30px; }
  .footer-col h3 { margin-bottom: 20px; }
}

/* Info Section Home (Only in Home View) */
.info-section-home { 
  margin-top: 60px;
  padding: 60px 0; 
  background: linear-gradient(to bottom, transparent, rgba(0, 207, 200, 0.02)); 
  border-top: 1px solid var(--border-color); 
}

/* Info Section (Common) */
.info-section { 
  padding: 80px 0; 
  background: linear-gradient(to bottom, transparent, rgba(0, 207, 200, 0.02)); 
  border-top: 1px solid var(--border-color); 
}
.info-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 30px; 
}
.info-card { 
  background: var(--bg-card);
  padding: 40px 30px; 
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.info-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.info-card:hover::before {
  opacity: 1;
}
.info-icon { 
  font-size: 40px; 
  color: var(--accent); 
  margin-bottom: 25px; 
  display: inline-block;
  background: rgba(0, 207, 200, 0.1);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  transition: all 0.3s;
}
.info-card:hover .info-icon {
  background: var(--accent);
  color: var(--bg-dark);
  transform: rotateY(360deg);
}
.info-card h3 { 
  font-size: 18px; 
  font-weight: 800; 
  margin-bottom: 15px; 
  color: white;
  letter-spacing: 0.5px;
}
.info-card p { 
  font-size: 14px; 
  color: var(--text-muted); 
  line-height: 1.6;
}

/* Footer */
.footer { 
  padding: 80px 0 40px; 
  background: #080a0c; 
  border-top: 1px solid var(--border-color); 
}
.footer-grid { 
  display: grid; 
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr; 
  gap: 60px; 
  margin-bottom: 60px; 
}
.footer-col h3 { 
  font-size: 18px; 
  font-weight: 800; 
  margin-bottom: 30px; 
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 0;
  width: 40px; height: 2px;
  background: var(--accent);
}
.footer-col h3 i { color: var(--accent); font-size: 20px; }

.footer-col p { 
  font-size: 14px; 
  color: var(--text-secondary); 
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { 
  color: var(--text-muted); 
  font-size: 14px; 
  text-decoration: none; 
  transition: all 0.3s; 
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-col ul li a:hover { 
  color: var(--accent); 
  padding-left: 8px;
}
.footer-col ul li a i {
  font-size: 10px;
  color: var(--accent);
  transition: transform 0.3s;
}

.contact-info li { 
  display: flex; 
  align-items: flex-start; 
  gap: 15px; 
  color: var(--text-secondary); 
  font-size: 14px; 
  margin-bottom: 20px; 
}
.contact-info li i { 
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); 
  font-size: 14px;
  flex-shrink: 0;
}

.footer-bottom { 
  padding-top: 40px; 
  border-top: 1px solid var(--border-color); 
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 14px; color: var(--text-muted); }
.social-links { display: flex; gap: 15px; }
.social-btn {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}
.social-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* Accounts Section */
.accounts-section { margin-top: 20px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 15px;
}

.accounts-game-icon {
  width: 45px;
  height: 45px;
  background: rgba(0, 207, 200, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Image Handling & Placeholders */
img {
  max-width: 100%;
  display: block;
  transition: opacity 0.3s;
}

img.img-error {
  object-fit: contain !important;
  background: var(--bg-card);
  padding: 20px;
  position: relative;
}

img.img-error::after {
  content: 'Image not found';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  background: var(--bg-card);
}

.placeholder-img {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  height: 100%;
  width: 100%;
  gap: 10px;
}

.placeholder-img i {
  font-size: 40px;
  opacity: 0.3;
}

.placeholder-img span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Animations */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
