/* Woops UI theme (ported from /tbx/*.html) */

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #121214;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --success: #22c55e;
}

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

html,
body {
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

body.page-login {
  overflow-y: hidden;
}

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

/* Background video */
.bg-video-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.bg-video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.bg-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.75) 0%, rgba(10, 10, 11, 0.9) 100%);
  pointer-events: none;
}

/* Character */
.hero-character {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 0;
  width: min(88vw, 900px);
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hero-character img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center 75%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 0;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Product detail page: extra top padding so content clears the fixed nav */
body.page-package .container {
  padding-top: 80px;
}

/* Navigation */
nav#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 24px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

nav#main-nav.nav-scrolled {
  background: rgba(10, 10, 11, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-toggle svg { width: 18px; height: 18px; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.nav-links a:not(.nav-basket-btn):not(.nav-btn) {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0 18px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.nav-links a:not(.nav-basket-btn):not(.nav-btn):hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Dropdown item hover: text only */
.nav-dropdown-panel .nav-dropdown-item:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.nav-dropdown {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  color: var(--text-secondary);
  padding: 0 18px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
  background: none;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.is-open .nav-dropdown-trigger {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-dropdown-trigger svg { width: 14px; height: 14px; opacity: 0.8; transition: transform 0.2s; }
.nav-dropdown.is-open .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 180px;
  padding: 8px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav-dropdown-item:hover { background: none; color: var(--text-primary); }
.nav-dropdown-item svg { width: 14px; height: 14px; opacity: 0.7; }

.nav-links a.nav-btn,
.nav-links button.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0 20px;
  color: #f9fafb;
  font-weight: 500;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  height: 40px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  appearance: none;
  -webkit-appearance: none;
}

.nav-links a.nav-btn:hover,
.nav-links button.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Çıkış Yap — kırmızı */
.nav-logout-btn {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
}
.nav-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #f87171 !important;
}

/* Desktop: kullanıcı adına tıklayınca logout göster */
.nav-user-wrap {
  position: relative;
  display: inline-flex;
  height: 40px;
  overflow: hidden;
}

.nav-user-wrap .nav-btn {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-user-wrap .nav-user-btn-name {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.nav-user-wrap .nav-logout-btn {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.nav-user-wrap.is-open .nav-user-btn-name {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.nav-user-wrap.is-open .nav-logout-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobil: nav-user-wrap her zaman ikisini de göster */
@media (max-width: 991px) {
  .nav-user-wrap {
    position: static;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    width: 100%;
    gap: 6px;
  }
  .nav-user-wrap .nav-btn {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
    width: 100%;
    max-width: 100%;
    height: 44px;
  }
  .nav-user-wrap .nav-user-btn-name,
  .nav-user-wrap .nav-logout-btn,
  .nav-user-wrap.is-open .nav-user-btn-name,
  .nav-user-wrap.is-open .nav-logout-btn {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
    display: flex;
    width: 100%;
  }
}

.nav-links .nav-user {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-btn-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background-image: url('https://r2.fivemanage.com/ZYgMBJJY5DBIJJAW0gDrx/fivem-icon.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Basket button */
.nav-basket-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  box-sizing: border-box;
  margin-right: 8px;
}

.nav-basket-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-basket-btn svg { width: 16px; height: 16px; pointer-events: none; display: block; }

.nav-basket-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #22c55e;
  color: #0a0a0b;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
}

/* ===== Login page (tbx/login.html) ===== */
.login-wrap {
  min-height: calc(100vh - 64px - 60px);
  display: grid;
  place-items: center;
  padding-top: 20px;
}

.login-card {
  width: min(560px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.login-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-image: url('https://r2.fivemanage.com/ZYgMBJJY5DBIJJAW0gDrx/fivem-icon.png');
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.login-brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-brand-x { opacity: 0.55; font-weight: 600; }
.login-brand-cfx { color: var(--text-primary); font-weight: 600; white-space: nowrap; }

.login-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.login-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.login-close svg { width: 18px; height: 18px; }

.login-card-body {
  padding: 38px 32px 36px;
  text-align: center;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.login-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.login-action {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.login-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.login-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 22px 0;
}

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

.login-support {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.login-support:hover { color: var(--text-primary); }

/* ===== Global responsive containment ===== */
img, video, iframe, embed, object, svg {
  max-width: 100%;
}

img, video {
  height: auto;
}

/* Site wrapper */
.site {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Tebex widget override — force all widgets into our grid */
.scripts-grid > *,
.scripts-grid--featured > * {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Force Tebex injected content to be responsive */
.store-products,
.store-products-images,
.site-content,
.site-content-widgets {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Tebex widget inner content */
.widget,
.widget-featured,
.store-product {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

/* Any Tebex table */
table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

/* Tebex injected images */
.scripts-grid img,
.scripts-grid--featured img,
.site-content img,
.store-products img {
  max-width: 100%;
  height: auto;
  display: block;
}


.site-content {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto 48px;
  padding: 80px 20px 0;
  position: relative;
  z-index: 2;
}

.site-content-widgets {
  display: block;
}

.store-text,
.store-products,
.store-product,
.store-form,
.widget {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 24px;
}

.text-content {
  line-height: 1.55;
  color: var(--text-secondary);
}
.text-content h1,
.text-content h2,
.text-content h3,
.text-content h4 {
  color: var(--text-primary);
}

.store-products-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .store-products-images { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 575px) {
  .store-products-images { grid-template-columns: 1fr; gap: 14px; }
}

.store-product {
  border-radius: 12px;
  overflow: hidden;
}

.store-product .product-title {
  color: var(--text-primary);
  font-weight: 600;
}

.store-product .descr {
  color: var(--text-secondary);
}

/* ===== Checkout / Basket page ===== */
.basket {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.basket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 12px;
}

.basket-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.basket-header-icon svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.basket-ign {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.basket-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.basket-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.basket-close-btn svg { width: 18px; height: 18px; }

.basket-second-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.basket-second-header .total {
  font-weight: 600;
  color: var(--text-primary);
}

.basket-content { padding: 0; }

.basket-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.basket-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.basket-item .info {
  flex: 1;
  min-width: 0;
}

.basket-item .info .title a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.basket-item .info .title a:hover { color: var(--text-secondary); }

.basket-item .info .options {
  list-style: none;
  margin-top: 4px;
}

.basket-item .info .options li {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.basket-item .info .price {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--success);
  font-weight: 600;
}

.quantity-field {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.quantity-field .adjust {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.quantity-field .adjust:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.quantity-field .adjust:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.quantity-field .quantity {
  width: 44px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 4px 6px;
}

.quantity-field .quantity:disabled { opacity: 0.35; }

.basket-remove-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.06);
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.basket-remove-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
}

.basket-remove-btn svg { width: 16px; height: 16px; }

.basket-checkout {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.basket-checkout h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.basket-checkout h3 .total {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.basket-checkout .checkout {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: var(--success);
  color: #0a0a0b;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.basket-checkout .checkout:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .basket { border-radius: 12px; }
  .basket-header { padding: 14px 16px; }
  .basket-second-header { padding: 10px 16px; }
  .basket-item { padding: 14px 16px; gap: 10px; }
  .basket-checkout { padding: 16px; }
  .basket-item .info .title a { font-size: 0.88rem; }
  .quantity-field .adjust { width: 28px; height: 28px; }
  .quantity-field .quantity { width: 38px; }
}

@media (max-width: 479px) {
  .basket-header { padding: 12px 14px; }
  .basket-item { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
  .basket-item .info { width: 100%; }
  .quantity-field { margin-left: auto; }
  .basket-remove-btn { margin-left: 8px; }
  .basket-checkout { padding: 14px; }
}

/* Responsive navbar (ported) — handled in main responsive blocks below */

/* ===== Home sections (tbx/index.html) ===== */

/* ===== Hero (index) ===== */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 24px 60px;
  opacity: 0;
  animation: hero-reveal 0.6s ease-out 0s forwards;
}

@keyframes hero-reveal {
  to { opacity: 1; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fade-slide-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}

.hero h1,
.hero-title-rotate {
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--text-primary);
  opacity: 0;
  animation: fade-slide-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.25s forwards;
}

.hero-title-rotate { display: grid; }

.hero-title-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 1;
}

.hero-title-slide.active {
  pointer-events: auto;
  visibility: visible;
}

.hero-title-slide.exit {
  animation: fade-slide-out 0.45s ease forwards;
}

.hero-title-word {
  display: block;
  opacity: 0;
  transform: translateY(20px);
}

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

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

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

.hero-accent { color: #46CF7A; }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(161, 161, 170, 0.7);
  line-height: 1.8;
  max-width: 620px;
  margin-top: 16px;
  opacity: 0;
  animation: fade-slide-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.45s forwards;
}

.hero-badges-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 64px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-slide-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.65s forwards;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 1);
}

.hero-badge-svg { flex-shrink: 0; }

.hero-badge-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero-badge-stars {
  font-size: 0.85rem;
  color: #f59e0b;
  letter-spacing: 2px;
}

.hero-badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  white-space: nowrap;
}

.status-box {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: hero-btn-in 0.8s ease-out 0.35s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes hero-btn-in {
  to { opacity: 1; transform: translateY(0); }
}

.status-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399, 0 0 16px rgba(52, 211, 153, 0.3);
  flex-shrink: 0;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #34d399, 0 0 16px rgba(52, 211, 153, 0.3); }
  50% { opacity: 0.9; box-shadow: 0 0 12px #34d399, 0 0 24px rgba(52, 211, 153, 0.4); }
}

.status-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.02em;
}

.status-icon {
  width: 16px;
  height: 16px;
  color: #34d399;
  opacity: 0.9;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.status-box:hover .status-icon { transform: translate(2px, -2px); }

/* tbx/products.html ile aynı Featured/Browse layout'u */
.scripts-section {
  width: 100%;
  max-width: 1150px;
  margin: 120px auto 160px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.scripts-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 24px;
}

.scripts-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-heading-img {
  height: clamp(3rem, 6vw, 4.5rem);
  width: auto;
  max-width: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.scripts-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
}

.scripts-search-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 24px;
}

.scripts-search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.scripts-search {
  width: 100%;
  padding: 12px 18px 12px 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.scripts-search::placeholder { color: var(--text-muted); }
.scripts-search:focus { outline: none; border-color: rgba(255, 255, 255, 0.12); }

/* tbx/index.html & tbx/products.html ürün grid'i ile birebir */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  min-width: 0;
}

/* Featured Scripts: layout aynen scripts-grid gibi olsun (fazladan override yok) */
/* .scripts-grid--featured inherits from .scripts-grid */

.script-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: inherit;
  display: block;
}

.script-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.script-title-link {
  text-decoration: none;
  color: inherit;
}

.script-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

.script-thumb {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.script-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.script-thumb span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.9);
}

.script-info {
  padding: 14px 16px 16px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.script-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.script-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.script-price-group { display: flex; align-items: baseline; gap: 6px; }
.script-price { font-weight: 600; color: #22c55e; }

.script-tag-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.script-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(249, 250, 251, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.script-tag-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.script-actions { margin-top: 12px; }

.script-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(250, 250, 250, 0.96);
  color: #111827;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.script-button:hover {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, 0.2);
  color: #020617;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.script-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.22);
}

.script-button--full {
  width: 100%;
}

.script-button svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-right: 7px;
}

/* Featured scripts grid: Sadece Featured Package kartları; diğer modüller gizli */
.scripts-grid--featured .widget:not(.widget-featured) {
  display: none !important;
}

/* ========== Featured Scripts (ANA SAYFA) ==========
   tbx/index.html (445-610) ile birebir olacak şekilde,
   sadece Featured Scripts alanına scope edilmiştir. */
#featured-scripts .scripts-section {
  /* fallback: section zaten #featured-scripts içinde */
  display: block;
}

#featured-scripts .scripts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

#featured-scripts .script-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: inherit;
  display: block;
}

#featured-scripts .script-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

#featured-scripts .script-thumb {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#featured-scripts .script-thumb span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.9);
}

#featured-scripts .script-info {
  padding: 14px 16px 16px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

#featured-scripts .script-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

#featured-scripts .script-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#featured-scripts .script-price-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

#featured-scripts .script-price {
  font-weight: 600;
  color: #22c55e;
}

#featured-scripts .script-old-price {
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: line-through;
}

#featured-scripts .script-discount {
  font-size: 0.8rem;
  color: #f97373;
}

#featured-scripts .script-tag {
  font-size: 0.72rem;
}

#featured-scripts .script-actions {
  margin-top: 12px;
}

#featured-scripts .script-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(250, 250, 250, 0.96);
  color: #111827;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

#featured-scripts .script-button:hover {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, 0.2);
  color: #020617;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

#featured-scripts .script-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.22);
}

#featured-scripts .script-button--full {
  width: 100%;
}

.payments-section {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto 160px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.payments-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: 18px;
}

.payments-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.payments-header p { font-size: 0.85rem; color: var(--text-muted); max-width: 520px; }
.payments-viewport {
  overflow: hidden;
  position: relative;
  padding-top: 8px;
  margin-top: -8px;
}
.payments-track { display: flex; }
.payments-swiper { width: 100%; overflow: hidden; }
.payments-swiper .swiper-slide {
  height: auto;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.payments-swiper .swiper-slide.pc-dim {
  opacity: 0.35 !important;
  transform: scale(0.96) !important;
}

/* ── Payment Card ── */
.payment-card {
  flex: 0 0 260px !important;
  min-width: 260px !important;
  width: 260px !important;
  height: 380px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  background: rgba(255,255,255,0.04) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  padding: 20px 0 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: border-color 0.25s, background 0.25s;
}

.payment-card:hover {
  border-color: rgba(255,255,255,0.14) !important;
  background: rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}

/* Avatar ortada */
.pc-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 20px !important;
}

.pc-avatar {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  border-radius: 999px !important;
  background: rgba(15,23,42,0.9) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  overflow: hidden !important;
  position: relative !important;
  border: none !important;
  outline: none !important;
}

.pc-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 999px !important;
  display: block !important;
}

.pc-avatar span { position: absolute !important; }

/* İsim + tag */
.pc-identity {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.pc-name {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #fafafa !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 150px !important;
}

.pc-rating {
  font-size: 0.7rem !important;
  color: rgba(161,161,170,0.45) !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

.pc-tag {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

/* Çizgi 1 — isim ile feedback arası, kenardan kenara */
.pc-divider {
  width: 100% !important;
  height: 1px !important;
  background: rgba(255,255,255,0.08) !important;
  margin: 14px 0 !important;
  flex-shrink: 0 !important;
}

/* Feedback */
.pc-feedback {
  font-size: 0.82rem !important;
  color: rgba(161,161,170,0.85) !important;
  line-height: 1.6 !important;
  height: 90px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  margin: 0 !important;
  font-style: italic !important;
  padding: 0 20px !important;
  flex-shrink: 0 !important;
}

/* Footer — çizgi kenardan kenara, içerik padding'li */
.pc-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin-top: 14px !important;
  width: 100% !important;
}

.pc-footer-divider {
  width: 100% !important;
  height: 1px !important;
  background: rgba(255,255,255,0.08) !important;
  margin: 0 0 12px 0 !important;
}

.pc-script-row {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 20px !important;
}
.pc-script-row svg {
  width: 13px !important;
  height: 13px !important;
  color: rgba(161,161,170,0.5) !important;
  flex-shrink: 0 !important;
}

.pc-script {
  font-size: 0.78rem !important;
  color: rgba(161,161,170,0.75) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
}

.pc-price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 20px 6px !important;
}

.pc-thanks-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 20px 16px !important;
}

.pc-thanks-tag {
  height: 28px !important;
  width: auto !important;
  object-fit: contain !important;
  opacity: 0.9 !important;
}

.pc-amount {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #22c55e !important;
  letter-spacing: 0.02em !important;
}

/* Eski class'ları gizle */
.payment-info,
.payment-top,
.payment-footer,
.payment-card-top,
.payment-card-bottom,
.pc-header,
.pc-script-row,
.pc-script { display: none !important; }

@keyframes payments-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stats-section {
  width: 100%;
  max-width: 1150px;
  margin: 24px auto 140px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.achievements-header {
  width: 100%;
  max-width: 1150px;
  margin: 120px auto 16px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.achievements-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.achievements-subtitle {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.stat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-number {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9fafb;
}
.stat-number.accent { color: #22c55e; }
.stat-label { font-size: 0.9rem; color: #f9fafb; }

/* Rolling digit counter */
.counter-container { position: relative; display: inline-block; }
.counter-counter { display: flex; overflow: hidden; line-height: 1; }
.counter-digit { position: relative; width: 1ch; font-variant-numeric: tabular-nums; }
.counter-number {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gradient-container { display: none; }
.bottom-gradient { display: none; }

.faq-section {
  width: 100%;
  max-width: 1200px;
  margin: 120px auto 100px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.faq-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: 20px;
}

.faq-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

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

.faq-container {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.faq-left {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.faq-search-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.faq-search {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.faq-search::placeholder { color: var(--text-muted); }
.faq-search:focus { outline: none; border-color: rgba(255, 255, 255, 0.12); }
.faq-count { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  min-width: 0;
}

.faq-list::-webkit-scrollbar { width: 6px; }
.faq-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); border-radius: 3px; }
.faq-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }

.faq-item {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  overflow: visible;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}

.faq-item:hover { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); }

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  width: 100%;
  line-height: 1.45;
  transition: color 0.2s;
  min-width: 0;
  overflow-wrap: break-word;
  white-space: normal;
}

.faq-question-icon {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin-top: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-item.expanded .faq-question-icon { background: #22c55e; transform: scale(1.2); }

.faq-answer-wrap { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.expanded .faq-answer-wrap { max-height: 200px; transition: max-height 0.35s ease; }

.faq-answer {
  padding: 0 16px 16px 36px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.faq-right {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.faq-visual {
  width: 100%;
  min-height: 240px;
  max-height: 400px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.faq-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* ========== Banner Box ========== */

.banner-box {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto 48px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.banner-box-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.banner-box-left {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.banner-box-title {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.banner-box-title .accent { color: #5865F2; }

.banner-box-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 400px;
}

.banner-box-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  background: rgba(250, 250, 250, 0.96);
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
  margin-top: 4px;
}

.banner-box-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.banner-box-right { min-height: 200px; position: relative; overflow: hidden; }
.banner-box-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
}

/* ========== RESPONSIVE ========== */

/* Laptop: 992px - 1199px */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
    padding: 64px 24px 0;
  }
  .nav-links a { padding: 0 14px; font-size: 0.875rem; }
  .hero-character { width: min(85vw, 750px); }
  .hero h1 { font-size: clamp(3.5rem, 20vw, 16rem); }
}

/* Tablet: 768px - 991px */
@media (max-width: 991px) {
  .container {
    max-width: 100%;
    padding: 60px 20px 0;
  }

  /* Hero */
  .hero { padding: 32px 20px; }
  .hero h1,
  .hero-title-rotate { font-size: clamp(2.5rem, 4vw, 4rem); }
  .hero-badges-wrap { gap: 20px; margin-top: 40px; }
  .hero-desc { font-size: 0.95rem; }
  .hero-character { width: min(90vw, 550px); }

  /* Scripts */
  .scripts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  #featured-scripts .scripts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

  /* Payments */
  .payment-card { flex: 0 0 calc(33.333% - 10px); min-width: 180px; }

  /* FAQ */
  .faq-container { grid-template-columns: 1fr; }
  .faq-right { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 20px; height: 220px; min-height: unset; max-height: unset; overflow: hidden; }
  .faq-visual { min-height: unset; max-height: unset; height: 100%; }
  .faq-visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

  /* Banner */
  .banner-box-inner { grid-template-columns: 1fr; }
  .banner-box-right { min-height: 160px; max-height: 220px; overflow: hidden; position: relative; }
  .banner-box-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }

  /* Product page */
  .product-page { padding: 0; }
  .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .product-gallery { order: 1; }
  .product-info { order: 2; }
  .product-gallery-main { min-height: 280px; }

  /* Store products */
  .store-products-images { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Site content */
  .site-content { padding-top: 72px; }

  footer { padding: 14px; font-size: 0.78rem; }
}

/* Telefon (büyük): 576px - 767px */
@media (max-width: 767px) {
  .container { padding: 56px 16px 0; }

  /* Hero */
  .hero { padding: 24px 16px; }
  .hero h1,
  .hero-title-rotate { font-size: clamp(2.5rem, 7vw, 3.5rem); }
  .hero-badges-wrap { gap: 16px; margin-top: 32px; }
  .hero-badges { gap: 8px; }
  .hero-badge-text { font-size: 0.62rem; }
  .hero-desc { font-size: 0.9rem; max-width: 100%; }
  .status-text { font-size: 0.85rem; }
  .hero-character { width: min(95vw, 420px); }

  /* Scripts */
  .scripts-section { padding: 0 16px; }
  .scripts-search-wrap { max-width: 100%; }
  .scripts-grid { grid-template-columns: 1fr; gap: 16px; }
  #featured-scripts .scripts-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Payments */
  .payments-section { padding: 0 16px; }
  .payment-card { flex: 0 0 calc(60% - 10px); min-width: 200px; }

  /* Stats */
  .stats-section { padding: 0 16px; }
  .achievements-header { padding: 0 16px; }

  /* FAQ */
  .faq-section { padding: 0 16px; }
  .faq-container { grid-template-columns: 1fr; }
  .faq-right { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 16px; height: 200px; min-height: unset; max-height: unset; overflow: hidden; }
  .faq-visual { min-height: unset; max-height: unset; height: 100%; }
  .faq-visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

  /* Banner */
  .banner-box { padding: 0 16px; }
  .banner-box-inner { grid-template-columns: 1fr; }
  .banner-box-left { padding: 22px 20px; }
  .banner-box-right { min-height: 140px; max-height: 200px; overflow: hidden; position: relative; }
  .banner-box-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }

  /* Product page */
  .product-page { padding: 0; }
  .product-detail { gap: 28px; }
  .product-gallery-main { min-height: 240px; }
  .product-info-box { padding: 24px; }
  .product-thumbs { flex-wrap: wrap; gap: 10px; }
  .product-thumb { width: 72px; height: 50px; }
  .product-actions-wrap .price strong { font-size: 1.65rem; }
  .product-actions-wrap .btn-primary.wide,
  .product-actions-wrap .btn-secondary.wide { padding: 16px; font-size: 1rem; }
  .product-action-buttons { gap: 8px; }
  .product-action-btn { padding: 0 14px; font-size: 0.82rem; }

  /* Store products */
  .store-products-images { grid-template-columns: 1fr; gap: 14px; }

  /* Basket */
  .basket-header { padding: 14px 16px; }
  .basket-second-header { padding: 10px 16px; }
  .basket-item { padding: 14px 16px; gap: 10px; }
  .basket-checkout { padding: 16px; }

  /* Site content */
  .site-content { padding-top: 68px; }

  footer { padding: 12px; font-size: 0.75rem; }
}

/* Telefon (küçük): 0 - 575px */
@media (max-width: 575px) {
  .container { padding: 52px 14px 0; }
  .site-content { padding-top: 60px; }

  /* Nav */
  nav#main-nav { min-height: 52px; }
  .logo { font-size: 1rem; }
  .logo-icon { width: 26px; height: 26px; }

  /* Hero */
  .hero { padding: 20px 14px; }
  .hero h1,
  .hero-title-rotate { font-size: clamp(2.25rem, 9vw, 3rem); }
  .hero-badges-wrap { flex-direction: column; gap: 12px; margin-top: 24px; }
  .hero-desc { font-size: 0.85rem; }
  .status-text { font-size: 0.8rem; }
  .hero-character { width: min(98vw, 350px); }

  /* Scripts */
  .scripts-section { padding: 0 14px; }
  .payments-section { padding: 0 14px; }
  .stats-section { padding: 0 14px; }
  .achievements-header { padding: 0 14px; }
  .faq-section { padding: 0 14px; }
  .banner-box { padding: 0 14px; }

  /* Payments */
  .payment-card { flex: 0 0 calc(75% - 10px); min-width: 220px; }

  /* Product page */
  .product-gallery-main { min-height: 220px; }
  .gallery-nav { width: 42px; height: 42px; }
  .product-info-box { padding: 20px; border-radius: 16px; }
  .product-thumb { width: 68px; height: 48px; }

  /* Basket */
  .basket-item { flex-wrap: wrap; }
  .basket-item .info { width: 100%; }

  footer { padding: 10px; font-size: 0.72rem; }
}

/* Çok küçük telefon: 0 - 360px */
@media (max-width: 360px) {
  .container { padding: 52px 12px 0; }
  .nav-links a { padding: 0 12px; font-size: 0.85rem; }
  .hero h1 { font-size: clamp(1.9rem, 11vw, 5rem); }
  .scripts-section,
  .payments-section,
  .stats-section,
  .achievements-header,
  .faq-section,
  .banner-box { padding: 0 12px; }
}

/* Yatay mod (dikey alan kısıtlı) */
@media (max-height: 600px) and (orientation: landscape) {
  nav#main-nav { min-height: 50px; }
  .hero { padding: 16px; }
  .hero h1,
  .hero-title-rotate { font-size: clamp(2rem, 10vw, 2.8rem); }
}

/* ===== Product detail (tbx/productsdetailing.html) ===== */

.product-page {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 2;
}

.product-page .banner-box {
  margin-top: 48px;
}

.product-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  margin-top: 12px;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.product-back:hover { color: var(--text-primary); }
.product-back svg { width: 20px; height: 20px; }

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.product-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-gallery-main {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play overlay */
.gallery-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
  z-index: 3;
  pointer-events: auto;
}
.gallery-play-overlay:hover { background: rgba(0, 0, 0, 0.45); }
.gallery-play-overlay svg {
  width: 64px;
  height: 64px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* YouTube aç butonu */
.gallery-yt-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.gallery-yt-btn:hover {
  background: #ff0000;
  transform: scale(1.08);
}
.gallery-yt-btn svg { width: 18px; height: 18px; }

/* Video modal */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s;
}
.video-modal-overlay.active { opacity: 1; }
.video-modal-inner {
  position: relative;
  width: min(900px, 92vw);
  aspect-ratio: 16 / 9;
}
.video-modal-inner iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.video-modal-close svg { width: 24px; height: 24px; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.gallery-nav svg { width: 24px; height: 24px; }
.gallery-nav-prev { left: 16px; z-index: 5; }
.gallery-nav-next { right: 16px; z-index: 5; }

.product-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding-top: 2px;
  align-items: center;
  z-index: 1;
}

.product-thumb {
  width: 96px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.product-thumb:hover,
.product-thumb.active {
  border-color: rgba(255, 255, 255, 0.2);
}

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

.product-gallery-main-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
}

.product-gallery-main-placeholder span {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.product-info-box {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 36px;
}

.product-category {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.product-price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-old-price {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-save {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.product-stars {
  display: flex;
  gap: 2px;
}

.product-stars svg {
  width: 22px;
  height: 22px;
  color: #eab308;
}

.product-reviews {
  font-size: 1rem;
  color: var(--text-secondary);
}

.product-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 28px;
  border-radius: 12px;
  background: var(--success);
  color: #0a0a0b;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

.product-add-cart[aria-disabled="true"] {
  opacity: 0.75;
  cursor: default;
  pointer-events: none;
  filter: grayscale(20%);
}

.product-add-cart:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.product-add-cart svg { width: 22px; height: 22px; }

.product-frameworks {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.product-frameworks-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-frameworks-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.framework-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.framework-badge-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.framework-badge-icon[src=""] {
  display: none;
}

.product-page .product-title {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.product-actions-wrap .actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.product-actions-wrap .price {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.product-actions-wrap .price strong {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-actions-wrap .discount {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 10px;
}

.product-actions-wrap .btn-primary.wide,
.product-actions-wrap .btn-secondary.wide {
  width: 100%;
  padding: 18px 28px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  justify-content: center;
  text-align: center;
  display: inline-flex;
  align-items: center;
}

.product-actions-wrap .btn-primary.wide {
  background: var(--success);
  color: #0a0a0b;
  border: none;
}

.product-actions-wrap .btn-primary.wide:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.product-description-box {
  margin-top: 18px;
  padding: 24px 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.product-description-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.product-description-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.product-description-text::-webkit-scrollbar { width: 6px; }
.product-description-text::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); border-radius: 3px; }
.product-description-text::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.product-description-text::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

.product-action-buttons {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 40px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.product-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.product-action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .product-page { padding: 0; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery { order: 1; }
  .product-info { order: 2; }
  .product-gallery-main { min-height: 280px; }
  .product-thumbs { gap: 10px; }
}

@media (max-width: 767px) {
  .product-page { padding: 0; }
  .product-info-box { padding: 24px; }
  .product-actions-wrap .price strong { font-size: 1.65rem; }
  .product-actions-wrap .btn-primary.wide,
  .product-actions-wrap .btn-secondary.wide { padding: 16px; font-size: 1rem; }
  .product-thumbs { flex-wrap: wrap; }
  .product-thumb { width: 72px; height: 50px; }
}

@media (max-width: 575px) {
  .product-page { padding: 0; }
  .product-gallery-main { min-height: 240px; }
  .product-info-box { padding: 20px; border-radius: 16px; }
}

.site-header-inner .user-name {
  contain: paint;
}
.site-header-inner .user-name .text-inner {
  overflow: hidden;
}
.site-header-inner .user-name .text,
.site-header-inner .user-name .text-hover {
  display: block;
  transition: visibility 0.15s ease-in-out, opacity 0.15s ease-in-out;
}
.site-header-inner .user-name .text-hover {
  margin-top: calc(var(--btn-size) * -1);
}
.site-header-inner .user-name:not(:hover):not(:focus-within) .text-hover {
  visibility: hidden;
  opacity: 0;
}
.site-header-inner .user-name:hover .text, .site-header-inner .user-name:focus-within .text {
  visibility: hidden;
  opacity: 0;
}
@media (width <= 960px) {
  .site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--widget-padding) 0;
    position: relative;
    padding: 110px 0 calc(50px - var(--widget-padding));
    flex-wrap: wrap;
  }
  .site-header-inner .actions {
    position: absolute;
    top: var(--widget-padding);
    left: 0;
    display: flex;
    gap: 6px;
  }
  .site-header-inner .toggle-navigation {
    --btn-icon: url("https://template-assets.tebex.io/images/burger.svg");
  }
  .site-header-inner .log-in,
  .site-header-inner .user-actions {
    position: absolute;
    top: var(--widget-padding);
    right: 0;
  }
  .site-header-inner .user-actions {
    display: flex;
    gap: 12px;
  }
  .site-header-inner .open-basket {
    --btn-icon: url("https://template-assets.tebex.io/images/checkout.svg");
  }
  .site-header-inner .user-name {
    display: none;
  }
  .site-header-inner .site-title {
    width: 100%;
    line-height: 80px;
    font-size: 50px;
    font-weight: 900;
    text-align: center;
  }
  .site-header-inner .site-title img {
    margin: 0 auto;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
  }
  .site-header-inner .info {
    display: block;
    position: relative;
    flex: none;
    width: 50%;
    padding-left: 42px;
    line-height: 18px;
  }
  .site-header-inner .info.discord {
    right: 0;
    left: auto;
    padding-left: 0;
    padding-right: 42px;
    text-align: right;
  }
  .site-header-inner .info .image {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    width: 32px;
    height: 32px;
    object-fit: contain;
  }
  .site-header-inner .info.discord .image {
    left: auto;
    right: 0;
  }
  .site-header-inner .info .title {
    display: block;
    line-height: 20px;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 600;
  }
  .site-header-inner .info .action {
    display: block;
    color: var(--color-primary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.15s ease-in-out;
    cursor: pointer;
  }
  .site-header-inner .info:hover .action {
    color: var(--color-primary-hover);
  }
  .site-header-inner .info .value {
    width: fit-content;
    border: 1px solid #606060;
    padding: 0 5px;
    background: rgba(96, 96, 96, 0.5);
    color: #CCC;
    font-size: 12px;
  }
}
@media (width > 960px) {
  .site-header-inner {
    position: relative;
    height: calc(355px - var(--widget-padding) * 2);
  }
  body.is-navigation-horizontal .site-header-inner {
    height: 355px;
  }
  .site-header-inner .actions {
    position: absolute;
    top: var(--widget-padding);
    left: 0;
    display: flex;
    gap: 6px;
  }
  .site-header-inner .toggle-navigation {
    display: none;
  }
  .site-header-inner .log-in,
  .site-header-inner .user-actions {
    position: absolute;
    top: var(--widget-padding);
    right: 0;
  }
  .site-header-inner .user-actions {
    display: flex;
    gap: var(--widget-padding);
  }
  .site-header-inner .open-basket {
    --btn-icon: url("https://template-assets.tebex.io/images/checkout.svg");
  }
  .site-header-inner .user-name {
    --btn-icon: url("https://template-assets.tebex.io/images/user.svg");
  }
  .site-header-inner .site-title {
    position: absolute;
    inset: calc(var(--widget-padding) + 46px) 280px 0 280px;
    margin: auto;
    width: fit-content;
    height: fit-content;
    line-height: 72px;
    font-size: 60px;
    font-weight: 900;
    text-align: center;
  }
  .site-header-inner .site-title img {
    margin: 0 auto;
    max-width: 100%;
    max-height: 128px;
  }
  .site-header-inner .info {
    position: absolute;
    top: calc(var(--widget-padding) + 46px);
    left: 0;
    bottom: 0;
    margin: auto 0;
    max-width: 280px;
    width: 33.3333333333%;
    height: fit-content;
    line-height: 22px;
  }
  .site-header-inner .info.server {
    padding-left: 64px;
  }
  .site-header-inner .info.discord {
    right: 0;
    left: auto;
    padding-right: 82px;
    text-align: right;
  }
  .site-header-inner .info .image {
    position: absolute;
    top: -50px;
    left: 0;
    bottom: -50px;
    margin: auto 0;
    width: 46px;
    height: 46px;
    object-fit: contain;
  }
  .site-header-inner .info.discord .image {
    left: auto;
    right: 0;
    width: 64px;
    height: 64px;
  }
  .site-header-inner .info .title {
    display: block;
    line-height: 28px;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
  }
  .site-header-inner .info .action {
    display: block;
    color: var(--color-primary);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.15s ease-in-out;
    cursor: pointer;
  }
  .site-header-inner .info:hover .action {
    color: var(--color-primary-hover);
  }
  .site-header-inner .info .value {
    width: fit-content;
    border: 1px solid #606060;
    padding: 0 6px;
    background: rgba(96, 96, 96, 0.5);
    color: #CCC;
    font-size: 16px;
  }
}

.site-sale-banner {
  margin-top: var(--widget-padding);
  margin-bottom: var(--widget-padding);
  padding: var(--widget-padding) var(--content-padding);
  color: var(--color-sale-banner-text);
  background: var(--color-sale-banner-bg);
  font-size: 21px;
  text-align: center;
}

.site-footer {
  background: var(--color-brighter-bg);
}

.site-home-categories {
  display: grid;
  gap: var(--widget-padding);
}
@media (width > 600px) {
  .site-home-categories {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    justify-content: center;
    gap: var(--widget-padding) 36px;
  }
}
.site-home-categories .category {
  display: flex;
  align-items: center;
  gap: var(--widget-padding);
  flex-basis: 100%;
  line-height: 26px;
  font-size: 24px;
  font-weight: 700;
}
@media (width <= 600px) {
  .site-home-categories .category {
    width: 100%;
  }
}
@media (width > 600px) {
  .site-home-categories .category {
    flex-direction: column;
    align-items: center;
    gap: var(--widget-padding);
    text-align: center;
  }
}
.site-home-categories .category .image {
  max-width: 130px;
}
@media (width > 600px) {
  .site-home-categories .category .image {
    margin: auto;
    max-width: 100%;
  }
}
.site-home-categories .category .image-default {
  position: relative;
  width: min(70px, 100%);
  aspect-ratio: 1;
}
@media (width > 960px) {
  .site-home-categories .category .image-default {
    width: min(100px, 100%);
  }
}
.site-home-categories .category .image-default::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background-color: rgb(from var(--color-text) r g b/0.8);
  mask: url("https://template-assets.tebex.io/images/package-default.svg") center center/contain no-repeat;
}

.store-text {
  padding: var(--content-padding);
  line-height: 1.375;
  font-size: 16px;
  font-weight: 400;
}

.store-form {
  font-size: 18px;
}
.store-form h1,
.store-form h2,
.store-form h3,
.store-form h4,
.store-form h5,
.store-form h6,
.store-form p {
  margin-bottom: 24px;
}
.store-form .input-group,
.store-form .field,
.store-form .field-inline {
  margin-bottom: 24px;
}
.store-form .input-group > p,
.store-form .field > p,
.store-form .field-inline > p {
  margin-bottom: 12px;
}
.store-form .field-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
}
@media (width > 600px) {
  .store-form .field-inline {
    gap: 0 24px;
  }
}
.store-form input,
.store-form select,
.store-form textarea {
  display: block;
}
.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 {
  margin-bottom: 12px;
  width: 100%;
  padding: 14px 12px;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  font-size: 14px;
}
.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: #242424;
}
.popup.drawer .store-form input[type=text],
.popup.drawer .store-form input[type=password],
.popup.drawer .store-form input[type=email],
.popup.drawer .store-form input[type=number],
.popup.drawer .store-form input[type=search],
.popup.drawer .store-form input[type=url],
.popup.drawer .store-form input[type=tel],
.popup.drawer .store-form input[type=date],
.popup.drawer .store-form input[type=time],
.popup.drawer .store-form input[type=datetime-local],
.popup.drawer .store-form input[type=file],
.popup.drawer .store-form input[type=month],
.popup.drawer .store-form input[type=week],
.popup.drawer .store-form select,
.popup.drawer .store-form textarea {
  user-select: auto;
}
@media (width > 960px) {
  .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 {
    padding: 12px;
    font-size: 16px;
  }
}
.store-form .field-inline input,
.store-form .field-inline select,
.store-form .field-inline textarea {
  width: auto;
}
.store-form .actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.store-form .actions .link-text {
  align-self: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 16px;
}

@media (width <= 960px) {
  .site-content-widgets {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}
@media (width > 960px) {
  .site-content-widgets {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    align-items: start;
    gap: 48px;
  }
  body.is-sidebar-right .site-content-widgets {
    grid-template-columns: 1fr var(--sidebar-width);
  }
  .site-content-widgets .store-sidebar {
    order: -1;
  }
  body.is-sidebar-right .site-content-widgets .store-sidebar {
    order: 1;
  }
}

.category-description {
  margin-bottom: var(--widget-padding);
  padding: var(--widget-padding);
  line-height: 1.4;
  font-size: 18px;
}

.no-products {
  padding: var(--widget-padding);
  font-size: 18px;
  text-align: center;
}

.store-products-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--widget-padding) / 2);
}

.store-products-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px 36px;
}

.store-product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--widget-padding);
}
.store-product .product-title {
  font-size: 20px;
  font-weight: 600;
}
.store-product .product-title a {
  color: inherit;
  transition: color 0.15s ease-in-out;
}
.store-product .product-title a:hover {
  color: var(--color-primary);
}
.store-product .product-title .countdown {
  display: block;
  margin-top: 4px;
  color: var(--color-removed);
  font-size: 0.75em;
  font-variant-numeric: tabular-nums;
}
.store-product .product-title .countdown::before {
  content: "";
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 0.25em;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask: url("https://template-assets.tebex.io/images/countdown.svg") center center/contain no-repeat;
}
.store-product .image-link {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: fit-content;
}
.store-product .image-link:hover ~ .product-title a {
  color: var(--color-primary);
}
.store-product .image {
  margin: 0 auto;
  max-width: 100%;
}
.store-product .image-default {
  position: relative;
  width: 136px;
  aspect-ratio: 1;
}
.store-product .image-default::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100px, 100%);
  height: min(100px, 100%);
  background-color: rgb(from var(--color-text) r g b/0.8);
  mask: url("https://template-assets.tebex.io/images/package-default.svg") center center/contain no-repeat;
}
.store-product .descr {
  color: var(--color-text-secondary);
}
.store-product .actions {
  display: flex;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.store-product .actions.updating {
  pointer-events: none;
}
.store-product .actions.updating > * {
  opacity: 0.3;
  filter: grayscale(100%);
}
.store-product .actions.updating::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  margin: auto;
  width: 30px;
  height: 30px;
  background-color: var(--color-text);
  mask: url("https://template-assets.tebex.io/images/loading.svg") center center/contain no-repeat;
}
.store-product:not(.store-product-full) .actions {
  flex-wrap: wrap;
}
.store-products-images .store-product:not(.store-product-full) .actions {
  flex: 1 1 auto;
  align-content: flex-end;
}
.store-product .price {
  font-size: 14px;
}
.store-product .price .discount {
  margin-right: 1ch;
  color: var(--color-removed);
  font-weight: 400;
  text-decoration-line: line-through;
}
.store-product .price strong {
  font-size: 20px;
  font-weight: inherit;
}
.store-product:not(.store-product-full) .price {
  width: 100%;
}
.store-products-images .store-product:not(.store-product-full) .price {
  margin-bottom: auto;
}
.store-product .quantity-field {
  --btn-size: 44px;
}
.store-product .half {
  flex: 0 1 calc(50% - 6px);
}
.store-product .wide {
  flex: 1 1 auto;
}
.store-product .gift {
  --btn-icon: url("https://template-assets.tebex.io/images/gift.svg");
  flex: none;
}
.store-product .remove {
  --btn-icon: url("https://template-assets.tebex.io/images/delete.svg");
  flex: none;
}

.store-products-images .store-product {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: subgrid;
}
.store-products-images .store-product .image-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-products-list .store-product {
  padding: calc(var(--widget-padding) * 0.75);
}
.store-products-list .store-product .image {
  width: 60px;
}
.store-products-list .store-product .actions {
  flex-wrap: nowrap;
  align-items: center;
}
.store-products-list .store-product .wide {
  flex: 0 1 auto;
}
.store-products-list .store-product .price {
  width: auto;
}
@media (width <= 600px) {
  .store-products-list .store-product .wide {
    width: 100%;
  }
}
@media (width > 600px) {
  .store-products-list .store-product {
    flex-direction: row;
    align-items: center;
    gap: 12px calc(var(--widget-padding) * 0.75);
  }
  .store-products-list .store-product .actions {
    gap: calc(var(--widget-padding) * 0.75);
  }
  .store-products-list .store-product .actions .wide {
    min-width: 180px;
  }
  .store-products-list .store-product .image-link {
    margin: 0;
  }
  .store-products-list .store-product .product-title {
    margin-right: auto;
  }
}

.media-slider {
  --slider-spacing: 6px;
  --thumbs-size: 40px;
  --thumb-padding: 6px;
  position: relative;
  width: 100%;
  overflow: hidden;
}
@media (width > 360px) {
  .media-slider {
    --slider-spacing: 12px;
    --thumbs-size: 55px;
  }
}
@media (width > 600px) {
  .media-slider {
    --thumbs-size: 70px;
  }
}
@media (width > 960px) {
  .media-slider {
    --thumbs-size: 90px;
  }
}
@media (width > 1400px) {
  .media-slider {
    --thumbs-size: 110px;
  }
}
.media-slider .slider {
  width: 100%;
  min-height: 200px;
  overflow: hidden;
  margin-bottom: var(--slider-spacing);
  background: var(--color-bg);
}
.media-slider .slider::part(container) {
  --swiper-navigation-size: 24px;
  --swiper-theme-color: var(--color-text);
}
.media-slider .slider::part(wrapper) {
  align-items: center;
}
.media-slider .slide {
  align-content: center;
}
.media-slider .slide-image {
  margin: auto;
  max-width: 100%;
  min-height: 200px;
  max-height: 100%;
  padding: var(--slider-spacing);
  object-fit: contain;
}
.media-slider .slide-video {
  position: relative;
  border-radius: 5px;
  background: #000 var(--preview-image) center center/cover no-repeat;
}
.media-slider .slide-frame {
  display: block;
  margin: auto;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 16/9;
  transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.media-slider .slide-frame:not(.iframe-loaded) {
  visibility: hidden;
  opacity: 0;
}
.media-slider .thumbs {
  display: flex;
  gap: var(--slider-spacing);
  align-items: stretch;
  flex-wrap: wrap;
}
.media-slider .thumb {
  display: block;
  width: var(--thumbs-size);
  height: var(--thumbs-size);
  padding: var(--thumb-padding);
  background-color: var(--color-bg);
  cursor: pointer;
}
.media-slider .thumb-image,
.media-slider .thumb-youtube {
  width: calc(var(--thumbs-size) - var(--thumb-padding) * 2);
  height: calc(var(--thumbs-size) - var(--thumb-padding) * 2);
  transition: opacity 0.3s ease-in-out;
}
.media-slider .thumb:not(.active) .thumb-image,
.media-slider .thumb:not(.active) .thumb-youtube {
  opacity: 0.5;
}
.media-slider .thumb-image {
  object-fit: contain;
}
.media-slider .thumb-youtube {
  position: relative;
  align-content: center;
}
.media-slider .thumb-youtube img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-slider .thumb-youtube::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30px;
  height: 30px;
  background-color: var(--color-text);
  mask: url("https://template-assets.tebex.io/images/play.svg") center center/contain no-repeat;
}
.media-slider .open-lightbox {
  position: absolute;
  top: var(--slider-spacing);
  right: var(--slider-spacing);
  z-index: 2;
  align-content: center;
  width: 40px;
  height: 40px;
  backdrop-filter: blur(5px);
  visibility: hidden;
  line-height: 0;
  font-size: 0;
  color: transparent;
  opacity: 0;
  transition: all 0.15s ease-in-out;
}
.media-slider .open-lightbox:hover, .media-slider .open-lightbox:focus {
  background-color: rgba(255, 255, 255, 0.1);
}
.media-slider .open-lightbox::before {
  content: "";
  display: block;
  margin: auto;
  width: 18px;
  height: 18px;
  flex: none;
  background-color: var(--color-tertiary-text);
  mask: url("https://template-assets.tebex.io/images/fullscreen.svg") center center/contain no-repeat;
  transition: background-color 0.15s ease-in-out;
}
.media-slider .open-lightbox:hover::before, .media-slider .open-lightbox:focus::before {
  background-color: var(--color-tertiary-text-hover);
}
.media-slider .slider:has(.swiper-slide-active .slide-image):hover ~ .open-lightbox,
.media-slider .open-lightbox:hover {
  opacity: 1;
  visibility: visible;
}

.popup.popup-media-slider {
  --slider-spacing: 6px;
  --thumbs-size: 40px;
  --thumb-padding: 6px;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: minmax(0, auto) calc(var(--thumbs-size) + var(--slider-spacing));
  overflow: hidden;
  backdrop-filter: blur(10px);
}
@media (width > 360px) {
  .popup.popup-media-slider {
    --slider-spacing: 12px;
    --thumbs-size: 70px;
  }
}
@media (width > 600px) {
  .popup.popup-media-slider {
    --thumbs-size: 70px;
  }
}
@media (width > 960px) {
  .popup.popup-media-slider {
    --thumbs-size: 90px;
  }
}
@media (width > 1400px) {
  .popup.popup-media-slider {
    --thumbs-size: 120px;
  }
}
.popup.popup-media-slider .popup-close {
  top: var(--slider-spacing);
  right: var(--slider-spacing);
  z-index: 2;
  backdrop-filter: blur(5px);
}
.popup.popup-media-slider .slider {
  width: 100%;
}
.popup.popup-media-slider .slider::part(container) {
  --swiper-navigation-size: 30px;
  --swiper-theme-color: var(--color-text);
}
@media (width > 600px) {
  .popup.popup-media-slider .slider::part(container) {
    --swiper-navigation-size: 36px;
  }
}
.popup.popup-media-slider .slider::part(wrapper) {
  align-items: center;
}
.popup.popup-media-slider .slide {
  align-content: center;
  padding: var(--slider-spacing);
}
.popup.popup-media-slider .slide-image {
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.popup.popup-media-slider .slide-video {
  position: relative;
  border-radius: 5px;
  background: #000 var(--preview-image) center center/cover no-repeat;
}
.popup.popup-media-slider .slide-frame {
  display: block;
  margin: auto;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 16/9;
  transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.popup.popup-media-slider .slide-frame:not(.iframe-loaded) {
  visibility: hidden;
  opacity: 0;
}
.popup.popup-media-slider .thumbs {
  display: flex;
  gap: var(--slider-spacing);
  align-items: stretch;
  flex-wrap: wrap;
  padding: 0 var(--slider-spacing) var(--slider-spacing);
}
.popup.popup-media-slider .thumb {
  display: block;
  width: var(--thumbs-size);
  height: var(--thumbs-size);
  padding: var(--thumb-padding);
  background-color: rgb(from var(--color-bg) r g b/0.7);
  cursor: pointer;
}
.popup.popup-media-slider .thumb-image,
.popup.popup-media-slider .thumb-youtube {
  width: calc(var(--thumbs-size) - var(--thumb-padding) * 2);
  height: calc(var(--thumbs-size) - var(--thumb-padding) * 2);
  transition: opacity 0.3s ease-in-out;
}
.popup.popup-media-slider .thumb:not(.active) .thumb-image,
.popup.popup-media-slider .thumb:not(.active) .thumb-youtube {
  opacity: 0.5;
}
.popup.popup-media-slider .thumb-image {
  object-fit: contain;
}
.popup.popup-media-slider .thumb-youtube {
  position: relative;
  align-content: center;
}
.popup.popup-media-slider .thumb-youtube img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.popup.popup-media-slider .thumb-youtube::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  background-color: var(--color-text);
  mask: url("https://template-assets.tebex.io/images/play.svg") center center/contain no-repeat;
}

.store-product-full {
  display: grid;
  gap: var(--widget-padding);
}
.store-product-full, .store-product-full.popup-content {
  padding-bottom: 0;
}
.store-product-full .product-title {
  font-size: 30px;
}
.store-product-full .image {
  max-width: 100%;
}
.store-product-full .actions {
  position: sticky !important;
  bottom: 0;
  z-index: 2;
  align-items: center;
  order: 1;
  margin: 0 calc(var(--widget-padding) * -1);
  padding: var(--widget-padding);
  background-color: rgb(from var(--color-brighter-bg) r g b/0.65);
  backdrop-filter: blur(5px);
}
.store-product-full .actions .half,
.store-product-full .actions .wide {
  flex: 0 1 240px;
}
.store-product-full .price {
  margin-right: auto;
}

.store-product-options .product-title {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
}
.store-product-options .actions {
  position: sticky !important;
  bottom: var(--widget-padding);
  justify-content: start;
  width: fit-content;
  max-width: 100%;
}
.store-product-options .actions.updating {
  pointer-events: none;
}
.store-product-options .actions.updating > * {
  opacity: 0.3;
  filter: grayscale(100%);
}
.store-product-options .actions.updating::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  margin: auto;
  width: 30px;
  height: 30px;
  background: url("https://template-assets.tebex.io/images/loading.svg") center center no-repeat;
  background-size: contain;
}
.store-product-options .actions .btn-primary,
.store-product-options .actions .btn-secondary,
.store-product-options .actions .btn-tertiary {
  width: 230px;
}
.store-product-options .actions-multiple {
  width: auto;
}
.store-product-options .actions-multiple .btn-primary,
.store-product-options .actions-multiple .btn-secondary,
.store-product-options .actions-multiple .btn-tertiary {
  width: auto;
  flex: 1 1 auto;
}

.site-navigation {
  --fade-duration: 200ms;
  view-transition-name: siteNavigation;
}
@media (width <= 960px) {
  .site-navigation {
    position: fixed;
    inset: 0;
    z-index: 100000;
    padding: 0;
    transition: display var(--fade-duration) allow-discrete, opacity var(--fade-duration) ease;
  }
  @starting-style {
    .site-navigation {
      opacity: 0;
    }
  }
  body:not(.show-navigation) .site-navigation {
    visibility: hidden;
    opacity: 0;
  }
  .site-navigation.drawer {
    user-select: none;
  }
  .site-navigation .close-navigation {
    --btn-icon: url("https://template-assets.tebex.io/images/close.svg");
    --btn-icon-size: 24px;
    position: absolute;
    top: 12px;
    right: 72px;
  }
  .site-navigation .menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 0 60px 0 0;
    padding: 72px var(--widget-padding) var(--widget-padding);
    background: var(--color-bg);
    line-height: 24px;
    color: var(--color-text-secondary);
    font-size: 18px;
    overflow: hidden auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) var(--color-bg);
    transition: opacity var(--fade-duration) ease, scale var(--fade-duration) ease, translate var(--fade-duration) ease;
  }
  @starting-style {
    .site-navigation .menu {
      translate: -100% 0;
    }
  }
  .site-navigation.drawer .menu::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 7px;
    bottom: 0;
    margin-block: auto;
    width: 4px;
    height: 100px;
    background: rgb(from var(--color-text-secondary) r g b/0.33);
    border-radius: 2px;
    pointer-events: none;
  }
  body:not(.show-navigation) .site-navigation .menu {
    translate: -100% 0;
  }
  .site-navigation.touching .menu {
    transition: opacity var(--fade-duration) ease, scale var(--fade-duration) ease;
  }
  body:not(.show-navigation) .site-navigation .menu {
    opacity: 0.8;
    scale: 0.95;
  }
  .site-navigation.may-close .menu {
    opacity: 0.8;
  }
  .site-navigation ul ul {
    padding-left: var(--widget-padding);
    line-height: 22px;
    font-size: 16px;
  }
  .site-navigation li {
    position: relative;
    width: 100%;
  }
  .site-navigation .log-out {
    margin-top: auto;
  }
  .site-navigation .log-out a {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .site-navigation .log-out a::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    mask: url("https://template-assets.tebex.io/images/log-out.svg") center center no-repeat;
    mask-size: contain;
  }
  .site-navigation .has-children {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .site-navigation .has-children > a {
    flex: 1 1 auto;
  }
  .site-navigation .has-children .toggle {
    --btn-icon: url("https://template-assets.tebex.io/images/chevron.svg");
    --btn-icon-size: 20px;
  }
  .site-navigation .has-children .toggle::before {
    transition: rotate 0.15s ease-in-out;
  }
  .site-navigation .has-children.expanded > .toggle::before {
    rotate: 180deg;
  }
  .site-navigation .has-children > ul {
    width: 100%;
  }
  .site-navigation .has-children:not(.expanded) > ul {
    display: none;
  }
  .site-navigation a {
    display: block;
    padding: 11px 0;
    transition: color 0.15s ease-in-out;
  }
  .site-navigation a:hover {
    color: var(--color-primary);
  }
  .site-navigation a.active {
    color: var(--color-primary);
    font-weight: 700;
  }
  .site-navigation ul ul a {
    padding: 8px 0;
  }
}

@media (width > 960px) {
  .navigation-horizontal .close-navigation {
    display: none;
  }
  .navigation-horizontal .menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: calc(var(--widget-padding) / 2);
    line-height: 28px;
    background: var(--color-brighter-bg);
    font-size: 18px;
    font-weight: 700;
  }
  .navigation-horizontal .menu > li > a {
    padding: 14px calc(var(--widget-padding) / 2);
  }
  .navigation-horizontal .menu > li.has-children > a {
    padding-right: 0;
  }
  .navigation-horizontal ul ul {
    line-height: 24px;
    font-size: 16px;
    font-weight: 400;
  }
  .navigation-horizontal > ul > li > a {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 18ch;
  }
  .navigation-horizontal .has-children {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .navigation-horizontal .has-children .toggle {
    --btn-size: 28px;
    --btn-icon: url("https://template-assets.tebex.io/images/chevron.svg");
    --btn-icon-size: 20px;
    flex: none;
  }
  .navigation-horizontal .has-children .toggle::before {
    transition: rotate 0.15s ease-in-out;
  }
  .navigation-horizontal .has-children:hover > .toggle::before {
    rotate: 180deg;
  }
  .navigation-horizontal .has-children > ul {
    position: absolute;
    top: calc(100% - var(--widget-padding) / 2);
    left: 0;
    width: max-content;
    padding: calc(var(--widget-padding) / 2) 0;
    background: rgb(from var(--color-brighter-bg) r g b/0.7);
    backdrop-filter: blur(10px);
    transition: all 0.15s ease-in-out;
  }
  .navigation-horizontal .has-children:not(:hover) > ul {
    visibility: hidden;
    opacity: 0;
    translate: 0 -10px;
  }
  .navigation-horizontal a {
    display: block;
    transition: color 0.15s ease-in-out;
  }
  .navigation-horizontal a:hover, .navigation-horizontal a.link-active {
    color: var(--color-primary);
  }
  .navigation-horizontal li li a {
    width: 100%;
    max-width: 24ch;
    padding: 4px calc(var(--widget-padding) / 2);
    transition: all 0.15s ease-in-out;
  }
  .navigation-horizontal li li a:hover, .navigation-horizontal li li a.link-active {
    color: var(--color-bg) !important;
    background-color: var(--color-primary) !important;
  }
}

@media (width > 960px) {
  .navigation-vertical.widget {
    padding: calc(var(--widget-padding) / 2);
  }
  .navigation-vertical .close-navigation {
    display: none;
  }
  .navigation-vertical .menu {
    line-height: 28px;
    color: var(--color-text-secondary);
    font-size: 18px;
    font-weight: 400;
  }
  .navigation-vertical ul ul {
    padding-left: 12px;
    line-height: 22px;
    font-size: 15px;
  }
  .navigation-vertical .has-children {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .navigation-vertical .has-children > a {
    flex: 1 1 auto;
    max-width: calc(100% - 46px);
  }
  .navigation-vertical .has-children .toggle {
    --btn-icon: url("https://template-assets.tebex.io/images/chevron.svg");
    --btn-icon-size: 20px;
    flex: none;
  }
  .navigation-vertical .has-children .toggle::before {
    transition: rotate 0.15s ease-in-out;
  }
  .navigation-vertical .has-children.expanded > .toggle::before {
    rotate: 180deg;
  }
  .navigation-vertical .has-children > ul {
    width: 100%;
  }
  .navigation-vertical .has-children:not(.expanded) > ul {
    display: none;
  }
  .navigation-vertical a {
    display: block;
    padding: calc(var(--widget-padding) / 2);
    transition: color 0.15s ease-in-out;
  }
  .navigation-vertical a:hover, .navigation-vertical a.link-active {
    color: var(--color-primary);
  }
  .navigation-vertical a.link-active {
    font-weight: 600;
  }
  .navigation-vertical ul ul a {
    padding: 8px calc(var(--widget-padding) / 2);
  }
}

.widget {
  padding: var(--widget-padding);
}
.widget + .widget {
  margin-top: var(--widget-padding);
}

.widget-title {
  margin-bottom: var(--widget-padding);
  font-size: 20px;
  font-weight: 700;
}

/* ===== Featured Scripts box (sidebar) ===== */
.widget-featured {
  padding: var(--widget-padding);
}

/* Featured widget kartını sade ve stabil yap */
.widget-featured .store-product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  text-align: left;
}

.widget-featured .store-product .image-link {
  display: block;
  width: 100%;
}

.widget-featured .store-product .image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}

.widget-featured .store-product .product-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.widget-featured .store-product .descr {
  font-size: 0.9rem;
}

.widget-featured .store-product .price {
  margin-top: 4px;
}

.widget-gift-card {
  text-align: center;
}
.widget-gift-card .gift-card-input {
  margin-bottom: 12px;
  width: 100%;
  padding: 14px 12px;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  font-size: 14px;
}
.popup .widget-gift-card .gift-card-input {
  background: #242424;
}
.widget-gift-card .check {
  width: 100%;
}

.widget-recent .purchase {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.4;
}
.widget-recent .avatar {
  flex: none;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}
.widget-recent .username {
  font-weight: 700;
}
.widget-recent .empty {
  text-align: center;
}
.widget-recent time {
  opacity: 0.5;
  font-size: 0.9em;
}
.widget-recent .sep {
  margin: 0 0.3em;
}

.widget-top-donator .avatar {
  margin: 0 auto 12px;
  width: 96px;
}
.widget-top-donator .username {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 18px;
}
.widget-top-donator .empty {
  text-align: center;
}

.widget-community-goal .widget-content,
.widget-goal .widget-content {
  text-align: center;
}
.widget-community-goal p:not(:last-child),
.widget-goal p:not(:last-child) {
  margin-bottom: 12px;
}
.widget-community-goal .progress,
.widget-goal .progress {
  height: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-bg);
}
@keyframes progressBarAnimation {
  to {
    background-position: 100% 0;
  }
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  height: 12px;
  background: var(--color-primary);
}
.widget-community-goal .progress-bar.striped,
.widget-goal .progress-bar.striped {
  background: var(--color-primary) linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 33%, rgb(from var(--color-primary-hover) r g b/0.35) 33%, rgb(from var(--color-primary-hover) r g b/0.35) 66%, var(--color-primary) 66%, var(--color-primary) 100%) repeat;
  background-size: 24px 100%;
}
.widget-community-goal .progress-bar.striped.animated,
.widget-goal .progress-bar.striped.animated {
  animation: progressBarAnimation 10s infinite linear;
}

.widget-community-goal .goal-image {
  margin: 0 auto 12px;
  max-width: 96px;
}
.widget-community-goal .descr {
  margin-bottom: 12px;
}

.widget-server-status .widget-content {
  text-align: center;
}
.widget-server-status h6 {
  margin-bottom: 12px;
}

.site-footer-inner {
  position: relative;
  padding: 20px var(--content-padding);
}
@media (width <= 960px) {
  .site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--widget-padding);
  }
}
.site-footer-inner .site-footer-nav {
  line-height: 150%;
  font-size: 14px;
}
@media (width > 960px) {
  .site-footer-inner .site-footer-nav {
    margin-bottom: 12px;
  }
}
.site-footer-inner .site-footer-nav ul {
  display: flex;
}
@media (width <= 960px) {
  .site-footer-inner .site-footer-nav ul {
    flex-direction: column;
    gap: var(--widget-padding);
    text-align: center;
  }
}
@media (width > 960px) {
  .site-footer-inner .site-footer-nav ul {
    gap: calc(var(--widget-padding) * 2);
  }
}
.site-footer-inner .site-footer-nav a {
  color: var(--color-text-darker);
  text-decoration-line: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease-in-out;
}
.site-footer-inner .site-footer-nav a:hover {
  color: var(--color-primary);
}
.site-footer-inner .copyright {
  line-height: 16px;
  color: var(--color-text-secondary);
  font-size: 12px;
}
.site-footer-inner .we-accept {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (width > 960px) {
  .site-footer-inner .we-accept {
    position: absolute;
    top: 0;
    right: var(--content-padding);
    bottom: 0;
    pointer-events: none;
  }
}
.site-footer-inner .we-accept li {
  display: block;
}
.site-footer-inner .we-accept img {
  display: block;
  max-width: 57px;
  max-height: 26px;
}

.site-footer-credit {
  color: var(--color-text-secondary);
  background: #101010;
  font-size: 11px;
}
.site-footer-credit .site-footer-credit-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  gap: 22px;
  margin: auto;
  padding-top: 16px;
  padding-bottom: 16px;
  min-height: 45px;
}
@media (width > 960px) {
  .site-footer-credit .site-footer-credit-inner {
    align-items: center;
    flex-direction: row;
  }
}
.site-footer-credit .copyright {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
@media (width > 960px) {
  .site-footer-credit .copyright {
    align-items: center;
  }
}
.site-footer-credit .copyright .tebex-logo-link {
  flex: none;
}
.site-footer-credit .legal {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}
@media (width > 960px) {
  .site-footer-credit .legal {
    gap: 20px;
  }
}
.site-footer-credit .legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease-in-out;
}
.site-footer-credit .legal a:hover {
  color: var(--color-primary);
}

.popup {
  --fade-duration: 300ms;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1000;
  overflow: hidden scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) transparent;
  background-color: rgba(0, 0, 0, 0.8);
  transition: background-color var(--fade-duration) ease, opacity var(--fade-duration) ease-in-out, display var(--fade-duration) allow-discrete;
}
@starting-style {
  .popup {
    opacity: 0;
  }
}
.popup.drawer {
  user-select: none;
}
.popup.may-close {
  user-select: none;
  background-color: rgba(0, 0, 0, 0.4);
}
.popup[hidden] {
  opacity: 0;
  display: none;
}

