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

/* =====================================================================
   Theme tokens (converted from the Tailwind/shadcn config)
   ===================================================================== */
:root {
  --background: hsl(222, 78%, 6%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(222, 60%, 10%);
  --popover: hsl(222, 60%, 10%);
  --primary: hsl(220, 100%, 50%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(222, 40%, 16%);
  --muted: hsl(222, 40%, 14%);
  --muted-foreground: hsl(215, 20%, 55%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(222, 30%, 18%);
  --input: hsl(222, 30%, 18%);
  --ring: hsl(220, 100%, 50%);
  --radius: 0.75rem;
  --font-heading: 'Rubik', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: var(--font-body);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: hsl(222, 78%, 6%);
}
::-webkit-scrollbar-thumb {
  background: hsl(220, 100%, 50%);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(220, 100%, 60%);
}

/* Glass effect utility */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Glow effects */
.glow-blue {
  box-shadow: 0 0 20px rgba(0, 98, 255, 0.3), 0 0 60px rgba(0, 98, 255, 0.1);
}

.glow-blue-sm {
  box-shadow: 0 0 10px rgba(0, 98, 255, 0.2), 0 0 30px rgba(0, 98, 255, 0.05);
}

.text-glow {
  text-shadow: 0 0 20px rgba(0, 98, 255, 0.5);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #F8FAFC 0%, #0062FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================================
   Layout helpers
   ===================================================================== */
.container-xl {
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}
@media (min-width: 640px) {
  .container-xl { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container-xl { padding-left: 2rem; padding-right: 2rem; }
}

main {
  flex: 1;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
}
.icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Spinner */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 9999px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Scroll-reveal animations (replaces framer-motion whileInView) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  transform: translateY(50px) scale(0.97);
}
.reveal-scale.is-visible {
  transform: translateY(0) scale(1);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =====================================================================
   Promo banner
   ===================================================================== */
:root {
  --promo-banner-height: 2.5rem;
}

.promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--promo-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0 1rem;
  background: linear-gradient(90deg, rgba(0, 98, 255, 0.95), rgba(124, 58, 237, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  animation: promo-banner-in 0.5s ease both;
}
@keyframes promo-banner-in {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.promo-banner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.promo-banner-text {
  line-height: 1.2;
}
body.has-promo-banner .navbar {
  top: var(--promo-banner-height);
}

/* Price display (original + discounted) */
.price-display {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.price-display--card {
  margin-top: 0.5rem;
}
.price-display--detail {
  margin-bottom: 1.5rem;
}
.price-original {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: line-through;
  opacity: 0.75;
}
.price-display--card .price-original {
  font-size: 0.95rem;
}
.price-display--detail .price-original {
  font-size: 1.25rem;
}
.price-discounted,
.price-current {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--primary);
}
.price-display--card .price-discounted,
.price-display--card .price-current {
  font-size: 1.25rem;
}
.price-display--detail .price-discounted,
.price-display--detail .price-current {
  font-size: 1.875rem;
}

/* =====================================================================
   Navbar
   ===================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border: none;
  transition: all 0.5s;
  animation: navbar-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes navbar-in {
  from { transform: translateY(-100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  min-height: 4.5rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.navbar-logo-img-wrap {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}
.navbar-logo-circle {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(0, 98, 255, 0.2);
  border: 1px solid rgba(0, 98, 255, 0.4);
  transition: all 0.3s;
}
.navbar-logo:hover .navbar-logo-circle {
  background: rgba(0, 98, 255, 0.3);
  border-color: rgba(0, 98, 255, 0.8);
  box-shadow: 0 10px 15px -3px rgba(0, 98, 255, 0.3);
}
.navbar-logo-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}
.navbar-logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.025em;
  display: none;
}
@media (min-width: 640px) {
  .navbar-logo-text { display: block; }
}
.navbar-logo-text .accent { color: var(--primary); }

.navbar-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .navbar-links { display: flex; }
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
}
.nav-link .icon { width: 0.875rem; height: 0.875rem; }
.nav-link.active {
  color: var(--primary);
  background: rgba(0, 98, 255, 0.1);
  border: 1px solid rgba(0, 98, 255, 0.2);
}

.navbar-mobile-toggle {
  display: block;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  color: var(--foreground);
}
.navbar-mobile-toggle:hover { background: rgba(255, 255, 255, 0.05); }
.navbar-mobile-toggle .icon { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) {
  .navbar-mobile-toggle { display: none; }
}

.nav-link-admin .nav-link-admin-label { display: none; }
@media (min-width: 768px) {
  .nav-link-admin .nav-link-admin-label { display: block; }
}

.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: fade-up 0.2s ease-out both;
}
.mobile-menu.open { display: block; }
@media (min-width: 768px) {
  .mobile-menu.open { display: none; }
}
.mobile-menu-inner {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: all 0.2s;
  animation: mobile-link-in 0.2s ease-out both;
}
@keyframes mobile-link-in {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
.mobile-link .icon { width: 1rem; height: 1rem; }
.mobile-link:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}
.mobile-link.active {
  background: rgba(0, 98, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 98, 255, 0.2);
}

/* =====================================================================
   Hero section
   ===================================================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}
.hero-bg-overlay-v {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3, 11, 27, 0.6),
    rgba(3, 11, 27, 0.4),
    var(--background)
  );
}
.hero-bg-overlay-h {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(3, 11, 27, 0.8),
    transparent,
    rgba(3, 11, 27, 0.8)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 56rem;
}

.hero-logo {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2rem;
  position: relative;
  animation: hero-logo-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
@media (min-width: 640px) {
  .hero-logo { width: 10rem; height: 10rem; }
}
@keyframes hero-logo-in {
  from { transform: scale(0) rotate(-180deg); }
  to { transform: scale(1) rotate(0); }
}
.hero-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid rgba(0, 98, 255, 0.4);
  animation: spin 8s linear infinite;
}
.hero-logo-ring-inner {
  position: absolute;
  inset: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-logo-pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(0, 98, 255, 0.1);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.hero-logo-img {
  position: absolute;
  inset: 0.5rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(0, 98, 255, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 98, 255, 0.2);
}
.hero-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
@media (min-width: 640px) {
  .hero-title { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 6rem; }
}
.hero-title .line1 {
  color: var(--foreground);
  font-weight: 700;
}
.hero-title .line2 {
  font-weight: 600;
  font-size: 8rem;
  text-transform: capitalize;
}
@media (max-width: 639px) {
  .hero-title .line2 { font-size: 4.5rem; }
}

.hero-sub {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.625;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
@media (min-width: 640px) {
  .hero-sub { font-size: 1.25rem; }
}

/* Live player-count badge */
.server-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
  animation: fade-up 0.6s ease 0.7s both;
}
.server-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.server-status.offline .server-status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.5rem;
  padding: 0 2rem;
  vertical-align: middle;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  animation: fade-up 0.6s ease 0.8s both;
  margin: 0 0.375rem 0.75rem;
}
.hero-cta:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 98, 255, 0.3);
  transform: scale(1.05);
}

.hero-cta-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.5rem;
  padding: 0 2rem;
  vertical-align: middle;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--foreground);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  animation: fade-up 0.6s ease 0.9s both;
  margin: 0 0.375rem 0.75rem;
}
.hero-cta-discord:hover {
  border-color: rgba(0, 98, 255, 0.4);
  color: var(--primary);
  transform: scale(1.05);
}
.hero-cta-discord .icon { width: 1.25rem; height: 1.25rem; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0, 98, 255, 0.6);
  animation: bounce-soft 2s ease-in-out infinite;
}
.hero-scroll-indicator .icon { width: 1.5rem; height: 1.5rem; }
@keyframes bounce-soft {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* =====================================================================
   Sections (categories / featured)
   ===================================================================== */
.section {
  padding: 6rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .section { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .section { padding-left: 2rem; padding-right: 2rem; }
}

.section-header {
  margin-bottom: 4rem;
  overflow: hidden;
}
.section-eyebrow {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.25rem;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) {
  .section-title { font-size: 3rem; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Category card */
.category-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  transition: transform 0.25s;
}
.category-card:hover { transform: translateY(-5px); }
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.category-card:hover img { transform: scale(1.1); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
  transition: all 0.5s;
}
.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(0, 98, 255, 0.4), rgba(0, 98, 255, 0.1), transparent);
}
.category-card-border {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: all 0.5s;
  pointer-events: none;
}
.category-card:hover .category-card-border {
  border-color: rgba(0, 98, 255, 0.3);
}
.category-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .category-card-content { padding: 2rem; }
}
.category-card-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.category-card-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.875rem;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: var(--foreground);
  transition: letter-spacing 0.3s;
}
@media (min-width: 640px) {
  .category-card-title { font-size: 2.25rem; }
}
.category-card:hover .category-card-title { letter-spacing: 0.05em; }
.category-card-explore {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.5s 0.1s;
}
.category-card:hover .category-card-explore {
  opacity: 1;
  transform: translateY(0);
}
.category-card-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(0, 98, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
  color: var(--primary);
}
.category-card-arrow .icon { width: 1.25rem; height: 1.25rem; }
.category-card:hover .category-card-arrow { opacity: 1; }
.category-card-arrow:hover { transform: scale(1.1); }

