:root {
  --bg: #06110a;
  --bg-soft: #0b1911;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(124, 255, 138, 0.14);
  --white: #f4fff6;
  --muted: rgba(244, 255, 246, 0.72);
  --muted-2: rgba(244, 255, 246, 0.5);
  --green: #7cff8a;
  --green-2: #46e86f;
  --green-3: #baffcc;
  --blue-rank: #6fd8ff;
  --gold-rank: #ffd76a;
  --ruby-rank: #ff5d6c;
  --danger: #ff7b88;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1200px;
  --header-height: 84px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(124, 255, 138, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(70, 232, 111, 0.08), transparent 26%),
    linear-gradient(180deg, #041008 0%, #07120b 50%, #041008 100%);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 255, 138, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 138, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: 6%;
  right: 6%;
  background: rgba(124, 255, 138, 0.12);
}

.orb-2 {
  width: 280px;
  height: 280px;
  bottom: 8%;
  left: 8%;
  background: rgba(70, 232, 111, 0.12);
}

.glass,
.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(124, 255, 138, 0.12);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 255, 138, 0.25);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(124, 255, 138, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 16px auto 0;
  width: min(100% - 20px, calc(var(--container) + 20px));
  border-radius: 24px;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #06110a;
  background: linear-gradient(135deg, #dfffe7 0%, #7cff8a 55%, #46e86f 100%);
  box-shadow:
    0 8px 20px rgba(124, 255, 138, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.brand-name {
  position: relative;
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  line-height: 1;
  background: linear-gradient(90deg, #b8ffcb 0%, #7cff8a 25%, #38ef7d 50%, #9dffb3 75%, #7cff8a 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandFlow 4s linear infinite;
  text-shadow: 0 0 18px rgba(124, 255, 138, 0.22);
}

.brand-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(124, 255, 138, 0.95), transparent);
  box-shadow: 0 0 14px rgba(124, 255, 138, 0.55);
  animation: brandUnderline 2.6s ease-in-out infinite;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px; 
  flex-wrap: wrap;
}

.desktop-nav a {
  color: var(--muted);
  transition: 0.25s ease;
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  padding-bottom: 4px;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(124,255,138,0.1), rgba(124,255,138,0.9), rgba(124,255,138,0.1));
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(124, 255, 138, 0.3);
}

.desktop-nav a:hover {
  color: var(--white);
  text-shadow: 0 0 10px rgba(124, 255, 138, 0.2);
}

.desktop-nav a:hover::after {
  width: 70%; 
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-summary {
  padding: 10px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  transition: background-color 0.2s ease;
}

.wallet-summary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.wallet-summary-label {
  color: var(--muted-2);
  font-size: 0.88rem;
}

.mobile-menu-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: none; 
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: 0.25s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


.mobile-nav {
  display: none; 
  flex-direction: column; 
  gap: 8px; 
  padding: 12px 16px; 
  margin: 0 12px 12px; 
  border-radius: 18px; 
  background: rgba(255, 255, 255, 0.05); 
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px); 
}

.mobile-nav.active {
  display: flex; 
}

.mobile-nav a {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  width: 100%; 
  padding: 10px 16px; 
  border: none; 
  border-radius: 10px; 
  background-color: transparent;
  color: var(--white); 
  font-size: 0.92rem; 
  font-weight: 500; 
  text-decoration: none; 
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; 
  text-align: center; 
  white-space: nowrap; 
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.12); 
  color: var(--green); 
  transform: translateY(-2px); 
  box-shadow: 0 0 8px rgba(124, 255, 138, 0.2); 
}


.mobile-nav a.active {
  background-color: var(--green); 
  color: var(--bg); 
  border-color: var(--green);
}