.popup-scroll-cont {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: calc(var(--content-padding) / 2);
  overscroll-behavior: none;
}
@media (width > 600px) {
  .popup-scroll-cont {
    padding: var(--content-padding);
  }
}
@media (pointer: coarse) {
  .popup .popup-scroll-cont {
    align-items: flex-end;
    padding-bottom: 0;
  }
}

.popup-content {
  position: relative;
  width: 100%;
  max-width: 550px;
  padding: var(--widget-padding);
  background: var(--color-brighter-bg);
  transition: translate var(--fade-duration) ease, opacity var(--fade-duration) ease;
}
@starting-style {
  .popup-content {
    translate: 0 20px;
  }
}
@media (pointer: coarse) {
  .popup-content {
    padding-bottom: calc(var(--widget-padding) * 2);
  }
}
.popup.touching .popup-content {
  transition: opacity var(--fade-duration) ease, scale var(--fade-duration) ease;
}
.popup.may-close .popup-content, .popup.drawer[hidden] .popup-content {
  opacity: 0.8;
  scale: 0.95;
}
.popup.drawer-up[hidden] .popup-content {
  translate: 0 -100%;
}
.popup.drawer-down[hidden] .popup-content {
  translate: 0 100%;
}
.popup.drawer-right[hidden] .popup-content {
  translate: 100% 0;
}
.popup.drawer-left[hidden] .popup-content {
  translate: -100% 0;
}
.popup:not(.drawer)[hidden] .popup-content {
  translate: 0 20px;
}
.popup.popup-loading .popup-content {
  min-height: 180px;
}
.popup.popup-loading .popup-content::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38px;
  height: 38px;
  background-color: var(--color-text);
  mask: url("https://template-assets.tebex.io/images/loading.svg") center center/contain no-repeat;
}
.drawer-up .popup-content::after, .drawer-down .popup-content::after, .drawer-left .popup-content::after, .drawer-right .popup-content::after {
  content: "";
  display: block;
  position: absolute;
  background: rgb(from var(--color-text-secondary) r g b/0.33);
  border-radius: 2px;
  pointer-events: none;
}
.drawer-up .popup-content::after, .drawer-down .popup-content::after {
  left: 0;
  right: 0;
  margin-inline: auto;
  height: 4px;
  width: 100px;
}
.drawer-up .popup-content::after {
  bottom: 7px;
}
.drawer-down .popup-content::after {
  top: 7px;
}
.drawer-left .popup-content::after, .drawer-right .popup-content::after {
  top: 0;
  bottom: 0;
  margin-block: auto;
  width: 4px;
  height: 100px;
}
.drawer-left .popup-content::after {
  right: 7px;
}
.drawer-right .popup-content::after {
  left: 7px;
}

