/* RESTOCK STORE */
:root {
  --dark: #0b0f0d;
  --panel: #121a16;
  --card: #16211b;
  --line: rgba(255, 255, 255, 0.08);
  --green: #3ee08b;
  --green-2: #c9f7dc;
  --text: #e8f5ee;
  --muted: #8aa79a;
  --red: #ff6b6b;
  --gold: #ffd166;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 500px at 10% -10%, rgba(62, 224, 139, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(62, 224, 139, 0.06), transparent 60%);
}
a { color: var(--green); text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 800; letter-spacing: 1px; color: var(--green-2); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.brand .leaf { color: var(--green); }
.brand .logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.brand-sub { font-weight: 600; letter-spacing: 0; color: var(--muted); font-size: 12px; display: block; }
a.brand { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; }
a.brand .logo { margin-bottom: 2px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.btn-discord {
  background: #5865F2; color: #fff !important;
  padding: 8px 16px; border-radius: 8px; font-weight: 600;
}
.btn-discord:hover { background: #6b77f5; }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero .container, .hero .leaffloat { position: relative; z-index: 1; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(11,15,13,0.55) 0%, rgba(11,15,13,0.78) 60%, var(--dark) 100%),
    url('https://i.ibb.co/Xr5QvLZP/standard-2.gif') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(11, 15, 13, 0.35);
}
@keyframes heroZoom {
  0% { transform: scale(1.02); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1.02); }
}
.hero:hover .hero-bg { animation: heroZoom 14s ease-in-out infinite; }
.hero .kicker { color: var(--green); letter-spacing: 4px; font-size: 12px; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); margin: 12px 0 8px; letter-spacing: 1px; }
.hero h1 .accent { color: var(--green); }
.brand-line { color: var(--muted); font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 16px; }
.hero .badges { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge {
  background: var(--panel); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--green-2);
}

