@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════
   HITMAN STORE — Dark Brown Theme + Sidebar
   ═══════════════════════════════════════════ */

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

:root {
  --red: #dc2626;
  --red-bright: #ef4444;
  --red-glow: #ff4444;
  --red-dark: #b91c1c;
  --red-deeper: #7f1d1d;

  --orange: #f97316;
  --orange-dark: #ea580c;

  --brown-dark: #1a110d;
  --brown: #241811;
  --brown-card: #2a1c14;
  --brown-light: #3a2a1e;

  --bg: var(--brown-dark);
  --bg-card: rgba(42, 28, 20, 0.6);
  --bg-card-hover: rgba(58, 42, 30, 0.8);

  --text: #f5f0ea;
  --text-dim: #b8a898;
  --text-muted: #7a6a5a;

  --border: rgba(255,255,255,0.06);
  --border-red: rgba(239, 68, 68, 0.3);

  --sidebar-w: 280px;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--brown-dark); }
::-webkit-scrollbar-thumb { background: #4a3828; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

.icon {
  width: 1em; height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   PARTICLES & AMBIENT GLOW
   ═══════════════════════════════════════════ */

.particles-container {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(100vh) scale(0.3); }
  10% { opacity: 0.4; }
  90% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-10vh) scale(0.8); }
}

.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-blob-1 {
  width: 500px; height: 500px;
  background: rgba(220,38,38,0.05);
  top: -10%; left: -5%;
  animation: blobDrift1 20s ease-in-out infinite alternate;
}
.glow-blob-2 {
  width: 400px; height: 400px;
  background: rgba(249,115,22,0.04);
  bottom: -5%; right: -5%;
  animation: blobDrift2 25s ease-in-out infinite alternate;
}
@keyframes blobDrift1 {
  0% { transform: translate(0,0); }
  100% { transform: translate(60px, 80px); }
}
@keyframes blobDrift2 {
  0% { transform: translate(0,0); }
  100% { transform: translate(-50px, -60px); }
}

/* ═══════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════ */

.hero-banner {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  z-index: 1;
}
.hero-banner-bg {
  position: absolute; inset: 0;
  background: url('assets/hero-bg.png') center/cover no-repeat;
}
.hero-banner-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(26,17,13,0.2) 0%,
    rgba(26,17,13,0.45) 50%,
    rgba(26,17,13,1) 100%
  );
}

