/* Global Variables & Reset */
:root {
  --bg-main: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: #262626;
  --border-glow: #ffffff33;
  --accent-white: #ffffff;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.hidden {
  display: none !important;
}

img, canvas {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

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

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #050505, #1c1c1c, #050505);
  color: var(--text-main);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.announcement-bar span {
  opacity: 0.9;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #000000; /* Replaced heavy backdrop-filter blur with solid dark background for zero lag */
  border-bottom: 1px solid var(--border-color);
  contain: layout style;
}

.header-container {
  width: 100%;
  max-width: 100%;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.05);
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-transform: uppercase;
  font-style: italic;
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-white);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 18px;
  gap: 8px;
  transition: border-color var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--text-main);
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  width: 160px;
}

.search-bar svg {
  fill: var(--text-muted);
  width: 16px;
  height: 16px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: transform var(--transition-fast);
}

.icon-btn:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: #ffffff;
  color: #000000;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section - WebGL 3D Stage */
.hero-section {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at 50% 30%, #1c1c22 0%, #0c0c0e 60%, #050507 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-3d-container {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 650px;
  max-height: 960px;
  background: #141416;
}

#hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: grab;
}

#hero-3d-canvas:active {
  cursor: grabbing;
}

/* 3D UI Overlay */
.hero-3d-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

/* Homescreen UI Block */
.homescreen-ui {
  max-width: 480px;
  pointer-events: auto;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
}

.game-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 14px;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-headline .outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px #ffffff;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.stat-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.cta-action-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Nerd Hint Badge */
.nerd-hint-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* 3D Speech Bubble */
.nerd-speech-bubble {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease, transform 0.1s ease;
  white-space: normal;
  max-width: 220px;
  width: max-content;
  min-width: 0;
  text-align: center;
  line-height: 1.3;
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.8);
}

.nerd-speech-bubble.visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.bubble-arrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}

/* Shop Now Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ffffff;
  color: #000000;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 42px;
  border-radius: 4px;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-primary svg {
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* Section Header */
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* Featured Products / Grid */
.products-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--text-main);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  color: #000000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  z-index: 2;
}

.product-img-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  background: #050505;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-img-wrapper img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: #ffffff;
  color: #000000;
}

/* Why Choose Us Section */
.why-choose-us-section {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.why-choose-us-section .section-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}

.why-choose-us-section .section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 48px;
}

.why-banner-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 60px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

.why-banner-img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  display: block;
  object-fit: cover;
  object-position: center;
}

.why-reasons-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.reason-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.reason-card:hover {
  border-color: var(--accent-white); /* Pure white border */
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.reason-badge {
  display: inline-block;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.reason-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #ffffff;
}

.reason-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Cart Drawer Modal & Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  will-change: opacity, visibility;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-btn:hover {
  color: var(--text-main);
}

.cart-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-row img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #000;
  border-radius: 4px;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-controls button {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item-controls .remove-btn {
  border: none;
  color: var(--text-muted);
  margin-left: 8px;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-main);
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.empty-cart-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

/* Shop Page Filters */
.shop-header {
  padding: 60px 40px 30px;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.filter-bar {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Checkout Page Styles */
.checkout-section {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .checkout-section {
    grid-template-columns: 1fr;
  }
}

.checkout-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--text-main);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.order-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
}

/* Category Quick Grid */
.category-grid-section {
  max-width: 1300px;
  margin: 60px auto 20px;
  padding: 0 24px;
}

.category-flex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  min-height: 140px;
  transition: all var(--transition-fast);
}

.category-card:hover {
  border-color: var(--accent-white);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}

.category-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Testimonials / Reviews */
.reviews-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 24px;
}

.reviews-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px;
}

.review-stars {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}

.review-verified {
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 700;
  margin-top: 2px;
}

/* VIP Drop Banner */
.vip-banner-section {
  max-width: 1300px;
  margin: 80px auto;
  padding: 0 24px;
}

.vip-card {
  background: linear-gradient(135deg, #111111 0%, #1c1c1c 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vip-card h2 {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.vip-card p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1rem;
}

.vip-input-group {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}


.features-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 24px;
}

.features-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.feature-box {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-main);
  transition: border-color var(--transition-fast);
}

.feature-box:hover {
  border-color: var(--accent-white);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 24px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--text-main);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   AUTHENTICATION & SELLER ACCOUNT SYSTEM STYLES
   ========================================================================== */
.auth-btn-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 1px;
}

.auth-btn-nav:hover {
  background: #ffffff;
  color: #000000;
}