/* Categories */
.cat-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 34px 0 28px; }
.cat-tab {
  background: var(--panel); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 12px; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 14px; transition: all 0.15s;
}
.cat-tab:hover { color: var(--green); }
.cat-tab.active { background: var(--green); color: #06210f; border-color: var(--green); }

/* Section */
.section { padding: 20px 0 56px; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 24px; }
.section-head .icon-img { width: 30px; height: 30px; border-radius: 8px; vertical-align: -5px; object-fit: cover; }
.cat-tab .tab-icon { width: 20px; height: 20px; border-radius: 5px; vertical-align: -4px; object-fit: cover; margin-right: 4px; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }

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

/* Card */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; display: flex; flex-direction: column;
  transition: transform 0.15s, border-color 0.15s; position: relative;
}
.card:hover { transform: translateY(-3px); border-color: rgba(62, 224, 139, 0.4); }
.card .icon { font-size: 26px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.card .icon .card-icon { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.stock-row { display: flex; gap: 8px; justify-content: center; min-height: 28px; margin: -2px 0 10px; flex-wrap: wrap; }
.stock-row .stock-e { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.verified { display: inline-block; width: 18px; height: 18px; vertical-align: -2px; margin-left: 4px; }
.mini-icon { display: inline-block; width: 18px; height: 18px; border-radius: 5px; object-fit: cover; vertical-align: -3px; }
.mrow { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.mrow-label { width: 140px; flex: none; font-size: 13px; color: var(--muted); }
#catEmojiFields .input { flex: 1; }
.card .tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: #241c00; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; letter-spacing: 1px;
}
.card .tag.popular { background: var(--green); color: #06210f; }
.card h3 { font-size: 18px; color: var(--green-2); }
.card .desc { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.card ul { list-style: none; margin-bottom: 18px; }
.card ul li { font-size: 13px; color: var(--text); padding: 4px 0 4px 22px; position: relative; }
.card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 20px; font-weight: 800; color: var(--green); }
.price small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.btn {
  border: none; border-radius: 10px; padding: 10px 16px; cursor: pointer;
  font-weight: 700; font-size: 14px; transition: all 0.15s; text-align: center;
}
.btn-order { background: var(--green); color: #06210f; }
.btn-order:hover { background: #5ff0a2; }
.btn-order.disabled { background: #333; color: #777; cursor: not-allowed; }
.btn-out { background: transparent; border: 1px solid var(--red); color: var(--red); font-weight: 600; }

/* Payments strip */
.payments { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.payments span { color: var(--muted); font-size: 13px; }
.payments strong { color: var(--green-2); }

/* Admin */
.admin-shell { max-width: 960px; margin: 40px auto; padding: 0 20px; }
.admin-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.admin-box h2 { margin-bottom: 18px; }
.input, textarea.input, select.input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 14px; margin-bottom: 10px;
}
.input:focus { outline: none; border-color: var(--green); }
.btn-admin { background: var(--green); color: #06210f; }
.btn-danger { background: transparent; border: 1px solid var(--red); color: var(--red); }

/* Admin table */
table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-in { background: rgba(62, 224, 139, 0.15); color: var(--green); }
.pill-out { background: rgba(255, 107, 107, 0.15); color: var(--red); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 40px; text-align: center; color: var(--muted); font-size: 13px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #06210f; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); z-index: 99;
  transition: opacity 0.3s; opacity: 0; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.85); }
  70% { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}
@keyframes sway {
  0%, 100% { transform: translateX(0) rotate(-6deg); }
  50% { transform: translateX(12px) rotate(6deg); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 rgba(62, 224, 139, 0); border-color: rgba(255,255,255,0.08); }
  50% { box-shadow: 0 0 24px rgba(62, 224, 139, 0.35); border-color: rgba(62, 224, 139, 0.6); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Entrance on load */
.hero { animation: fadeUp 0.8s ease both; }
.hero .kicker { animation: fadeIn 0.6s 0.15s ease both; }
.hero h1 { animation: fadeUp 0.8s 0.25s ease both; }
.hero p { animation: fadeUp 0.8s 0.4s ease both; }
.hero .badges { animation: fadeUp 0.8s 0.55s ease both; }
.badges .badge { animation: popIn 0.6s ease both; }
.badges .badge:nth-child(2) { animation-delay: 0.6s; }
.badges .badge:nth-child(3) { animation-delay: 0.7s; }
.badges .badge:nth-child(4) { animation-delay: 0.8s; }
.badges .badge:nth-child(5) { animation-delay: 0.9s; }

.cat-tabs { animation: fadeUp 0.8s 0.6s ease both; }
.cat-tab { transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.15s; }
.cat-tab:hover { transform: translateY(-2px); }

/* Cards stagger in */
.grid .card { animation: fadeUp 0.7s ease both; }
.grid .card:nth-child(1) { animation-delay: 0.05s; }
.grid .card:nth-child(2) { animation-delay: 0.12s; }
.grid .card:nth-child(3) { animation-delay: 0.19s; }
.grid .card:nth-child(4) { animation-delay: 0.26s; }
.grid .card:nth-child(5) { animation-delay: 0.33s; }
.grid .card:nth-child(6) { animation-delay: 0.4s; }
.grid .card:nth-child(7) { animation-delay: 0.47s; }
.grid .card:nth-child(8) { animation-delay: 0.54s; }
.grid .card:nth-child(9) { animation-delay: 0.61s; }
.grid .card:nth-child(10) { animation-delay: 0.68s; }

.card { overflow: hidden; }
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(62,224,139,0.14) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); border-color: rgba(62, 224, 139, 0.55); }
.card .icon { display: flex; animation: floaty 3.5s ease-in-out infinite; }

.card .btn-order, .cat-tab, .btn-discord { position: relative; overflow: hidden; }
.card .btn-order::after, .cat-tab::after, .btn-discord::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.25);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}
.card .btn-order:hover::after, .cat-tab:hover::after, .btn-discord:hover::after {
  transform: translateX(120%);
}
.btn-order:active, .btn-admin:active { transform: scale(0.96); }

/* Tag glow for popular */
.card .tag { animation: popIn 0.5s 0.8s ease both; }
.card .tag.popular { animation: glow 2.5s ease-in-out infinite; }

/* Payments + discord box */
.payments { animation: fadeUp 0.8s 0.8s ease both; transition: transform 0.2s ease; }
.payments:hover { transform: translateY(-2px); }
.discord-box { animation: fadeUp 0.8s 0.7s ease both; }
.discord-widget { animation: popIn 0.8s 0.9s ease both; }
.discord-widget iframe { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.discord-widget:hover iframe {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(62, 224, 139, 0.15);
}

/* Floating leaves in hero */
.leaffloat { position: absolute; font-size: 22px; opacity: 0.5; pointer-events: none; animation: sway 5s ease-in-out infinite; }
.leaffloat.l1 { top: 18%; left: 8%; }
.leaffloat.l2 { top: 60%; right: 10%; animation-delay: 1.2s; }
.leaffloat.l3 { bottom: 12%; left: 20%; animation-delay: 2s; font-size: 16px; }
.leaffloat.l4 { top: 30%; right: 26%; animation-delay: 0.6s; font-size: 16px; }

/* Section headers */
.section-head { animation: fadeUp 0.6s ease both; }

/* Admin box */
.admin-box { animation: fadeUp 0.6s ease both; }
.admin-box h2, .admin-shell h2 { transition: color 0.2s; }

/* Header slide */
header { animation: slideDown 0.5s ease both; }

/* Footer */
footer { animation: fadeIn 1s 0.5s ease both; }

/* Toast pop */
.toast { animation: popIn 0.35s ease both; }
.toast.show { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.skel { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* Plan banner */
.plan-banner {
  position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 26px;
  border: 1px solid var(--line); animation: fadeUp 0.7s ease both;
}
.plan-banner img { display: block; width: 100%; height: 200px; object-fit: cover; }
.plan-banner-txt {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: 18px; font-weight: 800; font-size: 18px; letter-spacing: 1px;
  background: linear-gradient(180deg, transparent 40%, rgba(11,15,13,0.85) 100%);
  color: var(--green-2);
}

/* Discord section */
.discord-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px; margin: 10px 0 40px;
  display: flex; gap: 30px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.discord-info { flex: 1; min-width: 260px; }
.discord-info h2 { font-size: 26px; margin: 8px 0 10px; }
.discord-info p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.stat-line { display: flex; gap: 22px; margin-bottom: 20px; }
.stat { font-size: 13px; color: var(--muted); }
.stat strong { display: block; font-size: 22px; color: var(--green); }
.discord-widget { flex-shrink: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.discord-widget iframe { display: block; }