﻿:root {
  --bg-1: #4dbd87;
  --bg-2: #2f7a63;
  --bg-3: #141a22;
  --panel: #182331;
  --panel-2: #1f2f42;
  --line: #5fd7b8;
  --text: #f3f8ff;
  --muted: #b8c9d9;
  --mint: #7df0cf;
  --purple: #cc47dd;
  --purple-dark: #9022b5;
  --shadow: 0 14px 0 rgba(10, 14, 21, 0.36);
}

* { box-sizing: border-box; }
html, body { margin: 0; }

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

body {
  font-family: 'Baloo 2', 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 42%, var(--bg-3) 100%);
  min-height: 100vh;
}

.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border: 3px solid rgba(180, 255, 230, 0.24);
  border-radius: 24px;
  --spin: 0deg;
  --mx: 0px;
  --my: 0px;
  transform: translate3d(calc(var(--dx, 0px) + var(--mx)), calc(var(--dy, 0px) + var(--my)), 0) rotate(calc(var(--rot, -12deg) + var(--spin)));
  animation:
    shapeFloat var(--dur, 5.5s) ease-in-out infinite,
    shapeSpin var(--spinDur, 80s) linear infinite;
}

.s1 { width: 180px; height: 180px; top: 10%; left: -40px; --dx: 0px; --dy: 0px; --rot: -12deg; --dur: 4.8s; --spinDur: 82s; }
.s2 { width: 140px; height: 140px; top: 26%; right: 7%; --dx: 0px; --dy: 0px; --rot: 8deg; --dur: 5.2s; --spinDur: 76s; }
.s3 { width: 120px; height: 120px; bottom: 18%; left: 8%; --dx: 0px; --dy: 0px; --rot: -7deg; --dur: 5.7s; --spinDur: 88s; }
.s4 { width: 220px; height: 220px; bottom: 8%; right: -40px; --dx: 0px; --dy: 0px; --rot: 12deg; --dur: 5.4s; --spinDur: 78s; }

@keyframes shapeFloat {
  0% {
    transform: translate3d(calc(var(--dx, 0px) + var(--mx)), calc(var(--dy, 0px) + var(--my)), 0) rotate(calc(var(--rot, -12deg) + var(--spin)));
  }
  50% {
    transform: translate3d(calc(var(--dx, 0px) + var(--mx) + 34px), calc(var(--dy, 0px) + var(--my) - 24px), 0) rotate(calc(var(--rot, -12deg) + var(--spin) + 8deg));
  }
  100% {
    transform: translate3d(calc(var(--dx, 0px) + var(--mx)), calc(var(--dy, 0px) + var(--my)), 0) rotate(calc(var(--rot, -12deg) + var(--spin)));
  }
}

@keyframes shapeSpin {
  from { --spin: 0deg; }
  to { --spin: 360deg; }
}

.topbar,
.page {
  position: relative;
  z-index: 2;
}

.topbar {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: 8px;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid #8ff5d9;
  image-rendering: pixelated;
}

.logo-text {
  display: grid;
  line-height: 1;
}

.logo-text strong {
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.2px;
  font-size: 31px;
  font-weight: 800;
  line-height: 0.9;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.26);
}

.logo-text span {
  font-size: 13px;
  color: #d7e7f7;
  letter-spacing: 0.2px;
  font-weight: 700;
  opacity: 0.95;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.main-tabs a {
  text-decoration: none;
  color: #e8fff7;
  border: 2px solid rgba(130, 239, 207, 0.55);
  background: rgba(14, 33, 46, 0.42);
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  padding: 6px 12px;
  transition: transform .14s ease, filter .14s ease;
}

.main-tabs a:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn {
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 9px 14px;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s ease, filter .14s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-account {
  color: #ffe4ff;
  background: linear-gradient(160deg, var(--purple), var(--purple-dark));
  border-color: #f2adff;
}

.btn-cart {
  color: #dcfbf2;
  background: #182838;
  border-color: #6ee5c5;
}

.btn-cart span {
  display: inline-block;
  min-width: 24px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--mint);
  color: #043a35;
}

.page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}

.panel {
  background: linear-gradient(180deg, var(--panel), #13202d);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px 28px 20px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.hero-logo {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  border: 3px solid #9af7dd;
  image-rendering: pixelated;
}

.hero h1 {
  margin: 0;
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 1px;
  font-size: clamp(36px, 5.3vw, 76px);
  line-height: 0.95;
  font-weight: 400;
  text-shadow: 0 5px 0 rgba(9, 14, 25, 0.35);
}

.hero p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
}

