/* ==========================================================================
   Stealth Modern Theme - Custom CSS
   ========================================================================== */

/* Design Tokens & Reset */
body {
  background: var(--bg-primary);
}

.stealth-theme {
  background:
    linear-gradient(rgba(0,0,0,0.82), rgba(0,0,0,0.82)),
    url("https://i.postimg.cc/pXvrX2J8/minecraft-wallpapers-v0-jb4lu4z24dtf1.webp") center / cover fixed;
  background-blend-mode: multiply;
}

:root {
  --bg-primary: #0d0d0f;
  --bg-secondary: #141417;
  --bg-tertiary: #1b1b20;
  --bg-surface-elevated: #22222b;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent: #10b981; /* Emerald Green */
  --accent-hover: #059669;
  --accent-rgb: 16, 185, 129;
  --accent-glow: rgba(16, 185, 129, 0.15);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-smooth: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
  --header-height: 80px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* Main Header */
.main-header {
  height: var(--header-height);
  background: rgba(13, 13, 15, 0.92);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  contain: layout style paint;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  color: var(--accent);
}

.highlight {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Server IP Copy Widget */
.server-ip-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.server-ip-widget:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.ip-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.ip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ip-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.player-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.copy-icon {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.server-ip-widget:hover .copy-icon {
  color: var(--accent);
}

/* Cart Trigger Button */
.cart-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.cart-trigger-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
  color: var(--accent);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--accent);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px 0;
  background: linear-gradient(rgba(13, 13, 15, 0.82), rgba(13, 13, 15, 0.95)), url('background.jpg') no-repeat center center / cover;
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
}

/* Community Goal Widget */
.community-goal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.goal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.goal-icon {
  color: var(--accent);
}

.goal-percentage {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.goal-progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #34d399 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Store Content Layout */
.store-main {
  padding: 60px 24px;
}

/* Username Authentication section */
.username-auth-section {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.username-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.username-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.username-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 4px 4px 16px;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.username-input-wrapper:focus-within {
  border-color: rgba(255,255,255,0.2);
}

.input-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.username-input-wrapper input {
  flex: 1;
  height: 40px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.username-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.verify-btn {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 20px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.verify-btn:hover {
  background: var(--accent-hover);
}

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

/* User Profile display card */
.user-profile-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  animation: slide-up-fade 0.3s ease;
}

.profile-avatar-container {
  width: 56px;
  height: 56px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-avatar-container img {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
}

.profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.welcome-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-username {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-badge {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

.profile-logout-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.profile-logout-btn:hover {
  color: var(--error);
  border-color: var(--error);
  background: var(--error-bg);
}

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

/* Category Switcher Tabs */
.category-tabs-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.tab-btn {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.tab-btn.active {
  color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
}

/* Product Catalog Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* Product Card */
.product-card {
  background: rgba(20, 20, 23, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.product-card:hover::before {
  background: var(--accent);
}

/* Card Header elements */
.product-badge-accent {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-title svg {
  color: var(--accent);
}

.product-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.product-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

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

/* Bullet list of perks inside card */
.perks-list {
  list-style: none;
  margin-bottom: 30px;
  flex: 1;
}

.perks-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.perks-list li svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Card Button area */
.card-actions {
  display: flex;
  gap: 12px;
}

.btn-details {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  height: 42px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-details:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-add-cart {
  flex: 1.5;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.85rem;
  height: 42px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-add-cart:hover {
  background: var(--accent-hover);
}

.btn-add-cart.added {
  background: var(--bg-tertiary);
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* ── Rank Group Carousel ────────────────────────────────── */
.rank-group-card {
  background: rgba(20, 20, 23, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
  transition: var(--transition-smooth);
}

.rank-group-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.rank-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.rank-group-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rank-group-arrows {
  display: flex;
  gap: 8px;
}

.rank-scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  font-size: 1.1rem;
  line-height: 1;
}

.rank-scroll-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.rank-group-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.rank-group-scroll::-webkit-scrollbar {
  height: 6px;
}

.rank-group-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.rank-group-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.rank-tier-card {
  min-width: 280px;
  max-width: 280px;
  background: rgba(27, 27, 32, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition-smooth);
}

.rank-tier-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.rank-tier-card .product-badge-accent {
  position: absolute;
  top: 12px;
  right: 12px;
}

.rank-tier-card .product-title h3 {
  font-size: 1rem;
}

.rank-tier-card .product-description {
  font-size: 0.8rem;
  margin: 8px 0;
}

.rank-tier-card .product-price-wrapper {
  margin: 12px 0;
}

.rank-tier-card .price {
  font-size: 1.5rem;
}

.rank-tier-card .perks-list {
  margin-bottom: 16px;
}

.rank-tier-card .perks-list li {
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.rank-tier-card .card-actions {
  margin-top: auto;
}

.rank-tier-card .card-actions .btn-details,
.rank-tier-card .card-actions .btn-add-cart {
  height: 36px;
  font-size: 0.8rem;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fade-in 0.2s ease;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: zoom-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoom-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-header h3 {
  font-size: 1.5rem;
}

.modal-close-btn {
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.modal-body {
  overflow-y: auto;
  padding-right: 8px;
  flex: 1;
}

.modal-body h4 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 16px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.perk-detail-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.perk-detail-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.perk-detail-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.modal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.modal-buy-btn {
  width: 100%;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  height: 46px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.modal-buy-btn:hover {
  background: var(--accent-hover);
}

/* Cart Drawer Slider */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 1;
  will-change: opacity;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.hidden {
  transform: translateX(100%);
  display: flex !important; /* Keep display flex but hidden via translate */
  will-change: transform;
}

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

.cart-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-title-wrapper h2 {
  font-size: 1.4rem;
}

.cart-close-btn {
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* Alert Boxes inside Cart */
.alert-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 24px 0 24px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
}

.alert-box.warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.alert-box.success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

.cart-avatar-icon {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}

/* Cart Items Container List */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 16px;
}

.shop-now-btn {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.shop-now-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* Cart Item Row */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-item-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

/* Quantity selector */
.quantity-selector {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.qty-val {
  font-size: 0.85rem;
  width: 24px;
  text-align: center;
  font-weight: 600;
}

/* Cart summary segment */
.cart-summary-section {
  border-top: 1px solid var(--border-color);
  padding: 24px;
  background: var(--bg-secondary);
}

.coupon-area {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.coupon-area input {
  flex: 1;
  height: 38px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0 12px;
  font-size: 0.85rem;
}

.coupon-area input::placeholder {
  color: var(--text-muted);
}

.coupon-apply-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.coupon-apply-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

/* Coupon tags */
.coupon-applied-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.remove-coupon-btn {
  font-size: 1.1rem;
  color: var(--accent);
  cursor: pointer;
  line-height: 1;
}

/* Price totals display */
.pricing-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.discount-row {
  color: var(--accent);
}

.total-row {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
}

.checkout-submit-btn {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-submit-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.checkout-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-footer-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* Toast Message Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px 12px 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slide-in-toast 0.25s cubic-bezier(0, 0, 0.2, 1);
  min-width: 280px;
  max-width: 380px;
}

.toast-message {
  flex: 1;
}

.toast-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  margin-left: auto;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.toast.hide {
  animation: slide-out-toast 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes slide-in-toast {
  from { transform: translateX(120%); }
  to { transform: translateX(0); }
}

@keyframes slide-out-toast {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

.toast.toast-error {
  border-left-color: var(--error);
}

.toast.toast-info {
  border-left-color: var(--warning);
}

/* Footer styling */
.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #eab308;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-right h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--accent);
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-badge {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.footer-copyright {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto;
  }
  .community-goal-box {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .main-header {
    height: auto;
    padding: 16px 0;
  }
  .header-container {
    flex-direction: column;
    gap: 16px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
  }
  .server-ip-widget {
    order: 1;
  }
  .cart-trigger-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
  }
  .cart-trigger-btn:hover {
    background: var(--accent-hover);
    color: var(--bg-primary);
  }
  .cart-count {
    top: 2px;
    right: 2px;
    border: 2px solid var(--accent);
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .category-tabs-row {
    flex-wrap: wrap;
  }
  .tab-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  .cart-drawer {
    max-width: 100%;
  }
}

/* ==========================================================================
   Home & Authentication Page Layout
   ========================================================================== */

.auth-page-body {
  overflow: hidden;
  height: 100vh;
  margin: 0;
}

.auth-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* Left panel: Info & branding */
.auth-panel-left {
  flex: 1.2;
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background-image: 
    linear-gradient(rgba(13, 13, 15, 0.75), rgba(13, 13, 15, 0.92)), 
    url('background.jpg');
  background-size: cover;
  background-position: center;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
}

.brand-hero h2 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 500px;
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0;
}

.feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.feature-row h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-row p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 440px;
}

.brand-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Right panel: Auth card */
.auth-panel-right {
  flex: 0.8;
  background-color: #070709;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(20, 20, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
  gap: 20px;
}

.auth-tab-btn {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding-bottom: 12px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.auth-tab-btn:hover {
  color: var(--text-primary);
}

.auth-tab-btn.active {
  color: var(--text-primary);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.input-field-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 4px 0 16px;
  height: 44px;
  transition: var(--transition-smooth);
}

.input-field-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.input-field-wrapper input {
  flex: 1;
  height: 100%;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.input-field-wrapper input::placeholder {
  color: var(--text-muted);
}

.password-toggle-btn {
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.password-toggle-btn:hover {
  color: var(--text-primary);
}

.submit-action-btn {
  width: 100%;
  height: 44px;
  background-color: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.submit-action-btn:hover {
  background-color: var(--accent-hover);
}

/* Social Separator */
.social-divider {
  text-align: center;
  position: relative;
  margin: 28px 0 20px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.social-divider::before,
.social-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: var(--border-color);
}

.social-divider::before { left: 0; }
.social-divider::after { right: 0; }

/* Social login grid */
.social-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.social-icon {
  flex-shrink: 0;
}

.btn-google:hover {
  border-color: #EA4335;
  background-color: rgba(234, 67, 53, 0.05);
}

.btn-appleid:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-twitch:hover {
  border-color: #9146FF;
  background-color: rgba(145, 70, 255, 0.05);
}

.btn-discord:hover {
  border-color: #5865F2;
  background-color: rgba(88, 101, 242, 0.05);
}

.privacy-foot-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
  line-height: 1.4;
}

/* ==========================================================================
   Header User Session Widget
   ========================================================================== */

.user-session-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

.header-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background-color: var(--bg-tertiary);
}

.header-username {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.header-logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  padding: 2px;
}

.header-logout-btn:hover {
  color: var(--error);
}

/* Auth Responsive Breakpoint */
@media (max-width: 850px) {
  .auth-page-body {
    overflow: auto;
    height: auto;
  }
  .auth-wrapper {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .auth-panel-left {
    padding: 36px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
  }
  .brand-header {
    justify-content: center;
    margin-bottom: 20px;
  }
  .brand-hero h2 {
    font-size: 2rem;
  }
  .feature-rows {
    display: none; /* Hide features in mobile view for cleaner vertical flow */
  }
  .auth-panel-right {
    padding: 36px 20px;
  }
}

/* ==========================================================================
   User Settings Page Dashboard Styles
   ========================================================================== */

.settings-page-body {
  overflow-y: auto;
  min-height: 100vh;
}

.settings-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 60px 24px;
  min-height: calc(100vh - 120px);
  align-items: start;
}

.settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 8px 12px;
  margin-top: 16px;
}

.sidebar-header:first-child {
  margin-top: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  text-align: left;
  border: none;
}

.sidebar-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.sidebar-item.active {
  color: var(--accent);
  background-color: rgba(16, 185, 129, 0.06);
  font-weight: 600;
}

.sidebar-icon {
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 16px 0;
}

.sidebar-item.btn-signout:hover {
  color: var(--error);
  background-color: var(--error-bg);
}

.settings-content {
  background: rgba(20, 20, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  min-height: 520px;
}

.settings-panel h2 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.panel-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* My Profile Panel Grid */
.profile-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.profile-controls-card {
  display: flex;
  flex-direction: column;
}

.profile-controls-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-upload-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-actions {
  display: flex;
  gap: 8px;
}

.btn-upload-file {
  background-color: var(--accent);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-upload-file:hover {
  background-color: var(--accent-hover);
}

.btn-reset-avatar {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-reset-avatar:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  width: fit-content;
}

.color-picker-wrapper input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
}

.color-picker-hex {
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--text-secondary);
}

.profile-controls-card textarea {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 12px 16px;
  min-height: 90px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  transition: var(--transition-smooth);
}

.profile-controls-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Discord Style Profile Card Preview */
.profile-preview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-header-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.discord-card {
  width: 100%;
  background-color: #18191c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.discord-banner {
  height: 100px;
  background-color: var(--accent);
  transition: background-color 0.25s ease;
}

.discord-avatar-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 6px solid #18191c;
  overflow: hidden;
  margin-top: -40px;
  margin-left: 16px;
  background-color: #2f3136;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-card-body {
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discord-username {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.discord-tag {
  font-size: 0.75rem;
  color: #b9bbbe;
  margin-top: -6px;
}

.discord-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.06);
}

.discord-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #b9bbbe;
  letter-spacing: 0.02em;
}

.discord-bio {
  font-size: 0.8rem;
  color: #dcddde;
  line-height: 1.4;
  word-break: break-word;
}

.discord-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #2f3136;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: #ffffff;
  width: fit-content;
}

.role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Linked Accounts Panel style */
.linked-accounts-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.linking-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.link-info-icon {
  color: var(--text-muted);
}

.mc-link-input-row {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 460px;
  margin-top: 12px;
}

.mc-link-input-row .input-field-wrapper {
  flex: 1;
}

.linked-state {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.linked-header {
  display: flex;
}

.linked-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.linked-card-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.linked-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.linked-avatar-box img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}

.linked-details {
  display: flex;
  flex-direction: column;
}

.linked-details h3 {
  font-size: 1.1rem;
}

.linked-details p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Header Session Widget settings link adjustments */
.header-settings-btn {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: var(--transition-smooth);
}

.header-settings-btn:hover {
  color: var(--accent);
}

/* ==========================================================================
   Settings Mobile Breakpoint
   ========================================================================== */

@media (max-width: 900px) {
  .settings-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px;
  }
  .settings-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-lg);
  }
  .sidebar-header {
    display: none; /* Hide headers on mobile nav row */
  }
  .sidebar-divider {
    display: none;
  }
  .sidebar-item {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  .settings-content {
    padding: 24px;
  }
  .profile-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .profile-preview-card {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ==========================================================================
   OAuth Setup Guide Styles
   ========================================================================== */

.oauth-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.status-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.status-provider-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.status-badge-pill.sandbox {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.status-badge-pill.live {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 10px var(--accent-glow);
}

.setup-guide-box {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.setup-guide-box h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.setup-steps {
  margin-left: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.setup-steps li {
  margin-bottom: 16px;
}

.setup-steps li:last-child {
  margin-bottom: 0;
}

.code-box-instruction {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: monospace;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  width: fit-content;
}

.callback-highlight {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-family: monospace;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Admin Management Tables & Product Lists
   ========================================================================== */

.admin-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.admin-products-list::-webkit-scrollbar {
  width: 6px;
}

.admin-products-list::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 3px;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 600px;
}

.admin-users-table th {
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  background-color: rgba(0, 0, 0, 0.15);
}

.admin-users-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-users-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
}

.btn-catalog-edit, .btn-catalog-delete {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   NEW: Admin Panel Upgrades & Site Interactivity
   ========================================================================== */

/* ── Panel fade+slide transition ──────────────────────────────── */
@keyframes panel-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.settings-panel:not(.hidden) {
  animation: panel-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ── Sidebar stagger load animation ───────────────────────────── */
@keyframes sidebar-slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.settings-sidebar .sidebar-item,
.settings-sidebar .sidebar-header {
  animation: sidebar-slide-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.settings-sidebar .sidebar-item:nth-child(1)  { animation-delay: 0.04s; }
.settings-sidebar .sidebar-item:nth-child(2)  { animation-delay: 0.08s; }
.settings-sidebar .sidebar-item:nth-child(3)  { animation-delay: 0.12s; }
.settings-sidebar .sidebar-item:nth-child(4)  { animation-delay: 0.16s; }
.settings-sidebar .sidebar-item:nth-child(5)  { animation-delay: 0.20s; }
.settings-sidebar .sidebar-item:nth-child(6)  { animation-delay: 0.24s; }
.settings-sidebar .sidebar-item:nth-child(7)  { animation-delay: 0.28s; }
.settings-sidebar .sidebar-item:nth-child(8)  { animation-delay: 0.32s; }
.settings-sidebar .sidebar-item:nth-child(9)  { animation-delay: 0.36s; }
.settings-sidebar .sidebar-item:nth-child(10) { animation-delay: 0.40s; }

/* Active sidebar item — left accent glow bar */
.sidebar-item.active {
  position: relative;
}
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--accent);
  animation: glow-bar 2s ease infinite;
}
@keyframes glow-bar {
  0%, 100% { box-shadow: 0 0 5px var(--accent); }
  50%       { box-shadow: 0 0 14px rgba(16,185,129,0.7); }
}

/* ── Confirmation Modal ────────────────────────────────────────── */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fade-in 0.2s ease;
}

.confirm-modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  animation: zoom-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--error);
}

.confirm-modal-icon.danger-delete {
  background: var(--error-bg);
  color: var(--error);
}

.confirm-modal-icon.role-change {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.25);
}

.confirm-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.confirm-modal-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 300px;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.confirm-cancel-btn {
  flex: 1;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.confirm-cancel-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.confirm-ok-btn {
  flex: 1;
  height: 40px;
  background: var(--error);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}
.confirm-ok-btn:hover {
  background: #dc2626;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}
.confirm-ok-btn.warn-btn {
  background: var(--warning);
  color: var(--bg-primary);
}
.confirm-ok-btn.warn-btn:hover {
  background: #d97706;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

/* ── Catalog category filter tabs ─────────────────────────────── */
.catalog-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.catalog-filter-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.catalog-filter-btn:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}
.catalog-filter-btn.active {
  color: var(--accent);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

/* ── Admin product row card (replaces inline JS styles) ───────── */
.admin-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  animation: panel-enter 0.25s ease both;
}
.admin-product-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.admin-product-row:hover {
  border-color: var(--border-hover);
  background: var(--bg-tertiary);
}
.admin-product-row:hover::before {
  opacity: 1;
}
.admin-product-row.hidden-product {
  opacity: 0.5;
}
.admin-product-row.hidden-product::before {
  background: var(--text-muted);
}

.admin-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  min-width: 0;
}
.admin-product-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-product-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hidden status badge in product meta */
.product-hidden-tag {
  background: rgba(107, 114, 128, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-product-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Stock visibility toggle ──────────────────────────────────── */
.stock-toggle-row {
  display: flex;
  gap: 8px;
}

.stock-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.stock-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.stock-toggle-btn.active {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent);
}

/* ── User Stats Bar ───────────────────────────────────────────── */
.user-stats-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.user-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  min-width: 80px;
  transition: var(--transition-smooth);
}
.user-stat-pill:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-elevated);
}

.usp-count {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.usp-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Role-colored stat pills */
.user-stat-pill.role-owner  { border-color: rgba(239, 68, 68, 0.15); }
.user-stat-pill.role-owner .usp-count  { color: #ef4444; }
.user-stat-pill.role-staff  { border-color: rgba(16, 185, 129, 0.15); }
.user-stat-pill.role-staff .usp-count  { color: var(--accent); }
.user-stat-pill.role-developer { border-color: rgba(59, 130, 246, 0.15); }
.user-stat-pill.role-developer .usp-count { color: #3b82f6; }
.user-stat-pill.role-customer { border-color: rgba(107, 114, 128, 0.15); }
.user-stat-pill.role-customer .usp-count { color: var(--text-muted); }

/* ── User Search Bar ──────────────────────────────────────────── */
.user-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 42px;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}
.user-search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.search-ico {
  color: var(--text-muted);
  flex-shrink: 0;
}
.user-search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
}
.user-search-bar input::placeholder {
  color: var(--text-muted);
}
.user-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  flex-shrink: 0;
}
.user-search-clear:hover {
  background: var(--error-bg);
  color: var(--error);
}

/* ── Role Badge Pills (for users table) ───────────────────────── */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.role-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.role-badge.owner {
  background: rgba(239, 68, 68, 0.10);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.role-badge.staff {
  background: rgba(16, 185, 129, 0.10);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.role-badge.developer {
  background: rgba(59, 130, 246, 0.10);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.role-badge.customer {
  background: rgba(107, 114, 128, 0.10);
  color: var(--text-muted);
  border: 1px solid rgba(107, 114, 128, 0.15);
}

/* User avatar in table */
.user-table-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  image-rendering: pixelated;
  object-fit: cover;
}

/* Delete user button in table */
.btn-user-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-user-delete:hover {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}

/* Update admin-users-table to accommodate new columns */
.admin-users-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}







/* ==========================================================================
   UI POLISH LAYER � buttons, inputs, cards, global depth
   Performance: only transform / box-shadow / opacity / filter (GPU).
   No layout thrash, no scroll listeners, no extra assets.
   ========================================================================== */

/* Subtle film-grain / vignette overlay (pure CSS, single fixed layer) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(16,185,129,0.05), transparent 60%);
  mix-blend-mode: screen;
}

/* Slightly richer default focus ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* -- Unified premium button base ------------------------------- */
.submit-action-btn,
.verify-btn,
.btn-add-cart,
.btn-details,
.btn-upload-file,
.coupon-apply-btn,
.modal-buy-btn,
.checkout-submit-btn,
.shop-now-btn,
.confirm-ok-btn,
.confirm-cancel-btn,
.social-btn,
.cart-trigger-btn,
.profile-logout-btn,
.server-ip-widget,
.header-settings-btn,
.sidebar-item,
.stock-toggle-btn,
.catalog-filter-btn,
.password-toggle-btn {
  position: relative;
  isolation: isolate;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    filter 0.25s ease;
  will-change: transform;
}

/* Primary / accent buttons: layered gradient + inner highlight */
.submit-action-btn,
.verify-btn,
.btn-add-cart,
.modal-buy-btn,
.checkout-submit-btn,
.btn-upload-file {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
  color: #04130c;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 8px 22px -8px rgba(16,185,129,0.55);
  border: 1px solid rgba(255,255,255,0.10);
}

.submit-action-btn:hover:not(:disabled),
.verify-btn:hover,
.btn-add-cart:hover,
.modal-buy-btn:hover,
.checkout-submit-btn:hover:not(:disabled),
.btn-upload-file:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.30) inset,
    0 14px 30px -8px rgba(16,185,129,0.65),
    0 0 0 4px rgba(16,185,129,0.14);
  filter: saturate(1.08);
}

.submit-action-btn:active:not(:disabled),
.verify-btn:active,
.btn-add-cart:active,
.modal-buy-btn:active,
.checkout-submit-btn:active:not(:disabled),
.btn-upload-file:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 4px 12px -6px rgba(16,185,129,0.5);
  transition-duration: 0.08s;
}

.submit-action-btn:disabled,
.checkout-submit-btn:disabled {
  filter: grayscale(0.4) brightness(0.85);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-details,
.coupon-apply-btn,
.shop-now-btn,
.confirm-cancel-btn,
.stock-toggle-btn,
.catalog-filter-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-details:hover,
.coupon-apply-btn:hover,
.shop-now-btn:hover,
.confirm-cancel-btn:hover,
.stock-toggle-btn:hover,
.catalog-filter-btn:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
  border-color: var(--border-hover);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.8);
}

.btn-add-cart.added {
  background-image: none;
  background-color: var(--bg-tertiary);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

/* -- Inputs: deeper wells + glowing focus ---------------------- */
.input-field-wrapper,
.username-input-wrapper,
.user-search-bar,
.color-picker-wrapper,
.server-ip-widget {
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.input-field-wrapper:focus-within,
.username-input-wrapper:focus-within,
.user-search-bar:focus-within {
  border-color: var(--accent);
  background-color: #16161b;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.35),
    0 0 0 4px rgba(16,185,129,0.14),
    0 0 22px -4px rgba(16,185,129,0.45);
}

.input-field-wrapper input,
.username-input-wrapper input,
.user-search-bar input {
  color: var(--text-primary);
}

.input-field-wrapper input::placeholder,
.username-input-wrapper input::placeholder,
.user-search-bar input::placeholder {
  color: #5b6470;
}

/* -- Cards: gradient sheen on hover --------------------------- */
.product-card,
.rank-group-card,
.rank-tier-card,
.username-card,
.user-profile-card,
.linked-accounts-card,
.profile-controls-card,
.profile-preview-card,
.discord-card,
.settings-content,
.community-goal-box,
.empty-cart-state,
.toast,
.alert-box,
.confirm-modal-card,
.modal-card,
.admin-product-row {
  position: relative;
  overflow: hidden;
}

.product-card::after,
.rank-tier-card::after,
.username-card::after,
.user-profile-card::after,
.linked-accounts-card::after,
.profile-controls-card::after,
.community-goal-box::after,
.admin-product-row::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, rgba(16,185,129,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.product-card:hover::after,
.rank-tier-card:hover::after,
.username-card:hover::after,
.linked-accounts-card:hover::after,
.profile-controls-card:hover::after,
.community-goal-box:hover::after,
.admin-product-row:hover::after {
  opacity: 1;
}

.product-card:hover,
.rank-tier-card:hover,
.username-card:hover,
.user-profile-card,
.linked-accounts-card:hover,
.profile-controls-card:hover,
.community-goal-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -18px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.04);
}

.product-card > *,
.rank-tier-card > *,
.username-card > *,
.user-profile-card > *,
.linked-accounts-card > *,
.profile-controls-card > *,
.community-goal-box > *,
.admin-product-row > * {
  position: relative;
  z-index: 1;
}

/* -- Header + nav: crisper, more premium ---------------------- */
.main-header {
  background: rgba(13, 13, 15, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 30px -20px rgba(0,0,0,0.9);
}

.logo-area .logo-text,
.footer-logo {
  text-shadow: 0 0 18px rgba(234,179,8,0.25);
}

.nav-links a {
  font-weight: 600;
}

.cart-trigger-btn,
.server-ip-widget {
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.8);
}

/* -- Social buttons: branded, tactile ------------------------- */
.social-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(0,0,0,0.9);
}

.btn-google:hover   { border-color: #ea4335; box-shadow: 0 12px 26px -14px rgba(234,67,53,0.6); }
.btn-discord:hover  { border-color: #5865f2; box-shadow: 0 12px 26px -14px rgba(88,101,242,0.6); }

/* -- Progress + pills: smoother, glossier --------------------- */
.goal-progress-fill {
  background: linear-gradient(90deg, var(--accent) 0%, #6ee7b7 60%, #a7f3d0 100%);
  box-shadow: 0 0 14px rgba(16,185,129,0.6);
}

.status-badge-pill.live {
  box-shadow: 0 0 14px rgba(16,185,129,0.4);
}

/* -- Toasts: rounded, glassy, with accent glow ---------------- */
.toast {
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  background: rgba(20,20,23,0.92);
  box-shadow: 0 12px 34px -10px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
}

/* -- Sidebar items: smoother active state --------------------- */
.sidebar-item.active {
  background-color: rgba(16,185,129,0.10);
  box-shadow: inset 0 0 0 1px rgba(16,185,129,0.18);
}

/* -- Respect reduced-motion users ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}