/* Modal Overlay & Auth Card */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  position: relative;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  width: 92%;
  max-width: 480px;
  padding: 32px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: #888888;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #888888;
  padding: 12px 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cccccc;
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  background: #0a0a0d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 0.9rem;
}

.auth-form input:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* Auth Required Gate Card */
.auth-required-gate {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

.gate-card {
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 20px;
  padding: 48px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.gate-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.gate-card h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}

.gate-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.gate-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.gate-actions button {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 800;
}

/* User Account State Bar in Hero */
.account-state-box {
  margin-top: 24px;
  display: inline-block;
}

.user-logged-badge {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.user-logged-badge .btn-logout {
  background: rgba(255, 71, 87, 0.2);
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: #ff4757;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Step Counter Bar */
.seller-steps-bar {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto 36px auto;
  gap: 12px;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
}

.step-item.active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

/* Seller Two Column Layout */
.seller-two-col-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 36px;
}

@media (max-width: 1024px) {
  .seller-two-col-layout {
    grid-template-columns: 1fr;
  }
}

/* Neat Upload Zone (Fixed 2.5:3.5 TCG Proportion) */
.neat-upload-zone {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  max-width: 200px;
  margin: 0 auto;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background: #0a0a0d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.neat-upload-zone:hover {
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.neat-drop-placeholder {
  padding: 16px;
  width: 100%;
}

.neat-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.neat-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.neat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.neat-preview-frame {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050507;
  overflow: hidden;
}

.neat-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-change-photo {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.fee-breakdown-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  word-break: break-word;
  max-width: 100%;
}

/* Payout Summary Box */
.payout-summary-box {
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.payout-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.payout-box-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.payout-status-badge {
  display: none !important;
}

.payout-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.payout-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.payout-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.payout-stat-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

.payout-form-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.account-verified-status {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffb800;
  background: rgba(255, 184, 0, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.account-verified-status.verified {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}

.payout-account-grid,
.payout-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payout-method-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cccccc;
  margin-bottom: 6px;
}

.payout-method-form select,
.payout-method-form input {
  width: 100%;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 0.85rem;
}

.btn-save-payout {
  width: 100%;
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 10px;
}

/* Sold Orders & Escrow Payout Tracking */
.sold-orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.sold-order-card {
  background: #0b0b0e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 18px;
}

.sold-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.order-id-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

.escrow-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
}

.escrow-badge-held {
  background: rgba(255, 184, 0, 0.15);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.4);
}

.escrow-badge-transit {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.escrow-badge-released {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.sold-order-body {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.sold-order-img {
  width: 50px;
  height: 70px;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}

.sold-order-info {
  flex: 1;
}

.sold-order-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.sold-order-payout-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tracking-input-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tracking-input-form select,
.tracking-input-form input {
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.85rem;
}

.tracking-input-form select {
  flex: 1;
  min-width: 110px;
}

.tracking-input-form input {
  flex: 2;
  min-width: 160px;
}

.btn-upload-tracking {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

/* My Active Listings Dashboard */
.seller-dashboard-card {
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px;
}

.dashboard-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.dashboard-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.my-listings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-listing-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
}

.my-listing-img {
  width: 50px;
  height: 70px;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}

.my-listing-info {
  flex: 1;
}

.my-listing-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.my-listing-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.my-listing-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
  margin-right: 12px;
}

.btn-delete-listing {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
}

.seller-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.seller-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
}

.seller-hero-section h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 14px;
}

.seller-hero-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.seller-stats-strip {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.seller-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 28px;
  border-radius: 12px;
  text-align: center;
}

.seller-stat-box .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
}

.seller-stat-box .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Seller Main Grid Layout */
.seller-main-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 50px 24px;
}

.seller-grid-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 36px;
}

@media (max-width: 1024px) {
  .seller-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Upload Form Card */
.seller-form-card {
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  height: fit-content;
}

.form-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.card-form .form-group {
  margin-bottom: 20px;
}

.card-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #dddddd;
  margin-bottom: 8px;
}

