@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --text: #e8efff;
  --muted: #98a3bd;
  --line: rgba(112, 132, 176, 0.28);
  --accent: #2f76ff;
  --accent-2: #1d9bf0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Manrope, Arial, sans-serif; color: var(--text); background: linear-gradient(180deg, #0c101b 0%, #121827 60%, #0d111d 100%); }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 24px)); margin: 0 auto; }
.hidden { display: none !important; }

.topbar { position: sticky; top: 8px; z-index: 30; width: min(1180px, calc(100% - 24px)); margin: 0 auto; border: 1px solid rgba(108,130,177,.25); border-radius: 14px; background: rgba(17,23,40,.96); }
.nav { display: grid; grid-template-columns: auto minmax(260px,1fr) auto; gap: 12px; align-items: center; padding: 8px 14px; }
.brand { font-weight: 800; font-size: 22px; padding: 7px 12px 7px 10px; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(106,129,175,.34); background: rgba(255,255,255,.04); color: #e8efff; font-size: 22px; cursor: pointer; }
.nav-links { display: flex; justify-content: flex-end; gap: 6px; }
.nav-links a { color: #a4b2cf; font-size: 12px; font-weight: 600; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; }
.nav-links a:hover { color: #e7eeff; border-color: rgba(106,129,175,.34); background: rgba(255,255,255,.05); }

.hero { padding: 14px 0 12px; }
.hero-card { min-height: 200px; padding: 26px; border-radius: 14px; border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(90deg, rgba(11,17,30,.88) 0%, rgba(11,17,30,.55) 60%, rgba(11,17,30,.88) 100%), url("https://cdn.akamai.steamstatic.com/store/home/store_home_share.jpg"); }
.eyebrow { display: inline-block; margin-bottom: 12px; padding: 7px 11px; border-radius: 999px; background: rgba(47,118,255,.2); font-size: 12px; font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 6px; }
.hero-card p { color: #c4d0eb; line-height: 1.6; }
.steam-logo { width: clamp(130px, 17vw, 220px); object-fit: contain; }

.section { padding: 12px 0 22px; }
.panel,.product,.feature { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(33,42,66,.92) 0%, rgba(24,31,50,.92) 100%); }
.panel { padding: 22px; }
.replenish-panel { padding: 10px; }
.section-header p { color: var(--muted); line-height: 1.55; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 8px; }
.feature {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(94, 123, 184, 0.34);
  box-shadow: 0 14px 28px rgba(5, 10, 23, 0.3);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  border-color: rgba(83, 150, 255, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(8, 16, 35, 0.42);
}
.icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(53, 118, 235, 0.28), rgba(73, 145, 255, 0.16));
  border: 1px solid rgba(103, 156, 255, 0.46);
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1;
}
.feature h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.2; letter-spacing: -0.2px; }
.feature p { color: #b3bfd8; line-height: 1.6; font-size: 14px; }
.quick-order-form { display: grid; grid-template-columns: 1.45fr 1fr 1fr 170px; gap: 8px; align-items: end; }
.quick-service { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(85,112,166,.5); border-radius: 11px; background: #111a30; padding: 10px 12px; height: 54px; }
.quick-field input,input { width: 100%; height: 54px; border-radius: 11px; border: 1px solid rgba(85,112,166,.5); background: #0f182d; color: #ebf2ff; padding: 12px 14px; outline: none; }
.discount-badge { margin-left: auto; min-width: 56px; height: 22px; border-radius: 999px; display: inline-flex; justify-content: center; align-items: center; font-size: 16px; font-weight: 800; background: linear-gradient(135deg, #2f76ff, #1ca5ff); }

.btn { border: 1px solid transparent; border-radius: 10px; padding: 11px 16px; font-weight: 800; font-size: 14px; cursor: pointer; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.quick-submit { width: 100%; min-height: 54px; border-radius: 11px; }

.notice { margin: 12px 0; border-radius: 12px; padding: 12px 13px; font-size: 13px; }
.notice.info { color: #d7e7ff; border: 1px solid rgba(62,133,255,.4); background: rgba(42,104,214,.2); }
.notice.success { color: #dfffe8; border: 1px solid rgba(34,197,94,.45); background: rgba(34,197,94,.14); }
.hint { color: var(--muted); font-size: 12px; margin-top: 8px; }

.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.product { padding: 16px; }
.accounts-page .hero-card {
  background:
    linear-gradient(90deg, rgba(11,17,30,.88) 0%, rgba(11,17,30,.55) 60%, rgba(11,17,30,.88) 100%),
    url("https://images.steamusercontent.com/ugc/493519450183038433/7766E6F16031671F6F1049919D0A28AA8E6B9599/");
}
.product-account-card {
  container-type: inline-size;
  container-name: account-card;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}
.account-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.account-avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; object-fit: cover; border: 1px solid rgba(112,148,224,.45); background: #0f1b33; }
.account-meta { min-width: 0; flex: 1; }
.account-nick { display: block; font-size: 14px; line-height: 1.2; }
.account-link {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #9db4e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.account-link:hover { color: #d9e6ff; text-decoration: underline; }
.account-title { margin-bottom: 10px; font-size: 20px; line-height: 1.2; letter-spacing: -0.2px; }
.games-meta { margin-top: 0; margin-bottom: 12px; }
.games-meta > span {
  display: block;
  font-size: 12px;
  color: #9fb1d8;
  margin-bottom: 6px;
}
.games-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.games-list li {
  font-size: 11px;
  color: #d5e4ff;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(94,133,208,.45);
  background: rgba(47,118,255,.16);
  font-weight: 600;
}
.product-card-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.product-account-card .price { margin: 0; flex-shrink: 0; }
.product-account-card .account-buy-button { margin: 0; flex: 1 1 auto; min-width: min(100%, 140px); text-align: center; }
@container account-card (max-width: 220px) {
  .product-account-card .account-link { display: none; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 420px) {
    .products-grid .product-account-card .account-link { display: none; }
  }
}
.price { display: inline-block; margin: 12px 0 10px; padding: 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #dbe8ff; background: rgba(47,118,255,.24); border: 1px solid rgba(82,149,255,.5); }

.modal-overlay { position: fixed; inset: 0; background: rgba(4,8,18,.72); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 80; }
.modal-overlay.visible { display: flex; }
.account-modal { width: min(520px,100%); border-radius: 16px; border: 1px solid rgba(93,123,186,.45); background: linear-gradient(180deg, #202a44 0%, #161f34 100%); padding: 18px; position: relative; }
.modal-close { position: absolute; right: 10px; top: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px; font-size: 22px; background: rgba(255,255,255,.08); color: #e6efff; cursor: pointer; }
.modal-subtitle { color: #b7c6e3; margin-bottom: 14px; }
.modal-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(114,142,197,.45); }
.modal-fields { margin-top: 12px; display: grid; gap: 10px; }
.modal-actions { margin-top: 14px; display: flex; justify-content: flex-end; }

.page { padding: 20px 0 28px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input { max-width: 380px; }
.orders-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th,.orders-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.tag { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag.new { background: rgba(47,118,255,.24); }
.tag.progress { background: rgba(251,191,36,.2); }
.tag.done { background: rgba(76,175,80,.2); }
.small-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.small-btn { border: 1px solid rgba(104,124,166,.4); border-radius: 10px; padding: 7px 9px; font-size: 12px; font-weight: 700; color: #d6e1fb; background: #28314a; cursor: pointer; }

.footer { padding: 22px 0 30px; color: #a7b4cf; }
.footer-box { border: 1px solid rgba(89,115,168,.34); border-radius: 13px; background: rgba(29,36,58,.95); padding: 13px 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; }

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; grid-column: 1/-1; width: 100%; flex-direction: column; align-items: stretch; }
  .topbar.menu-open .nav-links { display: flex; }
  .quick-order-form { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .products-grid { grid-template-columns: 1fr; }
}
