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

/* ═══════════════════════════════════════════
   HITMANSMP — FyreSMP-style Landing
   ═══════════════════════════════════════════ */

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

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

  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --red-bright: #ef4444;

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

  --border: rgba(255,255,255,0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--brown-dark);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--brown-dark); }
::-webkit-scrollbar-thumb { background: #4a3828; border-radius: 3px; }

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

.hero-banner {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}
.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%
  );
}

/* ── Top bar: items close to center logo ── */
.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;
}

/* Discord icon button */
.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; }

/* Center logo — between left and right */
.hero-logo-wrap {
  margin: 0 4rem;
  flex-shrink: 0;
}
.hero-logo {
  width: 175px; height: 175px;
  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: 1100px;
  margin: -0.5rem auto 2.5rem;
  padding: 0 2.5rem;
  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.discord-btn { background: #5865F2; color: #fff; }
.action-btn.discord-btn:hover { background: #4752c4; }
.action-btn.currency-btn { background: var(--orange); color: #fff; }
.action-btn.currency-btn:hover { background: var(--orange-dark); }
.action-btn.cart-btn {
  background: var(--brown-light); color: var(--text);
  border: 1px solid var(--border);
}
.action-btn.cart-btn:hover { background: #4a3828; }
.action-btn.ai-btn {
  position: relative;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  overflow: visible;
}
.action-btn.ai-btn:hover { background: linear-gradient(135deg, #6d28d9, #9333ea); transform: translateY(-1px); }
.new-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(239,68,68,0.5);
  animation: badgePulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(239,68,68,0.5); }
  50% { transform: scale(1.1); box-shadow: 0 2px 16px rgba(239,68,68,0.7); }
}

/* ═══════════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════════ */

.categories {
  max-width: 1100px;
  margin: 0 auto 3.5rem;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

/* Grid Spanning Utilities for Categories */
.grid-span-2 { grid-column: span 2; }
.grid-span-3 { grid-column: span 3; }

/* Coming Soon Badge Styling */
.coming-soon-badge {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

/* Responsive Tablet layout for category cards */
@media (max-width: 1150px) {
  .categories {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 0 1.5rem;
  }
  .grid-span-2, .grid-span-3 {
    grid-column: span 2; /* Forces a neat 2-column layout on tablet/medium screen widths */
  }
  .cat-card {
    min-height: 130px !important;
  }
}

.cat-card {
  position: relative;
  display: flex; align-items: center;
  padding: clamp(1rem, 1.6vw, 1.8rem) clamp(1.2rem, 2vw, 2.2rem);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease);
  min-height: 150px;
  border: 1px solid rgba(255,255,255,0.06);
}
.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
  transition: opacity 0.3s;
}
.cat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-card:hover::after { opacity: 1; }
.cat-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255,255,255,0.15);
}

/* Per-card gradients */
.cat-card-ranks {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #f97316 100%);
}
.cat-card-ranks:hover { box-shadow: 0 12px 40px rgba(220,38,38,0.4); }

.cat-card-crates {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a855f7 100%);
}
.cat-card-crates:hover { box-shadow: 0 12px 40px rgba(124,58,237,0.4); }

.cat-card-shop {
  background: linear-gradient(135deg, #0e4429 0%, #16a34a 50%, #22c55e 100%);
}
.cat-card-shop:hover { box-shadow: 0 12px 40px rgba(22,163,74,0.35); }

.cat-card-stats {
  background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 50%, #38bdf8 100%);
}
.cat-card-stats:hover { box-shadow: 0 12px 40px rgba(14,165,233,0.4); }

.cat-card-gamble {
  background: linear-gradient(135deg, #78350f 0%, #d97706 50%, #f59e0b 100%);
}
.cat-card-gamble:hover { box-shadow: 0 12px 40px rgba(217,119,6,0.45); }

.cat-card-img {
  width: clamp(75px, 8vw, 100px);
  height: clamp(75px, 8vw, 100px);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  transition: all 0.35s var(--ease);
  position: relative; z-index: 1;
}
.cat-card-img.mc-tex {
  image-rendering: pixelated;
}
.cat-card:hover .cat-card-img {
  transform: scale(1.12) rotate(-3deg);
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.6));
}
.cat-card-text {
  flex: 1;
  text-align: left;
  margin-left: clamp(1rem, 1.5vw, 1.8rem);
  margin-right: 0.5rem;
  position: relative; z-index: 1;
  min-width: 0; /* Prevents flex children from overflowing */
}
.cat-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(1.3rem, 2.2vw, 2.1rem);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.cat-card-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin-top: 0.35rem;
  line-height: 1.3;
}
.cat-card-arrow {
  position: relative; z-index: 1;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.4);
  margin-left: 0.5rem;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.cat-card:hover .cat-card-arrow {
  color: #fff;
  transform: translateX(6px);
}

/* ═══════════════════════════════════════════
   RECENT PURCHASES
   ═══════════════════════════════════════════ */

.recent-section {
  max-width: 1100px;
  margin: 0 auto 3.5rem;
  padding: 0 2.5rem;
}
.recent-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.recent-marquee-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 12px 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
#recentGrid {
  width: 100%;
}
.recent-track {
  display: inline-flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}