.card-form label .required {
  color: #ff4757;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card-form input[type="text"],
.card-form input[type="number"],
.card-form select,
.card-form textarea {
  width: 100%;
  background: rgba(10, 10, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-form input:focus,
.card-form select:focus,
.card-form textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Upload Dropzone */
.upload-dropzone {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-dropzone:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.drop-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.drop-text span {
  color: #ffffff;
  text-decoration: underline;
}

.drop-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Image Preview Box */
.image-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.image-preview-box.hidden {
  display: none;
}

.image-preview-box img {
  max-width: 180px;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.btn-remove-img {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.4);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit-listing {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* Marketplace Feed */
.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.feed-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
}

.feed-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feed-filter-tags {
  display: flex;
  gap: 8px;
}

.filter-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag.active,
.filter-tag:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Community Cards Grid */
.community-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* Seller Card Item */
.community-card-item {
  background: rgba(18, 18, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.community-card-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.card-item-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.badge-graded {
  background: #ffb800;
  color: #000000;
}

.badge-raw {
  background: #ffffff;
  color: #000000;
}

.card-item-image-container {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.card-item-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-seller-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.verified-icon {
  color: #ffffff;
}

.card-item-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-item-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

.btn-buy-community {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-buy-community:hover {
  background: #e5e5e5;
  color: #000000;
}

/* Touch & WebGL Mobile Optimizations */
#hero-3d-canvas,
.hero-3d-container {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

/* Hide Mobile Menu elements by default on Desktop */
.mobile-menu-btn,
.mobile-nav-overlay,
.mobile-nav-drawer {
  display: none !important;
}

/* Mobile Navigation Overlay & Drawer (Active only when toggled) */
.mobile-nav-overlay.open {
  display: block !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 82vw;
  height: 100vh;
  background: #0b0b0e;
  border-right: 1px solid var(--border-color);
  z-index: 99999;
  padding: 24px 20px;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.9);
}

.mobile-nav-drawer.open {
  display: flex !important;
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.mobile-drawer-title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-main);
}

.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.close-drawer-btn:hover {
  color: var(--text-main);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  display: block;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: #ffffff;
}

/* Universal Mobile Width Bounds */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

/* Responsive Media Queries for Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
  }

  .main-nav {
    display: none !important;
  }

  .site-header {
    padding: 8px 12px;
  }

  .header-container {
    gap: 8px;
    padding: 0;
    justify-content: space-between;
  }

  .brand-logo img {
    height: 36px;
  }

  .brand-title {
    font-size: 0.88rem;
  }

  /* Compact Header Search Bar for Mobile */
  .search-bar {
    display: none !important; /* Hide top search bar from header row so header contains only Hamburger + Logo + Cart */
  }

  /* On mobile: hide the COLLECT TRADE COMPETE banner - keep ONLY the SHOP NOW button */
  .hero-headline,
  .hero-subtitle,
  .hero-stats-row,
  .game-badge,
  .nerd-hint-tag {
    display: none !important;
  }

  /* Features strip below hero - hidden on mobile */
  .features-section {
    display: none !important;
  }

  /* 3D Hero Section - Portrait Mobile Stage */
  .hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .hero-3d-container {
    height: 44vh;
    min-height: 300px;
    max-height: 380px;
    width: 100%;
  }

  /* Overlay stays ABSOLUTE over the canvas - do NOT change to relative */
  .hero-3d-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
  }

  /* Homescreen UI Card - SHOP NOW only, transparent, bottom-centered */
  .homescreen-ui {
    width: auto;
    max-width: 90%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0 0 12px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* These are overridden to nothing since elements are hidden - kept for specificity */
  .hero-headline,
  .hero-subtitle,
  .hero-stats-row,
  .game-badge {
    display: none !important;
  }

  .cta-action-row {
    display: flex;
    justify-content: center;
  }

  .btn-primary {
    padding: 14px 40px;
    font-size: 1rem;
    justify-content: center;
    height: auto;
  }

  .nerd-speech-bubble {
    font-size: 0.8rem;
    padding: 8px 12px;
    max-width: 260px;
    min-width: 120px;
    width: max-content;
    border-radius: 12px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .category-grid-section,
  .why-choose-us-section,
  .reviews-section,
  .features-section,
  .vip-banner-section,
  .site-footer,
  .shop-header {
    padding: 24px 12px;
  }

  .section-title,
  .why-choose-us-section .section-title,
  .shop-header .section-title {
    font-size: 1.25rem;
  }

  .section-subtitle,
  .why-choose-us-section .section-subtitle,
  .shop-header .section-subtitle {
    font-size: 0.78rem;
    margin-bottom: 20px;
  }

  .category-flex-grid,
  .reviews-grid,
  .features-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand-title {
    display: none;
  }

  .hero-3d-container {
    height: 42vh;
    min-height: 280px;
    max-height: 340px;
  }

  .homescreen-ui {
    padding: 12px;
  }

  .hero-headline {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  .stat-pill {
    font-size: 0.58rem;
    padding: 2px 5px;
  }

  .vip-card {
    padding: 18px 12px;
  }

  .vip-card h2 {
    font-size: 1.2rem;
  }

  .vip-card p {
    font-size: 0.78rem;
  }

  .vip-input-group {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════
   AUTH SYSTEM STYLES
═══════════════════════════════════════ */

/* Desktop profile / auth button */
.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  color: #000;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

/* Desktop dropdown */
.auth-desktop-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #111111;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 16px;
  min-width: 220px;
  z-index: 3000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: authDropIn 0.18s ease;
}

@keyframes authDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-dd-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-dd-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  color: #000;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-dd-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.auth-dd-email {
  font-size: 0.75rem;
  color: #a0a0a0;
  word-break: break-all;
}

.auth-dd-divider {
  border: none;
  border-top: 1px solid #262626;
  margin: 10px 0;
}

.auth-dd-signout {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-dd-signout:hover {
  background: #2a2a2a;
}

/* Mobile drawer profile section */
.auth-drawer-section {
  padding: 16px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.drawer-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  color: #000;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.drawer-user-email {
  font-size: 0.75rem;
  color: #a0a0a0;
  word-break: break-all;
}

.drawer-signout-btn {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
}

.drawer-signout-btn:hover {
  background: #2a2a2a;
}

.drawer-signin-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #ffffff15 0%, #ffffff08 100%);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.3px;
}

.drawer-signin-btn:hover {
  background: linear-gradient(135deg, #ffffff22 0%, #ffffff12 100%);
  border-color: rgba(255,255,255,0.3);
}

/* ── Auth Modal Overlay ── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.auth-modal-box {
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04);
  animation: authModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal-overlay.active .auth-modal-box {
  animation: authModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #666;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.auth-modal-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.auth-modal-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-modal-brand {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  font-style: italic;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: #666;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.auth-tab-btn.active {
  background: #fff;
  color: #000;
}

/* Panel */
.auth-panel {
  flex-direction: column;
  gap: 14px;
}

.auth-panel-sub {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 2px;
}

.auth-error {
  font-size: 0.82rem;
  color: #ff4d4d;
  min-height: 16px;
  font-weight: 600;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.auth-field input {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-user-select: text;
  user-select: text;
}

.auth-field input:focus {
  border-color: #fff;
}

.auth-field input::placeholder {
  color: #444;
}

.auth-submit-btn {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.auth-submit-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-switch {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

.auth-switch-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
  cursor: pointer;
}

.auth-switch-link:hover {
  text-decoration-color: #fff;
}

@media (max-width: 480px) {
  .auth-modal-box {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }
}

/* ═══════════════════════════════════════
   COMPACT PRODUCT PAGE & ORGANIZED SELLER PORTAL (MOBILE)
═══════════════════════════════════════ */

/* Product Page Shrinking */
.product-detail-container {
  max-width: 1040px !important;
  margin: 24px auto !important;
  padding: 0 16px !important;
  gap: 28px !important;
  box-sizing: border-box !important;
}

.detail-gallery {
  padding: 20px !important;
  max-height: none !important;
  min-height: 280px !important;
  border-radius: 10px !important;
}

.detail-gallery img {
  max-height: 380px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.detail-content h1 {
  font-size: 1.5rem !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.detail-price {
  font-size: 1.4rem !important;
  margin-bottom: 16px !important;
}

.detail-specs {
  padding: 14px 16px !important;
  margin-bottom: 16px !important;
  border-radius: 8px !important;
}

.spec-item {
  padding: 6px 0 !important;
  font-size: 0.85rem !important;
}

/* Seller Platform Mobile Organization */
/* Seller Platform Mobile Organization & Compact Neat Layouts */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .seller-hero-section {
    padding: 16px 12px 8px !important;
  }

  .seller-hero-section h1 {
    font-size: 1.3rem !important;
    margin-bottom: 4px !important;
  }

  .seller-hero-section p {
    display: none !important; /* Hide heavy paragraph on mobile for cleaner look */
  }

  .seller-badge {
    font-size: 0.6rem !important;
    padding: 3px 8px !important;
    margin-bottom: 6px !important;
  }

  .seller-steps-bar {
    display: none !important; /* Hide long 4-step bar on phone screens */
  }

  .seller-main-container {
    padding: 8px 10px 24px !important;
    max-width: 100% !important;
  }

  .seller-form-card {
    padding: 14px 12px !important;
    border-radius: 10px !important;
  }

  .seller-form-card .form-header h2 {
    font-size: 1.05rem !important;
  }

  .seller-form-card .form-header p {
    font-size: 0.75rem !important;
    margin-bottom: 12px !important;
  }

  .neat-upload-zone {
    max-width: 140px !important;
    aspect-ratio: 2.5 / 3.5 !important;
    margin: 0 auto 10px !important;
  }

  .neat-drop-placeholder {
    padding: 10px 8px !important;
  }

  .neat-icon {
    font-size: 1.6rem !important;
    margin-bottom: 4px !important;
  }

  .neat-title {
    font-size: 0.75rem !important;
  }

  .neat-sub {
    font-size: 0.65rem !important;
  }

  .card-form input[type="text"],
  .card-form input[type="number"],
  .card-form select,
  .card-form textarea {
    padding: 8px 10px !important;
    font-size: 0.82rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .card-form label {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
  }

  .fee-breakdown-tag {
    font-size: 0.7rem !important;
    padding: 5px 8px !important;
    gap: 2px 6px !important;
  }

  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .btn-submit-listing {
    padding: 11px !important;
    font-size: 0.85rem !important;
  }

  .seller-dashboard-card {
    padding: 14px 10px !important;
    border-radius: 10px !important;
  }

  .payout-summary-box {
    padding: 12px 10px !important;
    border-radius: 10px !important;
  }

  .payout-box-header h3 {
    font-size: 0.95rem !important;
  }

  .payout-status-badge {
    display: none !important;
  }

  .payout-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  .payout-stat {
    padding: 8px 4px !important;
    border-radius: 6px !important;
  }

  .payout-stat-label {
    font-size: 0.62rem !important;
    line-height: 1.1 !important;
    margin-bottom: 2px !important;
    word-break: break-word !important;
  }

  .payout-stat-val {
    font-size: 0.9rem !important;
  }

  .payout-form-title {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .account-verified-status {
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
  }

  .payout-account-grid,
  .payout-details-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .payout-method-form select,
  .payout-method-form input {
    padding: 8px 10px !important;
    font-size: 0.82rem !important;
    width: 100% !important;
  }

  .btn-save-payout {
    padding: 10px !important;
    font-size: 0.82rem !important;
  }

  .product-detail-container {
    margin: 12px auto !important;
    padding: 0 12px !important;
    gap: 16px !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .detail-gallery {
    padding: 16px !important;
    max-height: none !important;
    min-height: 220px !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .detail-gallery img {
    max-height: 320px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .spec-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    padding: 6px 0 !important;
    font-size: 0.82rem !important;
    word-break: break-word !important;
  }
}

/* --- MULTI-PHOTO UPLOADER SLOTS --- */
.photo-slots-grid {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.photo-slot-item {
  position: relative;
  width: 72px;
  height: 96px;
  border-radius: 8px;
  background: #09090d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}

.photo-slot-item:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.photo-slot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot-item .slot-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #4ade80;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.photo-slot-item .btn-remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ff4757;
  color: #fff;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s;
}

.photo-slot-item .btn-remove-photo:hover {
  transform: scale(1.2);
}

/* --- 3D CARD TURN & FLIP ANIMATION --- */
.card-turn-perspective {
  perspective: 1200px;
  width: 100%;
  max-width: 360px;
  height: 480px;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.card-3d-flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 12px;
}

.card-3d-flipper.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.05);
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.card-face.back {
  transform: rotateY(180deg);
}

/* Specular Holographic Glare Overlay */
.card-hologram-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.15) 100%);
  opacity: 0.5;
  mix-blend-mode: overlay;
  transition: opacity 0.3s;
  border-radius: 12px;
}

.btn-flip-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1f1f2e 0%, #0d0d14 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  margin-top: 14px;
}

.btn-flip-card:hover {
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

/* --- PRODUCT IMAGE ZOOM (HOVER MAGNIFIER & LIGHTBOX) --- */
.product-magnifier-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}

.magnifier-lens {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.3);
  pointer-events: none;
  display: none;
  background-repeat: no-repeat;
  z-index: 100;
  background-color: #050508;
}

/* Fullscreen Zoom Lightbox Modal */
.zoom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.zoom-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.zoom-modal-header {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  gap: 12px;
  flex-wrap: wrap;
}

.zoom-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.zoom-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoom-control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zoom-control-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.zoom-modal-viewport {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.zoom-modal-viewport:active {
  cursor: grabbing;
}

.zoom-modal-img {
  max-width: 85%;
  max-height: 75vh;
  object-fit: contain;
  transition: transform 0.1s ease-out;
  transform-origin: center center;
  user-select: none;
}

.zoom-gallery-strip {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  max-width: 1000px;
  padding-bottom: 6px;
  z-index: 20;
}

.zoom-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  background: #000;
}

.zoom-thumb.active,
.zoom-thumb:hover {
  border-color: #ffffff;
  opacity: 1;
}


