body {
  min-height: 100vh;
  margin: 0;
  background: url('/images/bg.png') no-repeat center center fixed, radial-gradient(ellipse at 60% 40%, #081c2c 0%, #1d284d 100%);
  background-size: cover;
  color: #fff;
  font-family: 'Orbitron', Arial, sans-serif;
  overflow-x: hidden;
}

/* === HEADER === */
.sonic-header {
  width: 100%;
  background: linear-gradient(90deg, #10153e 60%, #1e284d 100%);
  box-shadow: 0 2px 12px 0 #0ff3, 0 1px 0 #181b2f;
  min-height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.header-content {
  display: flex;
  align-items: center;
  height: 64px;
  max-width: 1500px;
  margin: 0 auto;
  justify-content: space-between;
  padding: 0 24px;
}
.logo-animate {
  font-size: 2.1rem;
  letter-spacing: 2px;
  font-weight: 900;
  background: linear-gradient(90deg, #00ffe7, #ff48ea, #ffef40, #00ffe7, #0a70ff, #00ffe7);
  background-size: 500% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoRainbow 5s linear infinite;
  text-shadow: 0 0 16px #0ff8, 0 0 44px #09f4;
  margin-bottom: 0;
}
@keyframes logoRainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.burger {
  display: none;
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.18rem;
  padding: 14px 32px;
  border-radius: 24px;
  background: linear-gradient(120deg, #10194a 60%, #163782 100%);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 0 18px #00ffe7a2;
  font-family: 'Orbitron', Arial, sans-serif;
}
.nav-links a.active,
.nav-links a:hover {
  background: #10285a;
  color: #00ffe7;
  transform: scale(1.08);
  box-shadow: 0 0 26px #00ffe7e0;
}

/* === BALANCE / WELCOME === */
.sc-balance-block {
  margin: 90px auto 26px auto;
  max-width: 660px;
  background: linear-gradient(90deg, #18233a 70%, #21e5e6 180%);
  border-radius: 28px;
  box-shadow: 0 0 34px #19f8f444;
  padding: 30px 22px 24px 22px;
  border: 2.5px solid #18f3e6;
  text-align: center;
  position: relative;
}
.sc-title-welcome {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0 0 16px 0;
  background: linear-gradient(90deg, #00ffe7, #ffe53b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 22px #00ffe7a9;
}
.balance-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.sonic-coin {
  font-size: 1.28rem;
  margin-bottom: 6px;
  font-family: 'Orbitron', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
#sonicCoinBalance {
  color: #12ffe7;
  font-weight: 700;
  margin-left: 3px;
  text-shadow: 0 0 12px #18eaffbb;
  font-size: 1.18em;
}
.how-to-earn {
  background: linear-gradient(90deg,#ffe53b,#00ffe7);
  color: #232f3b;
  border: none;
  padding: 13px 48px;
  border-radius: 18px;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.27rem;
  margin: 22px 0 0 0;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 26px #ffe53b88, 0 0 12px #19ffe2bb;
  transition: background .17s, color .14s;
}
.how-to-earn:hover {
  background: #ffe53b;
  color: #171b45;
}
.skins-switch-btn {
  margin-top: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #12163c;
  border-radius: 18px;
  font-size: 1.38rem;
  color: #00ffe7;
  padding: 14px 70px;
  font-family: 'Orbitron', Arial, sans-serif;
  box-shadow: 0 0 20px #00ffe7c5;
  border: none;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 1px;
  transition: background 0.16s, color 0.13s, transform 0.14s;
}
.skins-switch-btn:hover {
  background: linear-gradient(90deg, #18f3e6 0%, #ffe53b 100%);
  color: #1a1a1a;
  transform: scale(1.08);
}

/* === Категории/Сортировка === */
.category_row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 32px auto 28px auto;
  max-width: 1300px;
}
.categories-select-block {
  min-width: 148px;
  font-size: 1.16rem;
}
.categories-select {
  font-size: 1.22rem;
  border-radius: 12px;
  padding: 11px 32px 11px 20px;
  background: linear-gradient(90deg, #18233a 80%, #1bf0ff 180%);
  color: #0cf9ff;
  border: 2.5px solid #18f3e6;
  font-family: 'Orbitron', Arial, sans-serif;
  margin-right: 12px;
  min-width: 110px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 10px #19f0e322;
}
.sort-label {
  font-size: 1.5rem;
  font-family: 'Orbitron', Arial, sans-serif;
  color: #ffe53b;
  margin-left: 14px;
  margin-right: 4px;
  font-weight: 700;
  letter-spacing: 1px;
}
.sort-select {
  font-size: 1.22rem;
  border-radius: 12px;
  padding: 11px 34px 11px 18px;
  background: linear-gradient(90deg, #181f3a 60%, #0ff 120%);
  color: #0cf9ff;
  border: 2.5px solid #18f3e6;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 8px #19f0e344;
}

/* === PRODUCT GRID & CARD === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1420px;
  margin: 0 auto 56px auto;
  padding: 0 16px 16px 16px;
  justify-items: center;
}
.product-card {
  background: linear-gradient(120deg, #162645 65%, #13373a 130%);
  border-radius: 22px;
  box-shadow: 0 6px 38px #19f0e333, 0 0 0 2.5px #13faff88;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 3px solid #18f3e699;
  width: 100%;
  max-width: 320px;
  min-width: 210px;
  min-height: 400px;
  position: relative;
  margin: 0 auto;
  transition: transform .13s, box-shadow .13s;
}
.product-card:hover {
  transform: scale(1.035);
  box-shadow: 0 10px 40px #0ff8, 0 0 0 3.5px #18f3e6cc;
}
.product-img-block {
  width: 100%;
  height: 70%;
  min-height: 168px;
  max-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11192c;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0 14px #00ffe7cc;
  background: #151b2f;
}
.product-info-block {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 0 8px 0;
}
.product-title {
  font-size: 1.31rem;
  color: #ffe53b;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-align: center;
  margin: 10px 0 4px 0;
  text-shadow: 0 0 14px #ffe53bbb;
  line-height: 1.12em;
}
.product-price {
  font-size: 1.13rem;
  color: #12ffe7;
  text-shadow: 0 0 14px #12ffe7cc;
  font-family: 'Orbitron', Arial, sans-serif;
  text-align: center;
  margin-bottom: 7px;
}
.product-btns-row {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 3px;
}
.details-btn, .add-btn {
  background: linear-gradient(90deg, #18f3e6 0%, #ffe53b 100%);
  color: #172e3c;
  font-size: 1.03rem;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 12px 26px;
  margin: 4px 0;
  box-shadow: 0 0 18px #18f3e677;
  cursor: pointer;
  transition: background .15s, color .12s;
}
.details-btn:hover, .add-btn:hover {
  background: #ffe53b;
  color: #132248;
}

/* === CART === */
.cart-fab {
  position: fixed;
  bottom: 28px;
  right: 32px;
  z-index: 2020;
  background: linear-gradient(90deg, #13faff 0%, #ffe53b 100%);
  color: #0a2342;
  border: none;
  border-radius: 50%;
  width: 68px;
  height: 68px;
  box-shadow: 0 0 28px #19f8f477;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.42rem;
  cursor: pointer;
  outline: none;
}
.cart-count-badge {
  background: #ffef40;
  color: #0a2342;
  font-weight: 700;
  border-radius: 50%;
  font-size: 1.12rem;
  padding: 6px 12px;
  margin-left: 8px;
  box-shadow: 0 0 10px #ffe53b99;
}
.cart-modal-bg, .product-modal-bg {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 2222;
  background: rgba(11, 20, 36, 0.90);
  justify-content: center;
  align-items: center;
  animation: fadeIn .19s;
}
.cart-modal-bg.active, .product-modal-bg.active {
  display: flex;
}
.cart-modal, .product-modal {
  background: linear-gradient(120deg, #18233a 92%, #0ff2 160%);
  border-radius: 22px;
  max-width: 440px;
  min-width: 260px;
  width: 98vw;
  padding: 28px 18px 19px 18px;
  box-shadow: 0 6px 32px #00ffe7b2, 0 0 0 2.5px #18f3e6bb;
  position: relative;
  animation: fadeInUp .19s;
  text-align: center;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: none;}
}
.close-cart-btn {
  position: absolute;
  top: 9px; right: 15px;
  font-size: 2.3rem;
  color: #19ffe2;
  background: none; border: none;
  cursor: pointer;
  font-family: 'Orbitron', Arial, sans-serif;
  z-index: 15;
}
.cart-title {
  font-size: 1.55rem;
  color: #00ffe7;
  font-weight: 700;
  font-family: 'Orbitron', Arial, sans-serif;
  margin-bottom: 12px;
}
.cart-list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 14px;
  color: #fff;
  text-align: left;
}
.cart-actions {
  margin-top: 16px;
  text-align: center;
}
.checkout-btn {
  padding: 13px 36px;
  border-radius: 13px;
  font-size: 1.17rem;
  font-family: 'Orbitron', Arial, sans-serif;
  background: linear-gradient(90deg,#ffe53b,#00ffe7);
  color: #172e3c;
  font-weight: bold;
  border: none;
  box-shadow: 0 0 12px #18f3e699;
  cursor: pointer;
  margin-top: 5px;
}
.checkout-btn:hover {
  background: #ffe53b;
  color: #181b4b;
}

/* === PRODUCT POPUP === */
.product-modal {
  max-width: 550px;
  width: 99vw;
}
.modal-title {
  font-size: 1.36rem;
  color: #ffe53b;
  font-family: 'Orbitron', Arial, sans-serif;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.modal-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #222e48;
}
.modal-content {
  max-height: 210px;
  overflow-y: auto;
  text-align: left;
  font-size: 1.09rem;
  padding: 6px 3px 13px 3px;
}
.modal-qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 15px 0 2px 0;
}

/* === FORMS === */
#orderForm input, #orderForm select {
  padding: 13px 8px;
  border-radius: 8px;
  border: 2px solid #18f3e655;
  margin: 0 0 8px 0;
  width: 96%;
  font-size: 1.1rem;
  font-family: 'Orbitron', Arial, sans-serif;
  background: #191d33;
  color: #fff;
}
#orderForm input:focus, #orderForm select:focus {
  outline: 2.5px solid #00ffe7;
  background: #1d2d45;
}
#orderForm button { margin-top: 13px; }

/* === ADAPTATION === */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr);}
  .category_row { flex-direction: column; align-items: flex-start; gap: 17px; }
  .sc-balance-block { max-width: 99vw; }
}
@media (max-width: 700px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 13px; }
  .sc-balance-block { margin-top: 76px; }
  .product-card { min-width: 0; max-width: 97vw; }
  .cart-fab { width: 56px; height: 56px; font-size: 1.7rem; }
}
@media (max-width: 540px) {
  .sc-title-welcome { font-size: 1.19rem; }
  .category_row { flex-direction: column; gap: 11px;}
  .cart-fab { right: 11px; bottom: 13px;}
  .product-card { border-radius: 16px; }
}

/* === BURGER === */
@media (max-width: 900px) {
  .burger { display: flex; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; z-index: 110; margin-left: auto; }
  .burger-bar { display: block; width: 28px; height: 4px; background: #00ffe7; margin: 3px 0; border-radius: 3px; box-shadow: 0 0 6px #00ffe7a7;}
  .nav-links {
    position: fixed;
    left: 0; top: 64px;
    width: 100vw;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(130deg, #151d38f2 80%, #0cf9ff11 100%);
    box-shadow: 0 6px 30px #00ffe7aa;
    border-radius: 0 0 18px 18px;
    z-index: 120;
    padding: 14px 0 10px 0;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.27s cubic-bezier(.29,1.27,.61,.91), opacity 0.16s;
    justify-content: center;
    align-items: center;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all;}
  .nav-links a { width: 90vw; text-align: center; margin: 0; padding: 16px 0; border-radius: 10px; font-size: 1.14rem; box-shadow: none; background: none; border-bottom: 1px solid #00ffe733; display: block; }
  .nav-links a:last-child { border-bottom: none; }
}
/* Красивая строка для чекбокса SC Discount */
.order-sc-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 16px 0 14px 0;
  font-size: 1.23em;
  color: #22f6ee;
}
.order-sc-row input[type="checkbox"] {
  width: 26px;
  height: 26px;
  accent-color: #ffe53b;
  border-radius: 8px;
  border: 2px solid #22f6ee;
  box-shadow: 0 0 8px #ffe53b99;
  margin-right: 6px;
  transition: box-shadow .15s;
}
.order-sc-row input[type="checkbox"]:checked {
  box-shadow: 0 0 14px 2px #ffe53b, 0 0 22px #22f6ee;
  border-color: #ffe53b;
}
.order-sc-row img {
  height: 24px;
  vertical-align: middle;
  margin: 0 2px 0 6px;
  filter: drop-shadow(0 0 6px #ffe53baa);
}

/* Красивая кнопка покупки/подтверждения */
.buy-btn, .checkout-btn {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.43em;
  padding: 14px 46px;
  background: linear-gradient(90deg, #ffe53b 0%, #22f6ee 100%);
  color: #1d2233;
  border: none;
  border-radius: 17px;
  box-shadow: 0 0 22px #22f6ee77;
  font-weight: 700;
  cursor: pointer;
  margin: 24px 0 10px 0;
  transition: transform .1s, box-shadow .13s;
}
.buy-btn:hover, .checkout-btn:hover {
  filter: brightness(1.14) drop-shadow(0 0 9px #ffe53baa);
  transform: scale(1.06);
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 7px; background: #192e48; }
::-webkit-scrollbar-thumb { background: #13faff88; border-radius: 7px;}
::-webkit-scrollbar-thumb:hover { background: #ffe53baa;}


/* Чтобы рамки были только у чекбоксов, не трогая описание! */
.modal-features-ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
  max-height: 130px;
  overflow-y: auto;
}
.modal-features-ul li {
  border: 1.2px solid #1de9f3;
  border-radius: 7px;
  padding: 7px 8px;
  margin-bottom: 7px;
  background: rgba(22,32,48,0.17);
  display: flex;
  align-items: center;
  transition: border 0.16s;
}
