/* ============================================================
   TheLastDayz — aliases sobre o design system do Podpivas
   ============================================================ */

/* ── Notification bell ──────────────────────────────────────────────────── */
.notif-container { position:relative; margin-right:4px; margin-top:8px; cursor:pointer; }
.notif-badge {
  position:absolute; left:0; top:0;
  background: var(--color-accent, #a5060e);
  border-radius:9999px;
  min-width:18px; min-height:18px;
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700; color:#fff;
  line-height:1; padding:2px 4px;
  transform: translate(-4px, -4px);
}
.notif-badge span { font-size:10px; padding:0; }
.notif-bell { padding:8px; color: var(--color-text-muted, #a1a1aa); transition:color .2s; }
.notif-bell:hover { color: var(--color-text, #f4f4f5); }
.notif-bell svg { width:22px; height:22px; }

:root {
  /* aliases para compatibilidade interna */
  --accent:        var(--color-accent, #a5060e);
  --accent-hover:  var(--color-accent-hover, #c1121f);
  --accent-glow:   rgba(165, 6, 14, 0.35);
  --bg-base:       var(--color-bg, #111111);
  --bg-card:       var(--card-bg, #1c1c1e);
  --bg-card-hover: var(--color-bg-alt, #181818);
  --bg-input:      var(--input-bg, #111111);
  --bg-modal:      var(--modal-bg, #141414);
  --bg-sidebar:    var(--color-bg-alt, #181818);
  --border:        var(--color-border, #27272a);
  --text-primary:  var(--color-text, #f4f4f5);
  --text-secondary:var(--color-text-muted, #a1a1aa);
  --text-muted:    var(--color-text-muted, #a1a1aa);
  --danger:        #ef4444;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.2s ease;
  --shadow-card:   var(--card-shadow, 0 24px 48px -12px rgba(0,0,0,.65));
  --shadow-glow:   0 0 20px var(--accent-glow);
  --text: var(--color-text, #f4f4f5);
}


/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Figtree', system-ui, sans-serif;
  background-color: var(--color-bg, #111111);
  color: var(--color-text, #f4f4f5);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg, #111111); }
::-webkit-scrollbar-thumb { background: var(--color-border, #27272a); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent, #a5060e); }

/* ============================================================
   HEADER (novo — Tailwind classes, apenas suporte mobile)
   ============================================================ */

.btn-balance, .btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-balance {
  background: rgba(229, 62, 62, 0.15);
  color: var(--accent);
  border: 1px solid rgba(229, 62, 62, 0.3);
}
.btn-balance:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.balance-wrap { position: relative; }
.balance-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1d2e;
  border: 1px solid #23273a;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 200px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  pointer-events: none;
}
.balance-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 16px;
  width: 10px;
  height: 10px;
  background: #1a1d2e;
  border-left: 1px solid #23273a;
  border-top: 1px solid #23273a;
  transform: rotate(45deg);
}
.balance-tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  padding: 4px 0;
  color: #c8cee0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.balance-tooltip-row:last-child { border-bottom: none; }
.balance-tooltip-row .sv-name { color: #8892a4; }
.balance-tooltip-row .sv-coins { font-weight: 700; color: #e53e3e; }

.btn-login {
  background: var(--accent);
  color: #fff;
}
.btn-login:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar-hamburger:hover span { background: var(--text-primary); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-bg-alt, #181818);
  border: 1px solid var(--color-border, #27272a);
  border-radius: 0 0 16px 16px;
  padding: 8px 16px 16px;
  margin-top: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted, #a1a1aa);
  transition: all var(--transition);
}
.mobile-nav-link:hover { color: var(--color-text, #f4f4f5); background: var(--color-bg, #111111); }
.mobile-nav-btn { background: none; border: none; cursor: pointer; width: 100%; text-align: left; }

/* ── Flash messages ──────────────────────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  width: calc(100vw - 32px);
}
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  animation: slideIn 0.25s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: none; }
}
.flash-success { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.4); color: #4ade80; }
.flash-error   { background: rgba(239,68,68,.15);  border-color: rgba(239,68,68,.4);  color: #f87171; }
.flash-warning { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.4); color: #fbbf24; }
.flash-info    { background: rgba(229,62,62,.15);border-color: rgba(229,62,62,.4);color: #818cf8; }
.flash span    { flex: 1; }
.flash-close   {
  background: none; border: none; cursor: pointer;
  color: inherit; opacity: .6; font-size: .75rem;
  padding: 2px 4px; transition: opacity var(--transition);
}
.flash-close:hover { opacity: 1; }

/* ── User avatar menu ────────────────────────────────────────────────────── */
.user-menu-wrap   { position: relative; }
.user-avatar-btn  {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 10px 5px 5px;
  cursor: pointer; color: var(--text-primary); transition: border-color var(--transition);
}
.user-avatar-btn:hover { border-color: var(--accent); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 6px; object-fit: cover;
}
.user-name  { font-size: .85rem; font-weight: 600; max-width: 120px;
              overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-caret { font-size: .65rem; color: var(--text-muted); transition: transform var(--transition); }
.user-avatar-btn:has(+ .user-dropdown.open) .user-caret { transform: rotate(180deg); }

.user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; background: var(--bg-modal); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  max-height: min(70vh, 520px); overflow-y: auto; z-index: 1000;
}
.user-dropdown.open { display: block; animation: modalIn .15s ease; }

.user-dropdown-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: var(--bg-base);
}
.user-avatar-lg   { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.user-dropdown-name { font-size: .875rem; font-weight: 700; color: var(--text-primary); }
.user-dropdown-id   { font-size: .7rem; color: var(--text-muted); font-family: monospace; }

.user-dropdown-balance {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: rgba(229,62,62,.1);
  color: var(--accent); font-weight: 700; font-size: .875rem;
  border-bottom: 1px solid var(--border);
}

.user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: .875rem; color: var(--text-secondary);
  transition: all var(--transition); cursor: pointer;
  background: none; border: none; width: 100%; text-align: left; font-family: inherit;
}
.user-dropdown-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.user-dropdown-item i     { width: 14px; text-align: center; }

.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-dropdown-form    { display: block; }
.user-dropdown-logout:hover   { color: var(--danger); }
.user-dropdown-streamer       { color: var(--accent) !important; }
.user-dropdown-streamer:hover { background: rgba(229,62,62,.12) !important; }
.user-dropdown-admin          { color: #f59e0b !important; }
.user-dropdown-admin:hover    { background: rgba(245,158,11,.12) !important; }

/* ── Topup extras ────────────────────────────────────────────────────────── */
.topup-login-required {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 24px 0; color: var(--text-muted); text-align: center;
}
.topup-login-required .btn-submit { width: auto; padding: 10px 24px; }

.coins-rate-info {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--text-muted);
  padding: 8px 12px; background: var(--bg-base);
  border-radius: var(--radius-sm);
}

.coins-preview {
  padding: 10px 14px; background: rgba(229,62,62,.1);
  border: 1px solid rgba(229,62,62,.3); border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text-secondary);
}
.coins-preview strong { color: var(--accent); }

/* Mobile nav button (logout inside mobile menu) */
.mobile-nav-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: inherit; width: 100%; text-align: left;
}

/* ============================================================
   BANNER
   ============================================================ */
.banner {
  width: 100%;
  overflow: hidden;
  max-height: 320px;
  background: var(--bg-card);
}
.banner-small { max-height: 180px; }
.banner-inner {
  width: 100%;
  height: 100%;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 6px auto;
  padding: 6px 24px;
}

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop-section {
  padding: 32px 0 64px;
}

/* Search */
.search-bar {
  position: relative;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px 12px 44px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }
.search-clear {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.search-clear:hover { color: var(--danger); }

/* Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.categories-sidebar {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 80px;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.category-list { display: flex; flex-direction: column; gap: 2px; }

.category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
}
.category-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.category-item.active {
  background: rgba(229, 62, 62, 0.15);
  color: var(--accent);
}
.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition);
}
.category-item.active .cat-dot { background: var(--accent); }
.category-item:hover .cat-dot { background: var(--text-secondary); }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-area { min-width: 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.product-labels {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.label {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.label-novo, .label-new { background: #16a34a; color: #fff; }
.label-popular { background: var(--accent); color: #fff; }
.label-hot { background: #dc2626; color: #fff; }
.label-sale { background: var(--warning); color: #000; }

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.discount-badge-lg {
  font-size: 0.9rem;
  padding: 5px 12px;
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.product-price-old {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.btn-buy {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(229, 62, 62, 0.15);
  border: 1px solid rgba(229, 62, 62, 0.3);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-buy:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
}
.empty-icon { font-size: 3rem; margin-bottom: 8px; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  margin-top: 4px;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb-link { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb-link:hover { color: var(--accent); }
.breadcrumb-sep { font-size: 0.65rem; }
.breadcrumb-current { color: var(--text-primary); }

.product-detail-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 36px;
  align-items: start;
}

.product-gallery {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.detail-price-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.detail-price-old {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.detail-discount-tag {
  background: var(--danger);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.detail-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.detail-description p { margin-bottom: 8px; }
.detail-description p:last-child { margin-bottom: 0; }

.buy-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buy-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.buy-total-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.detail-actions {
  display: flex;
  gap: 12px;
}

.btn-submit-lg {
  flex: 1;
  padding: 12px 20px;
  font-size: 1rem;
}

.btn-back {
  padding: 10px 16px;
  white-space: nowrap;
}

.mb-2 { margin-bottom: 8px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }

.promo-row {
  display: flex;
  gap: 8px;
}
.promo-row .form-input { flex: 1; }

.btn-promo {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-promo:hover { border-color: var(--accent); color: var(--accent); }

.amount-presets {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.preset-btn {
  padding: 6px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-submit {
  width: 100%;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-submit:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.2s ease;
}
.modal-buy { max-width: 420px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  margin-bottom: 4px;
}
.modal-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
.modal-close {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--danger); border-color: var(--danger); }

.modal-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }

/* Payment methods */
.payment-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-method-btn {
  flex: 1;
  min-width: 90px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-family: inherit;
}
.payment-method-btn.active,
.payment-method-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(229,62,62,0.1);
}

.bonus-tiers { display: flex; flex-direction: column; gap: 6px; }
.bonus-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.bonus-badge {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Buy modal product header */
.buy-product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
}
.buy-product-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 6px;
}
.buy-product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.buy-product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 32px 16px;
}
.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.auth-logo {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-glow);
}
.auth-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.auth-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 28px; }

.auth-methods { margin-bottom: 20px; }
.btn-steam {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #1b2838;
  border: 1px solid #3d5a80;
  border-radius: var(--radius-sm);
  color: #c7d5e0;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-steam:hover { background: #2a475e; border-color: #66c0f4; color: #66c0f4; }
.btn-steam .fab { font-size: 1.2rem; }

.auth-divider {
  text-align: center;
  position: relative;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 16px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-form { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.auth-footer { margin-top: 24px; font-size: 0.875rem; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-brand .brand-icon {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}
.footer-docs { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--accent); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }
.footer-nkorea { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-nkorea:hover { color: var(--accent); }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.profile-info  { flex: 1; min-width: 160px; }
.profile-name  { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.profile-steamid {
  font-size: .8rem; color: var(--text-muted);
  font-family: monospace; display: flex; align-items: center; gap: 6px;
}

.profile-balance-card {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  margin-left: auto;
}
.profile-balance-label  { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.profile-balance-amount {
  font-size: 1.8rem; font-weight: 800; color: var(--accent);
  line-height: 1;
}

/* Tabs */
.profile-tabs  {
  display: flex; gap: 4px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.profile-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-muted); font-size: .875rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition); font-family: inherit;
  margin-bottom: -1px;
}
.profile-tab:hover        { color: var(--text-primary); }
.profile-tab.active       { color: var(--accent); border-bottom-color: var(--accent); }

.profile-panel { min-height: 200px; }

/* History table */
.history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.history-table {
  width: 100%; border-collapse: collapse; font-size: .875rem;
}
.history-table th {
  padding: 12px 16px; text-align: left;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted);
  background: var(--bg-sidebar); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.history-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary); vertical-align: middle;
}
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td      { background: var(--bg-card-hover); }

.text-muted   { color: var(--text-muted) !important; }
.text-sm      { font-size: .8rem !important; }
.text-success { color: var(--success) !important; font-weight: 600; }
.text-danger  { color: var(--danger) !important; font-weight: 600; }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 600;
}
.status-success { background: rgba(34,197,94,.15); color: var(--success); }
.status-error   { background: rgba(239,68,68,.15);  color: var(--danger); }
.status-pending { background: rgba(245,158,11,.15); color: var(--warning); }

/* Auth note */
.auth-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}
.auth-note i { margin-top: 2px; color: var(--accent); flex-shrink: 0; }

/* ============================================================
   RELOAD / ADMIN PAGE
   ============================================================ */
.reload-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.reload-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.reload-header i  { font-size: 1.5rem; color: var(--accent); }
.reload-header h1 { font-size: 1.3rem; font-weight: 700; }

.reload-mode-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.reload-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid;
}
.reload-mode-local  { background: rgba(34,197,94,.12);  border-color: rgba(34,197,94,.35);  color: var(--success); }
.reload-mode-online { background: rgba(229,62,62,.12); border-color: rgba(229,62,62,.35); color: var(--accent); }

.reload-path {
  font-size: .8rem;
  color: var(--text-muted);
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reload-section { display: flex; flex-direction: column; gap: 10px; }
.reload-section-title {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
}

.reload-file-list  { display: flex; flex-direction: column; gap: 6px; }
.reload-file-item  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text-secondary);
  gap: 12px;
}
.reload-file-item span { display: flex; align-items: center; gap: 8px; }
.reload-file-source i  { font-size: .9rem; }

.btn-reload-single {
  padding: 5px 12px;
  background: rgba(229,62,62,.12);
  border: 1px solid rgba(229,62,62,.3);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-reload-single:hover {
  background: var(--accent);
  color: #fff;
}

code {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .85em;
  font-family: monospace;
  color: var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .categories-sidebar {
    position: static;
  }
  .category-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .category-item {
    padding: 6px 12px;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .product-gallery {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .navbar-links { display: none; }
  .navbar-hamburger { display: flex; }
  .btn-balance span, .btn-login span { display: none; }
  .btn-balance, .btn-login { padding: 7px 10px; }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .banner { max-height: 180px; }
  .detail-title { font-size: 1.3rem; }
  .detail-price { font-size: 1.5rem; }
  .detail-actions { flex-direction: column; }
  .auth-box { padding: 24px 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

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