.hero-top {
  position: absolute; inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hero-top-side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-top-side.right { flex-direction: row; }
.text-right { text-align: right; }

.top-icon {
  width: 34px; height: 34px;
  color: var(--text);
  opacity: 0.85;
}
.top-count {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.top-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

.dc-icon-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.dc-icon-btn:hover { background: #5865F2; transform: scale(1.05); }
.dc-icon-btn svg { width: 22px; height: 22px; fill: #fff; }

.hero-logo-wrap {
  margin: 0 4rem;
  flex-shrink: 0;
}
.hero-logo {
  width: 160px; height: 160px;
  filter: drop-shadow(0 6px 30px rgba(220,38,38,0.35));
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ═══════════════════════════════════════════
   ACTION BAR
   ═══════════════════════════════════════════ */
.action-bar {
  max-width: 1400px;
  margin: 1rem auto 0;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 5;
}
.action-left {
  display: flex; align-items: center; gap: 0.7rem;
}
.guest-avatar {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--brown-card);
  border: 1px solid var(--border);
  image-rendering: pixelated;
}
.guest-info .guest-label {
  font-size: 0.68rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.guest-info .guest-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1rem;
}
.action-right {
  display: flex; align-items: center; gap: 0.5rem;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px; border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}
.action-btn svg { width: 16px; height: 16px; }
.action-btn.cart-btn {
  background: var(--brown-light); color: var(--text);
  border: 1px solid var(--border);
}
.action-btn.cart-btn:hover { background: #4a3828; }

/* ═══════════════════════════════════════════
   NAVIGATION MENU
   ═══════════════════════════════════════════ */
.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.75rem;
  border-radius: 30px;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1), inset 0 1px 1px rgba(255,255,255,0.05);
  transition: all 0.3s var(--ease);
}
.nav-menu-list:hover {
  border-color: rgba(249, 115, 22, 0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 12px rgba(249,115,22,0.04);
}

.nav-item {
  color: var(--text-dim);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.25s var(--ease);
  position: relative;
}
.nav-item:hover { color: var(--orange); }
.nav-item.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--orange);
}

.coming-soon-item {
  cursor: not-allowed;
  opacity: 0.6;
}
.coming-soon-item:hover { color: var(--text-dim) !important; }
.coming-soon-item::before {
  content: 'COMING SOON!!';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--orange);
  white-space: nowrap;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.coming-soon-item:hover::before { opacity: 1; }

/* ═══════════════════════════════════════════
   STORE LAYOUT (Sidebar + Main)
   ═══════════════════════════════════════════ */

.store-layout {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ═══════════════════════════════════════════
   LEFT SIDEBAR
   ═══════════════════════════════════════════ */

.store-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Profile card */
.sidebar-profile {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-skin {
  width: 80px;
  height: 140px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transition: transform 0.3s;
}
.sidebar-skin:hover {
  transform: scale(1.05) rotate(2deg);
}
.sidebar-username {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.sidebar-rank {
  min-height: 1.4em;
}

/* Category nav */
.sidebar-nav {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-nav-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
}

.sidebar-cat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  width: 100%;
  text-align: left;
}
.sidebar-cat:hover {
  background: rgba(249,115,22,0.06);
  border-color: rgba(249,115,22,0.15);
  color: var(--text);
}
.sidebar-cat.active {
  background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(220,38,38,0.1));
  border-color: rgba(249,115,22,0.35);
  color: #fff;
  box-shadow: 0 2px 12px rgba(249,115,22,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}

.sidebar-cat-icon {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 4px rgba(249,115,22,0.4));
  transition: transform 0.2s;
}
.sidebar-cat:hover .sidebar-cat-icon {
  transform: scale(1.1);
}

/* Top donor */
.sidebar-donor {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.donor-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-xs);
  background: rgba(249,115,22,0.04);
  border: 1px solid rgba(249,115,22,0.1);
}
.donor-head {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  image-rendering: pixelated;
  border: 1px solid rgba(249,115,22,0.2);
}
.donor-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange);
}
.donor-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Recent purchases */
.sidebar-recent {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.recent-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.recent-list::-webkit-scrollbar { width: 3px; }
.recent-list::-webkit-scrollbar-thumb { background: #4a3828; border-radius: 3px; }

.recent-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.recent-item:hover {
  background: rgba(255,255,255,0.02);
}
.recent-head {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.recent-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-what {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════
   RIGHT MAIN PANEL
   ═══════════════════════════════════════════ */

.store-main {
  flex: 1;
  min-width: 0;
}

/* Category Banner */
.cat-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.cat-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,0.06), transparent 60%);
  pointer-events: none;
}
.cat-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red), transparent);
}
.cat-banner-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.cat-banner-icon .icon {
  width: 1.6rem; height: 1.6rem;
  color: var(--orange);
}
.cat-banner-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  position: relative;
}
.cat-banner-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
}

/* ═══════════════════════════════════════════
   CATEGORY SECTIONS
   ═══════════════════════════════════════════ */

.category {
  display: none;
}
.category.active {
  display: block;
}

/* Sub-section titles (e.g. Sell Axes / Drills inside Tools) */
.sub-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-left: 0.25rem;
}
.sub-icon {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 4px rgba(249,115,22,0.5));
}
.sub-section-title span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

/* ═══════════════════════════════════════════
   GRIDS
   ═══════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════ */

.card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  transition: all 0.3s var(--ease);
  display: flex; flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.3);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 25px rgba(249,115,22,0.06);
}
.card:hover::before { opacity: 1; }

/* Popular ribbon */
.card.popular { border-color: rgba(249,115,22,0.35); }
.card.popular::after {
  content: '\2605 POPULAR';
  position: absolute; top: 12px; right: -30px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  padding: 0.2rem 2.5rem;
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 1px;
  transform: rotate(45deg);
  box-shadow: 0 2px 12px rgba(249,115,22,0.4);
}