/* Product card */
.product-card {
  transition: transform 0.25s;
}
.product-card:hover { transform: translateY(-4px); }
.product-card-inner {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s;
}
.product-card:hover .product-card-inner {
  box-shadow: 0 0 10px rgba(0, 98, 255, 0.2), 0 0 30px rgba(0, 98, 255, 0.05);
}
.product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.chattag-emoji-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s;
}
.chattag-emoji-media--detail {
  width: 100%;
  aspect-ratio: 4 / 3;
}
.chattag-emoji {
  font-size: clamp(3.5rem, 18vw, 5.5rem);
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  transition: transform 0.7s;
}
.chattag-emoji-media--detail .chattag-emoji {
  font-size: clamp(5rem, 22vw, 8rem);
}
.product-card:hover .chattag-emoji-media { transform: scale(1.05); }
.product-card:hover .chattag-emoji { transform: scale(1.1); }
.product-card:hover .product-card-image img { transform: scale(1.1); }
.product-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
}
.product-card-info {
  display: block;
  padding: 1.25rem;
}
.product-card-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.25rem;
}
.product-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  transition: color 0.3s;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.product-card:hover .product-card-name { color: var(--primary); }
.product-card-price {
  margin-top: 0;
}

/* Badge (rarity) */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}
.badge-rarity-common { background: rgba(122, 139, 166, 0.2); color: var(--muted-foreground); }
.badge-rarity-rare { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-rarity-epic { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.badge-rarity-legendary { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-rarity-rare.glow { box-shadow: 0 0 10px rgba(0, 98, 255, 0.2), 0 0 30px rgba(0, 98, 255, 0.05); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}
.footer-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; }
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo img {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: contain;
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
}
.footer-logo-text .accent { color: var(--primary); }
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* =====================================================================
   Category page
   ===================================================================== */
.category-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.category-hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chattag-hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  overflow: hidden;
}
.chattag-hero-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem;
  opacity: 0.75;
}
.chattag-hero-emoji {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.chattag-hero-tile-name {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.category-hero-overlay-v {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), rgba(3, 11, 27, 0.6), rgba(3, 11, 27, 0.3));
}
.category-hero-overlay-h {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(3, 11, 27, 0.6), transparent, rgba(3, 11, 27, 0.6));
}
.category-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: back-link-in 0.5s ease both;
}
@keyframes back-link-in {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.back-link:hover { color: var(--primary); }
.back-link .icon { width: 1rem; height: 1rem; }

.category-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-top: 0.75rem;
  max-width: 36rem;
  animation: fade-up 0.6s ease 0.2s both;
}