.btn-main {
  color: #0f342f;
  background: linear-gradient(160deg, #9effde, #64e9c0);
  border-color: #d3ffef;
}

.server-section {
  margin-top: 14px;
  padding: 16px 18px;
  position: relative;
  display: grid;
  gap: 10px;
}

.server-section-left {
  display: grid;
  gap: 4px;
}

.server-label {
  margin: 0;
  color: #87ebcd;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.server-section-left h2 {
  margin: 0;
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(36px, 2.4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.8px;
  line-height: 0.86;
}

.server-section-left p {
  margin: 0;
  font-size: clamp(18px, 1.2vw, 24px);
  font-weight: 700;
}

.server-ip-line {
  display: block;
  width: 100%;
  color: #dffef4;
  background: rgba(12, 36, 46, 0.8);
  border: 2px solid rgba(129, 241, 208, 0.42);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  text-align: center;
}

.btn-copy-ip {
  color: #0f342f;
  background: linear-gradient(160deg, #9effde, #64e9c0);
  border-color: #d3ffef;
  white-space: nowrap;
  min-width: 152px;
  padding: 10px 12px;
}

.btn-copy-ip-header {
  min-width: 132px;
  padding: 9px 11px;
}

.btn-copy-ip-floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  box-shadow: 0 8px 18px rgba(5, 11, 20, 0.38);
}

.btn-copy-ip-float {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.shop {
  margin-top: 20px;
}

.shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.shop-head h2 {
  margin: 0;
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 1px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 2px solid #6adfc0;
  background: #183244;
  color: #ecf8ff;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
}

.chip.is-active {
  background: linear-gradient(160deg, #9effde, #64e9c0);
  color: #043936;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
  align-items: start;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 206px;
}

.product-card.is-hidden { display: none; }

.product-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #234058;
  border: 2px solid #76ebcc;
}

.product-card h3 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1;
}

.product-card p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 18px;
}

.product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-bottom strong {
  font-size: 32px;
  line-height: 1;
}

.btn-buy {
  color: #0c3935;
  background: linear-gradient(160deg, #9effde, #64e9c0);
  border-color: #d3ffef;
  padding: 8px 12px;
}

.cart {
  padding: 12px;
  position: sticky;
  top: 10px;
}

.cart h3 {
  margin: 0 0 8px;
  font-family: 'Luckiest Guy', cursive;
  font-size: 34px;
  letter-spacing: 1px;
  font-weight: 400;
}

.cart-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-height: 290px;
  overflow: auto;
}

.cart-items li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  background: #132638;
  border: 2px solid #4bb79f;
  border-radius: 14px;
  padding: 7px;
}

.cart-items li strong {
  line-height: 1;
}

.cart-items li span {
  display: block;
  color: var(--muted);
}

.cart-item-remove {
  border: 0;
  background: #602533;
  color: #ffd4de;
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
}

.cart-empty { margin: 0; color: var(--muted); }

.cart-summary {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 26px;
}

.cart-checkout {
  width: 100%;
  margin-top: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 12, 18, 0.76);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 12px;
}

.modal.is-open { display: flex; }

.modal-card {
  width: min(420px, 100%);
  padding: 14px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 2px solid #8cefd2;
  border-radius: 10px;
  background: #1a2f44;
  color: #eafaff;
  font-size: 24px;
  cursor: pointer;
}

.modal-card h3 {
  margin: 0;
  font-family: 'Luckiest Guy', cursive;
  font-size: 36px;
  letter-spacing: 1px;
  font-weight: 400;
}

.modal-total {
  margin: 6px 0 10px;
  color: var(--muted);
}

#checkout-form {
  display: grid;
  gap: 8px;
}

#checkout-form label {
  display: grid;
  gap: 4px;
  font-weight: 800;
}

#checkout-form input {
  border: 2px solid #72e8c8;
  border-radius: 12px;
  background: #102333;
  color: #f4fbff;
  font: inherit;
  padding: 8px 10px;
}

.checkout-result {
  min-height: 22px;
  margin: 8px 0 0;
  color: #98ffdd;
  font-weight: 800;
}

@media (max-width: 980px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .cart {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    top: auto;
    max-height: 68vh;
    overflow: auto;
    transform: translateY(115%);
    transition: transform .25s ease;
    z-index: 30;
  }

  .cart.is-open {
    transform: translateY(0);
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .server-section {
    padding-top: 60px;
  }

  .server-section-left {
    text-align: center;
  }

  .btn-copy-ip {
    width: auto;
  }

  .server-ip-line {
    font-size: 16px;
    padding: 11px;
  }

  .btn-copy-ip-float {
    top: 10px;
    right: 10px;
    min-width: 132px;
    padding: 8px 10px;
  }

  .main-tabs {
    display: none;
  }

  .logo-text strong { font-size: 22px; }
  .logo-text span { font-size: 11px; }
  .btn-account { padding: 8px 10px; }
  .btn-copy-ip-header { padding: 8px 10px; min-width: 120px; }
  .btn-copy-ip-floating { right: 10px; bottom: 10px; }

  .products {
    grid-template-columns: 1fr;
  }

  .product-card h3 { font-size: 26px; }
  .product-bottom strong { font-size: 28px; }

  .hero h1 {
    font-size: clamp(30px, 12vw, 46px);
  }

  .hero p {
    font-size: 18px;
  }
}
