@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

:root {
  --color-brand-dark: #0f172a;    /* slate-900 */
  --color-brand-darker: #020617;  /* slate-950 */
  --color-brand-card: #1e293b;    /* slate-800 */
  --color-brand-accent: #6366f1;  /* indigo-500 */
  --color-brand-accent-hover: #4f46e5; /* indigo-600 */
  --color-brand-glow: rgba(99, 102, 241, 0.4);
  --color-brand-purple: #8b5cf6;  /* purple-600 */
  --color-brand-purple-hover: #7c3aed;
  --color-success: #10b981;       /* green-500 */
  --color-success-hover: #059669;
  --color-text-white: #f8fafc;    /* slate-50 */
  --color-text-muted: #94a3b8;    /* slate-400 */
  --color-text-dark: #020617;
  --color-border-subtle: rgba(255, 255, 255, 0.05);
  --color-border-active: rgba(99, 102, 241, 0.5);
  --color-strikethrough: #ef4444; 
  
  --font-sans: 'Inter', sans-serif;
  --max-width-content: 1280px;
}

/* Reset and Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

/* ── Glassmorphism Variables ── */
:root {
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-blur: 12px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ── Fivem‑style Login Card (used for Discord required popup) ── */
.discord-required .store-product-options {
  max-width: 580px;
  margin: 60px auto;
  padding: 32px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  animation: slide-up 0.45s ease forwards;
}

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

.discord-required .store-product-options .field p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-white);
  margin-bottom: 12px;
}

.discord-required .store-product-options .actions .btn-primary {
  background: #FFC107 !important;
  color: #000000 !important;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.discord-required .store-product-options .actions .btn-primary:hover {
  background: #ffca2c !important;
  transform: translateY(-2px);
}

.discord-required .store-product-options .actions .btn-secondary {
  background: transparent !important;
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-text-muted) !important;
  border-radius: 12px;
  padding: 14px 24px;
  width: 100%;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.discord-required .store-product-options .actions .btn-secondary:hover {
  color: var(--color-text-white) !important;
  border-color: var(--color-text-white) !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #334155 #0f172a;
}

body {
  background-color: var(--color-brand-darker);
  color: var(--color-text-white);
  background-image: 
      radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
      radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08), transparent 25%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-text-white);
  line-height: 1.2;
}

p {
  color: var(--color-text-muted);
}

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

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Interactive Components */

/* Layout wrapper */
.site-layout-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.site-main-content {
  flex-grow: 1;
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 40px 16px;
}

@media (min-width: 640px) {
  .site-main-content {
    padding: 40px 24px;
  }
}
@media (min-width: 1024px) {
  .site-main-content {
    padding: 40px 32px;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-brand-accent), var(--color-brand-purple));
  color: var(--color-primary-text, var(--color-text-white));
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-brand-accent-hover), var(--color-brand-purple-hover));
  color: var(--color-primary-text-hover, var(--color-text-white));
  box-shadow: 0 0 15px var(--color-brand-glow);
  transform: translateY(-2px);
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tertiary:hover {
  color: var(--color-text-white);
  background: rgba(255, 255, 255, 0.05);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.nav-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .nav-container {
    padding: 0 24px;
  }
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(to bottom right, var(--color-brand-accent), var(--color-brand-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  transition: transform 0.3s ease;
}

.nav-logo-link:hover .logo-badge {
  transform: scale(1.05);
}

.logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--color-text-white);
}

.logo-text span {
  font-weight: 400;
  color: var(--color-text-muted);
}

.logo-text:hover {
  color: var(--color-brand-accent);
}

.nav-menu-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-menu-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
  }
}

