html {
  scrollbar-gutter: stable;
}

:root {
  --bg: #07070b;
  --bg-elevated: #0e0e14;
  --surface: #13131c;
  --surface-2: #1a1a26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f3f7;
  --muted: #9b9bb0;
  --accent: #ef4444;
  --accent-2: #b91c1c;
  --accent-glow: rgba(239, 68, 68, 0.35);
  --gold: #fbbf24;
  --prime: #38bdf8;
  --amethyst: #c084fc;
  --crimson: #fb7185;
  --donut: #dc2626;
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 72px;
  --topbar-h: 40px;
  --accent-rgb: 239, 68, 68;
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 3px solid var(--bg);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Slim Scrollbar for Internal Containers */
.cart-drawer-body::-webkit-scrollbar,
.hero-perks::-webkit-scrollbar,
.login-body::-webkit-scrollbar,
#pdModalDesc::-webkit-scrollbar,
#pageModalContent::-webkit-scrollbar {
  width: 6px;
}
.cart-drawer-body::-webkit-scrollbar-thumb,
.hero-perks::-webkit-scrollbar-thumb,
.login-body::-webkit-scrollbar-thumb,
#pdModalDesc::-webkit-scrollbar-thumb,
#pageModalContent::-webkit-scrollbar-thumb {
  border-width: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.topbar {
  height: var(--topbar-h);
  background: #050508;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s;
}

.ip-copy:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 61, 138, 0.35);
}

.ip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: none;
}

.ip-text {
  font-family: ui-monospace, monospace;
  color: var(--text);
}

.ip-action {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.topbar-links {
  display: flex;
  gap: 18px;
}

.tb-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.tb-link:hover {
  color: var(--text);
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-start;
  margin-left: 12px;
}

.nav-link {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--surface-2);
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
}

.nav-link:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-link.is-active {
  background: var(--accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text);
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.cart-ico {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 6px 6px;
  position: relative;
}

.cart-ico::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 2px;
  right: 2px;
  height: 4px;
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.cart-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  padding-right: 16px;
}

.cart-header-btn .cart-ico {
  flex-shrink: 0;
}

.cart-header-btn .cart-header-label {
  font-weight: 700;
  margin: 0 2px;
}

.cart-header-btn .badge {
  margin-left: 4px;
}

.badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 61, 138, 0.45);
  color: var(--text);
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 61, 138, 0.1);
  border-color: var(--accent);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: 32px 0 40px;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.grad {
  color: var(--accent);
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

.hero-card {
  border-radius: calc(var(--radius) + 6px);
  padding: 1px;
  background: var(--surface-2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  display: flex; /* Ensure it can contain stretched inner */
  min-width: 0;
}

.hero-card-inner {
  background: linear-gradient(160deg, var(--rank-bg) 0%, var(--rank-bg-2) 100%);
  border-radius: calc(var(--radius) + 5px);
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  width: 100%;
}

#heroRankTabs.hero-rank-tabs-vertical {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: space-evenly;
  gap: 12px;
  padding: 0 0 0 1px;
}

#heroRankTabs .rank-tab-sq {
  flex-shrink: 0;
}

.hero-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

.hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 8px;
}

.price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
}

.price .currency {
  font-size: 22px;
  font-weight: 700;
  margin-right: 2px;
  opacity: 0.9;
}

.price-note {
  font-size: 13px;
  color: #fff;
  opacity: 0.85;
}

.hero-perks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #fff;
  height: 165px;
  overflow-y: auto;
  padding-right: 8px;
  position: relative;
}

.hero-perks::-webkit-scrollbar {
  width: 4px;
}
.hero-perks::-webkit-scrollbar-track {
  background: transparent;
}
.hero-perks::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.hero-perks span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.hero-perks span::before {
  content: "\2022";
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  opacity: 0.7;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: -10px;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-hint.is-visible {
  opacity: 0.95;
}

/* Categories */
.categories {
  padding: 8px 0 32px;
}

.cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.chip.is-active {
  color: #fff;
  background: rgba(255, 61, 138, 0.18);
  border-color: rgba(255, 61, 138, 0.45);
}

/* Packages */
.packages {
  padding-bottom: 32px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.pkg-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}

.pkg-card.featured {
  border-color: rgba(255, 61, 138, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 61, 138, 0.2), 0 20px 50px rgba(255, 61, 138, 0.12);
}

.pkg-ribbon {
  position: absolute;
  top: 14px;
  right: -32px;
  transform: rotate(38deg);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 40px;
  z-index: 2;
}

.pkg-media {
  height: 120px;
  background: var(--surface-2);
  position: relative;
}

.pkg-media::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 18px;
  opacity: 0.9;
}

