:root {
  color-scheme: dark;
  --bg: #050a12;
  --surface: #0b1524;
  --surface-2: #0f1c2e;
  --surface-3: #14243a;
  --line: rgba(137, 169, 209, .14);
  --line-strong: rgba(137, 169, 209, .24);
  --text: #e7eef8;
  --muted: #8393aa;
  --blue: #3b82f6;
  --blue-soft: #73a9f8;
  --blue-deep: #1e5fbf;
  --green: #39c787;
  --danger: #fb7185;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 50% -15%, rgba(44, 104, 184, .16), transparent 34rem), var(--bg);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.muted { color: var(--muted); font-size: 12px; }

.announcement {
  min-height: 34px;
  padding: 8px 16px;
  color: #768ba6;
  background: #03070d;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  text-align: center;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .18em;
}
.announcement span { color: var(--blue-soft); }

.masthead {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(54, 118, 205, .24), transparent 30rem),
    #08111e;
  background-size: 40px 40px, 40px 40px, auto, auto;
  border-bottom: 1px solid var(--line);
}
.masthead::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -130px;
  top: -230px;
  border: 1px solid rgba(91, 151, 234, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(91,151,234,.025), 0 0 0 84px rgba(91,151,234,.018);
}
.masthead-inner {
  position: relative;
  z-index: 1;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.identity { display: inline-flex; align-items: center; gap: 16px; }
.identity img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 1px solid rgba(154, 192, 239, .24);
  border-radius: 16px;
  filter: saturate(.72) contrast(1.04);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}