.popup-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  opacity: 0.5;
  line-height: 0;
  font-size: 0;
  color: transparent;
  transition: all 0.15s ease-in-out;
}
.popup-close::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--color-text);
  mask: url("https://template-assets.tebex.io/images/close.svg") center center/20px no-repeat;
}
@media (width <= 600px) {
  .popup-close {
    width: 50px;
    height: 50px;
  }
  .popup-close::before {
    mask-size: 24px;
  }
}
.popup-close:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.store-product-popup-content {
  max-width: 800px;
}

.product-options-popup .popup-content {
  max-width: 480px;
}

.gift-form-popup .popup-content h1, .gift-form-popup .popup-content h2, .gift-form-popup .popup-content h3, .gift-form-popup .popup-content h4, .gift-form-popup .popup-content h5, .gift-form-popup .popup-content h6 {
  margin-bottom: 12px;
}
.gift-form-popup .popup-content .btn-primary {
  width: 240px;
}
.gift-form-popup .popup-content .actions {
  position: relative;
  width: fit-content;
  max-width: 100%;
}
.gift-form-popup .popup-content .actions.updating {
  pointer-events: none;
}
.gift-form-popup .popup-content .actions.updating > * {
  opacity: 0.3;
  filter: grayscale(100%);
}
.gift-form-popup .popup-content .actions.updating::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  margin: auto;
  width: 30px;
  height: 30px;
  background-color: var(--color-text);
  mask: url("https://template-assets.tebex.io/images/loading.svg") center center/contain no-repeat;
}

