/* =========================================
   1. IMPORTS & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
:root {
  /* Colors - Dark Theme */
  --color-bg: #050505; /* Main Black Background */
  --color-brighter-bg: #111111; /* Box Background */
  --color-footer-bg: #0a0a0a; /* Slightly different for footer */
  --color-border: #222222; /* Borders */
 
  --color-primary: #5b8bf7; /* KS Blue */
  --color-primary-hover: #4a7be6;
  --color-primary-text: #ffffff;
 
  --color-text: #ffffff;
  --color-text-secondary: #a1a1aa; /* Gray text */
  --color-removed: #ef4444; /* Red */
  /* Dimensions */
  --content-width: 1320px;
  --header-height: 80px;
  --radius: 8px;
}
/* =========================================
   2. GLOBAL RESET & BODY
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
 
  /* GRID BACKGROUND EFFECT */
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
}
/* Sticky Footer Logic */
html, body { height: 100%; }
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-content {
  flex: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
}
/* Remove Tebex default backgrounds */
body::before { display: none !important; }
a { text-decoration: none; color: inherit; transition: 0.2s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.site-header {
  height: var(--header-height);
  background: rgba(5, 5, 5, 0.9); /* Slightly more opaque */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5); /* Shadow added */
  position: sticky; top: 0; z-index: 1000; width: 100%;
}
.site-header-inner {
  max-width: var(--content-width); margin: 0 auto; height: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
/* Logo */
.header-left .site-logo img { max-height: 40px; width: auto; }
.header-left .site-name { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
/* Navigation */
.header-center ul.menu { display: flex; gap: 32px; align-items: center; }
.header-center ul.menu li a {
  font-size: 15px; font-weight: 500; color: var(--color-text-secondary); padding: 5px 0;
}
.header-center ul.menu li a:hover, .header-center ul.menu li a.active { color: var(--color-text); }
.header-center .toggle, .header-center .close-navigation, .header-center ul.dropdown { display: none !important; }
/* Right Actions */
.header-right { display: flex; align-items: center; gap: 16px; }
.user-menu {
  display: flex; align-items: center; gap: 8px; margin-right: 8px;
  font-size: 14px; font-weight: 600; color: var(--color-text-secondary);
}
.mobile-toggle { display: none; color: white; padding: 10px; }
/* =========================================
   4. BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: #fff;
  padding: 10px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(91, 139, 247, 0.2);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(91, 139, 247, 0.4);
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-border);
  color: var(--color-text); padding: 10px 24px;
  border-radius: var(--radius); font-weight: 600; font-size: 15px;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--color-brighter-bg); border-color: var(--color-text-secondary);
}
/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
  max-width: var(--content-width); margin: 0 auto; padding: 80px 24px;
  display: flex; align-items: center; gap: 60px;
}
.hero-text { flex: 1; z-index: 2; }
.hero-text h1 {
  font-size: 56px; font-weight: 900; line-height: 1.1; margin-bottom: 24px;
  letter-spacing: -1.5px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.1)); /* Glow effect */
}
.hero-text p {
  font-size: 18px; color: var(--color-text-secondary); margin-bottom: 40px; max-width: 580px;
}
.hero-actions { display: flex; gap: 16px; }
.hero-visual { flex: 1; display: flex; justify-content: center; }
.wireframe-logo {
  font-size: 200px; font-weight: 900; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15); user-select: none; pointer-events: none;
}
/* =========================================
   6. FEATURES GRID
   ========================================= */