.btn {
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 700;
  transition: 0.28s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn:disabled,
.qty-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn-lg {
  padding: 15px 22px;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #7cff8a 0%, #46e86f 100%);
  color: #07110b;
  border: 1px solid rgba(124, 255, 138, 0.35);
  box-shadow:
    0 10px 30px rgba(70, 232, 111, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px rgba(70, 232, 111, 0.28),
    0 0 20px rgba(124, 255, 138, 0.16);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 255, 138, 0.2);
  background: rgba(255,255,255,0.08);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 84px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(124, 255, 138, 0.8);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-brand {
  background: linear-gradient(90deg, #d8ffe2 0%, #7cff8a 30%, #43f08b 60%, #baffcc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(124, 255, 138, 0.24);
  animation: heroBrandGlow 5s ease-in-out infinite;
}

.hero-separator {
  color: rgba(124, 255, 138, 0.9);
  margin: 0 0.35rem;
}

.hero-description {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 2.05;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-actions .btn {
  min-height: 52px;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.meta-item {
  padding: 16px 18px;
  border-radius: 18px;
  min-width: 170px;
}

.meta-label {
  display: block;
  color: var(--muted-2);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.server-card {
  border-radius: 26px;
  padding: 24px;
}

.server-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-label,
.section-kicker {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--green-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 800;
}

.server-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.live-badge {
  background: rgba(124, 255, 138, 0.12);
  border: 1px solid rgba(124, 255, 138, 0.22);
  color: var(--green);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.server-stats {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.server-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}

.server-stat span {
  color: var(--muted);
}

.online-text {
  color: var(--green);
}

.server-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  position: relative;
  z-index: 1;
  padding: 52px 0;
}

.section-head.centered {
  text-align: center;
  margin-bottom: 28px;
}

section h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  max-width: 720px;
  color: rgba(255,255,255,0.72);
  line-height: 1.9;
  margin: 0 auto 2rem;
}

.about-grid,
.features-grid,
.stats-grid,
.rules-grid,
.ranks-grid,
.shop-grid {
  display: grid;
  gap: 18px;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.rules-grid {
  grid-template-columns: repeat(2, 1fr);
}

.ranks-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shop-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-card,
.feature-card,
.stat-card,
.rule-item,
.rank-card,
.shop-card {
  border-radius: var(--radius);
  padding: 24px;
  transition: 0.3s ease;
}

.about-card h3,
.feature-card h3,
.rule-item h3,
.rank-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.about-card p,
.feature-card p,
.rule-item p {
  color: var(--muted);
  line-height: 1.95;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(124,255,138,0.2), rgba(70,232,111,0.06));
  border: 1px solid rgba(124,255,138,0.18);
}

.rank-card {
  position: relative;
  overflow: hidden;
  padding-top: 20px;
}

.rank-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(124,255,138,0.15), rgba(124,255,138,0.9), rgba(124,255,138,0.15));
}

.rank-member::before {
  background: linear-gradient(90deg, rgba(124,255,138,0.15), rgba(111,216,255,0.95), rgba(124,255,138,0.15));
}

.rank-elite::before {
  background: linear-gradient(90deg, rgba(111,216,255,0.15), rgba(124,255,138,0.9), rgba(111,216,255,0.15));
}

.rank-legendary::before {
  background: linear-gradient(90deg, rgba(255,215,106,0.15), rgba(140, 108, 255, 0.95), rgba(255,215,106,0.15));
}

.rank-mythic::before {
  background: linear-gradient(90deg, rgba(255,93,108,0.15), rgba(255, 231, 93, 0.95), rgba(255,93,108,0.15));
}

.rank-image-wrap {
  height: 160px;
  border-radius: 18px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rank-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-top {
  margin-bottom: 16px;
}

.rank-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--green-3);
}

.rank-theme {
  color: var(--muted);
  line-height: 1.8;
}

.rank-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.rank-price strong {
  font-size: 1.1rem;
}

.rank-price span {
  color: var(--muted-2);
  font-size: 0.92rem;
}

.rank-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.rank-features li {
  color: var(--muted);
  line-height: 1.8;
  padding-right: 18px;
  position: relative;
}

.rank-features li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--green);
}

.shop-category {
  margin-top: 26px;
}

.shop-category + .shop-category {
  margin-top: 36px;
}

.shop-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.shop-category-head h3 {
  font-size: 1.35rem;
}

.shop-category-head span {
  color: var(--muted-2);
  font-size: 0.95rem;
}

.shop-card {
  text-align: center;
}

.shop-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: drop-shadow(0 10px 18px rgba(124, 255, 138, 0.12));
}