.login-popup {
  z-index: 1002;
}

.login-popup-content {
  max-width: 480px;
  padding-bottom: calc(var(--widget-padding) - 12px);
}

.basket {
  position: relative;
  z-index: 1001;
}
.site-content .basket {
  display: none;
}
.basket .basket-empty {
  display: none !important;
}

.basket-items-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.basket-items-empty svg {
  width: 36px;
  height: 36px;
  opacity: 0.3;
}

/* Boş sepette second-header total rengi dolu sepet ile aynı */
.basket .basket-second-header .total strong {
  color: #22c55e;
}
.basket .basket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 50px var(--content-padding) 30px;
  font-size: 22px;
  font-weight: 600;
  background: rgba(40, 40, 40, 0.5);
}
@media (width > 960px) {
  .basket .basket-header {
    padding-top: 70px;
  }
}
.basket .basket-title {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}
.basket .basket-title::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background-color: var(--color-text);
  mask: url("https://template-assets.tebex.io/images/user.svg") center center no-repeat;
  mask-size: contain;
}
.basket .basket-second-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px var(--content-padding);
  background: var(--color-brighter-bg);
  background: rgb(from var(--color-brighter-bg) r g b/0.9);
  font-size: 18px;
  font-weight: 300;
  text-align: center;
}
.basket .basket-second-header .total {
  font-size: 14px;
}
.basket .basket-second-header .total strong {
  font-size: 18px;
  font-weight: inherit;
}
.basket .basket-content {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
}
.basket .basket-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: var(--widget-padding);
}
.basket .basket-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: var(--widget-padding);
  background: var(--color-brighter-bg);
}
.basket .basket-item .info {
  margin-right: auto;
}
.basket .basket-item .options {
  list-style-position: inside;
}
.basket .basket-item .options:has(li) {
  padding: 5px 0;
}
.basket .basket-item .options li {
  display: block;
  padding: 1px 0;
}
.basket .basket-item .options li::before {
  content: "";
  display: inline-block;
  margin-right: 0.4em;
  width: 3px;
  height: 3px;
  vertical-align: middle;
  background-color: currentColor;
  border-radius: 50%;
}
.basket .basket-item .title {
  font-size: 20px;
  font-weight: 600;
}
.basket .basket-item .price {
  color: var(--color-primary);
  font-size: 14px;
}
.basket .basket-item .price strong {
  font-size: 18px;
  font-weight: inherit;
}
.basket .basket-item .quantity-field {
  --btn-size: 38px;
}
.basket .basket-item .remove {
  --btn-size: 40px;
  --btn-icon: url("https://template-assets.tebex.io/images/delete.svg");
  --btn-icon-size: 24px;
  flex: none;
}
.basket .basket-checkout {
  margin-top: auto;
  padding: 0 var(--content-padding) 50px;
}
@media (width > 960px) {
  .basket .basket-checkout {
    padding-bottom: 100px;
  }
}
.basket .basket-checkout h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--widget-padding);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}
.basket .basket-checkout .total {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 400;
}
.basket .basket-checkout .total strong {
  font-size: 24px;
  font-weight: inherit;
}
.basket .basket-checkout .checkout {
  width: 100%;
}