/* Search bar */
.search-wrap {
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
}
.search-box {
  position: relative;
  max-width: 28rem;
  animation: fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.search-box .icon-search {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--foreground);
  transition: all 0.3s;
  outline: none;
}
.search-box input::placeholder { color: var(--muted-foreground); }
.search-box input:focus {
  border-color: rgba(0, 98, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 98, 255, 0.3);
}
.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  border-radius: 9999px;
  color: var(--muted-foreground);
  transition: all 0.15s;
  display: none;
}
.search-clear.visible { display: block; animation: fade-in 0.15s both; }
.search-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--foreground);
}
.search-clear .icon { width: 0.875rem; height: 0.875rem; }
.search-results-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  font-family: var(--font-heading);
}

.products-grid-wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.empty-state {
  text-align: center;
  padding: 6rem 0;
  animation: fade-in 0.4s both;
}
.empty-state p {
  color: var(--muted-foreground);
  font-family: var(--font-heading);
  font-size: 1.125rem;
}
.empty-state .back-link { margin: 1rem 0 0; }

/* Skeleton loading */
.skeleton-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.skeleton-image {
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem 0.75rem 0 0;
}
.skeleton-body { padding: 1.25rem; }
.skeleton-line {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

/* =====================================================================
   Product detail page
   ===================================================================== */
.product-detail {
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.product-detail-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .product-detail-grid { grid-template-columns: repeat(2, 1fr); }
}
.product-detail-image-wrap {
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: product-image-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes product-image-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.product-detail-image {
  position: relative;
}
.product-detail-image img,
.product-detail-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.product-detail-video-wrap {
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: product-image-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.product-detail-video-wrap .product-detail-video {
  display: block;
}
.product-detail-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent, transparent);
}

.product-detail-info { animation: fade-up 0.6s ease 0.2s both; }
.product-detail-category {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}
.product-detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.product-detail-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.25rem;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) {
  .product-detail-title { font-size: 3rem; }
}
.product-detail-title-row .badge { margin-top: 0.5rem; }
.product-detail-price {
  margin-bottom: 0;
}
.product-detail-description {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.625;
  margin-bottom: 2.5rem;
}

