@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --color-primary: #00d26a;
  --color-primary-hover: #00e676;
  --color-primary-text: #0a0f0a;
  --color-primary-text-hover: #0a0f0a;
  --color-bg: #0a0f0a;
  --color-brighter-bg: #111611;
  --color-surface-elevated: #1a2a1a;
  --color-text: #ffffff;
  --color-text-darker: #b0b0b0;
  --color-text-secondary: #666666;
  --color-secondary: rgba(255, 255, 255, 0.08);
  --color-secondary-hover: rgba(255, 255, 255, 0.12);
  --color-secondary-text: #e0e0e0;
  --color-secondary-text-hover: #ffffff;
  --color-tertiary: transparent;
  --color-tertiary-hover: rgba(255, 255, 255, 0.08);
  --color-tertiary-text: #00d26a;
  --color-tertiary-text-hover: #00e676;
  --color-removed: #e05555;
  --color-sale-banner-bg: #00d26a;
  --color-sale-banner-text: #0a0f0a;
  --color-text-dark: #0a0f0a;
  --bg-image: none;
  --sidebar-width: 280px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

/* Remove default background image overlay */
body::before {
  display: none;
}

/* ===== BUTTONS ===== */

.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 0 20px rgba(0, 210, 106, 0.4);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: rgba(0, 210, 106, 0.3);
  box-shadow: none;
}

/* ===== QUANTITY FIELD ===== */

.quantity-field {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--color-brighter-bg);
}

.quantity-field input[type=number] {
  border: none;
}

.quantity-field .adjust {
  border-radius: 6px;
}

/* ===== FORM ELEMENTS ===== */

.store-form input[type=text],
.store-form input[type=password],
.store-form input[type=email],
.store-form input[type=number],
.store-form input[type=search],
.store-form input[type=url],
.store-form input[type=tel],
.store-form input[type=date],
.store-form input[type=time],
.store-form input[type=datetime-local],
.store-form input[type=file],
.store-form input[type=month],
.store-form input[type=week],
.store-form select,
.store-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-form input:focus,
.store-form select:focus,
.store-form textarea:focus {
  border-color: rgba(0, 210, 106, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.08);
}

.popup .store-form input[type=text],
.popup .store-form input[type=password],
.popup .store-form input[type=email],
.popup .store-form input[type=number],
.popup .store-form input[type=search],
.popup .store-form input[type=url],
.popup .store-form input[type=tel],
.popup .store-form input[type=date],
.popup .store-form input[type=time],
.popup .store-form input[type=datetime-local],
.popup .store-form input[type=file],
.popup .store-form input[type=month],
.popup .store-form input[type=week],
.popup .store-form select,
.popup .store-form textarea {
  background: rgba(255, 255, 255, 0.06);
}

/* ===== HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 210, 106, 0.08);
  padding: 0;
  max-width: 100%;
  margin: 0;
  view-transition-name: siteHeader;
}

.site-header-inner {
  margin: 0 auto;
  padding: 0 var(--content-padding);
  width: 100%;
  max-width: var(--content-width);
}

@media (width > 960px) {
  .site-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: auto;
    padding: 14px var(--content-padding);
  }

  body.is-navigation-horizontal .site-header-inner {
    height: auto;
  }

  .site-header-inner .actions {
    display: none;
  }

  .site-header-inner .site-title {
    position: static;
    inset: auto;
    margin: 0;
    margin-right: auto;
    width: auto;
    height: auto;
    line-height: normal;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
  }

  .site-header-inner .site-title img {
    margin: 0;
    max-height: 40px;
  }

  .site-header-inner .info {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: none;
    width: auto;
    height: auto;
    padding: 6px 14px;
    background: rgba(0, 210, 106, 0.06);
    border: 1px solid rgba(0, 210, 106, 0.12);
    border-radius: 8px;
    line-height: normal;
  }

  .site-header-inner .info.server {
    padding-left: 14px;
  }

  .site-header-inner .info.discord {
    padding-right: 14px;
    text-align: left;
  }

  .site-header-inner .info .image {
    position: static;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .site-header-inner .info.discord .image {
    width: 22px;
    height: 22px;
  }

  .site-header-inner .info .title {
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
  }

  .site-header-inner .info .action {
    font-size: 12px;
    color: var(--color-primary);
    margin-left: 4px;
    white-space: nowrap;
  }

  .site-header-inner .log-in,
  .site-header-inner .user-actions {
    position: static;
  }

  .site-header-inner .user-actions {
    gap: 10px;
  }
}

/* Server dot - pulsing green indicator */
.server-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00d26a;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

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

.site-header-inner .info .image {
  border-radius: 4px;
}

/* Accent line below header */
.header-accent-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d26a 30%, #00d26a 70%, transparent);
  opacity: 0.6;
}

/* Sale banner */
.site-sale-banner {
  border-radius: 0;
  margin: 0;
  padding: 10px var(--content-padding);
  font-size: 14px;
  font-weight: 600;
}

/* ===== NAVIGATION ===== */