.tier-gold .pkg-media::after {
  background: #fbbf24;
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.35);
}

.tier-prime .pkg-media::after {
  background: #38bdf8;
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.35);
}

.tier-amethyst .pkg-media::after {
  background: linear-gradient(135deg, #c084fc, #7c3aed);
  box-shadow: 0 12px 40px rgba(192, 132, 252, 0.35);
}

.tier-crimson .pkg-media::after {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  box-shadow: 0 12px 40px rgba(251, 113, 133, 0.35);
}

.tier-donut .pkg-media::after {
  background: linear-gradient(135deg, #ff5c9d, #a855f7);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.tier-keys .pkg-media.keys::after {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: 0 12px 40px rgba(148, 163, 184, 0.3);
}

.pkg-body {
  padding: 20px 22px 22px;
}

.pkg-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.pkg-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  min-height: 40px;
}

.pkg-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.pkg-price .currency {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.85;
  margin-right: 2px;
}

/* CTA band */
.cta-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 40px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.cta-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 24px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 280px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

body.cart-open {
  overflow: hidden;
}

.badge.is-empty {
  opacity: 0.65;
}

/* Cart drawer */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 99998;
  backdrop-filter: blur(4px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.cart-backdrop[hidden] {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: calc(100% - 32px);
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 24px 64px rgba(0, 0, 0, 0.6);
  opacity: 1;
  visibility: visible;
  transform-origin: top right;
  transform: scale(1) translate(0, 0);
  transition: opacity 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.1),
              transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.1),
              visibility 0.35s;
}

.cart-drawer[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85) translate(40px, -40px);
  pointer-events: none;
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.cart-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0.85;
  transition: background 0.2s, border-color 0.2s;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
}

.cart-drawer-body::-webkit-scrollbar,
#pageModalContent::-webkit-scrollbar,
#pdModalDesc::-webkit-scrollbar {
  width: 4px;
}
.cart-drawer-body::-webkit-scrollbar-thumb,
#pageModalContent::-webkit-scrollbar-thumb,
#pdModalDesc::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cart-line {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-line:last-child {
  border-bottom: none;
}

.cart-line-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.cart-line-name {
  font-weight: 700;
  font-size: 15px;
}

.cart-line-meta {
  font-size: 12px;
  color: var(--muted);
}

.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cart-qty {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}

.cart-qty:hover {
  border-color: rgba(255, 61, 138, 0.4);
  background: rgba(255, 61, 138, 0.08);
}

.cart-qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-line-sum {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
}

.cart-remove {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
}

.cart-remove:hover {
  color: var(--accent);
}

.cart-drawer-foot {
  padding: 20px 22px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.cart-discount-box {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.cart-discount-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.cart-discount-input::placeholder {
  color: var(--muted);
}

.cart-discount-input:focus {
  border-color: rgba(255, 61, 138, 0.5);
}

.cart-discount-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
}

.cart-total-row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.cart-clear-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.cart-clear-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.price-old-red {
  color: #ff4d4d;
  text-decoration: line-through;
  font-size: 0.8em;
  font-weight: 500;
}

button.btn-primary,
button.btn-secondary,
button.btn-outline {
  font: inherit;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 420px;
  }

  .main-nav {
    display: none;
  }

  .pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden;
  }

  main,
  .site-header,
  .hero,
  .container {
    max-width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: stretch;
  }

  #heroImgContainer {
    display: none !important;
  }

  .hero-rank-wrap {
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
    gap: 11px;
  }

  .hero-rank-wrap .hero-card {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .hero-rank-wrap .hero-card-inner,
  #heroCard {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .brand-mark {
    display: none;
  }

  #heroRankSideImg {
    width: 120px !important;
    height: 160px !important;
    right: 8px !important;
    bottom: 82px !important;
  }

  #heroCardName {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 8px;
  }

  #heroCard > div:first-child {
    min-width: 0;
    overflow: hidden;
  }

  .topbar-links {
    display: none;
  }

  .header-actions .btn-ghost span:not(.badge) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .pkg-grid {
    grid-template-columns: 1fr;
  }

  /* Global Scrollbar Reset */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.3s;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes bouncePrice {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.75); }
  60%  { transform: scale(1.1); }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.price-bounce {
  display: inline-block;
  animation: bouncePrice 0.4s ease forwards;
}

@keyframes rankSwitchBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.rank-switch-bounce {
  animation: rankSwitchBounce 0.25s ease-in-out forwards;
}