.card-icon {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--orange);
}
.card-icon .icon {
  width: 2.2rem; height: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(249,115,22,0.35));
  transition: all 0.3s;
}
.card:hover .card-icon .icon {
  filter: drop-shadow(0 0 18px rgba(249,115,22,0.5));
  transform: scale(1.08);
}

/* MC item images */
.mc-img {
  width: 64px; height: 64px;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 5px rgba(249,115,22,0.7))
    drop-shadow(0 0 12px rgba(220,38,38,0.45));
  animation: enchGlow 3s ease-in-out infinite;
}
@keyframes enchGlow {
  0%,100% { filter: drop-shadow(0 0 5px rgba(249,115,22,0.7)) drop-shadow(0 0 12px rgba(220,38,38,0.45)); }
  50% { filter: drop-shadow(0 0 8px rgba(255,150,50,0.9)) drop-shadow(0 0 18px rgba(239,68,68,0.6)); }
}

/* Crate key color variants */
.crate-common {
  filter: drop-shadow(0 0 6px rgba(170,170,170,0.7)) drop-shadow(0 0 12px rgba(140,140,140,0.4));
  animation: crateGlowCommon 3s ease-in-out infinite;
}
@keyframes crateGlowCommon {
  0%,100% { filter: drop-shadow(0 0 6px rgba(170,170,170,0.7)) drop-shadow(0 0 12px rgba(140,140,140,0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(200,200,200,0.9)) drop-shadow(0 0 18px rgba(170,170,170,0.6)); }
}

.crate-prime {
  filter: drop-shadow(0 0 6px rgba(59,130,246,0.7)) drop-shadow(0 0 12px rgba(37,99,235,0.4));
  animation: crateGlowPrime 3s ease-in-out infinite;
}
@keyframes crateGlowPrime {
  0%,100% { filter: drop-shadow(0 0 6px rgba(59,130,246,0.7)) drop-shadow(0 0 12px rgba(37,99,235,0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(96,165,250,0.9)) drop-shadow(0 0 18px rgba(59,130,246,0.6)); }
}

.crate-amethyst {
  filter: drop-shadow(0 0 6px rgba(168,85,247,0.7)) drop-shadow(0 0 12px rgba(139,92,246,0.4));
  animation: crateGlowAmethyst 3s ease-in-out infinite;
}
@keyframes crateGlowAmethyst {
  0%,100% { filter: drop-shadow(0 0 6px rgba(168,85,247,0.7)) drop-shadow(0 0 12px rgba(139,92,246,0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(192,132,252,0.9)) drop-shadow(0 0 18px rgba(168,85,247,0.6)); }
}

.crate-crimson {
  filter: drop-shadow(0 0 6px rgba(239,68,68,0.7)) drop-shadow(0 0 12px rgba(220,38,38,0.4));
  animation: crateGlowCrimson 3s ease-in-out infinite;
}
@keyframes crateGlowCrimson {
  0%,100% { filter: drop-shadow(0 0 6px rgba(239,68,68,0.7)) drop-shadow(0 0 12px rgba(220,38,38,0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(252,100,100,0.9)) drop-shadow(0 0 18px rgba(239,68,68,0.7)); }
}

.crate-gold {
  filter: drop-shadow(0 0 6px rgba(234,179,8,0.7)) drop-shadow(0 0 12px rgba(202,138,4,0.4));
  animation: crateGlowGold 3s ease-in-out infinite;
}
@keyframes crateGlowGold {
  0%,100% { filter: drop-shadow(0 0 6px rgba(234,179,8,0.7)) drop-shadow(0 0 12px rgba(202,138,4,0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(250,204,21,0.9)) drop-shadow(0 0 18px rgba(234,179,8,0.7)); }
}

/* Crate tags */
.card-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  align-self: center;
}
.crate-tag-common {
  background: rgba(170,170,170,0.15);
  color: #aaa;
  border: 1px solid rgba(170,170,170,0.25);
}
.crate-tag-prime {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.25);
}
.crate-tag-amethyst {
  background: rgba(168,85,247,0.15);
  color: #c084fc;
  border: 1px solid rgba(168,85,247,0.25);
}
.crate-tag-crimson {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}
.crate-tag-gold {
  background: rgba(234,179,8,0.15);
  color: #fbbf24;
  border: 1px solid rgba(234,179,8,0.25);
}

/* Spawner card */
.spawner-card {
  max-width: 320px;
}

.card-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1rem;
  margin-bottom: 0.4rem;
}

.card-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 1rem;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  margin-right: 0.3rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xs);
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  width: 100%;
  margin-top: auto;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 4px 15px rgba(249,115,22,0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(249,115,22,0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-secondary:hover {
  border-color: rgba(249,115,22,0.3);
  color: var(--orange);
  background: rgba(249,115,22,0.06);
}

/* ═══════════════════════════════════════════
   DETAIL MODAL
   ═══════════════════════════════════════════ */

.detail-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1.5rem;
  color: var(--orange);
  margin-bottom: 1rem;
}

.perks {
  list-style: none; text-align: left;
  margin-bottom: 1.25rem;
}
.perks li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.3rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.perks li:last-child { border-bottom: none; }
.perks li::before {
  content: '\2713';
  position: absolute; left: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════
   REDEEM CODE
   ═══════════════════════════════════════════ */

.redeem-row {
  display: flex; gap: 0.5rem;
}
.redeem-row .input-field { flex: 1; }
.redeem-apply-btn {
  width: auto !important;
  flex-shrink: 0;
  padding: 0.8rem 1.2rem !important;
}

.redeem-status {
  margin-top: 0.4rem;
  font-size: 0.78rem; font-weight: 500;
  min-height: 1.2em;
  color: var(--text-muted);
}
.redeem-status.success { color: #22c55e; }
.redeem-status.error { color: #ff6b6b; }

.discount-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xs);
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.15);
  margin-bottom: 0.5rem;
}
.discount-label { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); }
.discount-value { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; color: #22c55e; }

/* ═══════════════════════════════════════════
   CHECKOUT MODAL
   ═══════════════════════════════════════════ */

.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--brown);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%; max-width: 420px;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.modal-head h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1.15rem;
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--orange); color: var(--orange); }