.features-grid {
  max-width: var(--content-width); margin: 0 auto 60px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.feature-box {
  background: var(--color-brighter-bg); border: 1px solid var(--color-border);
  padding: 24px; border-radius: var(--radius);
  display: flex; align-items: flex-start; gap: 16px; transition: 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.feature-box:hover { border-color: var(--color-primary); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.feature-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  background: rgba(91, 139, 247, 0.15); color: var(--color-primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.feature-info h4 { margin: 0 0 6px 0; font-size: 16px; color: #fff; }
.feature-info p { margin: 0; font-size: 13px; color: var(--color-text-secondary); line-height: 1.4; }
/* =========================================
   7. LISTINGS (CATEGORIES & PACKAGES GRID)
   ========================================= */
.ks-header {
  display: flex; align-items: center; justify-content: center; margin: 40px 0 50px 0; width: 100%;
}
.ks-header::before, .ks-header::after {
  content: ""; flex: 1; border-bottom: 1px solid var(--color-border); margin: 0 15px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05); /* Highlight line */
}
.ks-pill {
  background: var(--color-primary); color: #fff; padding: 8px 24px; border-radius: 20px;
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(91, 139, 247, 0.4);
}
.category-description-box {
  text-align: center; max-width: 900px; margin: 0 auto 50px;
  color: var(--color-text-secondary); background: var(--color-brighter-bg);
  border: 1px solid var(--color-border); border-radius: 12px;
  padding: 20px 40px; font-size: 16px; line-height: 1.6;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.packages-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-bottom: 80px;
}
.package-card {
  width: 320px; max-width: 100%;
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.package-card:hover {
  transform: translateY(-5px); border-color: var(--color-primary);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.card-image {
  width: 100%; aspect-ratio: 16/9;
  border-bottom: 1px solid var(--color-border);
  position: relative; background: #000;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.package-card:hover .card-image img { transform: scale(1.05); }
.card-content {
  padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.card-title {
  text-align: left; font-size: 18px; font-weight: 800; margin: 0; color: #fff; line-height: 1.3;
}
.card-title a:hover { color: var(--color-primary); }
.card-tags { display: flex; gap: 6px; }
.card-tag {
  background: rgba(255, 255, 255, 0.1); color: #ccc;
  font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.card-price .price { color: var(--color-primary); font-size: 18px; font-weight: 700; }
.package-card .btn-buy {
  display: inline-block !important;
  background: var(--color-primary); color: #fff;
  padding: 6px 16px; border-radius: 4px;
  font-size: 13px; font-weight: 700; transition: 0.2s; text-transform: uppercase;
}
.package-card .btn-buy:hover { background: var(--color-primary-hover); }
.image-default { width: 100%; height: 100%; background: linear-gradient(45deg, #111, #222); }
.tag-sale {
  position: absolute; top: 10px; right: 10px;
  background: var(--color-removed); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px;
}
/* =========================================
   8. SINGLE PRODUCT PAGE
   ========================================= */
.ks-package-container {
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.ks-package-top { display: flex; gap: 40px; padding: 30px; }
.ks-package-gallery { flex: 1.2; }
.ks-package-gallery img, .ks-package-gallery .image-default {
  width: 100%; border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  aspect-ratio: 16/9; object-fit: cover;
}
.ks-package-info {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.ks-product-title {
  font-size: 32px; font-weight: 800; margin: 0 0 10px 0; line-height: 1.2;
}
.ks-product-meta { margin-bottom: 25px; }
.ks-price-tag {
  font-size: 28px; font-weight: 700; color: var(--color-primary); margin-right: 10px;
}
.sale-badge {
  background: var(--color-removed); color: white; padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 14px;
}
.ks-actions-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 20px; border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.ks-actions-box .quantity-field {
  margin-bottom: 15px; background: var(--color-brighter-bg); border: 1px solid var(--color-border); color: white;
}
.ks-actions-box .btn-primary {
  width: 100%; font-size: 16px; padding: 12px; margin-bottom: 12px;
}
.ks-actions-box .btn-secondary,
.ks-actions-box a[href*="gift"] {
  display: block; width: 100%; text-align: center; margin-top: 10px;
}
.ks-package-divider {
  height: 1px;
  background: var(--color-border);
  width: 100%;
  box-shadow: 0 1px 5px rgba(0,0,0,0.5); /* Shadow added */
}
.ks-package-bottom { padding: 30px; background: rgba(255, 255, 255, 0.01); }
.desc-header {
  font-size: 20px; font-weight: 700; color: #fff;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block; padding-bottom: 5px; margin-bottom: 20px;
}
.ks-package-bottom .text-content {
  color: var(--color-text-secondary); line-height: 1.7; font-size: 15px;
}
/* =========================================
   9. INFO SECTION
   ========================================= */
.ks-info-section {
    border-top: 1px solid var(--color-border);
    margin-top: 80px;
    padding-top: 60px;
    text-align: center;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.02); /* Top highlight */
}
.ks-info-title { font-size: 32px; font-weight: 900; margin-bottom: 16px; color: #fff; }
.ks-info-subtitle { color: var(--color-text-secondary); font-size: 16px; max-width: 700px; margin: 0 auto 50px; line-height: 1.6; }
.ks-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ks-info-card {
  background: var(--color-brighter-bg); border: 1px solid var(--color-border);
  border-radius: 16px; padding: 30px; text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease; position: relative; overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.ks-info-card:hover { transform: translateY(-5px); border-color: var(--color-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.ks-card-icon {
  font-size: 32px; margin-bottom: 20px; display: inline-block;
  background: rgba(255, 255, 255, 0.05); padding: 10px; border-radius: 12px;
}
.ks-info-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px 0; color: #fff; }
.ks-info-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; margin: 0; }
/* =========================================
   10. LOGIN / AUTH PAGE
   ========================================= */
.ks-auth-page {
  align-items: center; justify-content: center; padding-top: 60px; padding-bottom: 60px; flex: 1;
}
.ks-auth-box {
  background: var(--color-brighter-bg); border: 1px solid var(--color-border);
  border-radius: 16px; padding: 40px; width: 100%; max-width: 480px;
  text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); margin: 0 auto;
}
.ks-auth-header { margin-bottom: 20px; }
.ks-auth-header h1 {
  font-size: 28px; font-weight: 800; margin-top: 15px; margin-bottom: 0; color: #fff;
}
.ks-auth-text {
  color: var(--color-text-secondary); margin-bottom: 30px; font-size: 16px; line-height: 1.5;
}
.btn-block {
  width: 100%; display: flex; justify-content: center; padding: 14px;
  font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.ks-auth-footer {
  margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--color-border);
  font-size: 12px; color: #555; text-transform: uppercase; font-weight: 700;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.02);
}
/* =========================================
   11. POPUPS & BASKET
   ========================================= */
.popup {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 5000; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity 0.3s ease;
}
.popup-scroll-cont {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.popup-content, .basket-popup-content, .gift-form-popup .popup-content, .product-options-popup .popup-content {
  position: relative; background-color: #111 !important; color: #fff !important;
  border: 1px solid var(--color-border); border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.9);
  width: 100%; max-width: 500px; margin: auto; padding: 0; overflow: hidden;
}

/* --- UPDATE 1: WIDER PRODUCT POPUP --- */
.store-product-popup-content {
    max-width: 1100px !important; /* Makes the product detail popup wide */
}

.basket-popup-content { max-width: 900px; }
.product-options-popup .popup-content {
  max-width: 768px; /* Wider like a tablet */
}
.store-form { padding: 30px; }
.store-form input, .store-form select, .store-form textarea {
    background: #050505; border: 1px solid var(--color-border); color: white;
    padding: 12px; width: 100%; border-radius: 6px; margin-bottom: 15px; font-family: inherit;
}
/* --- UPDATE 2: FIX FOR LOGIN/OPTIONS MODAL HEADERS --- */
.store-form h2 {
    margin-top: 0;
    font-size: 22px; /* Slightly smaller to fit better */
    color: #fff;
    text-align: left;
    padding-right: 50px; /* Space for the X button so it doesn't overlap */
    margin-bottom: 20px;
    line-height: 1.4;
    word-wrap: break-word;
}
/* Fix spacing for the prompt text */
.store-form p {
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}
/* Ensure button has space */
.store-form .btn-primary {
    margin-top: 10px;
    width: 100%;
}

/* --- UPDATE 3: SPECIFIC GIFT POPUP STYLING (The fix you need) --- */
.gift-form-popup .popup-content {
    max-width: 450px !important;
}
.gift-form-popup .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}
.gift-form-popup input[name="username"] {
    margin-bottom: 15px !important;
}

.basket-header {
  background-color: #050505 !important; border-bottom: 1px solid var(--color-border); padding: 20px;
  text-align: center; position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.basket-title {
  font-size: 20px; font-weight: 800; text-transform: uppercase; color: #fff; margin: 0; display: inline-block;
}
.basket-second-header {
  background-color: #1a1a1a !important; border-bottom: 1px solid var(--color-border); color: #aaa;
  display: flex; justify-content: space-between; padding: 10px 20px;
}
.basket-content { padding: 20px; max-height: 60vh; overflow-y: auto; }
.basket-item {
  background-color: #0a0a0a !important; border: 1px solid var(--color-border); border-radius: 8px;
  margin-bottom: 10px; padding: 15px; display: flex; align-items: center; justify-content: space-between;
}
.basket-item .info { flex: 1; }
.basket-item .title a { color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; }
.basket-item .price { color: var(--color-primary) !important; font-weight: 700; margin-top: 5px; }
.quantity-field {
  background: #050505 !important; border: 1px solid var(--color-border); display: inline-flex; border-radius: 4px; overflow: hidden;
}
.quantity-field input { background: transparent; border: none; color: white; width: 40px; text-align: center; }
.quantity-field button { color: #fff !important; padding: 5px 10px; }
.basket-checkout {
  background-color: #050505 !important; border-top: 1px solid var(--color-border); padding: 20px; text-align: right;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}
.popup-close {
  position: absolute; top: 15px; right: 15px;
  background-color: rgba(255,255,255,0.05) !important; /* Slight bg to see it better */
  color: var(--color-text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 50; transition: all 0.2s ease;
}
.popup-close:hover { background-color: rgba(255,255,255,0.2) !important; color: #fff; transform: rotate(90deg); border-color: #fff; }
.popup[hidden] { display: none !important; }

/* Fix specific popup glitches */
.popup .ks-auth-page {
    padding: 0 !important; width: 100% !important; max-width: 100% !important; min-height: auto !important;
}
.popup .ks-auth-box {
    box-shadow: none !important; border: none !important; background: transparent !important; padding: 0 !important;
}

/* =========================================
   12. TOASTER / MESSAGES
   ========================================= */
.toaster {
  position: fixed; top: 100px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  pointer-events: auto; background: var(--color-brighter-bg); border: 1px solid var(--color-primary);
  color: #fff; padding: 16px 20px; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: space-between; gap: 15px; min-width: 300px;
  animation: slideIn 0.3s ease forwards;
}
.toast.toast-success { border-color: #22c55e; }
.toast.toast-error { border-color: var(--color-removed); }
.toast.toast-info { border-color: var(--color-primary); }
.toast p { margin: 0; font-size: 14px; font-weight: 500; }
.toast-close {
  background: transparent; border: none; color: var(--color-text-secondary);
  font-size: 12px; text-transform: uppercase; font-weight: 700; cursor: pointer;
}
.toast-close:hover { color: #fff; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
/* =========================================
   13. FOOTER & MOBILE
   ========================================= */
.site-footer-inner {
    background-color: var(--color-footer-bg);
    border-top: 1px solid var(--color-border);
    margin-top: 80px;
    padding: 50px 0;
    text-align: center;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}
.we-accept, .payment-methods { display: flex !important; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.we-accept img, .payment-methods img { height: 32px !important; width: auto !important; padding: 4px; background: #fff; border-radius: 4px; }
@media (max-width: 900px) {
  .hero-section { flex-direction: column; text-align: center; padding: 40px 24px; }
  .hero-text h1 { font-size: 36px; }
  .hero-text p { font-size: 16px; }
  .wireframe-logo { font-size: 120px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
  .header-center { display: none; }
  .mobile-toggle { display: block; }
  .package-card { width: 100%; }
  .ks-info-card { text-align: center; }
  .category-description-box { padding: 15px 20px; font-size: 14px; }
  .ks-package-top { flex-direction: column; }
  .ks-product-title { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .basket-popup-content { max-width: 95%; }
  .popup-content, .gift-form-popup .popup-content, .product-options-popup .popup-content { max-width: 95%; }
  /* Mobile Navigation - Enhanced Design */
  body.show-navigation { overflow: hidden; }
  body.show-navigation .site-header .header-center {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    z-index: 9999;
    padding: 30px 24px;
    border-top: 1px solid var(--color-border);
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease;
  }
  body.show-navigation .site-header .header-center ul.menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
 
  body.show-navigation .site-header .header-center ul.menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
  }
 
  body.show-navigation .site-header .header-center ul.menu li:hover {
    background: rgba(91, 139, 247, 0.05);
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
  }
 
  body.show-navigation .site-header .header-center ul.menu li a {
    font-size: 18px;
    display: block;
    padding: 16px 12px;
    color: var(--color-text-secondary);
    font-weight: 600;
  }
 
  body.show-navigation .site-header .header-center ul.menu li a:hover,
  body.show-navigation .site-header .header-center ul.menu li a.active {
    color: var(--color-primary);
  }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   14. COMMUNITY SECTION
   ========================================= */
.community-section {
  margin-top: 100px; margin-bottom: 80px;
  max-width: var(--content-width); margin-left: auto; margin-right: auto;
  padding: 0 24px;
}
.community-header { text-align: center; margin-bottom: 50px; }
.community-header h2 { font-size: 36px; font-weight: 900; color: #fff; margin: 0 0 10px 0; letter-spacing: -1px; }
.community-header p { color: var(--color-text-secondary); font-size: 16px; margin: 0; }
.community-grid {
  display: grid; grid-template-columns: 350px 1fr; gap: 30px; align-items: start;
}
/* --- WIDGET: TOP DONATOR --- */
.widget-top-donator {
  background: var(--color-brighter-bg); border: 1px solid var(--color-primary); border-radius: 24px;
  padding: 40px 30px; text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 20px 40px rgba(91, 139, 247, 0.15);
}
.widget-top-donator::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(91,139,247,0.1), transparent 60%); z-index: 0;
}
.widget-top-donator .widget-content { position: relative; z-index: 1; }
.crown-icon { margin-bottom: 15px; animation: float 3s ease-in-out infinite; }
.crown-icon svg { stroke: #fbbf24; filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5)); }
.widget-top-donator .avatar {
  width: 100px; height: 100px; border-radius: 50%;
  border: 3px solid #fbbf24; box-shadow: 0 10px 20px rgba(0,0,0,0.3); margin-bottom: 20px;
}
.widget-top-donator .username { font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 20px 0; }
.donation-info {
  background: rgba(0,0,0,0.3); border-radius: 12px; padding: 15px; border: 1px solid rgba(255,255,255,0.05);
}
.donation-info .label {
  display: block; font-size: 11px; text-transform: uppercase;
  color: var(--color-text-secondary); letter-spacing: 1px; margin-bottom: 5px;
}
.donation-info .amount { font-size: 28px; font-weight: 700; color: #fbbf24; }
.donation-info .amount small { font-size: 16px; color: rgba(255,255,255,0.7); }
.donation-info .period { font-size: 13px; color: var(--color-text-secondary); margin: 5px 0 0 0; }
/* --- WIDGET: RECENT PAYMENTS --- */
.widget-recent { width: 100%; height: fit-content; }
.purchases {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 15px;
  justify-items: center;
}
/* Added soft shadow to match Top Customer style but less bright */
.purchase {
  width: 95%;
  display: flex; align-items: center; gap: 10px;
  background: var(--color-brighter-bg); border: 1px solid var(--color-border);
  padding: 15px; border-radius: 12px; transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(91, 139, 247, 0.08);
}
.purchase:hover {
  transform: translateY(-3px); border-color: var(--color-primary); background: #181818;
  box-shadow: 0 12px 25px rgba(91, 139, 247, 0.12);
}
.purchase .avatar {
  width: 42px; height: 42px; border-radius: 8px; background: #000; border: 1px solid var(--color-border); flex-shrink: 0;
}
.purchase .info { display: flex; flex-direction: column; line-height: 1.3; overflow: hidden; }
.purchase .username {
  font-size: 15px; font-weight: 700; color: #fff; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.purchase .price { color: var(--color-primary); font-weight: 600; font-size: 13px; }
.purchase time { font-size: 11px; color: #555; }
/* Enforced background for empty states */
.empty, .empty-state, .basket-empty {
  width: 100%; padding: 40px; text-align: center;
  background-color: var(--color-brighter-bg) !important;
  border-radius: 12px;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } }
@media (max-width: 900px) {
  .community-grid { grid-template-columns: 1fr; }
  .widget-top-donator { order: -1; }
  .purchase { width: 100%; }
}
/* =========================================
   15. CUSTOM PAGE LAYOUT
   ========================================= */
.site-content-widgets {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 40px; align-items: start;
}
.store-text {
  background: var(--color-brighter-bg); border: 1px solid var(--color-border);
  border-radius: 16px; padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.store-text h2 {
  font-size: 32px; font-weight: 800; margin-top: 0; margin-bottom: 25px;
  padding-bottom: 20px; border-bottom: 1px solid var(--color-border); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02);
}
.store-text p { margin-bottom: 15px; color: var(--color-text-secondary); }
.store-text h3 { font-size: 24px; color: #fff; margin-top: 30px; margin-bottom: 15px; }
.store-text ul { list-style: disc; padding-left: 20px; color: var(--color-text-secondary); margin-bottom: 15px; }
.store-text li { margin-bottom: 8px; }
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.sidebar .module-header {
  font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px;
}
.sidebar .widget {
  background: var(--color-brighter-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
@media (max-width: 900px) {
  .site-content-widgets { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}
@media (max-width: 768px) {
  .product-options-popup .popup-content {
    max-width: 95%; /* Responsive scaling for mobile */
  }
}