@media (width > 960px) {
  .navigation-horizontal {
    margin: 0 auto;
    padding: 0 var(--content-padding);
    width: 100%;
    max-width: var(--content-width);
  }

  .navigation-horizontal > ul {
    display: flex;
    align-items: stretch;
    background: rgba(17, 22, 17, 0.8);
    border-radius: 0;
    gap: 0;
  }

  .navigation-horizontal > ul > li > a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .navigation-horizontal > ul > li > a:hover {
    color: #fff;
  }

  .navigation-horizontal > ul > li > a.link-active {
    color: #00d26a;
    border-bottom-color: #00d26a;
  }

  /* Subcategory dropdowns */
  .navigation-horizontal .has-children > ul {
    background: var(--color-brighter-bg);
    border: 1px solid rgba(0, 210, 106, 0.1);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    padding: 6px;
  }

  .navigation-horizontal .has-children > ul > li > a {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #b0b0b0;
    transition: all 0.15s ease;
  }

  .navigation-horizontal .has-children > ul > li > a:hover {
    color: #fff;
    background: var(--color-surface-elevated);
  }

  .navigation-horizontal .has-children > ul > li > a.link-active {
    color: #00d26a;
  }
}

/* Vertical nav in sidebar */
.widget.site-navigation {
  border-radius: 12px;
  background: var(--color-brighter-bg);
}

.navigation-vertical a {
  color: #888;
  transition: color 0.2s ease;
}

.navigation-vertical a:hover {
  color: #fff;
}

.navigation-vertical a.link-active {
  color: #00d26a;
}

/* Mobile navigation */
@media (width <= 960px) {
  .site-navigation {
    background: var(--color-brighter-bg);
    border-right: 1px solid rgba(0, 210, 106, 0.1);
  }

  .site-navigation .navigation-list a {
    color: #b0b0b0;
    padding: 14px 20px;
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .site-navigation .navigation-list a:hover {
    color: #fff;
    background: rgba(0, 210, 106, 0.04);
  }

  .site-navigation .navigation-list a.link-active {
    color: #00d26a;
  }
}

/* ===== HOME CATEGORIES ===== */

.site-home-categories .category {
  border-radius: 10px;
  padding: 14px var(--widget-padding);
  background: var(--color-brighter-bg);
  border: 1px solid rgba(0, 210, 106, 0.06);
  transition: all 0.2s ease;
  font-size: 15px;
}

.site-home-categories .category:hover {
  color: #fff;
  border-color: rgba(0, 210, 106, 0.15);
  background: rgba(0, 210, 106, 0.04);
}

/* ===== PRODUCT CARDS ===== */

.store-products-list .store-product,
.store-products-images .store-product {
  border-radius: 12px;
  background: var(--color-brighter-bg);
  border: 1px solid rgba(0, 210, 106, 0.06);
  transition: all 0.3s ease;
}

.store-products-list .store-product:hover,
.store-products-images .store-product:hover {
  border-color: rgba(0, 210, 106, 0.2);
  box-shadow: 0 0 24px rgba(0, 210, 106, 0.06);
  transform: translateY(-2px);
}

.store-products-images .store-product {
  text-align: center;
}

.store-product .product-title {
  font-weight: 600;
}

.store-product .product-title a:hover {
  color: #00d26a;
}

/* Price styling */
.store-product .price strong {
  color: #00d26a;
  font-weight: 700;
}

.store-product .price .discount {
  color: var(--color-removed);
}

/* Image placeholders */
.store-product .image-default {
  background: linear-gradient(135deg, #0d1a0d, #1a2a1a);
  border-radius: 8px;
}

/* Add to basket button inside cards */
.store-product .add,
.store-product .subscribe {
  border-radius: 8px;
}

/* ===== CATEGORY DESCRIPTION ===== */

.category-description {
  border-radius: 12px;
  background: var(--color-brighter-bg);
  border: 1px solid rgba(0, 210, 106, 0.06);
}

/* ===== STORE TEXT (INDEX) ===== */

.store-text {
  border-radius: 12px;
  background: var(--color-brighter-bg);
  border: 1px solid rgba(0, 210, 106, 0.06);
}

.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
  text-align: center;
}

/* No products message */
.no-products {
  color: var(--color-text-secondary);
  background: var(--color-brighter-bg);
  border-radius: 12px;
  border: 1px solid rgba(0, 210, 106, 0.06);
}

/* ===== PACKAGE DETAIL ===== */

.store-product-full {
  border-radius: 12px;
  background: var(--color-brighter-bg);
  border: 1px solid rgba(0, 210, 106, 0.06);
}

.store-product-full .product-title {
  font-size: 24px;
}

.store-product-full .price strong {
  font-size: 28px;
  color: #00d26a;
}

.store-product-full .descr {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  line-height: 1.7;
  color: #999;
}

/* Discount badge */
.store-product-full .price .discount {
  color: #888;
}

/* Image in detail view */
.store-product-full .image {
  border-radius: 8px;
}

/* Media slider */
.media-slider .slider,
.media-slider .thumb {
  border-radius: 8px;
}

.media-slider .open-lightbox {
  border-radius: 6px;
}

.popup.popup-media-slider .thumb {
  border-radius: 8px;
}

.popup.popup-media-slider .popup-close {
  border-radius: 8px;
}

/* ===== OPTIONS PAGE ===== */

.store-product-options {
  background: var(--color-brighter-bg);
  border: 1px solid rgba(0, 210, 106, 0.06);
  border-radius: 12px;
  padding: var(--widget-padding);
}

.store-product-options .product-title {
  font-size: 20px;
  margin-bottom: 24px;
}

/* ===== USERNAME / LOGIN PAGE ===== */

.store-form-username {
  background: var(--color-brighter-bg);
  border: 1px solid rgba(0, 210, 106, 0.06);
  border-radius: 12px;
  padding: var(--widget-padding);
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

/* ===== SIDEBAR WIDGETS ===== */

.widget {
  border-radius: 12px;
  background: var(--color-brighter-bg);
  border: 1px solid rgba(0, 210, 106, 0.06);
}

@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    background: transparent;
    border: none;
  }
}