.modal-sub {
  font-size: 0.88rem; color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.modal-sub strong { color: var(--text); }

.input-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 0.4rem;
}
.input-field {
  width: 100%; padding: 0.8rem 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.input-error {
  margin-top: 0.4rem; min-height: 1.2em;
  color: #ff6b6b; font-size: 0.78rem; font-weight: 500;
}

.modal-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-xs);
  background: rgba(249,115,22,0.05);
  border: 1px solid rgba(249,115,22,0.12);
  margin: 1rem 0;
}
.modal-total-label { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; }
.modal-total-price { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--orange); }

.modal-secure {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.modal-secure .icon { width: 1rem; height: 1rem; color: var(--orange); flex-shrink: 0; }
.modal-secure span { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.footer p { font-size: 0.8rem; color: var(--text-muted); }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--orange); }

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */

.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-xs);
  background: var(--brown);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--text);
  font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem;
  z-index: 300;
  opacity: 0;
  transition: all 0.4s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .icon { width: 1rem; height: 1rem; color: #22c55e; }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RANK BADGES
   ═══════════════════════════════════════════ */
.rank-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-left: 0.4rem;
  color: #fff;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.rank-default {
  background: #4b5563;
  border: 1px solid rgba(255,255,255,0.06);
}
.rank-hm {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border: 1px solid rgba(59,130,246,0.3);
  box-shadow: 0 0 8px rgba(59,130,246,0.25);
}
.rank-hm-plus, .rank-hm\+ {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  border: 1px solid rgba(139,92,246,0.3);
  box-shadow: 0 0 8px rgba(139,92,246,0.25);
}
.rank-overlord {
  background: linear-gradient(135deg, #c2410c, #f97316);
  border: 1px solid rgba(249,115,22,0.35);
  box-shadow: 0 0 10px rgba(249,115,22,0.3);
}
.rank-custom {
  background: linear-gradient(135deg, #111827, #374151);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.rank-donatur {
  background: linear-gradient(135deg, #0369a1, #38bdf8);
  border: 1px solid rgba(56,189,248,0.4);
  box-shadow: 0 0 12px rgba(56,189,248,0.35);
  color: #0c4a6e !important;
  text-shadow: none !important;
  font-weight: 900;
}

/* ═══════════════════════════════════════════
   LOGIN MODAL
   ═══════════════════════════════════════════ */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 8, 6, 0.96);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.login-modal {
  background: var(--brown);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  width: 90%;
  max-width: 440px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(249, 115, 22, 0.1);
  border-bottom: 3px solid var(--orange);
}
.login-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 0.5rem;
}
.login-subtitle {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.login-skin-wrap {
  position: relative;
  width: 120px;
  height: 200px;
  margin: 0 auto 1.5rem;
}
.login-skin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
  transition: transform 0.3s;
}
.login-skin-img:hover {
  transform: scale(1.05) rotate(2deg);
}
.login-input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.login-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  display: block;
}
.login-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brown-dark);
  border: 1px solid var(--border);
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
}
.login-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}
.login-bedrock-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.02);
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px dashed var(--border);
}
.login-bedrock-tip strong {
  color: var(--orange);
}
.login-btn {
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1100px) {
  .store-layout {
    flex-direction: column;
    padding: 0 1.25rem;
  }
  .store-sidebar {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .sidebar-profile {
    flex: 1 1 200px;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
  }
  .sidebar-skin {
    width: 50px;
    height: 85px;
  }
  .sidebar-nav {
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  .sidebar-nav-title {
    display: none;
  }
  .sidebar-cat {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
  }
  .sidebar-donor, .sidebar-recent {
    flex: 1 1 200px;
  }
}

@media (max-width: 768px) {
  .hero-banner { height: 260px; }
  .hero-top {
    flex-wrap: wrap;
    align-content: center;
    padding: 1rem;
    gap: 1rem 2rem;
  }
  .hero-logo-wrap {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0 0.5rem 0;
  }
  .top-label { font-size: 0.78rem; }
  .top-count { font-size: 0.55rem; }
  .top-icon { width: 20px; height: 20px; }
  .dc-icon-btn { width: 34px; height: 34px; }
  .dc-icon-btn svg { width: 18px; height: 18px; }
  .hero-logo { width: 100px; height: 100px; }

  .action-bar {
    flex-direction: column; gap: 0.75rem;
    align-items: stretch;
    padding: 0 1rem;
  }
  .action-right { justify-content: flex-end; }

  .nav-menu-list {
    order: 3;
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    margin-top: 0.5rem;
    gap: 1rem;
    padding: 0.4rem 1.25rem;
  }
  .nav-item {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
  }

  .cat-banner {
    padding: 1.25rem;
  }
  .cat-banner-title {
    font-size: 1.15rem;
  }

  .card { padding: 1.5rem 1.25rem 1.25rem; }
  .card-name { font-size: 0.9rem; }
  .card-price { font-size: 1.2rem; }
  .btn { padding: 0.65rem 1.2rem; font-size: 0.8rem; }
  .modal { padding: 1.5rem; }

  .grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-banner { height: 220px; }
  .hero-logo-wrap { margin: 0; }
  .top-label { font-size: 0.68rem; }
  .top-count { font-size: 0.48rem; letter-spacing: 0.5px; }
  .top-icon { width: 16px; height: 16px; }
  .hero-logo { width: 75px; height: 75px; }
  .dc-icon-btn { width: 28px; height: 28px; border-radius: 7px; }
  .dc-icon-btn svg { width: 15px; height: 15px; }

  .action-btn { padding: 0.4rem 0.7rem; font-size: 0.7rem; }

  .card { padding: 1.25rem 1rem 1rem; border-radius: var(--radius-sm); }
  .card-price { font-size: 1.1rem; }

  .grid-auto {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .store-layout { padding: 0 0.75rem; }

  .sidebar-profile {
    flex-direction: column;
    text-align: center;
  }
}