.basket-popup .popup-scroll-cont {
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0;
}

@media (pointer: coarse) {
  .basket-popup .popup-scroll-cont {
    align-items: flex-start;
  }
}

/* Tebex'in kendi popup-close butonunu basket'ta gizle — bizim basket-close-btn var */
.basket-popup .popup-close {
  display: none !important;
}

.basket-popup-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.55);
  transition: translate var(--fade-duration) ease-in-out;
  position: fixed;
  top: 0;
  right: 0;
}

/* Basket header */
.basket .basket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 20px 18px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.basket .basket-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.basket .basket-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(249,250,251,0.75);
}

.basket .basket-header-icon svg {
  width: 18px;
  height: 18px;
}

.basket .basket-ign {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basket .basket-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(249,250,251,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.basket .basket-close-btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.basket .basket-close-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

.basket .basket-second-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  font-weight: 500;
  color: rgba(249,250,251,0.6);
}

.basket .basket-second-header .total strong {
  font-size: 16px;
  font-weight: 600;
  color: #22c55e;
}

/* Basket items */
.basket .basket-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.basket .basket-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.basket .basket-item .title {
  font-size: 15px;
  font-weight: 600;
  color: #fafafa;
}

.basket .basket-item .title a {
  color: inherit;
  text-decoration: none;
}

.basket .basket-item .price {
  font-size: 13px;
  color: #22c55e;
  margin-top: 4px;
}

.basket .basket-item .price strong {
  font-size: 15px;
  font-weight: 600;
}

/* Quantity field */
.basket .basket-item .quantity-field {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.basket .basket-item .quantity-field .adjust {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}

.basket .basket-item .quantity-field .adjust:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.basket .basket-item .quantity-field .adjust:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.basket .basket-item .quantity-field input.quantity {
  width: 40px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
}

.basket .basket-item .quantity-field input.quantity::-webkit-outer-spin-button,
.basket .basket-item .quantity-field input.quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove button */
.basket .basket-item .remove,
.basket .basket-item .basket-remove-btn {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(249,250,251,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  --btn-size: 32px;
  --btn-icon: none;
}

.basket .basket-item .remove svg,
.basket .basket-item .basket-remove-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  pointer-events: none;
}

.basket .basket-item .remove:hover,
.basket .basket-item .basket-remove-btn:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.35);
  color: #ef4444;
}