.nav-link {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-link:hover {
  color: var(--color-text-white);
}

.nav-link.active {
  color: var(--color-brand-accent);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-customers-count {
  display: none;
  font-size: 13px;
  color: var(--color-text-muted);
}

.nav-customers-count i {
  color: var(--color-success);
  margin-right: 4px;
}

@media (min-width: 640px) {
  .nav-customers-count {
    display: block;
  }
}

.nav-cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  cursor: pointer;
}

.nav-cart-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-brand-accent);
  color: var(--color-text-white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-connect-btn {
  height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-brand-accent-glow, rgba(99, 102, 241, 0.15));
  border: 1px solid var(--color-brand-accent-border, rgba(99, 102, 241, 0.3));
  color: var(--color-brand-accent-text, #a5b4fc);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--color-brand-accent-glow, rgba(99, 102, 241, 0.1));
  text-decoration: none;
}

.nav-connect-btn:hover {
  background: var(--color-brand-accent-glow-hover, rgba(99, 102, 241, 0.3));
  color: var(--color-primary-text-hover, #ffffff);
  border-color: var(--color-brand-accent-border-hover, rgba(99, 102, 241, 0.5));
  box-shadow: 0 0 20px var(--color-brand-glow, rgba(99, 102, 241, 0.3));
  transform: translateY(-2px);
}

.nav-connect-btn span {
  display: none;
}

@media (min-width: 640px) {
  .nav-connect-btn span {
    display: inline;
  }
}

.mobile-menu-toggle {
  display: block;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Side Navigation Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  bottom: 0;
  width: 280px;
  background: var(--color-brand-darker);
  border-right: 1px solid var(--color-border-subtle);
  z-index: 101;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.3s ease;
}

body.show-navigation .mobile-nav-overlay {
  display: block;
}

body.show-navigation .mobile-nav-drawer {
  transform: translateX(280px);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 20px;
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background-image: url('../images/gta6_hero_bg.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.25),
              0 0 60px rgba(139, 92, 246, 0.15),
              inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
  z-index: 1;
}

.hero-glow-1 {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 256px;
  height: 256px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.2);
  filter: blur(64px);
}

.hero-glow-2 {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.15);
  filter: blur(64px);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 80px 48px;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.hero-text-col {
  max-width: 600px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
}

.hero-title span {
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

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

@media (min-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-graphic-col {
  display: none;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-graphic-col {
    display: block;
  }
}

.featured-mockup {
  width: 256px;
  height: 256px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: rotate(3deg);
  transition: transform 0.5s ease;
}

.featured-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.featured-mockup:hover {
  transform: rotate(0deg);
}

.featured-mockup:hover img {
  opacity: 1;
}

.mockup-details {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 10;
}

.mockup-tag {
  color: var(--color-brand-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.mockup-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-white);
}

.category-page-title-row {
  margin-top: 8px;
  margin-bottom: 12px;
}

.category-page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text-white);
  line-height: 1.2;
}

/* Category & Listing Filter Header */
.section-filter-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .section-filter-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.section-title-wrap h2 {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-wrap h2 i {
  color: var(--color-brand-accent);
}

.section-title-wrap p {
  font-size: 14px;
  margin-top: 4px;
}

.filter-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .search-input-wrapper {
    max-width: 480px;
  }
}

.search-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 14px;
}

.search-input {
  width: 100%;
  background: var(--color-brand-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  padding: 12px 16px 12px 40px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--color-brand-accent);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.sort-select {
  background: var(--color-brand-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  padding: 12px 40px 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.sort-select:focus {
  border-color: var(--color-brand-accent);
}

.sort-select option {
  background-color: #0f172a;
  color: var(--color-text-white);
}

/* Header Action Icons Hover styling */
.nav-cart-btn, .color-scheme, .mobile-menu-toggle {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cart-btn:hover, .color-scheme:hover, .mobile-menu-toggle:hover {
  background: var(--color-text-white) !important;
  color: var(--color-brand-darker) !important;
  border-color: var(--color-text-white) !important;
}

/* Category header section list */
.gta6-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.gta6-section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gta6-count-badge {
  font-size: 11px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.gta6-action-link {
  font-size: 14px;
  color: var(--color-brand-accent);
  font-weight: 500;
}

.gta6-action-link:hover {
  color: var(--color-text-white);
}

/* Category Horizontal Sub Navigation */
.site-home-categories {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.site-home-categories .category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.site-home-categories .category img.image {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
}

.site-home-categories .category .image-default {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

/* Main Grid layouts */
.store-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .store-grid-layout.has-sidebar {
    grid-template-columns: 3fr 1fr;
  }
}

/* Sidebar & Widgets */
.store-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  padding: 20px;
  border-radius: 16px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-accent);
}

.widget-content {
  font-size: 14px;
}

.widget-content p.empty {
  color: var(--color-text-muted);
}

/* Payments widget items */
.widget-recent .purchases {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.widget-recent .purchase {
  display: flex;
  align-items: center;
  gap: 12px;
}

.widget-recent .purchase img.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.widget-recent .purchase .info {
  display: flex;
  flex-direction: column;
}

.widget-recent .purchase .username {
  font-weight: 600;
  color: var(--color-text-white);
  font-size: 14px;
}

.widget-recent .purchase p {
  font-size: 12px;
  margin-top: 2px;
}

.widget-recent .purchase .sep {
  margin: 0 4px;
}

.widget-recent .purchase time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* Top Donator widget styling */
.widget-top-donator .widget-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0;
}

.widget-top-donator .avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.widget-top-donator .username {
  font-weight: 700;
  color: var(--color-text-white);
  font-size: 16px;
  margin-bottom: 4px;
}

.widget-top-donator p {
  font-size: 13px;
  max-width: 200px;
}

/* Progress Bar, Goal, Server Status, Gift Card styling */
.widget .progress {
  background: rgba(255, 255, 255, 0.05);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget .progress-bar {
  background: linear-gradient(to right, var(--color-brand-accent), #a5b4fc);
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.widget-server-status .badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.widget-server-status .badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.widget-server-status .badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.widget-server-status h6 {
  font-size: 13px;
  color: var(--color-text-white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  margin: 12px 0 6px 0;
  font-family: monospace;
}

.widget-gift-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-gift-card .gift-card-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.widget-gift-card .gift-card-input:focus {
  border-color: var(--color-brand-accent);
}

/* Products Cards Grid */
.store-products-images, .store-products-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .store-products-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .store-products-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .store-products-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product Card structure */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-card.non-clickable {
  cursor: default;
}

.product-card.non-clickable:hover .product-thumb-container img {
  transform: none;
}

.product-card.non-clickable:hover .product-title-row h3 {
  color: inherit;
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.card-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--color-text-white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.card-badge.badge-hot {
  background: #ef4444; /* red-500 */
}

.card-badge.badge-v2 {
  background: var(--color-brand-accent);
}

.card-badge.badge-free {
  background: var(--color-success);
}

.card-badge.badge-paid {
  background: var(--color-brand-accent);
}

.product-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0f172a;
  overflow: hidden;
}

.product-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb-container img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title-row {
  margin-bottom: 8px;
}

.product-title-row h3 {
  font-size: 18px;
  font-weight: 700;
}

.product-card:hover .product-title-row h3 {
  color: var(--color-brand-accent);
}

.product-desc-clamp {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.product-card-tags .tag {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Card Actions / Prices Area */
.card-price-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  margin-top: auto;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-box .original-price {
  font-size: 11px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.price-box .current-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-white);
}

.price-box .current-price span {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 2px;
}

.price-box .free-label {
  color: var(--color-success);
  font-weight: 700;
}

.product-card .product-actions .btn-text {
  display: none;
}

.product-card .product-actions .add,
.product-card .product-actions .subscribe {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--color-text-white);
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: none;
}

.product-card:hover .product-actions .add,
.product-card:hover .product-actions .subscribe {
  background: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
}

.product-card .product-actions .btn-secondary.gift {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 6px;
  font-size: 14px;
}

/* Quantity Adjustments Wrapper */
.quantity-field {
  display: flex;
  align-items: center;
  background: var(--color-brand-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  height: 38px;
  width: 120px;
}

.quantity-field button.adjust {
  background: transparent;
  border: none;
  color: var(--color-text-white);
  width: 32px;
  height: 100%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-field button.adjust:hover {
  background: rgba(255, 255, 255, 0.05);
}

.quantity-field input.quantity {
  width: 100%;
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--color-text-white);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  pointer-events: none;
}

/* Details Page Layout styling */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a:hover {
  color: var(--color-text-white);
}

.breadcrumbs .separator {
  color: var(--color-text-muted);
}

.package-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .package-detail-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.package-media-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  overflow: hidden;
}

.media-viewer {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

/* If the media viewer contains a slider, let it overflow so thumbnails/counter are visible */
.media-viewer:has(.media-slider) {
  background: transparent;
  border: none;
  overflow: visible;
  aspect-ratio: auto;
}

/* Apply the aspect ratio, borders, and rounded corners directly to the swiper container slider */
.media-slider swiper-container.slider {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  width: 100%;
  display: block;
}

.media-slider {
  width: 100%;
}

.media-slider swiper-slide {
  width: 100%;
  height: 100%;
}

.slide-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery Slider */
.media-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.media-gallery-thumb {
  width: 120px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  transition: all 0.2s ease;
}

.media-gallery-thumb.active {
  border-color: var(--color-brand-accent);
  opacity: 1;
}

.media-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbs slider / list underneath the main video/image */
.thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.thumb {
  width: 100px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s ease;
  background: #0f172a;
  display: block;
}

.thumb:hover,
.thumb.active {
  opacity: 1;
  border-color: var(--color-brand-accent);
}

.thumb img,
.thumb-image,
.thumb-youtube,
.thumb-youtube img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbs-slider .thumb {
  width: auto;
}

/* Description Prose Styles */
.description-container {
  padding: 32px;
  border-radius: 16px;
}

.description-container h2 {
  font-size: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Prose Invert styles for Raw HTML content from Tebex */
.prose-invert {
  font-weight: 300;
  color: #cbd5e1; /* slate-300 */
}

.prose-invert h1, .prose-invert h2, .prose-invert h3, .prose-invert h4 {
  color: var(--color-text-white);
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.prose-invert h2 { font-size: 20px; }
.prose-invert h3 { font-size: 16px; }

.prose-invert p {
  margin-bottom: 16px;
  color: #cbd5e1;
}

.prose-invert ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.prose-invert ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.prose-invert ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand-accent);
  font-weight: 700;
}

.prose-invert strong {
  font-weight: 700;
  color: var(--color-text-white);
}

.prose-invert blockquote {
  border-left: 4px solid var(--color-brand-accent);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--color-text-white);
  background: rgba(99, 102, 241, 0.05);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
}

.prose-invert hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 32px 0;
}

.prose-invert table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}

.prose-invert table th, .prose-invert table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prose-invert table th {
  color: var(--color-text-white);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

.prose-invert img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

/* Right Sticky Buy box */
.package-purchase-column {
  position: relative;
}

.sticky-buy-box {
  position: sticky;
  top: 100px;
  border-radius: 16px;
  padding: 24px;
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
}

.sticky-buy-box .title-wrap h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.star-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 24px;
}

.star-rating-row .stars {
  color: #fbbf24; /* yellow-400 */
}

.purchase-price-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.price-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-accent);
  margin-bottom: 4px;
}

.price-card-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.price-card-row .main-price {
  font-size: 28px;
  font-weight: 800;
}

.price-card-row .main-price.free {
  color: var(--color-success);
}

.price-card-row .strike-price {
  font-size: 14px;
  color: var(--color-strikethrough);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.price-card-row .discount-tag {
  background: var(--color-brand-accent);
  color: var(--color-text-white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
  margin-left: auto;
}

.price-card-vat {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* Actions inside Sticky Box */
.purchase-actions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.purchase-actions-list .product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-actions-list .card-price-actions-row {
  border: none;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
}

.purchase-actions-list .price-box {
  display: none !important;
}

.purchase-actions-list .actions-buttons-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.purchase-actions-list .actions-buttons-container .btn-primary,
.purchase-actions-list .actions-buttons-container .btn-secondary,
.purchase-actions-list .actions-buttons-container .quantity-field {
  width: 100% !important;
  height: 48px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.purchase-actions-list .actions-buttons-container .quantity-field {
  justify-content: space-between !important;
  padding: 0 16px !important;
}

.purchase-actions-list .btn-text {
  display: inline !important;
}

.feature-benefits-list {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.benefit-text-wrap {
  display: flex;
  flex-direction: column;
}

.benefit-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-white);
}

.benefit-desc {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Footer Section */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #050b14;
  padding: 32px 0 24px 0;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .footer-container {
    padding: 0 24px;
  }
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .footer-top-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-brand strong {
  color: var(--color-text-white);
  font-weight: 700;
  font-size: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

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

.footer-tebex {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-tebex strong {
  color: var(--color-text-white);
}

.we-accept {
  display: flex;
  gap: 12px;
  list-style: none;
  margin-bottom: 16px;
}

.we-accept img {
  height: 24px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.we-accept img:hover {
  opacity: 1;
}

.footer-bottom-row {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}

/* Username / Login Page */
.login-card-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  width: 100%;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
}

.login-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.login-card p {
  font-size: 14px;
  margin-bottom: 24px;
}

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

.login-form-group input[type="text"] {
  width: 100%;
  background: var(--color-brand-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  text-align: center;
}

.login-form-group input[type="text"]:focus {
  border-color: var(--color-brand-accent);
}

.login-form-group .btn-primary {
  width: 100%;
}

.basket-form-layout {
  max-width: 100%;
  margin: 0 auto;
}

.basket-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .basket-form-layout {
    max-width: 1200px;
    margin: 0 auto;
  }
  .basket-grid {
    grid-template-columns: 7fr 3fr;
  }
  .basket-summary-column {
    position: sticky;
    top: 100px;
  }
  .basket-item {
    flex-direction: row !important;
    align-items: center !important;
  }
  .basket-item .info {
    margin-bottom: 0;
  }
  .basket-item > div:last-child {
    margin-top: 0 !important;
  }
}

.basket-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.basket-header-row h2 {
  font-size: 24px;
}

.basket-header-row .item-count {
  font-size: 14px;
  color: var(--color-text-muted);
}

.basket-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.basket-item-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .basket-item-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.basket-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.basket-item-info h4 {
  font-size: 16px;
  font-weight: 700;
}

.basket-item-info h4 a:hover {
  color: var(--color-brand-accent);
}

.basket-item-info .item-meta {
  list-style: none;
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.basket-item-info .item-meta strong {
  color: var(--color-text-white);
}

.basket-item-info .item-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-white);
  margin-top: 4px;
}

.basket-item-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .basket-item-actions {
    justify-content: flex-end;
  }
}

.basket-item-row .btn-remove {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.basket-item-row .btn-remove:hover {
  background: #ef4444;
  color: var(--color-text-white);
}

.basket-summary-card {
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .basket-summary-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.basket-summary-card h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.basket-summary-card h3 .total-val {
  color: var(--color-brand-accent);
  font-weight: 800;
}

/* Package Options Form */
.options-form-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 16px;
}

.options-form-card h2 {
  font-size: 20px;
  margin-bottom: 24px;
  text-align: center;
}

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

.options-form .field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.options-form .field-group p {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-white);
}

.options-form select,
.options-form input[type="text"],
.options-form input[type="number"] {
  width: 100%;
  background: var(--color-brand-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.options-form select:focus,
.options-form input[type="text"]:focus,
.options-form input[type="number"]:focus {
  border-color: var(--color-brand-accent);
}

.options-form .inline-field-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.options-form .inline-field-group input {
  flex-grow: 1;
}

.options-form .discord-info-box {
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.options-form .discord-info-box i {
  color: #5865F2;
  font-size: 20px;
}

.options-form .form-actions-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.options-form .form-actions-row .btn-primary,
.options-form .form-actions-row .btn-secondary {
  flex-grow: 1;
}

/* ── Original Tebex Options Form (store-product-options / store-form-options) ── */
.store-product-options {
  max-width: 600px;
  margin: 40px auto;
  padding: 32px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

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

.store-form-options .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-form-options .field p {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-white);
  margin: 0;
}

.store-form-options select,
.store-form-options input[type="text"],
.store-form-options input[type="number"] {
  width: 100%;
  background: var(--color-brand-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.store-form-options select:focus,
.store-form-options input[type="text"]:focus,
.store-form-options input[type="number"]:focus {
  border-color: var(--color-brand-accent);
}

.store-form-options .field-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--color-brand-accent);
}

.store-form-options .field-inline input {
  flex-grow: 1;
}

.store-form-options .actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.store-form-options .actions .btn-primary,
.store-form-options .actions .btn-secondary {
  flex-grow: 1;
}

.store-form-options .actions .link-text {
  color: var(--color-text-muted);
  font-size: 13px;
  text-decoration: underline;
  text-align: center;
  transition: color 0.2s ease;
}

.store-form-options .actions .link-text:hover {
  color: var(--color-text-white);
}

/* ── Discord Login Required Mode ── */

/* Hide all regular form fields when Discord login is required */
.store-product-options.discord-required .field {
  display: none !important;
}

/* Hide the form actions gap — replaced by the discord-login-card flow */
.store-product-options.discord-required .store-form-options {
  gap: 0;
}

/* Discord login card header (icon + heading + subtitle) */
.discord-login-card {
  text-align: center;
  padding: 8px 0 24px;
}

.discord-login-card .discord-login-icon {
  font-size: 40px;
  color: #5865F2;
  margin-bottom: 16px;
}

.discord-login-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 8px;
}

.discord-login-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Discord login button — Discord brand blurple, full-width, centered icon */
.store-product-options.discord-required .actions {
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.store-product-options.discord-required .actions .discord-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #5865F2 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 14px 20px !important;
  border-radius: 10px !important;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35) !important;
}

.store-product-options.discord-required .actions .discord-btn:hover {
  background: #4752c4 !important;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5) !important;
  transform: translateY(-1px) !important;
}

.store-product-options.discord-required .actions .discord-btn:active {
  transform: translateY(0) !important;
}


/* Quote page styling */
.quote-card {
  max-width: 500px;
  margin: 40px auto;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
}

.quote-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.quote-card .quote-desc {
  font-size: 14px;
  margin-bottom: 24px;
}

.quote-card .quote-actions-row {
  display: flex;
  gap: 16px;
}

.quote-card .quote-actions-row .btn-primary,
.quote-card .quote-actions-row .btn-secondary {
  flex-grow: 1;
}

/* Popup Form general styles */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-scroll-cont {
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.popup-content {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 0 40px rgba(99, 102, 241, 0.15),
    0 25px 50px -12px rgba(0, 0, 0, 0.8);
  position: relative;
  padding: 40px 32px 32px 32px;
}

/* Strip duplicate layouts when inside popups */
.popup .glass-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
}

.popup .basket-second-header {
  display: none !important;
}

.popup .basket-item {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 16px !important;
  border-radius: 12px !important;
}

.popup .basket-summary-card {
  background: rgba(99, 102, 241, 0.05) !important;
  border: 1px solid rgba(99, 102, 241, 0.1) !important;
  padding: 20px !important;
  border-radius: 12px !important;
}

/* Modern close button with cross icon styling */
.popup .popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0 !important;
  z-index: 100;
  outline: none;
}

.popup .popup-close::before {
  content: "×";
  font-size: 22px;
  color: var(--color-text-white);
  line-height: 1;
}

.popup .popup-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.popup .popup-close:hover::before {
  color: #ef4444;
}

.popup-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-header h3 {
  font-size: 18px;
}

.popup-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 18px;
  cursor: pointer;
}

.popup-body {
  padding: 24px;
}

/* Utility to hide views */
.hidden-view {
  display: none !important;
}

/* Landing Page Styles */
.c2-landing-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.welcome-hero {
  position: relative;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.welcome-hero h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--color-text-white);
  margin-bottom: 12px;
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-brand-accent);
  padding-left: 12px;
}

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

.feature-card {
  padding: 24px;
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgba(30, 41, 59, 0.3);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 16px -6px rgba(99, 102, 241, 0.15);
}

.feature-icon {
  margin-bottom: 12px;
  color: var(--color-brand-accent);
  display: flex;
  align-items: center;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-white);
}

.feature-card p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.script-card {
  position: relative;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.35) 0%, rgba(15, 23, 42, 0.55) 1005);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.script-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.script-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.25);
  background: linear-gradient(135deg, rgba(35, 48, 71, 0.45) 0%, rgba(16, 25, 45, 0.65) 100%);
}

.script-card:hover::before {
  opacity: 1;
}

.script-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.script-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  transition: all 0.3s ease;
}

.script-card:hover .script-icon-wrapper {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  transform: scale(1.05);
}

.script-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.script-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #818cf8;
  display: inline-block;
}