.shop-card h4 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.shop-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.shop-price {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(124,255,138,0.08);
  color: var(--green-3);
  border: 1px solid rgba(124,255,138,0.14);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.product-open-btn {
  width: 100%;
}

.status-wrapper {
  border-radius: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.status-content p {
  color: var(--muted);
  line-height: 2;
  max-width: 680px;
}

.status-panel {
  display: grid;
  gap: 12px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}

.status-row span {
  color: var(--muted);
}

.status-copy {
  margin-top: 8px;
  width: 100%;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  color: var(--green);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--muted);
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 20px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  color: var(--white);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--green);
  transition: 0.3s ease;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-answer p {
  color: var(--muted);
  line-height: 1.95;
  padding: 0 22px 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.cta-box {
  border-radius: 30px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-box p {
  color: var(--muted);
  line-height: 2;
  max-width: 760px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 26px 0 34px;
}

.footer-inner {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p,
.footer-meta span {
  color: var(--muted);
}

.footer-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand-name::after {
  display: none;
}


.header-actions .wallet-summary,
.header-actions .btn-support,
.header-actions .copy-ip-btn {
  padding: 10px 16px;
  border-radius: 16px;
  min-height: 46px;
  font-size: 0.94rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-actions .wallet-summary {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  cursor: pointer;
}

.header-actions .wallet-summary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-actions .btn-support {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-actions .btn-support:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--green);
  transform: translateY(-2px);
}

.header-actions .copy-ip-btn {
  background: rgba(124, 255, 138, 0.1);
  color: var(--green-3);
  border: 1px solid rgba(124, 255, 138, 0.2);
}

.header-actions .copy-ip-btn:hover {
  background: rgba(124, 255, 138, 0.2);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(124, 255, 138, 0.3);
}


.floating-cart-btn {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  z-index: 160;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7cff8a 0%, #46e86f 100%);
  color: #06110a;
  box-shadow:
    0 18px 36px rgba(70, 232, 111, 0.28),
    0 0 20px rgba(124, 255, 138, 0.18);
}

.floating-cart-icon {
  font-size: 1.45rem;
}

.floating-cart-count {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #07110b;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 900;
  border: 2px solid rgba(6, 17, 10, 0.9);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 5, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: min(100%, 720px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 28px;
  padding: 28px;
  position: relative;
}

.product-modal-box {
  width: min(100%, 860px);
}

.cart-modal-box,
.wallet-modal-box {
  width: min(100%, 760px);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.4rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.product-modal-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.product-modal-image-wrap {
  border-radius: 22px;
  padding: 20px;
  min-height: 280px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-image {
  width: 100%;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
}

.product-modal-type {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--green-3);
  background: rgba(124,255,138,0.08);
  border: 1px solid rgba(124,255,138,0.18);
}

.product-modal-info h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.product-modal-info p {
  color: var(--muted);
  line-height: 1.95;
}

.product-modal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.product-modal-price,
.product-modal-period {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 800;
}

.modal-add-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

.modal-added-state {
  display: none;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.modal-added-state.active {
  display: flex;
}

.added-label {
  color: var(--green);
  font-weight: 800;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(124,255,138,0.12);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  border: 1px solid rgba(124,255,138,0.2);
}

.qty-btn:hover:not(:disabled) {
  background: rgba(124,255,138,0.2);
}

.qty-value {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}

.modal-note {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.modal-header-row {
  margin-bottom: 18px;
}

.modal-header-row h3 {
  font-size: 1.6rem;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.cart-item-image-wrap {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.cart-item-info h4 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.cart-item-meta {
  color: var(--muted);
  line-height: 1.85;
}

.cart-item-price {
  color: var(--green-3);
  font-weight: 800;
  margin-top: 8px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.remove-item-btn {
  background: rgba(255, 93, 108, 0.12);
  color: #ffd9de;
  border: 1px solid rgba(255, 93, 108, 0.2);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
}

.cart-empty {
  display: none;
  padding: 18px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  margin-top: 8px;
}

.cart-empty.active {
  display: block;
}

.cart-summary {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary-row + .cart-summary-row {
  margin-top: 12px;
}

.checkout-btn {
  width: 100%;
  margin-top: 18px;
  min-height: 52px;
}

.wallet-modal-content {
  display: grid;
  gap: 18px;
}

.wallet-balance-card {
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.wallet-balance-card span {
  color: var(--muted);
}

.wallet-balance-card strong {
  font-size: 2rem;
  color: var(--green);
}

#toast-container {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--white);
  background: rgba(8, 18, 12, 0.92);
  border: 1px solid rgba(124,255,138,0.18);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn 0.28s ease forwards;
}

.toast.success {
  border-color: rgba(124,255,138,0.26);
}

.toast.error {
  border-color: rgba(255, 93, 108, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.float-anim {
  animation: float 3.8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes brandFlow {
  0% {
    background-position: 0% center;
    filter: drop-shadow(0 0 0 rgba(124,255,138,0.15));
  }
  50% {
    background-position: 100% center;
    filter: drop-shadow(0 0 10px rgba(124,255,138,0.35));
  }
  100% {
    background-position: 0% center;
    filter: drop-shadow(0 0 0 rgba(124,255,138,0.15));
  }
}

@keyframes brandUnderline {
  0%, 100% {
    opacity: 0.45;
    transform: scaleX(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes heroBrandGlow {
  0%, 100% {
    background-position: 0% center;
    filter: drop-shadow(0 0 4px rgba(124,255,138,0.15));
  }
  50% {
    background-position: 100% center;
    filter: drop-shadow(0 0 12px rgba(124,255,138,0.35));
  }
}

@keyframes toastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .status-wrapper,
  .product-modal-content {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .about-grid,
  .stats-grid,
  .rules-grid,
  .ranks-grid,
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-modal-image-wrap {
    min-height: 220px;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-actions .btn:not(.mobile-menu-btn),
  .wallet-summary {
    display: none;
  }

  .mobile-menu-btn {
    display: flex; 
  }

  .site-header {
    width: min(100% - 16px, calc(var(--container) + 16px));
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    line-height: 1.25;
  }

  .header-inner {
    padding: 0 14px;
  }
}

@media (max-width: 720px) {
  .features-grid,
  .about-grid,
  .stats-grid,
  .rules-grid,
  .ranks-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-meta,
  .server-actions,
  .cta-actions,
  .footer-meta,
  .modal-add-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .server-actions .btn,
  .cta-actions .btn,
  .modal-add-row .btn {
    width: 100%;
  }

  .server-stat,
  .status-row,
  .footer-inner,
  .shop-category-head,
  .rank-price,
  .server-card-top,
  .cart-summary-row,
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-box,
  .status-wrapper,
  .server-card,
  .rank-card,
  .shop-card,
  .modal-box {
    padding: 22px;
  }

  .cart-item {
    display: flex;
  }

  .cart-item-actions {
    width: 100%;
    align-items: stretch;
  }

  .meta-item {
    width: 100%;
  }

  .hero-description,
  .section-subtitle,
  .cta-box p,
  .status-content p,
  .about-card p,
  .feature-card p,
  .rule-item p,
  .faq-answer p,
  .rank-theme,
  .rank-features li,
  .shop-card p,
  .product-modal-info p,
  .cart-item-meta {
    line-height: 1.9;
  }

  .rank-image-wrap {
    height: 190px;
  }

  .shop-image {
    width: 82px;
    height: 82px;
  }

  .floating-cart-btn {
    left: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
  }

  #toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    min-width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .site-header {
    margin-top: 10px;
    border-radius: 18px;
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero {
    padding: 42px 0 22px;
  }

  .hero-badge {
    font-size: 0.84rem;
    padding: 10px 14px;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 14px;
  }

  .hero-description {
    font-size: 0.97rem;
  }

  .section {
    padding: 42px 0;
  }

  section h2 {
    font-size: 1.65rem;
  }

  .faq-question {
    padding: 18px;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 18px 18px;
  }

  
  .mobile-nav {
    margin: 0 8px 10px; 
    padding: 10px 12px; 
    gap: 6px; 
  }

  .mobile-nav a {
    padding: 8px 12px; 
    font-size: 0.9rem; 
  }

  .modal-close-btn {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
  }

  .product-modal-info h3,
  .modal-header-row h3 {
    font-size: 1.35rem;
  }

  .wallet-balance-card strong {
    font-size: 1.6rem;
  }
}
.shop-card {
  position: relative;
}

.item-amount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(124, 255, 138, 0.18);
  backdrop-filter: blur(6px);
  color: #7cff8a;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  z-index: 10;
  border: 1px solid rgba(124, 255, 138, 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}