/* Specs */
.specs-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
  animation: fade-up 0.6s ease 0.4s both;
}
.specs-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.specs-title .icon { width: 1rem; height: 1rem; color: var(--primary); }
.spec-bar { margin-bottom: 1.25rem; }
.spec-bar:last-child { margin-bottom: 0; }
.spec-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.spec-bar-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.spec-bar-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  opacity: 0;
  transition: opacity 0.5s;
  transition-delay: var(--spec-delay, 0s);
}
.spec-bar-track {
  height: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  overflow: hidden;
}
.spec-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--primary), #60a5fa);
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--spec-delay, 0s);
}
.spec-bar.animated .spec-bar-value { opacity: 1; }

/* Full-screen centered states (loading / not found) */
.fullscreen-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 5rem;
}
.fullscreen-center p {
  color: var(--muted-foreground);
  font-family: var(--font-heading);
  font-size: 1.125rem;
}
.fullscreen-center a {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fullscreen-center a:hover { color: rgba(0, 98, 255, 0.8); }

/* =====================================================================
   Forms / buttons (shadcn-style)
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn:hover:not(:disabled) { background: hsl(220, 100%, 45%); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn .icon { width: 1rem; height: 1rem; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.btn-destructive {
  background: var(--destructive);
  color: var(--destructive-foreground);
}
.btn-destructive:hover:not(:disabled) { background: hsl(0, 84.2%, 55%); }

.btn-block { width: 100%; }
.btn-lg { height: 3rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.btn-discord {
  background: #5865f2;
  color: #fff;
  border-color: transparent;
  gap: 0.75rem;
  justify-content: center;
}
.btn-discord:hover:not(:disabled) { background: #4752c4; }

.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.375rem;
}
.input,
.select,
.textarea {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: var(--input);
  border: 1px solid var(--border);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.input::placeholder,
.textarea::placeholder { color: var(--muted-foreground); }
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.textarea {
  height: auto;
  padding: 0.625rem 0.75rem;
  resize: none;
}
.input-sm { height: 2.25rem; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}
[dir="rtl"] .input-icon-wrap .icon { right: 0.75rem; }
[dir="rtl"] .input-icon-wrap .input { padding-right: 2.5rem; text-align: right; }

/* =====================================================================
   Admin login page
   ===================================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}
.auth-glow-1 {
  position: absolute;
  top: -10rem;
  right: -10rem;
  width: 480px;
  height: 480px;
  background: rgba(0, 98, 255, 0.2);
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
}
.auth-glow-2 {
  position: absolute;
  bottom: -10rem;
  left: -10rem;
  width: 480px;
  height: 480px;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  animation: auth-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (min-width: 640px) {
  .auth-card { padding: 2.5rem; }
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}
.auth-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: rgba(0, 98, 255, 0.15);
  border: 1px solid rgba(0, 98, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 98, 255, 0.2);
  color: var(--primary);
  animation: auth-icon-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.auth-icon .icon { width: 2rem; height: 2rem; }
@keyframes auth-icon-in {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.auth-eyebrow {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}
.auth-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.875rem;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.auth-sub {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.auth-error {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--destructive);
  font-size: 0.875rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  animation: fade-up 0.25s both;
}
.auth-error.visible { display: flex; }
.auth-error .icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.auth-footnote {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 1.5rem;
}
.auth-footnote code {
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* =====================================================================
   Admin panel
   ===================================================================== */
.admin-page {
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 3rem;
}
.admin-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .admin-header { flex-direction: row; align-items: center; }
}
.admin-eyebrow {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 0.25rem;
}
.admin-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.25rem;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-tab {
  position: relative;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.admin-tab .icon { width: 1rem; height: 1rem; }
.admin-tab:hover { color: var(--foreground); }
.admin-tab.active { color: var(--primary); }
.admin-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-pill {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-foreground);
}
.filter-pill:hover { color: var(--foreground); }
.filter-pill.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: transparent;
}