/* Checkout footer */
.basket .basket-checkout {
  margin-top: auto;
  padding: 16px 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.basket .basket-checkout h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(249,250,251,0.5);
}

.basket .basket-checkout .total strong {
  font-size: 22px;
  font-weight: 700;
  color: #22c55e;
}

.basket .basket-checkout .checkout {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: rgba(250,250,250,0.96);
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.basket .basket-checkout .checkout:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
@starting-style {
  .basket-popup-content {
    translate: 100% 0;
  }
}
:root .basket-popup[hidden] .basket-popup-content {
  translate: 100% 0;
}
.basket-popup-content.updating {
  pointer-events: none;
}
.basket-popup-content.updating::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  margin: auto;
  width: 38px;
  height: 38px;
  background-color: var(--color-text);
  mask: url("https://template-assets.tebex.io/images/loading.svg") center center/contain no-repeat;
}
.basket-popup-content.updating > * {
  filter: grayscale(100%);
}

.toaster {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  position: fixed;
  bottom: var(--widget-padding);
  left: 0;
  right: 0;
  z-index: 10000;
  margin: 0 auto;
  padding: 0 var(--widget-padding);
  width: 100%;
  height: 100%;
  max-width: 520px;
  pointer-events: none;
}
.toaster:empty {
  display: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  padding: 0 8px 0 24px;
  background: var(--color-brighter-bg);
  font-size: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
@starting-style {
  .toast {
    opacity: 0;
    height: 0;
  }
}
.toast[hidden] {
  display: block;
  opacity: 0;
  height: 0;
}
.toast.toast-warning {
  background: #cab600;
}
.toast.toast-error {
  background: #C12E2E;
}
.toast.toast-success {
  background: #4caf50;
}

.toast-close {
  margin-left: auto;
  flex: none;
  width: 30px;
  height: 30px;
  opacity: 0.5;
  line-height: 0;
  font-size: 0;
  color: transparent;
  transition: opacity 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.toast-close::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--color-text);
  mask: url("https://template-assets.tebex.io/images/close.svg") center center/20px no-repeat;
}
.toast-close:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.store-category-tiered {
  --gap: calc(var(--widget-padding) * .75);
  padding: var(--widget-padding);
}