.widget-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: 600;
}

.widget .store-product {
  text-align: center;
}

/* ===== GOAL / COMMUNITY GOAL ===== */

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 3px;
  background: rgba(0, 210, 106, 0.1);
  height: 6px;
}

.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 3px;
  background: linear-gradient(90deg, #00d26a, #00e676);
}

/* ===== GIFT CARD ===== */

.widget-gift-card .gift-card-input {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

/* ===== TOP DONATOR ===== */

.widget-top-donator .avatar {
  border-radius: 50%;
  border: 2px solid rgba(0, 210, 106, 0.2);
}

/* ===== SERVER STATUS ===== */

.widget-server-status .server-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #00d26a;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 210, 106, 0.5);
  animation: pulse 2s infinite;
}

/* ===== POPUPS ===== */

.popup-content {
  border-radius: 16px;
  background: #0d120d;
  border: 1px solid rgba(0, 210, 106, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.popup-close {
  border-radius: 0 16px 0 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== BASKET POPUP ===== */

.basket-popup-content {
  border-radius: 0;
  background: #0d120d;
  border-left: 1px solid rgba(0, 210, 106, 0.1);
}

.basket-popup-content .popup-close {
  border-radius: 0;
}

.basket-items {
  padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}

.basket-item {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.basket-item:hover {
  border-color: rgba(0, 210, 106, 0.1);
}

.basket-item .quantity {
  border-radius: 6px;
}

/* Checkout button in basket */
.basket-checkout .checkout {
  border-radius: 10px;
  font-weight: 600;
}

/* ===== CHECKOUT PAGE ===== */

.basket {
  background: var(--color-brighter-bg);
  border: 1px solid rgba(0, 210, 106, 0.06);
  border-radius: 12px;
}

.basket-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.basket-checkout h3 .total {
  color: #00d26a;
}

/* ===== TOAST NOTIFICATIONS ===== */

.toast {
  border-radius: 10px;
  background: rgba(0, 210, 106, 0.1);
  border: 1px solid rgba(0, 210, 106, 0.2);
  color: #00d26a;
  backdrop-filter: blur(8px);
  animation: toastSlideIn 0.3s ease;
}

.toast-close {
  border-radius: 6px;
}

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

/* ===== TIERED CATEGORIES ===== */

.store-category-tiered {
  border-radius: 12px;
  background: var(--color-brighter-bg);
  border: 1px solid rgba(0, 210, 106, 0.06);
}

.store-category-tiered-header h1,
.store-category-tiered-header h2,
.store-category-tiered-header h3,
.store-category-tiered-header h4,
.store-category-tiered-header h5,
.store-category-tiered-header h6 {
  text-align: center;
}

.store-product-tiered {
  border-radius: 10px;
  background: rgba(10, 15, 10, 0.5);
  border: 1px solid rgba(0, 210, 106, 0.04);
}

.store-product-tiered:hover {
  border-color: rgba(0, 210, 106, 0.15);
}

/* ===== FOOTER ===== */

.site-footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.site-footer-inner {
  padding: 24px var(--content-padding);
}

.site-footer .we-accept img {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.site-footer .we-accept img:hover {
  opacity: 0.8;
}

.site-footer .copyright {
  color: #555;
  font-size: 13px;
}

/* ===== GLOBAL POLISH ===== */

/* Links in content */
.text-content a {
  color: #00d26a;
  transition: color 0.2s ease;
}

.text-content a:hover {
  color: #00e676;
}

/* Scrollbar with green accent */
html {
  scrollbar-color: rgba(0, 210, 106, 0.3) var(--color-bg);
}

/* Selection color */
::selection {
  background-color: rgba(0, 210, 106, 0.3);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid rgba(0, 210, 106, 0.5);
  outline-offset: 2px;
}

/* Tebex legal footer theming */
:root {
  --tebex-legal-footer-background-color: #0a0f0a;
  --tebex-legal-footer-border-color: rgba(255, 255, 255, 0.04);
  --tebex-legal-footer-text-color: #555;
}