/* Hero Overlay */
.hero-image-frame { position: relative; cursor: pointer; border-radius: 24px; overflow: hidden; }
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  border-radius: 24px;
}
.hero-image-frame:hover img {
  filter: brightness(0.7) !important;
}
.hero-image-frame:hover .hero-image-overlay {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  opacity: 1;
}
.hero-image-overlay span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.15em;
  transform: translateY(15px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.hero-image-frame:hover .hero-image-overlay span {
  transform: translateY(0);
}

.rank-tab-sq:hover { transform: scale(1.05); opacity: 0.9; }
.rank-tab-sq.is-active {
  border-color: var(--btn-glow-color) !important;
  transform: scale(1.04);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--btn-glow-color) 70%, transparent),
    0 0 12px color-mix(in srgb, var(--btn-glow-color) 55%, transparent);
  opacity: 1;
  filter: brightness(1.06);
}

/* Global Backdrop & Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 99998;
  display: none;
  animation: fadeIn 0.3s ease;
  pointer-events: auto;
}

.modal-backdrop:not([hidden]) {
  display: block;
}

#page-wrapper {
  transition: filter 0.3s ease, transform 0.3s ease;
  will-change: filter;
}

#page-wrapper.is-blurred {
  filter: blur(8px) brightness(0.7);
  pointer-events: none;
  user-select: none;
}

.login-modal, .faq-modal, .page-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 99999;
  width: 90%;
  max-width: 440px;
  box-sizing: border-box;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  animation: modalScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  pointer-events: auto;
}

.login-modal[hidden], .faq-modal[hidden], .page-modal[hidden] { 
  display: none !important; 
}

.login-head {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.login-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin: 0; }
.login-close { 
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 32px;
  line-height: 0.85;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s, background 0.2s;
}
.login-close:hover { color: #fff; transform: translateY(-1px); }

#btnCancelPayment {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0.85;
}

#profileModal .login-body {
  padding: 32px 28px 32px 24px;
}

.login-body { padding: 32px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalScaleIn {
  from { opacity: 0; transform: translate3d(-50%, -45%, 0) scale(0.95); }
  to { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
}

#loginModal .login-head,
#registerModal .login-head {
  padding: 22px 24px;
}

#loginModal .login-body,
#registerModal .login-body {
  padding: 28px 32px 32px;
  box-sizing: border-box;
}

#loginModal .form-group,
#registerModal .form-group {
  width: 100%;
  box-sizing: border-box;
}

.spinner {
  width: 40px; height: 40px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modern Login Inputs */
.admin-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 8px;
}

.admin-input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  outline: none;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Profile Button & Menu */
.btn-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-profile:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-profile .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  color: #fff;
}

.btn-profile .name {
  font-weight: 700;
  font-size: 14px;
}

.login-modal .btn-block {
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 14px;
}

/* --- İlk yükleme: site teması + hafif toprak tonu, modern tipografi --- */
body.app-loading-active {
  overflow: hidden;
}

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg, #07070b);
  background-image:
    radial-gradient(ellipse 95% 65% at 50% -10%, rgba(139, 115, 85, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(101, 67, 33, 0.09) 0%, transparent 48%),
    radial-gradient(ellipse 55% 40% at 0% 90%, rgba(62, 45, 28, 0.07) 0%, transparent 45%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.app-loading--exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loading__panel {
  width: min(320px, 90vw);
  text-align: center;
  padding: 32px 28px 30px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface, #13131c) 72%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
}

@supports not (background: color-mix(in srgb, black, white)) {
  .app-loading__panel {
    background: rgba(19, 19, 28, 0.82);
  }
}

.app-loading__label {
  margin: 0 0 8px;
  font-family: var(--font-display, "Outfit", system-ui, sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text, #f3f3f7);
}

.app-loading__sub {
  margin: 0 0 22px;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted, #9b9bb0);
}

.app-loading__bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.app-loading__bar-fill {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    var(--accent, #ef4444),
    rgba(255, 255, 255, 0.35)
  );
  animation: app-loading-bar-slide 1.05s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.28);
}

@keyframes app-loading-bar-slide {
  0% {
    transform: translate3d(-115%, 0, 0);
  }
  100% {
    transform: translate3d(320%, 0, 0);
  }
}

.app-loading--exiting .app-loading__bar-fill {
  animation: none;
  width: 100%;
  transform: none;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .app-loading__bar-fill {
    animation: none;
    width: 100%;
    opacity: 0.92;
  }
}