.store-category-tiered-header {
  margin-bottom: var(--widget-padding);
  font-size: 18px;
}
.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,
.store-category-tiered-header p {
  margin-bottom: 24px;
}

.store-products-tiered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--gap);
}

.store-product-tiered {
  --border-color: rgb(from var(--color-text) r g b / .1);
  --primary-color: rgb(from var(--color-primary) r g b / .25);
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  gap: var(--gap);
  padding: var(--gap);
}
.store-product-tiered.store-product-cta {
  background-image: linear-gradient(to bottom, transparent 67%, var(--primary-color));
}
.store-product-tiered .image {
  margin: auto;
  max-width: 100%;
  object-fit: contain;
}
.store-product-tiered .product-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}
.store-product-tiered .countdown {
  display: block;
  margin-top: 4px;
  color: var(--color-removed);
  font-size: 0.75em;
  font-variant-numeric: tabular-nums;
}
.store-product-tiered .countdown::before {
  content: "";
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 0.25em;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask: url("https://template-assets.tebex.io/images/countdown.svg") center center/contain no-repeat;
}
.store-product-tiered .descr {
  padding-block: var(--gap);
  border-block: 1px solid var(--border-color);
  color: var(--color-text-secondary);
}
.store-product-tiered .price {
  font-size: 14px;
  text-align: center;
}
.store-product-tiered .price .discount {
  margin-right: 1ch;
  color: var(--color-removed);
  font-weight: 400;
  text-decoration-line: line-through;
}
.store-product-tiered .price strong {
  font-size: 20px;
  font-weight: inherit;
}
.store-product-tiered .actions {
  gap: var(--gap);
}
.store-product-tiered .actions .wide {
  width: 100%;
}