.admin-table-wrap {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}
.admin-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-foreground);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.admin-table th {
  text-align: right;
  padding: 1rem 1.5rem;
  font-weight: 500;
}
.admin-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s;
  animation: fade-up 0.3s ease both;
}
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.admin-table td { padding: 0.75rem 1.5rem; }
.admin-table .thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}
.admin-table .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-table .chattag-thumb .chattag-emoji {
  font-size: 1.5rem;
  filter: none;
}
.admin-table .name-cell { font-family: var(--font-heading); font-weight: 600; }
.admin-table .cat-cell { color: var(--muted-foreground); }
.admin-table .price-cell { color: var(--primary); font-weight: 600; }
.rarity-common { color: #9ca3af; font-weight: 600; text-transform: capitalize; }
.rarity-rare { color: #60a5fa; font-weight: 600; text-transform: capitalize; }
.rarity-epic { color: #c084fc; font-weight: 600; text-transform: capitalize; }
.rarity-legendary { color: #facc15; font-weight: 600; text-transform: capitalize; }

.col-md { display: none; }
.col-sm { display: none; }
.col-lg { display: none; }
@media (min-width: 640px) { .col-sm { display: table-cell; } }
@media (min-width: 768px) { .col-md { display: table-cell; } }
@media (min-width: 1024px) { .col-lg { display: table-cell; } }

.row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  transition: all 0.2s;
  display: inline-flex;
}
.icon-btn .icon { width: 1rem; height: 1rem; }
.icon-btn:hover {
  background: rgba(0, 98, 255, 0.1);
  color: var(--primary);
}
.icon-btn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
}

.admin-empty {
  text-align: center;
  padding: 6rem 0;
  color: var(--muted-foreground);
  font-family: var(--font-heading);
}
.admin-loading {
  display: flex;
  justify-content: center;
  padding: 6rem 0;
  color: var(--primary);
}
.admin-loading .icon { width: 2rem; height: 2rem; }

/* Categories tab */
.cats-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .cats-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cats-toolbar p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 36rem;
}
.cats-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
}
.cat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  animation: fade-up 0.3s ease both;
}
.cat-card > * + * { margin-top: 1rem; }
.cat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cat-card-id {
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-foreground);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cat-card-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cat-card-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.cat-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.cat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.input-ltr { direction: ltr; text-align: left; }

/* =====================================================================
   Modals
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-backdrop.open {
  display: flex;
  animation: fade-in 0.2s both;
}
.modal {
  background: rgba(20, 30, 50, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.modal-sm { max-width: 28rem; }
.modal-danger { border-color: rgba(239, 68, 68, 0.3); }
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
}
.modal-close {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--foreground);
}
.modal-close .icon { width: 1.25rem; height: 1.25rem; }

.modal-image-pick {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.modal-image-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.field-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: var(--font-heading);
  margin: 1rem 0;
}
.checkbox-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.confirm-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.confirm-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--destructive);
}
.confirm-icon .icon { width: 1.5rem; height: 1.5rem; }
.confirm-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.125rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.confirm-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.confirm-text strong { color: var(--foreground); }
.confirm-warning {
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.875rem;
  color: var(--destructive);
}
.confirm-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.confirm-actions .btn { flex: 1; height: 2.75rem; }

/* =====================================================================
   Image uploader overlay (admin-only)
   ===================================================================== */
.image-uploader {
  position: relative;
}
.image-uploader input[type="file"] { display: none; }
.image-uploader-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 5;
}
.image-uploader:hover .image-uploader-overlay,
.image-uploader.busy .image-uploader-overlay {
  opacity: 1;
  pointer-events: auto;
}
.image-uploader-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.image-uploader-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(0, 98, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 98, 255, 0.3);
  color: #fff;
}
.image-uploader-circle .icon { width: 1.25rem; height: 1.25rem; }
.image-uploader-circle.success { background: #22c55e; }
.image-uploader-circle.error { background: #ef4444; }
.image-uploader-label {
  color: #fff;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =====================================================================
   404 page
   ===================================================================== */
.notfound-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #f8fafc;
  color: #0f172a;
}
.notfound-card {
  max-width: 28rem;
  width: 100%;
  text-align: center;
}
.notfound-code {
  font-size: 4.5rem;
  font-weight: 300;
  color: #cbd5e1;
}
.notfound-divider {
  height: 2px;
  width: 4rem;
  background: #e2e8f0;
  margin: 0.5rem auto 1.5rem;
}
.notfound-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.75rem;
}
.notfound-text {
  color: #475569;
  line-height: 1.625;
}
.notfound-text strong { color: #334155; font-weight: 500; }
.notfound-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.notfound-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.notfound-btn .icon { width: 1rem; height: 1rem; }

/* Utility */
.hidden { display: none !important; }