.identity h1 { margin: 0; color: var(--text); font-size: 29px; line-height: 1; letter-spacing: -.045em; }
.identity h1 span { color: var(--blue-soft); }
.identity p { margin: 8px 0 0; color: #8091aa; font-size: 12px; }

.button {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f4f8ff;
  background: var(--blue-deep);
  border: 1px solid rgba(122, 178, 255, .24);
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(9, 72, 157, .22);
  font-weight: 750;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); background: #2871d5; border-color: rgba(147, 195, 255, .4); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button.small { min-height: 36px; padding-inline: 14px; font-size: 12px; }
.button.secondary { color: #b9c9dd; background: rgba(13, 28, 47, .72); border-color: var(--line-strong); box-shadow: none; }
.button.secondary:hover { color: white; background: var(--surface-3); }
.button.full { width: 100%; }

.nav-shell { position: relative; z-index: 3; margin-top: -1px; }
.store-nav {
  min-height: 58px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(9, 18, 31, .94);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.19);
  backdrop-filter: blur(16px);
}
.store-nav a { padding: 10px 14px; color: #7f90a8; border-radius: 8px; font-size: 12px; font-weight: 700; transition: color .15s ease, background .15s ease; }
.store-nav a:hover, .store-nav a.active { color: #d9e9ff; background: rgba(59, 130, 246, .11); }
.store-nav span { flex: 1; }
.store-nav a:last-child { color: var(--blue-soft); }

.store-content { padding: 36px 0 62px; }
.store-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 24px; align-items: start; }
.sidebar { display: grid; gap: 14px; }
.panel {
  overflow: hidden;
  background: rgba(11, 21, 36, .92);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.panel-head { padding: 14px 16px; background: rgba(255,255,255,.015); border-bottom: 1px solid var(--line); }
.panel h2 { margin: 0; color: #c9d6e7; font-size: 12px; letter-spacing: .025em; }
.category { margin: 8px; padding: 10px; display: flex; align-items: center; gap: 10px; color: #a8b8cc; border-radius: 9px; }
.category.active { color: #dceaff; background: rgba(59, 130, 246, .1); }
.category b { margin-left: auto; padding: 2px 7px; color: #7fa7d9; background: rgba(4,12,22,.55); border: 1px solid var(--line); border-radius: 99px; font-size: 10px; }
.mini-coin { width: 30px; height: 30px; display: grid; place-items: center; color: #cfe2ff; background: #15345c; border: 1px solid #346eae; border-radius: 50%; font-size: 12px; font-weight: 900; }
.server-status { padding: 17px 16px 14px; display: flex; align-items: center; gap: 12px; }
.server-status i { width: 9px; height: 9px; flex: 0 0 auto; background: #66768b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(102,118,139,.11); }
.server-status i.online { background: var(--green); box-shadow: 0 0 0 4px rgba(57,199,135,.11); }
.server-status div { min-width: 0; display: grid; }
.server-status strong { color: #cfdced; font-size: 12px; }
.server-status span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; }
.panel > .button { width: calc(100% - 28px); margin: 0 14px 14px; }
.buyers { padding: 4px 14px; }
.buyer { padding: 10px 0; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(141,169,204,.09); }
.buyer:last-child { border-bottom: 0; }
.buyer img { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; image-rendering: pixelated; }
.buyer div { min-width: 0; display: grid; }
.buyer strong { overflow: hidden; color: #c7d4e5; font-size: 11px; text-overflow: ellipsis; }
.buyer span { color: #718198; font-size: 10px; }
.help { padding: 17px; background: linear-gradient(145deg, #0d1e33, #102744); }
.help p { margin: 7px 0 14px; color: #8499b5; font-size: 11px; }
.help .button { margin: 0; color: #cfe2ff; background: #1b4f8f; border-color: rgba(115,169,248,.23); }

.category-heading { min-height: 68px; margin-bottom: 19px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.category-heading small { display: block; margin-bottom: 5px; color: #538acb; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.category-heading h2 { margin: 0; color: #e5edf8; font-size: 26px; line-height: 1.1; letter-spacing: -.035em; }
.category-heading p { margin: 6px 0 0; color: #718198; font-size: 12px; }
.category-heading > span { padding: 6px 10px; color: #7990ac; background: rgba(16,29,47,.78); border: 1px solid var(--line); border-radius: 7px; font-size: 10px; font-weight: 750; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(16, 29, 48, .98), rgba(10, 20, 34, .98));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product::before { content: ""; position: absolute; z-index: 2; inset: 0 auto auto 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(116,173,252,.28), transparent); }
.product:hover { transform: translateY(-4px); border-color: rgba(111,163,232,.29); box-shadow: 0 20px 44px rgba(0,0,0,.26); }
.product-art {
  position: relative;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(57,118,196,.17), transparent 41%), linear-gradient(180deg, rgba(255,255,255,.015), transparent);
  border-bottom: 1px solid var(--line);
}
.product-art::after { content: ""; position: absolute; width: 126px; height: 126px; border: 1px solid rgba(106, 158, 225, .08); border-radius: 50%; box-shadow: 0 0 0 22px rgba(106,158,225,.025); }
.coin-art {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #d7e9ff;
  background: linear-gradient(145deg, #173b68, #0d2748);
  border: 2px solid #356da9;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #102e52, 0 13px 30px rgba(0,0,0,.32);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.05em;
}
.badge { position: absolute; z-index: 3; top: 12px; right: 12px; padding: 4px 8px; color: #bad8ff; background: rgba(27,79,143,.64); border: 1px solid rgba(112,169,244,.2); border-radius: 6px; font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.badge.featured-badge { left: 12px; right: auto; color: #111; background: linear-gradient(135deg, #facc15, #eab308); border: 0; font-size: 9px; font-weight: 900; }
.badge.discount-badge { right: 12px; color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); border: 0; font-size: 10px; font-weight: 900; }
.package-prices { margin-top: 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.old-price { color: #718096; font-size: 13px; text-decoration: line-through; }
.current-price { color: #38bdf8; font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.package-tags { margin: 12px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-savings { display: inline-flex; align-items: center; padding: 4px 10px; color: #4ade80; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .3); border-radius: 20px; font-size: 10px; font-weight: 800; }
.tag-bonus { display: inline-flex; align-items: center; padding: 4px 10px; color: #f97316; background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .3); border-radius: 20px; font-size: 10px; font-weight: 800; }
.product-info { padding: 17px; }
.product-info h3 { margin: 0; color: #dde7f4; font-size: 16px; letter-spacing: -.015em; }
.product-info > p { min-height: 18px; margin: 5px 0 16px; color: #718198; font-size: 10px; }
.product-bottom { padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(137,169,209,.1); }
.price { display: grid; }
.price span { color: #607188; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.price strong { color: #a9ceff; font-size: 15px; letter-spacing: -.015em; }
.product .button { min-width: 82px; background: #1c579d; box-shadow: none; }
.notice { margin-top: 18px; padding: 13px 16px; display: flex; gap: 8px 15px; color: #9abbe2; background: rgba(18, 48, 82, .34); border: 1px solid rgba(93, 149, 218, .15); border-radius: 10px; font-size: 11px; }
.notice span { color: #7087a4; }

.modal { position: fixed; z-index: 50; inset: 0; padding: 20px; display: none; place-items: center; background: rgba(2, 6, 12, .82); backdrop-filter: blur(8px); }
.modal.open { display: grid; }
.modal-panel { width: min(430px, 100%); padding: 23px; background: #0c1727; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.52); }
.modal-head { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-head small { color: #629ce5; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.modal-head h2 { margin: 4px 0 0; color: #e1eaf6; font-size: 21px; }
.modal-head button { width: 34px; height: 34px; color: #8d9db2; background: #142338; border: 1px solid var(--line); border-radius: 8px; font-size: 20px; line-height: 1; }
.summary { padding: 11px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(137,169,209,.1); font-size: 12px; }
.summary span { color: #72839a; }
.summary strong { color: #ccd8e8; }
.summary.total { margin: 15px 0; font-size: 15px; }
.summary.total strong { color: #9ec8ff; }
form { margin-top: 17px; }
form label { display: block; margin: 13px 0 6px; color: #aebdd0; font-size: 11px; font-weight: 750; }
form input { width: 100%; height: 44px; padding: 0 12px; color: #e1eaf5; background: #08121f; border: 1px solid var(--line-strong); border-radius: 8px; outline: none; }
form input:focus { border-color: #376fac; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.form-error { min-height: 18px; margin: 0 0 8px; color: var(--danger); font-size: 11px; }

footer { padding: 25px 0; color: #586b83; background: #03070d; border-top: 1px solid rgba(255,255,255,.05); font-size: 10px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.payment-page { min-height: 100vh; padding: 30px 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 0, rgba(39,88,151,.23), transparent 34rem), #040911; }
.payment-card { width: min(410px, 100%); padding: 29px; background: #0b1524; border: 1px solid var(--line-strong); border-radius: 15px; box-shadow: var(--shadow); text-align: center; }
.identity.compact img { width: 45px; height: 45px; border-radius: 11px; }
.identity.compact h1 { color: var(--text); font-size: 20px; }
.payment-icon { width: 64px; height: 64px; margin: 28px auto 15px; display: grid; place-items: center; color: #cfe2ff; background: #174a82; border: 1px solid #3974b5; border-radius: 50%; font-size: 19px; font-weight: 900; }
.payment-icon.success { color: #d7ffec; background: #176044; border-color: #358f6a; }
.payment-card h2 { margin: 0; color: #e2ebf6; font-size: 21px; }
.payment-card > p { margin: 7px 0 22px; color: var(--muted); font-size: 12px; }
.order-box { margin-bottom: 20px; padding: 13px; display: grid; background: #0e1d30; border: 1px solid var(--line); border-radius: 9px; }
.order-box span { color: var(--muted); font-size: 11px; }

@media (max-width: 920px) {
  .store-layout { grid-template-columns: 218px minmax(0, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .container { width: min(100% - 24px, 1160px); }
  .masthead-inner { min-height: 108px; }
  .identity img { width: 54px; height: 54px; border-radius: 13px; }
  .identity h1 { font-size: 24px; }
  .identity p { display: none; }
  .store-nav { overflow-x: auto; }
  .store-nav a { white-space: nowrap; }
  .store-layout { grid-template-columns: 1fr; }
  .main-store { order: 1; }
  .sidebar { order: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar .panel:first-child, .sidebar .help { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-art { height: 130px; }
  .coin-art { width: 66px; height: 66px; font-size: 23px; }
}
@media (max-width: 520px) {
  .masthead .button { display: none; }
  .store-nav a:last-child { display: none; }
  .category-heading > span { display: none; }
  .category-heading h2 { font-size: 23px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-art { height: 136px; }
  .sidebar { grid-template-columns: 1fr; }
  .notice { display: grid; }
  .footer-inner { display: grid; gap: 5px; }
  .modal-panel { padding: 20px; }
}