.store-quote {
  padding: var(--widget-padding);
}
.store-quote .wide {
  flex: 1 1 50%;
}


/* ===== Featured Scripts Widget Override =====
   JS dönüşümü tamamlanana kadar Tebex widget'ını gizle (flash önleme) */

.scripts-grid--featured .widget-featured {
  display: none !important;
}


/* ===== MOBİL DÜZELTMELER ===== */

/* FAQ: mobilde görsel alta, sorular üste */
@media (max-width: 991px) {
  .faq-container {
    display: flex !important;
    flex-direction: column !important;
  }

  .faq-right {
    order: 2 !important;
    height: 200px !important;
    min-height: unset !important;
    max-height: 200px !important;
    border-bottom: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-right: none !important;
  }

  .faq-left {
    order: 1 !important;
  }
}

/* Discord banner: mobilde görsel taşmasın */
@media (max-width: 991px) {
  .banner-box-inner {
    grid-template-columns: 1fr !important;
    overflow: hidden;
  }

  .banner-box-right {
    height: 180px;
    min-height: unset !important;
    max-height: 180px !important;
    overflow: hidden;
    position: relative;
  }

  .banner-box-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 767px) {
  .banner-box-inner {
    grid-template-columns: 1fr !important;
    overflow: hidden;
  }

  .banner-box-right {
    height: 160px;
    min-height: unset !important;
    max-height: 160px !important;
    overflow: hidden;
  }

  .banner-box-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
  }
}