.script-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.script-card:hover h4 {
  color: #a5b4fc;
}

.script-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.script-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.script-btn:hover {
  background: var(--color-brand-accent-hover);
}

.cta-section {
  text-align: center;
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.cta-section p {
  font-size: 15px;
  color: var(--color-text-white);
  margin-bottom: 0;
}

.cta-section a {
  color: #818cf8;
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-section a:hover {
  color: var(--color-brand-accent);
}

.info-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.info-card {
  padding: 24px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.info-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.accent-link {
  color: #818cf8;
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.accent-link:hover {
  color: var(--color-brand-accent);
}

.promise-highlight {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 500;
  color: #cbd5e1 !important;
}

/* Google Material Icons Base Style */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  vertical-align: middle;
}

.hide {
  display: none !important;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #818cf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #818cf8;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(129, 140, 248, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(129, 140, 248, 0);
  }
}

.code-window {
  width: 100%;
  max-width: 480px;
  background: #0b0f19;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
              0 0 40px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  font-family: 'Consolas', 'Courier New', Courier, monospace;
  transform: rotate(3deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.code-window:hover {
  transform: rotate(0deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
              0 0 50px rgba(99, 102, 241, 0.45);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-buttons {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-filename {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.code-body {
  padding: 16px;
  font-size: 12px;
  line-height: 1;
  overflow-x: auto;
}

.code-body pre {
  margin: 0;
}

.line {
  display: block;
}

.ln {
  color: #475569;
  margin-right: 12px;
  user-select: none;
  display: inline-block;
  width: 16px;
  text-align: right;
}

/* Syntax Highlighting Colors */
.code-body .keyword { color: #c084fc; } /* purple/pink */
.code-body .function { color: #60a5fa; } /* blue */
.code-body .global { color: #f59e0b; } /* orange/yellow */
.code-body .comment { color: #475569; font-style: italic; } /* grey */
.code-body .string { color: #34d399; } /* green */
.code-body .parameter { color: #f43f5e; } /* rose */

.code-footer {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.green-text {
  color: #34d399;
}

.gray-text {
  color: #64748b;
}

.hero-slider-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.25),
              0 0 60px rgba(139, 92, 246, 0.15),
              inset 0 0 20px rgba(99, 102, 241, 0.1);
  height: auto;
}

@media (min-width: 1024px) {
  .hero-slider-container {
    height: 520px !important;
  }
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
  animation: fadeEffect 0.8s ease;
}

@media (min-width: 1024px) {
  .hero-slide {
    height: 520px !important;
    min-height: auto;
  }
}

.hero-slide.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Position slide contents */
.hero-slide .hero-content {
  position: relative;
  z-index: 10;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  justify-content: center;
  gap: 32px;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .hero-slide .hero-content {
    padding: 60px 48px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.slider-dot {
  cursor: pointer;
  height: 8px;
  width: 24px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.slider-dot.active, .slider-dot:hover {
  background-color: var(--color-brand-accent);
  width: 36px;
}

.slider-arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 16px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* Hide arrows on mobile screens to avoid overlap */
@media (max-width: 768px) {
  .slider-arrow {
    display: none;
  }
}

/* Background Image from Tebex Config */
.site-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}