.recent-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.recent-item {
  display: inline-flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--brown-card);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
  white-space: nowrap;
}
.recent-item:hover {
  border-color: rgba(249,115,22,0.25);
  background: rgba(42,28,20,0.9);
}
.recent-avatar {
  width: 38px; height: 38px;
  border-radius: 6px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.recent-info { flex: 1; min-width: 0; }
.recent-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 0.92rem;
  color: var(--text);
}
.recent-what {
  font-size: 0.72rem; color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-what strong { color: var(--orange); font-weight: 600; }
.recent-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.footer-full {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr;
  gap: 2rem;
}
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.footer-col p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-discord-btn {
  display: inline-flex !important;
  align-items: center; gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.55rem 1.2rem;
  background: var(--orange);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.2s;
}
.footer-discord-btn:hover {
  background: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Legacy simple footer (store) */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
}
.footer p { font-size: 0.75rem; color: var(--text-muted); }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--orange); }

/* ═══════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero-banner { height: 280px; }
  .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: 110px; height: 110px; }

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

  .categories {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .grid-span-2, .grid-span-3 {
    grid-column: auto;
  }
  .cat-card { min-height: 90px; padding: 1rem 1.25rem; }
  .cat-card-img { width: 54px; height: 54px; }
  .cat-card-title { font-size: 1.15rem; }

  .recent-section { padding: 0 1rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-full { padding: 2rem 1.5rem 1rem; }
}

@media (max-width: 480px) {
  .hero-banner { height: 240px; }
  .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: 85px; height: 85px; }
  .dc-icon-btn { width: 32px; height: 32px; border-radius: 8px; }
  .dc-icon-btn svg { width: 16px; height: 16px; }

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

  .cat-card { min-height: 80px; padding: 0.85rem 1rem; border-radius: 12px; }
  .cat-card-img { width: 44px; height: 44px; }
  .cat-card-title { font-size: 1.05rem; letter-spacing: 1px; }

  .recent-item { padding: 0.7rem 0.85rem; }
  .recent-name { font-size: 0.75rem; }
}

/* ═══════════════════════════════════════════
   PREMIUM LOGIN MODAL & DYNAMIC SKIN
   ═══════════════════════════════════════════ */
.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);
}

/* ─── SERVER FEATURES REDESIGN ─── */
.features-section {
  max-width: 1100px;
  margin: 0 auto 3.5rem;
  padding: 0 2.5rem;
}
.features-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: rgba(42, 28, 20, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
}
.feature-icon-wrap {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s var(--ease);
}
.feature-card:hover .feature-icon-wrap {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  transform: scale(1.05);
}
.feature-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}
.feature-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.feature-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features-section {
    padding: 0 1.5rem;
  }
  .feature-card {
    padding: 1.5rem 1.25rem;
  }
}

