﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg-base: #030303;
  --bg-surface: #0a0a0c;
  --bg-elevated: #111113;
  --bg-glass: rgba(20, 20, 22, 0.7);
  --text-primary: #ffffff;
  --text-secondary: #9e9ea8;
  --text-tertiary: #5e5e66;
  --accent: #007aff;
  --accent-hover: #0a84ff;
  --accent-glow: rgba(0, 122, 255, 0.25);
  --success: #30d158;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3rem;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --radius-card: 20px;
  --radius-btn: 12px;
  --ease-standard: cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: 1.5;
  overflow-x: hidden;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

.pageBody {
  min-height: 100vh;
}

.container,
.siteFooter {
  position: relative;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.pageMain {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 64px;
}

.siteHeader {
  position: sticky;
  top: 16px;
  z-index: 120;
  margin-bottom: 24px;
}

.siteHeaderInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(3, 3, 3, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.siteLogo {
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
}

.siteNav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navToggle {
  display: none;
  min-height: 40px;
  min-width: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.card {
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 24px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wrap {
  flex-wrap: wrap;
}

.grow {
  flex: 1;
  min-width: 0;
}

.muted {
  color: var(--text-secondary);
}

.sm,
.small {
  font-size: var(--text-sm);
}

.title {
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: var(--font-semibold);
}

.titleSmall {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  line-height: 1.35;
}

.h2 {
  margin: 0 0 16px;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

.sectionLabel,
.heroKicker,
.eyebrow {
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.heroTitle {
  margin: 0;
  font-size: var(--text-4xl);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: var(--font-bold);
  max-width: 18ch;
}

.heroLead {
  margin-top: 16px;
  color: var(--text-secondary);
  max-width: 68ch;
}

.heroActions,
.heroMetrics {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.heroMetric {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  min-width: 132px;
}

.heroMetricNum {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

.heroMetricLbl {
  display: block;
  margin-top: 8px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.navLink,
.navCta,
.pill,
.sortPill,
.chip,
.btn,
.btnGhost,
.presetBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 0.2s var(--ease-standard), background 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard), color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard), opacity 0.2s var(--ease-standard);
}

.navLink {
  border: 0;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 12px;
  font-size: var(--text-sm);
}

.navLink:hover,
.navCta:hover,
.pill:hover,
.sortPill:hover,
.chip:hover,
.btnGhost:hover,
.presetBtn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.06);
}

.chip:hover,
.presetBtn:hover {
  transform: scale(1.03);
}

.navLinkActive,
.chipActive,
.profileTabActive {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
}

.sortActive {
  color: #050505;
  background: #fff;
  border-color: #fff;
}

.sortActive:hover {
  background: #f2f2f3;
  border-color: #f2f2f3;
}

.navAccent {
  color: var(--text-primary);
}

.navLangSwitch {
  min-width: 58px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.navLangSwitch:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn,
.navCta {
  color: #050505;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn:hover,
.navCta:hover {
  color: #050505;
  background: #f2f2f3;
  border-color: #f2f2f3;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btnGhost {
  background: rgba(255, 255, 255, 0.03);
}

.reviewBonusBanner {
  position: relative;
  border: 1px solid rgba(166, 233, 126, 0.4);
  background: linear-gradient(135deg, rgba(166, 233, 126, 0.12), rgba(166, 233, 126, 0.04));
  border-radius: 14px;
  padding: 14px 46px 14px 14px;
}

.reviewBonusTitle {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.reviewBonusText {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.reviewBonusClose {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  cursor: pointer;
}

.reviewBonusClose:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btnSm {
  min-height: 36px;
  font-size: var(--text-xs);
  padding: 0 12px;
}

.btnLg {
  min-height: 48px;
}

.btnBlock {
  width: 100%;
}

.btnLoading {
  opacity: 0.75;
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chipCount,
.navBal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.sectionCard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.heroPanel::before,
.heroPanel::after {
  content: none;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  position: relative;
  z-index: 92;
}

.filtersShell {
  max-width: none;
  margin: 0;
}

.filtersShell .toolbar {
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  padding-bottom: 0;
}

.filtersShell .quickSort {
  justify-content: center;
  align-items: center;
}

.quickSort {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.marketAccountsShell .toolbar {
  padding-bottom: 0;
}

.marketAccountsShell .quickSort {
  align-items: center;
}

.marketAccountsShell {
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 0;
}

.marketAccountsShell .filtersPanel[data-state="closed"] {
  margin-top: 0;
}

.marketAccountsShell .filtersPanel[data-state="open"] {
  margin-top: 8px;
}

.filtersPanel {
  margin-top: 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 16px;
  transform-origin: top;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease;
  position: relative;
  z-index: 92;
}

.filtersBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.filtersBackdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.filtersPanel[data-state="closed"] {
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  border-width: 0;
}

.filtersPanel[data-state="open"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 720px;
}

.filtersPanel form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.filterGroup {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.01);
}

.filterTitle {
  margin-bottom: 8px;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.presetRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.presetBtn {
  min-height: 34px;
  font-size: var(--text-xs);
  border-radius: 10px;
}

.filterActions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.input,
select.input,
textarea.input {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  outline: none;
}

.input:focus,
select.input:focus,
textarea.input:focus {
  border-color: var(--border-light);
}

textarea.input {
  min-height: 160px;
  resize: vertical;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 16px;
  scroll-snap-type: y proximity;
}

.accountCard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
  animation: cardIn 0.42s ease both;
  scroll-snap-align: start;
}

.accountCard:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.statusWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.statusBadge,
.primeBadge,
.lvlPill {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.statusReady {
  color: var(--success);
  border-color: rgba(48, 209, 88, 0.3);
}

.primeYes {
  color: var(--text-primary);
}

.priceTag {
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.accountCard:hover .avatar {
  border-color: var(--border-light);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatarFallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-weight: var(--font-semibold);
}

.cardHeadRow {
  align-items: flex-start;
}

.nameRow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.statsGrid,
.detailGrid,
.orderMetaGrid,
.profileStatsGrid {
  display: grid;
  gap: 16px;
}

.statsGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detailGrid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.orderMetaGrid,
.profileStatsGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.statCell,
.detailCell,
.profileStatCell,
.profileIdentity,
.profileBalanceCard,
.payForm,
.payMethod {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 16px;
}

.profileBalanceCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profileTopupBtn {
  margin-left: auto;
}

.profileIdentity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.checkoutLayout,
.orderSuccessMain,
.homeHero,
.authCard {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.checkoutHeroGrid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.checkoutAvatar,
.checkoutAvatar.placeholder {
  width: 112px;
  height: 112px;
  border-radius: 16px;
}

.checkoutAvatar {
  object-fit: cover;
  border: 1px solid var(--border);
}

.checkoutAvatar.placeholder {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.checkoutPriceBlock {
  text-align: right;
}

.checkoutTitle {
  margin: 0;
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: 1.15;
}

.checkoutNick {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.checkoutPrice {
  font-size: var(--text-4xl);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: var(--font-bold);
}

.checkoutActions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.checkoutForm {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.breadcrumbs {
  margin-bottom: 16px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.breadcrumbs a,
.inlineLink,
.link {
  color: var(--text-primary);
  text-decoration: none;
}

.bcSep {
  margin: 0 8px;
  color: var(--text-tertiary);
}

.emptyState {
  text-align: center;
  padding: 64px 24px;
}

.emptyState::before {
  content: "◌";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  color: var(--text-tertiary);
}

.modalBack {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modalBack.modalOpen {
  opacity: 1;
  pointer-events: auto;
}

.modalCard {
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 24px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.buyModalCard {
  display: grid;
  gap: 14px;
}

.modalHeader {
  flex-wrap: nowrap;
  margin-bottom: 2px;
}

.modalHeader .btnSm {
  margin-left: auto;
}

.modalAccountRow {
  margin-top: 2px;
}

.modalOpen .modalCard {
  transform: scale(1);
  opacity: 1;
}

.topupModalCard {
  max-width: 560px;
  padding: 24px 24px 20px;
}

#mAvatarWrap {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

#mBtn {
  margin: 4px 0 0;
  background: #fff;
  border-color: #fff;
  color: #050505;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
}

.modalHint {
  text-align: center;
  margin: 0;
}

.payLabel {
  margin-bottom: 10px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.payPresetRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.payPreset {
  width: 100%;
}

.payAmountInput {
  margin-bottom: 18px;
}

.payMethods {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.payMethod {
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-standard);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}

.payForm {
  display: grid;
  gap: 10px;
}

#topupSubmit {
  margin-top: 2px;
}

.payCancelBtn {
  margin-top: 4px;
}

.payMethod:hover {
  transform: translateY(-2px);
}

.payMethodHead {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payIcon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.payMethodActive {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.06);
}

.homeHeroWide {
  max-width: 1280px;
  min-height: min(72vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.homePage {
  overflow: hidden;
  min-height: 100vh;
}

.homePage .container {
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
}

.homePage .pageMain {
  flex: 1;
  justify-content: center;
  padding-bottom: 12px;
}

.homePage .homeFooter .siteFooter {
  display: block;
  margin-top: 0;
  padding-bottom: 12px;
}

.homeHeroWide::before,
.homeHeroWide::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.homeHeroWide::before {
  left: -120px;
  top: -120px;
  animation: orbitSlow 14s ease-in-out infinite;
}

.homeHeroWide::after {
  right: -120px;
  bottom: -120px;
  animation: orbitSlow 16s ease-in-out infinite reverse;
}

.homeHeroInner {
  max-width: 900px;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.homeHeroWide .heroTitle {
  max-width: 14ch;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}

.homeHeroWide .heroLead {
  max-width: 56ch;
  margin: 0;
}

.homeHeroWide .heroActions {
  margin-top: 8px;
}

.profileHeaderCard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profileDivider {
  height: 8px;
}

.profileTabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profileTab {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.profileTab:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.07);
}

.profileTab.profileTabActive {
  color: #050505;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.24);
}

.profileTab.profileTabActive .chipCount {
  color: #1f1f23;
  border-color: rgba(10, 10, 12, 0.16);
  background: rgba(10, 10, 12, 0.08);
}

.profileAvatar {
  width: 56px;
  height: 56px;
}

.profileStatCell .title {
  font-size: var(--text-2xl);
}

.profilePanel {
  width: 100%;
}

.tableScroll {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th,
.table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
}

.table th {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.okMsg,
.warnMsg {
  border-radius: 14px;
  padding: 16px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.okMsg {
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.25);
  color: var(--text-primary);
}

.warnMsg {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.adminMain {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.adminForm {
  margin-top: 16px;
}

.adminGridForm {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: end;
  margin-top: 16px;
}

.presetBar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tokenArea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.authWrap {
  display: flex;
  justify-content: center;
}

.orderSuccessCard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.orderOkBadge {
  align-self: flex-start;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(48, 209, 88, 0.25);
  background: rgba(48, 209, 88, 0.12);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
}

.siteFooter {
  margin-top: 24px;
  padding: 0 24px 24px;
}

.siteFooterInner {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footerBrand,
.siteFooter .link {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.marketSkeleton {
  display: none;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 16px;
}

.skeletonCard {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 24px;
}

.skeletonLine {
  height: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  animation: pulse 1.2s ease-in-out infinite;
}

.skeletonLine.lg {
  height: 24px;
  width: 58%;
}

.skeletonLine.md {
  width: 78%;
}

.skeletonLine.sm {
  width: 42%;
}

.is-loading .marketSkeleton {
  display: grid;
}

.is-loading .marketGrid {
  display: none;
}

.sortTransition {
  opacity: 0.3;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toastStack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 180;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  min-width: 240px;
  max-width: 320px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 12px 14px;
  font-size: var(--text-sm);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.toast.toastShow {
  opacity: 1;
  transform: translateY(0);
}

.toast.toastSuccess {
  border-color: rgba(255, 255, 255, 0.65);
}

.loginModalCard {
  max-width: 560px;
  display: grid;
  gap: 14px;
}

.loginSteps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  display: grid;
  gap: 8px;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.85;
  }
}

@keyframes orbitSlow {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.45;
  }

  50% {
    transform: translateY(14px) scale(1.04);
    opacity: 0.7;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 0.45;
  }
}

@media (max-width: 1200px) {
  .grid,
  .marketSkeleton {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }

  .heroTitle {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 1024px) {
  .orderMetaGrid,
  .profileStatsGrid {
    grid-template-columns: 1fr;
  }

  .checkoutPrice {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .siteHeader {
    top: 8px;
  }

  .siteHeaderInner {
    padding: 12px;
  }

  .navToggle {
    display: inline-flex;
  }

  .siteNav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
  }

  .siteHeader.menuOpen .siteNav {
    display: flex;
  }

  .grid,
  .marketSkeleton {
    grid-template-columns: 1fr;
  }

  .title {
    font-size: var(--text-xl);
  }

  .heroTitle {
    font-size: var(--text-2xl);
  }

  .homeHeroWide {
    min-height: 62vh;
    padding: 48px 24px;
  }

  .checkoutHeroGrid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .checkoutPriceBlock,
  .checkoutActions,
  .checkoutForm {
    text-align: center;
    justify-content: center;
  }

  .statsGrid {
    grid-template-columns: 1fr;
  }

  .profileTabs {
    grid-template-columns: 1fr;
  }

  .toastStack {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 375px) {
  .card {
    padding: 16px;
  }

  .btn,
  .btnGhost,
  .pill,
  .sortPill,
  .chip,
  .navLink,
  .navCta {
    width: 100%;
  }

  .table {
    min-width: 480px;
  }
}
