:root {
  color-scheme: dark;
  --bg: #080808;
  --bg-elevated: #0e0e0f;
  --panel: #131315;
  --panel-2: #1a1a1d;
  --panel-3: #222226;
  --text: #ffffff;
  --muted: #9b9ba4;
  --muted-2: #686872;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --red: #ef2028;
  --red-dark: #ba1017;
  --red-soft: rgba(239, 32, 40, 0.13);
  --red-glow: rgba(239, 32, 40, 0.28);
  --success: #22c55e;
  --warning: #f59e0b;
  --nav-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -10%, rgba(239,32,40,.14), transparent 27rem),
    radial-gradient(circle at 100% 25%, rgba(239,32,40,.07), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body.light-theme {
  color-scheme: light;
  --bg: #f5f5f6;
  --bg-elevated: rgba(255,255,255,.92);
  --panel: #ffffff;
  --panel-2: #f4f4f5;
  --panel-3: #ececee;
  --text: #101012;
  --muted: #666670;
  --muted-2: #94949c;
  --border: rgba(16,16,18,.10);
  --border-strong: rgba(16,16,18,.16);
  --red-soft: rgba(239,32,40,.09);
  background:
    radial-gradient(circle at 10% -10%, rgba(239,32,40,.10), transparent 27rem),
    #f5f5f6;
}

button, input, select, textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(239,32,40,.35);
  outline-offset: 2px;
}

button, a {
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

@media (max-width: 720px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

.hidden {
  display: none !important;
}

.brand-light {
  position: fixed;
  pointer-events: none;
  filter: blur(80px);
  opacity: .28;
  z-index: -1;
}

.brand-light-a {
  width: 300px;
  height: 300px;
  left: -140px;
  top: 15%;
  background: var(--red);
}

.brand-light-b {
  width: 240px;
  height: 240px;
  right: -140px;
  bottom: 10%;
  background: var(--red-dark);
}

.app-shell {
  position: relative;
  display: flex;
  width: min(1560px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.desktop-sidebar {
  display: none;
  width: 258px;
  min-height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 91%, transparent);
  backdrop-filter: blur(22px);
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 40;
}

.brand-lockup {
  width: 100%;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  padding: 6px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 36px var(--red-glow);
  font-size: 25px;
  font-weight: 900;
  font-style: italic;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-lockup small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.desktop-nav {
  display: grid;
  gap: 7px;
  margin-top: 34px;
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: .2s ease;
}

.nav-button:hover {
  color: var(--text);
  background: var(--panel);
}

.nav-button.active {
  color: #fff;
  border-color: rgba(239,32,40,.34);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 13px 30px var(--red-glow);
}

.nav-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.nav-button span:last-child {
  font-size: 14px;
  font-weight: 700;
}

.sidebar-support {
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 17px;
  background: linear-gradient(145deg, var(--panel), var(--red-soft));
}

.sidebar-support strong,
.sidebar-support p {
  display: block;
}

.sidebar-support strong {
  margin-top: 12px;
  font-size: 14px;
}

.sidebar-support p {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.support-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.main-area {
  min-width: 0;
  flex: 1;
  padding-bottom: calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 35;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(24px);
}

.header-inner {
  width: min(1180px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 35% 25%, #4a4a4f, #111 65%);
  border: 2px solid rgba(239,32,40,.72);
  box-shadow: 0 9px 24px rgba(0,0,0,.25);
  font-weight: 900;
}

.user-copy {
  min-width: 0;
}

.user-copy small,
.user-copy strong {
  display: block;
}

.user-copy small {
  color: var(--muted);
  font-size: 13px;
}

.user-copy strong {
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 2px;
  font-size: 15px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-pill {
  height: 44px;
  min-width: 52px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.header-pill:hover {
  border-color: rgba(239,32,40,.5);
  transform: translateY(-1px);
}

.header-pill.square {
  min-width: 44px;
  width: 44px;
  padding: 0;
  font-size: 19px;
}

.page-root {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px 16px 20px;
}

.page-enter {
  animation: pageEnter .28s ease both;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.page-kicker {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.page-title {
  margin: 6px 0 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 900;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.surface {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(150deg, var(--panel), color-mix(in srgb, var(--panel-2) 82%, transparent));
}

.balance-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.balance-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -65px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--red);
  opacity: .15;
  filter: blur(14px);
}

.balance-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.balance-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.balance-value {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.balance-value strong {
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1;
  letter-spacing: -.05em;
}

.balance-value span {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 48px;
  border-radius: 15px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 32px var(--red-glow);
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
  box-shadow: none;
}

.ghost-button {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--panel-2);
}

.ghost-button:hover {
  border-color: rgba(239,32,40,.45);
  background: var(--red-soft);
}

.danger-button {
  color: #fff;
  background: #ad151b;
}

.full {
  width: 100%;
}

.home-grid {
  display: grid;
  gap: 14px;
}

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

.quick-card {
  min-height: 110px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: .22s ease;
}

.quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239,32,40,.38);
}

.quick-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--red-soft);
  color: var(--red);
}

.quick-icon svg {
  width: 21px;
  height: 21px;
}

.quick-card strong,
.quick-card small {
  display: block;
}

.quick-card strong {
  margin-top: 13px;
  font-size: 14px;
}

.quick-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 260px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(239,32,40,.32);
  background: #090909;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .52;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.63) 53%, rgba(0,0,0,.14) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 27px;
}

.hero-badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(239,32,40,.18);
  border: 1px solid rgba(239,32,40,.36);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.hero h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 6vw, 50px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 900;
}

.hero h2 span {
  color: var(--red);
}

.hero p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #c6c6cb;
  font-size: 13px;
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
}

.section-head h2,
.section-head h3 {
  margin: 0;
  letter-spacing: -.03em;
}

.section-head h2 {
  font-size: 22px;
}

.section-head h3 {
  font-size: 18px;
}

.text-link {
  border: 0;
  background: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

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

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: .22s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239,32,40,.42);
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}

.game-cover {
  position: relative;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  background: var(--panel-2);
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.game-card:hover .game-cover img {
  transform: scale(1.045);
}

.game-badge {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.game-rating {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(239,32,40,.92);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.game-copy {
  padding: 12px;
}

.game-copy h3 {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}

.game-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.game-copy strong {
  display: block;
  margin-top: 10px;
  color: var(--red);
  font-size: 11px;
}

.search-row {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.field,
.select-field,
.textarea-field {
  width: 100%;
  min-height: 50px;
  border-radius: 15px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  padding: 0 15px;
}

.field::placeholder,
.textarea-field::placeholder {
  color: var(--muted-2);
}

.textarea-field {
  min-height: 110px;
  resize: vertical;
  padding-top: 14px;
  padding-bottom: 14px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 0 7px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 8px 22px var(--red-glow);
}

.topup-layout,
.profile-layout,
.game-detail-layout {
  display: grid;
  gap: 15px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.payment-card {
  position: relative;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}

.payment-card:hover,
.payment-card.selected {
  border-color: rgba(239,32,40,.6);
  background: linear-gradient(145deg, var(--panel), var(--red-soft));
}

.payment-card.selected::after {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.payment-logo {
  height: 31px;
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
}

.payment-card strong,
.payment-card small {
  display: block;
}

.payment-card strong {
  margin-top: 11px;
  font-size: 13px;
}

.payment-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

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

.amount-button,
.package-button {
  min-height: 53px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.amount-button:hover,
.amount-button.selected,
.package-button:hover,
.package-button.selected {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.guide-link,
.setting-row,
.transaction-row,
.order-row,
.promo-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  padding: 15px;
}

.guide-link,
.setting-row {
  cursor: pointer;
}

.guide-link:hover,
.setting-row:hover {
  border-color: rgba(239,32,40,.4);
}

.guide-icon,
.setting-icon,
.status-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
}

.guide-icon svg,
.setting-icon svg,
.status-icon svg {
  width: 22px;
  height: 22px;
}

.row-copy {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.row-copy strong,
.row-copy small {
  display: block;
}

.row-copy strong {
  font-size: 13px;
}

.row-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.row-arrow {
  color: var(--muted-2);
  font-size: 22px;
}

.panel-section {
  padding: 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-group + .form-group {
  margin-top: 14px;
}

.summary-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  background: var(--panel-2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.summary-row + .summary-row {
  margin-top: 10px;
}

.summary-row.total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.tab-button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 25px var(--red-glow);
}

.empty-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 35px 20px;
}

.empty-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--red);
}

.empty-icon svg {
  width: 48px;
  height: 48px;
}

.empty-state h3 {
  margin: 22px 0 0;
  font-size: 21px;
}

.empty-state p {
  margin: 9px auto 0;
  max-width: 430px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.order-list,
.transaction-list,
.promo-list,
.guide-list,
.settings-list,
.faq-list {
  display: grid;
  gap: 10px;
}

.order-row,
.transaction-row,
.promo-row {
  text-align: left;
}

.order-meta,
.transaction-meta {
  margin-left: auto;
  text-align: right;
}

.order-meta strong,
.order-meta small,
.transaction-meta strong,
.transaction-meta small {
  display: block;
}

.order-meta small,
.transaction-meta small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 900;
}

.status-pill.done {
  color: #bbf7d0;
  background: rgba(34,197,94,.16);
}

.status-pill.waiting {
  color: #fde68a;
  background: rgba(245,158,11,.16);
}

.status-pill.failed {
  color: #fecaca;
  background: rgba(239,68,68,.17);
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  text-align: center;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -80px auto auto 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 180px;
  border-radius: 50%;
  background: var(--red);
  opacity: .13;
  filter: blur(35px);
}

.profile-avatar {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid var(--red);
  background: radial-gradient(circle at 35% 25%, #56565d, #111 66%);
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  overflow: hidden;
}

.profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-fallback {
  position: relative;
  z-index: 0;
}

.avatar.has-photo {
  background-position: center;
  background-size: cover;
  color: transparent;
}

.profile-card h2 {
  position: relative;
  margin: 18px 0 0;
  font-size: 25px;
  letter-spacing: -.03em;
}

.profile-handle {
  position: relative;
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-badges {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.profile-badges span {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: var(--panel-2);
  font-size: 8px;
  font-weight: 800;
}

.profile-badges span.premium {
  color: #fbbf24;
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.08);
}

.profile-login-notice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  padding: 13px;
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 14px;
  color: #fbbf24;
  background: rgba(245,158,11,.07);
  text-align: left;
}

.profile-login-notice > svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.profile-login-notice strong,
.profile-login-notice small {
  display: block;
}

.profile-login-notice strong {
  font-size: 10px;
}

.profile-login-notice small {
  margin-top: 4px;
  color: #a59269;
  font-size: 8px;
  line-height: 1.5;
}

.profile-stat-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  margin-top: 17px;
}

.profile-stat-grid > div {
  min-width: 0;
  padding: 13px 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-2);
}

.profile-stat-grid small,
.profile-stat-grid strong {
  display: block;
}

.profile-stat-grid small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
}

.profile-stat-grid strong {
  margin-top: 6px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-balance {
  position: relative;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px;
  border-radius: 19px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  text-align: left;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.feature-card {
  min-height: 135px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  padding: 17px;
  text-align: left;
  cursor: pointer;
}

.feature-card:hover {
  border-color: rgba(239,32,40,.45);
}

.feature-card svg {
  width: 27px;
  height: 27px;
  color: var(--red);
}

.feature-card strong,
.feature-card small {
  display: block;
}

.feature-card strong {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.45;
}

.feature-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
}

.segmented button {
  min-width: 50px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.segmented button.active {
  color: #fff;
  background: var(--red);
}

.toggle {
  position: relative;
  width: 49px;
  height: 29px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-3);
  cursor: pointer;
}

.toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--muted);
  transition: .2s ease;
}

.toggle.active {
  background: var(--red-soft);
  border-color: rgba(239,32,40,.45);
}

.toggle.active span {
  transform: translateX(20px);
  background: var(--red);
}

.promo-input-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
}

.promo-row {
  border-style: dashed;
  border-color: rgba(239,32,40,.4);
}

.promo-code {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.promo-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.faq-question {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.faq-question span:last-child {
  color: var(--red);
  font-size: 22px;
  transition: .2s ease;
}

.faq-answer {
  display: none;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question span:last-child {
  transform: rotate(45deg);
}

.game-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px;
}

.game-hero img {
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.game-hero h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.03em;
}

.game-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}

.package-button {
  min-height: 76px;
  padding: 11px;
  text-align: left;
}

.package-button strong,
.package-button small {
  display: block;
}

.package-button strong {
  font-size: 12px;
}

.package-button small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.package-button.selected small {
  color: var(--red);
}

.validation-message {
  min-height: 22px;
  margin-top: 8px;
  font-size: 11px;
}

.validation-message.success {
  color: var(--success);
}

.validation-message.error {
  color: #f87171;
}

.mobile-nav {
  position: fixed;
  z-index: 60;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  align-items: center;
  padding: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 27px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 58px rgba(0,0,0,.42);
  backdrop-filter: blur(24px);
}

.mobile-nav .nav-button {
  min-width: 0;
  min-height: 64px;
  padding: 8px 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 20px;
}

.mobile-nav .nav-button svg {
  width: 23px;
  height: 23px;
}

.mobile-nav .nav-button span:last-child {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 9px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(7px);
}

.modal {
  position: fixed;
  z-index: 90;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  max-height: min(82vh, 720px);
  overflow-y: auto;
  padding: 12px 18px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: var(--bg-elevated);
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
  animation: modalIn .24s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-handle {
  width: 45px;
  height: 5px;
  margin: 0 auto 15px;
  border-radius: 999px;
  background: var(--border-strong);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.03em;
}

.modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.modal-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 15px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.15);
  background: #19191c;
  color: #fff;
  box-shadow: 0 14px 38px rgba(0,0,0,.35);
  font-size: 12px;
  font-weight: 700;
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.success {
  border-color: rgba(255,255,255,.28);
  background: #161619;
  box-shadow: 0 14px 38px rgba(0,0,0,.45), inset 3px 0 0 #fff;
}

.toast.error {
  border-color: rgba(239,32,40,.48);
  background: #2a1013;
  box-shadow: 0 14px 38px rgba(0,0,0,.45), inset 3px 0 0 var(--red);
}

.noscript {
  margin: 20px;
  padding: 16px;
  border-radius: 15px;
  color: #fff;
  background: #b91c1c;
}

.payment-flow-title {
  max-width: 620px;
  margin-top: 9px;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 900;
}

.bank-card-panel,
.checkout-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.18), transparent 12rem),
    linear-gradient(145deg, #ef2028, #8b0b11 70%);
  box-shadow: 0 22px 60px rgba(239,32,40,.22);
}

.topup-card-stack { display: grid; gap: 14px; }
.humo-card-panel {
  border-color: rgba(239,32,40,.34);
  background: radial-gradient(circle at 85% 10%, rgba(239,32,40,.22), transparent 12rem), linear-gradient(145deg,#1a1a1d,#09090a 72%);
}

.bank-card-panel::after,
.checkout-card::after {
  content: "F";
  position: absolute;
  right: -5px;
  bottom: -48px;
  color: rgba(255,255,255,.08);
  font-size: 190px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  pointer-events: none;
}

.bank-card-top,
.bank-card-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bank-card-top {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.bank-card-number {
  position: relative;
  z-index: 1;
  display: block;
  margin: 34px 0;
  font-size: clamp(21px, 6vw, 33px);
  letter-spacing: .075em;
  white-space: nowrap;
}

.bank-card-bottom {
  align-items: flex-end;
  margin-bottom: 22px;
}

.bank-card-bottom span,
.checkout-card small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  opacity: .72;
}

.bank-card-panel .ghost-button,
.checkout-card .ghost-button {
  position: relative;
  z-index: 1;
  color: #fff;
  border-color: rgba(255,255,255,.26);
  background: rgba(0,0,0,.2);
}

.bank-card-panel .ghost-button svg,
.checkout-card .ghost-button svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.notice-box {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  line-height: 1.6;
}

.warning-notice {
  border-color: rgba(245,158,11,.3);
  background: rgba(245,158,11,.08);
}

.warning-notice strong {
  color: #fbbf24;
}

.payment-steps {
  display: grid;
  gap: 12px;
}

.payment-steps > div {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--panel-2);
}

.payment-steps > div > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.payment-steps p,
.payment-steps strong,
.payment-steps small {
  display: block;
  margin: 0;
}

.payment-steps strong {
  font-size: 13px;
}

.payment-steps small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.checkout-card {
  border-radius: 20px;
}

.checkout-card > span,
.checkout-card > strong,
.checkout-card > small {
  position: relative;
  z-index: 1;
  display: block;
}

.checkout-card > span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.checkout-card > strong {
  margin: 22px 0 9px;
  font-size: clamp(20px, 6vw, 28px);
  letter-spacing: .07em;
}

.checkout-card .ghost-button {
  margin-top: 20px;
}

.receipt-upload {
  display: grid;
  place-items: center;
  margin: 14px 0;
  padding: 22px 14px;
  border: 1px dashed rgba(239,32,40,.55);
  border-radius: 19px;
  background: var(--red-soft);
  text-align: center;
  cursor: pointer;
}

.receipt-upload:hover {
  border-style: solid;
}

.receipt-upload-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--red);
  background: var(--panel);
}

.receipt-upload-icon svg {
  width: 24px;
  height: 24px;
}

.receipt-upload strong {
  margin-top: 12px;
  font-size: 13px;
}

.receipt-upload small {
  max-width: 380px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.receipt-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.order-status-copy {
  max-width: 240px;
  white-space: normal;
  line-height: 1.35;
}

/* Admin panel */
.admin-body {
  min-height: 100vh;
}

.admin-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 18px 16px 50px;
}

.admin-header,
.admin-title-row,
.admin-header-actions,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.admin-header .brand-lockup {
  width: auto;
  color: var(--text);
  text-decoration: none;
}

.admin-login {
  width: min(470px, 100%);
  margin: 70px auto 0;
  padding: 28px;
}

.admin-login h1 {
  margin: 9px 0 0;
  font-size: 34px;
  letter-spacing: -.04em;
}

.admin-login form {
  margin-top: 22px;
}

.admin-title-row {
  align-items: flex-end;
  margin-top: 38px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-top: 22px;
}

.admin-stat {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.admin-stat::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: currentColor;
  opacity: .1;
}

.admin-stat small,
.admin-stat strong {
  display: block;
}

.admin-stat small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-stat strong {
  margin-top: 8px;
  font-size: 30px;
}

.admin-stat.warning { color: #f59e0b; }
.admin-stat.info { color: #38bdf8; }
.admin-stat.success { color: #22c55e; }
.admin-stat.danger { color: #ef4444; }

.admin-filter-tabs {
  display: flex;
  margin-top: 22px;
  overflow-x: auto;
}

.admin-filter-tabs .tab-button {
  flex: 0 0 auto;
}

.admin-order-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.admin-order-card {
  padding: 20px;
}

.admin-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-order-head h2 {
  margin: 12px 0 0;
  font-size: 20px;
  letter-spacing: -.025em;
}

.admin-order-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-price {
  color: var(--red);
  white-space: nowrap;
  font-size: 17px;
}

.admin-detail-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.admin-detail-list > div {
  padding: 12px;
  border-radius: 13px;
  background: var(--panel-2);
}

.admin-detail-list dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-detail-list dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.admin-status-message {
  margin: 13px 0 0;
  padding: 11px 13px;
  border-radius: 13px;
  color: var(--muted);
  background: var(--panel-2);
  font-size: 11px;
  line-height: 1.5;
}

.admin-status-message.error {
  color: #ffd7d9;
  border: 1px solid rgba(239,32,40,.28);
  background: rgba(239,32,40,.09);
}

.admin-status-message.error b {
  color: #ff646b;
}

.admin-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-actions button {
  flex: 1 1 150px;
}

.admin-empty {
  grid-column: 1 / -1;
}

.receipt-preview,
.receipt-frame {
  display: block;
  width: 100%;
  max-height: 58vh;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}

.receipt-frame {
  min-height: 52vh;
}

.receipt-open-link {
  display: grid;
  place-items: center;
  margin-top: 12px;
  text-decoration: none;
}

@media (min-width: 640px) {
  .header-inner,
  .page-root {
    padding-left: 24px;
    padding-right: 24px;
  }

  .balance-card-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .home-grid {
    grid-template-columns: 1.3fr .7fr;
  }

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

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

  .search-row {
    grid-template-columns: minmax(0,1fr) 190px;
  }

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

  .profile-layout,
  .game-detail-layout {
    grid-template-columns: .95fr 1.05fr;
    align-items: start;
  }

  .modal {
    left: 50%;
    right: auto;
    width: min(560px, calc(100% - 32px));
    transform: translateX(-50%);
  }

  .admin-stats {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .admin-filter-tabs {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
  }

  .admin-detail-list {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  @keyframes modalIn {
    from { opacity: 0; transform: translate(-50%,18px); }
    to { opacity: 1; transform: translate(-50%,0); }
  }
}

@media (min-width: 1024px) {
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav {
    display: none;
  }

  .main-area {
    padding-bottom: 38px;
  }

  .page-root {
    padding-top: 30px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .header-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

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

  .topup-layout {
    grid-template-columns: 1fr .85fr;
    align-items: start;
  }

  .toast {
    bottom: 28px;
  }

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

@media (min-width: 1320px) {
  .game-grid {
    grid-template-columns: repeat(5,minmax(0,1fr));
  }
}

/* Game checkout detail v3 */
.game-detail-page { max-width: 1180px; margin: 0 auto; }
.detail-back-button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); background: var(--panel); font-size: 11px; font-weight: 800; cursor: pointer; }
.detail-back-button svg { width: 16px; height: 16px; }
.detail-back-button:hover { color: var(--text); border-color: var(--border-strong); }
.game-product-hero { position: relative; min-height: 154px; display: flex; align-items: center; gap: 20px; overflow: hidden; padding: 22px; border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(circle at 85% 15%, rgba(239,32,40,.15), transparent 20rem), linear-gradient(135deg, var(--panel), var(--bg-elevated)); }
.game-product-hero::after { content: "F"; position: absolute; right: 9%; bottom: -80px; color: rgba(255,255,255,.022); font-size: 220px; font-weight: 900; font-style: italic; }
.game-product-art { position: relative; width: 108px; height: 108px; flex: none; z-index: 1; }
.game-product-art img { width: 100%; height: 100%; border: 1px solid var(--border-strong); border-radius: 25px; object-fit: cover; box-shadow: 0 20px 45px rgba(0,0,0,.35); }
.game-product-art > span { position: absolute; top: -6px; right: -7px; padding: 5px 7px; border: 2px solid var(--panel); border-radius: 8px; color: #fff; background: var(--red); font-size: 7px; font-weight: 900; }
.game-product-copy { position: relative; z-index: 1; flex: 1; }
.game-product-copy h1 { margin: 7px 0 5px; font-size: clamp(25px,4vw,37px); letter-spacing: -.055em; }
.game-product-copy > p { margin: 0; color: var(--muted); font-size: 11px; }
.product-trust-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.product-trust-row span { height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px; color: #a2a2aa; background: rgba(255,255,255,.025); font-size: 8px; font-weight: 700; }
.product-trust-row svg { width: 12px; height: 12px; color: var(--red); }
.product-delivery { position: relative; z-index: 1; min-width: 170px; padding: 16px 18px; border: 1px solid rgba(239,32,40,.16); border-radius: 16px; background: rgba(239,32,40,.06); }
.product-delivery span,
.product-delivery strong,
.product-delivery small { display: block; }
.product-delivery span { color: var(--red); font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.product-delivery strong { margin-top: 8px; font-size: 14px; }
.product-delivery small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.game-detail-v3 { margin-top: 13px; grid-template-columns: 1.05fr .95fr; align-items: start; }
.game-detail-v3 .panel-section { padding: 20px; border-radius: 22px; }
.detail-checkout-panel { position: sticky; top: 100px; }
.detail-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.detail-section-title > span,
.detail-summary-title > span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid rgba(239,32,40,.25); border-radius: 10px; color: #ff5960; background: var(--red-soft); font-size: 10px; font-weight: 900; }
.detail-section-title h3,
.detail-section-title p { margin: 0; }
.detail-section-title h3 { font-size: 15px; }
.detail-section-title p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.package-grid-v3 { gap: 8px; }
.package-grid-v3 .package-button { position: relative; min-height: 86px; display: grid; grid-template-columns: 22px minmax(0,1fr); grid-template-rows: auto auto; align-content: center; column-gap: 9px; padding: 13px; overflow: hidden; border-radius: 16px; }
.package-grid-v3 .package-radio { width: 20px; height: 20px; grid-row: span 2; align-self: center; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: #fff; font-size: 9px; }
.package-grid-v3 .package-button strong { grid-column: 2; font-size: 12px; }
.package-grid-v3 .package-button small { grid-column: 2; margin-top: 5px; font-size: 9px; }
.package-grid-v3 .package-button.selected { border-color: rgba(239,32,40,.7); box-shadow: inset 0 0 0 1px rgba(239,32,40,.14), 0 12px 30px rgba(239,32,40,.07); }
.package-grid-v3 .package-button.selected .package-radio { border-color: var(--red); background: var(--red); }
.package-grid-v3 .package-button em { position: absolute; top: 7px; right: -20px; width: 75px; padding: 3px 0; color: #fff; background: var(--red); font-size: 6px; font-style: normal; text-align: center; transform: rotate(35deg); }
.custom-stars-picker { margin-top: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(135deg, rgba(239,32,40,.045), rgba(255,255,255,.015)); }
.custom-stars-picker.active { border-color: rgba(239,32,40,.55); box-shadow: inset 0 0 0 1px rgba(239,32,40,.08); }
.custom-stars-copy { display: flex; align-items: center; gap: 10px; }
.custom-stars-copy > span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--red); box-shadow: 0 8px 20px var(--red-glow); }
.custom-stars-copy svg { width: 15px; height: 15px; }
.custom-stars-copy strong,
.custom-stars-copy small { display: block; }
.custom-stars-copy strong { font-size: 11px; }
.custom-stars-copy small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.custom-stars-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 12px; }
.custom-stars-controls .field { min-height: 43px; }
.custom-stars-controls button { min-width: 92px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-dark)); font-size: 10px; font-weight: 900; cursor: pointer; }
.custom-stars-note { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.service-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid rgba(245,158,11,.18); border-radius: 13px; color: #fbbf24; background: rgba(245,158,11,.055); }
.service-notice > svg { width: 18px; height: 18px; flex: none; }
.service-notice strong,
.service-notice small { display: block; }
.service-notice strong { font-size: 9px; }
.service-notice small { margin-top: 4px; color: #9e8f6c; font-size: 8px; line-height: 1.5; }
.detail-field > div { position: relative; }
.detail-field > div > svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); }
.detail-field .field { padding-left: 42px; }
.validate-player-button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 13px; color: var(--text); background: var(--panel-2); font-size: 10px; font-weight: 800; cursor: pointer; }
.validate-player-button svg { width: 16px; height: 16px; color: var(--red); }
.validate-player-button:hover { border-color: rgba(239,32,40,.35); }
.validate-player-button:disabled { opacity: .45; cursor: not-allowed; }
.validation-message.waiting { color: #fbbf24; }
.detail-summary-title { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; padding-top: 17px; border-top: 1px solid var(--border); }
.detail-summary-title h3 { margin: 0; font-size: 14px; }
.detail-summary-box { border-radius: 15px; }
.detail-summary-box .summary-row { min-height: 39px; }
.detail-buy-button { min-height: 48px; gap: 8px; }
.detail-buy-button svg { width: 18px; height: 18px; }
.checkout-trust { display: grid; gap: 7px; margin-top: 12px; }
.checkout-trust span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; }
.checkout-trust svg { width: 13px; height: 13px; color: #72727c; }
.support-contact-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.support-contact-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--red); background: var(--red-soft); }
.support-contact-card svg { width: 22px; height: 22px; }
.support-contact-card > div { flex: 1; }
.support-contact-card strong,
.support-contact-card small { display: block; }
.support-contact-card strong { font-size: 12px; }
.support-contact-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.support-contact-card > i { padding: 5px 7px; border-radius: 7px; color: #4ade80; background: rgba(34,197,94,.08); font-size: 7px; font-style: normal; font-weight: 900; }

@media (max-width: 720px) {
  .game-product-hero { align-items: flex-start; gap: 14px; padding: 16px; }
  .game-product-art { width: 76px; height: 76px; }
  .game-product-art img { border-radius: 19px; }
  .game-product-copy h1 { font-size: 23px; }
  .game-product-copy > p,
  .product-delivery { display: none; }
  .product-trust-row { margin-top: 10px; }
  .product-trust-row span:nth-child(3) { display: none; }
  .game-detail-v3 { grid-template-columns: 1fr; }
  .detail-checkout-panel { position: static; }
}

/* Fezot E-Shop admin v3 */
.admin-v2-body {
  --admin-bg: #090a0d;
  --admin-panel: #101216;
  --admin-panel-2: #15181e;
  --admin-line: rgba(255,255,255,.075);
  background: var(--admin-bg);
}

.admin-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.admin-auth {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, rgba(239,32,40,.17), transparent 22rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    #090a0d;
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.admin-auth::before,
.admin-auth::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(239,32,40,.11);
  border-radius: 50%;
}

.admin-auth::before { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.admin-auth::after { width: 660px; height: 660px; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: .5; }

.admin-auth-brand {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-auth-brand .brand-mark,
.admin-brand .brand-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 20px; }
.admin-auth-brand strong,
.admin-auth-brand small,
.admin-brand strong,
.admin-brand small { display: block; }
.admin-auth-brand strong,
.admin-brand strong { font-size: 14px; letter-spacing: .08em; }
.admin-auth-brand small,
.admin-brand small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .18em; }

.admin-auth-card {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(22,24,29,.96), rgba(12,13,17,.96));
  box-shadow: 0 40px 120px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(25px);
}

.admin-auth-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(239,32,40,.35);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, rgba(239,32,40,.25), rgba(239,32,40,.06));
  box-shadow: 0 0 36px rgba(239,32,40,.15);
}

.admin-auth-card h1 { margin: 9px 0 10px; font-size: 30px; letter-spacing: -.045em; }
.admin-auth-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.admin-auth-card form { margin-top: 26px; }
.admin-auth-card .primary-button { height: 50px; justify-content: space-between; margin-top: 14px; padding: 0 18px; }
.admin-token-field { position: relative; }
.admin-token-field > span { position: absolute; left: 16px; top: 50%; color: var(--muted); transform: translateY(-50%); z-index: 1; }
.admin-token-field .field { height: 50px; padding-left: 44px; background: rgba(0,0,0,.28); }
.admin-auth-foot { display: block; margin-top: 22px; color: var(--muted-2); text-align: center; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.admin-app { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0,1fr); }
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--admin-line);
  background: rgba(12,13,17,.96);
  backdrop-filter: blur(24px);
  z-index: 60;
}

.admin-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 24px; color: #fff; text-decoration: none; }
.admin-nav { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.admin-nav > small { margin: 17px 12px 7px; color: #50545e; font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.admin-nav button,
.admin-nav a {
  position: relative;
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #858993;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
}
.admin-nav button > span,
.admin-nav a > span { width: 20px; color: #656a74; font-size: 17px; text-align: center; }
.admin-nav button:hover,
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.admin-nav button.active { color: #fff; background: linear-gradient(90deg, rgba(239,32,40,.17), rgba(239,32,40,.045)); box-shadow: inset 2px 0 var(--red); }
.admin-nav button.active > span { color: #ff4e55; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--red); font-size: 9px; }

.admin-sidebar-bottom { display: grid; gap: 10px; }
.admin-health-card { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--admin-line); border-radius: 14px; background: rgba(255,255,255,.025); }
.admin-health-card > i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 5px rgba(245,158,11,.1); }
.admin-health-card > i.ok { background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.1); }
.admin-health-card span,
.admin-health-card strong,
.admin-health-card small { display: block; }
.admin-health-card strong { font-size: 10px; }
.admin-health-card small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.admin-profile-button { display: flex; align-items: center; gap: 9px; padding: 10px 8px; border: 0; border-radius: 13px; background: transparent; cursor: pointer; text-align: left; }
.admin-profile-button:hover { background: rgba(255,255,255,.04); }
.admin-profile-button > span:nth-child(2) { flex: 1; }
.admin-profile-button strong,
.admin-profile-button small { display: block; }
.admin-profile-button strong { font-size: 10px; }
.admin-profile-button small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.admin-profile-button > b { color: #555a64; }
.admin-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #ef2028, #8f1016); font-size: 11px; font-weight: 900; }

.admin-main { grid-column: 2; min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 40; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 28px; border-bottom: 1px solid var(--admin-line); background: rgba(9,10,13,.83); backdrop-filter: blur(22px); }
.admin-topbar > div:first-child { display: flex; align-items: center; gap: 12px; }
.admin-topbar p { margin: 0 0 5px; color: #676b76; font-size: 9px; font-weight: 700; }
.admin-topbar h1 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.admin-top-actions { display: flex; align-items: center; gap: 8px; }
.admin-period,
.admin-icon-button { height: 38px; border: 1px solid var(--admin-line); border-radius: 11px; color: #bec1c8; background: var(--admin-panel); font-size: 10px; font-weight: 700; }
.admin-period { padding: 0 30px 0 12px; cursor: pointer; }
.admin-icon-button { width: 38px; display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.admin-icon-button:hover { border-color: rgba(239,32,40,.4); color: #fff; }
.admin-icon-button.spinning { animation: adminSpin .8s linear infinite; }
.admin-date { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--admin-line); color: #747984; font-size: 10px; }
.admin-mobile-menu { display: none; width: 38px; height: 38px; border: 1px solid var(--admin-line); border-radius: 11px; background: var(--admin-panel); cursor: pointer; }
@keyframes adminSpin { to { transform: rotate(360deg); } }

.admin-content { width: min(1540px, 100%); margin: auto; padding: 24px 28px 60px; }
.admin-welcome-strip { min-height: 115px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; overflow: hidden; border: 1px solid rgba(239,32,40,.18); border-radius: 20px; background: radial-gradient(circle at 82% 30%, rgba(239,32,40,.17), transparent 16rem), linear-gradient(120deg, #14161b, #0f1014); }
.admin-welcome-strip span,
.admin-panel-head span { color: #ee3940; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.admin-welcome-strip h2 { margin: 7px 0 5px; font-size: 21px; letter-spacing: -.035em; }
.admin-welcome-strip p { margin: 0; color: var(--muted); font-size: 10px; }
.admin-welcome-strip > div:last-child { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgba(34,197,94,.18); border-radius: 20px; color: #b8c0ba; background: rgba(34,197,94,.05); font-size: 9px; font-weight: 700; }
.admin-welcome-strip > div:last-child i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.09); animation: pulseLive 1.8s infinite; }
@keyframes pulseLive { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }

.admin-metric-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.admin-metric { min-height: 123px; display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid var(--admin-line); border-radius: 17px; background: linear-gradient(145deg, var(--admin-panel-2), #101216); }
.metric-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; font-size: 14px; font-weight: 900; }
.admin-metric > div:last-child { min-width: 0; }
.admin-metric span,
.admin-metric strong,
.admin-metric small { display: block; }
.admin-metric span { min-height: 26px; color: #858a94; font-size: 8px; font-weight: 700; line-height: 1.4; }
.admin-metric strong { margin-top: 5px; overflow: hidden; font-size: clamp(17px,1.8vw,25px); letter-spacing: -.04em; text-overflow: ellipsis; }
.admin-metric small { margin-top: 7px; color: #5d626c; font-size: 8px; white-space: nowrap; }
.admin-metric.purple .metric-icon { color: #c4a7ff; background: rgba(139,92,246,.13); }
.admin-metric.blue .metric-icon { color: #7dd3fc; background: rgba(14,165,233,.13); }
.admin-metric.orange .metric-icon { color: #fdba74; background: rgba(249,115,22,.13); }
.admin-metric.green .metric-icon { color: #86efac; background: rgba(34,197,94,.13); }
.admin-metric.red .metric-icon { color: #fca5a5; background: rgba(239,32,40,.13); }
.admin-metric.cyan .metric-icon { color: #67e8f9; background: rgba(6,182,212,.13); }

.admin-dashboard-grid { display: grid; grid-template-columns: 1.45fr .75fr .9fr; gap: 12px; margin-top: 12px; }
.admin-panel { min-width: 0; padding: 20px; border: 1px solid var(--admin-line); border-radius: 18px; background: linear-gradient(145deg, var(--admin-panel), #0e1014); }
.admin-panel-head { min-height: 38px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-panel-head h3 { margin: 6px 0 0; font-size: 14px; letter-spacing: -.025em; }
.admin-panel-head button { padding: 5px 0; border: 0; color: #7b808a; background: none; font-size: 9px; font-weight: 700; cursor: pointer; }
.admin-panel-head button:hover { color: #fff; }
.admin-chart-panel { grid-column: span 2; min-height: 320px; }
.admin-status-panel { min-height: 320px; }
.chart-legend { display: flex; align-items: center; gap: 6px; color: #6f747e; font-size: 8px; }
.chart-legend i { width: 7px; height: 7px; margin-left: 5px; border-radius: 2px; }
.chart-legend i.users { background: #ef2028; }
.chart-legend i.orders { background: #4c78ff; }
.activity-chart { position: relative; height: 235px; margin-top: 20px; }
.chart-grid-lines { position: absolute; inset: 0 0 28px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid-lines i { width: 100%; border-top: 1px dashed rgba(255,255,255,.055); }
.chart-columns { position: absolute; inset: 0; display: flex; align-items: stretch; gap: 7px; }
.chart-day { min-width: 8px; flex: 1; display: flex; flex-direction: column; align-items: center; }
.chart-bars { width: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.chart-bars i { width: min(8px,42%); min-height: 2px; border-radius: 3px 3px 1px 1px; transition: height .4s ease; }
.chart-bars i.users { background: linear-gradient(#ff4c53, #bd1118); box-shadow: 0 -4px 14px rgba(239,32,40,.15); }
.chart-bars i.orders { background: linear-gradient(#7193ff, #315bd8); }
.chart-day small { height: 27px; display: grid; place-items: end center; color: #555a64; font-size: 7px; }

.status-chart-wrap { min-height: 235px; display: grid; grid-template-columns: 140px minmax(0,1fr); align-items: center; gap: 18px; padding-top: 15px; }
.status-donut { width: 140px; height: 140px; display: grid; place-items: center; border-radius: 50%; }
.status-donut > div { width: 96px; height: 96px; display: grid; place-content: center; border-radius: 50%; background: #101216; text-align: center; box-shadow: 0 0 0 1px var(--admin-line); }
.status-donut strong,
.status-donut small { display: block; }
.status-donut strong { font-size: 26px; }
.status-donut small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.status-legend { display: grid; gap: 9px; }
.status-legend > div { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 8px; }
.status-legend i { width: 7px; height: 7px; border-radius: 2px; }
.status-legend span { overflow: hidden; color: #7a7f89; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.status-legend b { font-size: 9px; }

.admin-list { margin: 13px -5px -5px; }
.admin-list-row { width: 100%; min-height: 51px; display: flex; align-items: center; gap: 10px; padding: 7px 5px; border: 0; border-top: 1px solid rgba(255,255,255,.045); color: #fff; background: none; text-align: left; }
button.admin-list-row { cursor: pointer; }
button.admin-list-row:hover { background: rgba(255,255,255,.025); }
.list-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 11px; font-size: 9px; font-weight: 900; }
.list-icon.game { color: #ff8085; background: rgba(239,32,40,.1); }
.list-icon.user { color: #cbd5e1; background: #20232a; }
.list-icon img { width: 100%; height: 100%; object-fit: cover; }
.list-icon.user { position: relative; }
.list-icon.user .user-avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.list-icon.user img { position: relative; z-index: 1; background: #20232a; }
.list-copy { min-width: 0; flex: 1; }
.list-copy strong,
.list-copy small,
.list-right strong,
.list-right small { display: block; }
.list-copy strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.list-copy small { margin-top: 4px; overflow: hidden; color: #626772; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.list-right { flex: none; text-align: right; }
.list-right strong { font-size: 8px; }
.list-right small { margin-top: 4px; font-size: 7px; }
.text-done { color: #4ade80; }
.text-waiting { color: #fbbf24; }
.text-failed { color: #f87171; }
.source-chip { flex: none; padding: 5px 7px; border: 1px solid var(--admin-line); border-radius: 7px; color: #888d97; background: rgba(255,255,255,.025); font-size: 7px; font-weight: 700; }

.top-game-row { min-height: 56px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.045); }
.top-game-row > b { width: 20px; color: #555a64; font-size: 9px; }
.top-game-row > span { min-width: 0; flex: 1; }
.top-game-row > span > strong,
.top-game-row > span > small { display: block; }
.top-game-row > span > strong { font-size: 9px; }
.top-game-row > span > small { margin-top: 3px; color: #5e636e; font-size: 7px; }
.top-game-row > span > i { display: block; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: #24272e; }
.top-game-row > span > i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ef2028, #ff646b); }
.top-game-row > strong { color: #b2b6be; font-size: 8px; }
.admin-empty-compact { min-height: 120px; display: grid; place-content: center; color: #555b65; text-align: center; }
.admin-empty-compact strong,
.admin-empty-compact small { display: block; }
.admin-empty-compact strong { font-size: 10px; }
.admin-empty-compact small { margin-top: 6px; font-size: 8px; }

.admin-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 5px 0 20px; }
.admin-section-head h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.admin-section-head p { margin: 7px 0 0; color: #727781; font-size: 10px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 8px; border: 1px solid var(--admin-line); border-radius: 15px; background: var(--admin-panel); }
.admin-toolbar .admin-filter-tabs { display: flex; margin: 0; gap: 4px; }
.admin-toolbar .tab-button { height: 35px; flex: none; padding: 0 13px; border: 0; border-radius: 9px; color: #777c86; background: transparent; font-size: 9px; }
.admin-toolbar .tab-button.active { color: #fff; background: #24272d; box-shadow: none; }
.admin-search { width: min(260px, 100%); height: 36px; border-radius: 9px; background: #0c0e11; font-size: 9px; }
.admin-order-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 0; }
.admin-order-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--admin-line); border-radius: 18px; background: linear-gradient(145deg, var(--admin-panel), #0e1014); }
.admin-order-accent { position: absolute; inset: 0 0 auto; height: 2px; background: #f59e0b; }
.admin-order-accent.done { background: #22c55e; }
.admin-order-accent.failed { background: #ef4444; }
.admin-order-card .status-pill { height: 23px; padding: 0 8px; font-size: 7px; }
.admin-order-card .status-pill i { width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; }
.admin-order-card .admin-order-head h2 { font-size: 17px; }
.admin-order-card .admin-price { font-size: 14px; }
.admin-order-card .admin-detail-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.admin-order-card .admin-detail-list > div { padding: 9px; border: 1px solid rgba(255,255,255,.035); border-radius: 10px; background: rgba(255,255,255,.018); }
.admin-order-card .admin-detail-list dt { font-size: 7px; }
.admin-order-card .admin-detail-list dd { font-size: 9px; }
.admin-order-card .admin-actions button { min-height: 35px; flex: 1 1 100px; padding: 0 10px; border-radius: 9px; font-size: 8px; }

.users-toolbar { padding: 10px 12px; }
.users-toolbar > span { margin-left: auto; color: #777c86; font-size: 9px; }
.admin-table-panel { padding: 0; overflow: hidden; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { height: 44px; padding: 0 18px; color: #5f646f; background: rgba(255,255,255,.016); font-size: 8px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.admin-table td { height: 62px; padding: 8px 18px; border-top: 1px solid var(--admin-line); color: #9297a1; font-size: 9px; }
.admin-table td b { color: #d9dbe0; font-size: 9px; }
.table-user { min-width: 170px; display: flex; align-items: center; gap: 10px; }
.table-user strong,
.table-user small { display: block; }
.table-user strong { color: #e7e8eb; font-size: 9px; }
.table-user small { margin-top: 4px; color: #626771; font-size: 8px; }

.system-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.system-card { min-height: 180px; display: flex; align-items: flex-start; gap: 15px; padding: 20px; border: 1px solid var(--admin-line); border-radius: 18px; background: linear-gradient(145deg, var(--admin-panel), #0d0f12); }
.system-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid rgba(239,32,40,.16); border-radius: 13px; color: #ff5a61; background: rgba(239,32,40,.08); font-size: 14px; font-weight: 900; }
.system-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 7px; font-size: 7px; font-weight: 800; }
.system-state i { width: 5px; height: 5px; border-radius: 50%; }
.system-state.ok { color: #6ee7a0; background: rgba(34,197,94,.08); }
.system-state.ok i { background: #22c55e; }
.system-state.warn { color: #fbbf24; background: rgba(245,158,11,.08); }
.system-state.warn i { background: #f59e0b; }
.system-card h3 { margin: 15px 0 7px; font-size: 12px; }
.system-card p { margin: 0; color: #686d77; font-size: 9px; line-height: 1.6; }
.system-flow { margin-top: 12px; }
.system-flow-steps { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; }
.system-flow-steps > div { min-width: 0; flex: 1; display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--admin-line); border-radius: 14px; background: rgba(255,255,255,.018); }
.system-flow-steps > div > b { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #ff767c; background: rgba(239,32,40,.1); font-size: 10px; }
.system-flow-steps strong,
.system-flow-steps small { display: block; }
.system-flow-steps strong { font-size: 9px; }
.system-flow-steps small { margin-top: 4px; color: #606570; font-size: 7px; line-height: 1.4; }
.system-flow-steps > i { color: #3d414a; }
.modal-primary { margin-top: 14px; }

@media (max-width: 1250px) {
  .admin-metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr 1fr; }
  .admin-chart-panel { grid-column: span 2; }
  .admin-order-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .system-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .admin-app { display: block; }
  .admin-sidebar { transform: translateX(-102%); transition: transform .25s ease; box-shadow: 30px 0 70px rgba(0,0,0,.55); }
  .admin-sidebar.mobile-open { transform: translateX(0); }
  .admin-main { grid-column: auto; }
  .admin-mobile-menu { display: grid; place-items: center; }
  .admin-topbar { padding: 12px 16px; }
  .admin-date { display: none; }
  .admin-content { padding: 16px 14px 45px; }
  .admin-welcome-strip { padding: 20px; }
  .admin-dashboard-grid { display: grid; grid-template-columns: 1fr; }
  .admin-chart-panel { grid-column: auto; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-toolbar .admin-filter-tabs { overflow-x: auto; }
  .admin-search { width: 100%; }
  .admin-order-grid { grid-template-columns: 1fr; }
  .system-flow-steps { align-items: stretch; flex-direction: column; }
  .system-flow-steps > i { align-self: center; transform: rotate(90deg); }
}

@media (max-width: 560px) {
  .admin-auth-brand { top: 18px; left: 18px; }
  .admin-auth-card { padding: 28px 22px; border-radius: 23px; }
  .admin-topbar h1 { max-width: 180px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-topbar p { display: none; }
  .admin-period { width: 76px; padding: 0 5px; }
  .admin-welcome-strip > div:last-child { display: none; }
  .admin-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-metric { min-height: 112px; padding: 13px; }
  .metric-icon { width: 29px; height: 29px; }
  .admin-status-panel { min-height: auto; }
  .status-chart-wrap { grid-template-columns: 110px minmax(0,1fr); min-height: 190px; }
  .status-donut { width: 110px; height: 110px; }
  .status-donut > div { width: 76px; height: 76px; }
  .status-donut strong { font-size: 21px; }
  .system-card-grid { grid-template-columns: 1fr; }
  .admin-section-head h2 { font-size: 21px; }
}

/* Fezot E-Shop admin v4 — softer, more readable admin theme */
.admin-v2-body {
  --admin-bg: #111822;
  --admin-panel: #182230;
  --admin-panel-2: #1d2938;
  --admin-line: rgba(148,163,184,.16);
  color: #edf2f7;
  background: var(--admin-bg);
}
.admin-v2-body .admin-noise { display: none; }
.admin-v2-body .admin-app { grid-template-columns: 258px minmax(0,1fr); background: var(--admin-bg); }
.admin-v2-body .admin-sidebar { width: 258px; padding: 24px 16px 18px; background: #151e2a; backdrop-filter: none; }
.admin-v2-body .admin-main { min-height: 100vh; background: radial-gradient(circle at 75% 0, rgba(74,98,125,.1), transparent 34rem), #111822; }
.admin-v2-body .admin-topbar { min-height: 78px; padding: 14px 30px; background: rgba(17,24,34,.94); backdrop-filter: blur(16px); }
.admin-v2-body .admin-topbar p { color: #8d9aab; font-size: 11px; }
.admin-v2-body .admin-topbar h1 { font-size: 20px; }
.admin-v2-body .admin-date { color: #9aa8b9; font-size: 11px; }
.admin-v2-body .admin-nav { gap: 5px; }
.admin-v2-body .admin-nav > small { color: #6f7d8e; font-size: 9px; }
.admin-v2-body .admin-nav button,
.admin-v2-body .admin-nav a { min-height: 46px; color: #a8b3c2; font-size: 13px; }
.admin-v2-body .admin-nav button:hover,
.admin-v2-body .admin-nav a:hover { color: #f8fafc; background: rgba(148,163,184,.08); }
.admin-v2-body .admin-nav button.active { background: rgba(239,32,40,.1); box-shadow: inset 3px 0 #ef343b; }
.admin-v2-body .admin-health-card { background: #1b2634; }
.admin-v2-body .admin-health-card strong,
.admin-v2-body .admin-profile-button strong { font-size: 12px; }
.admin-v2-body .admin-health-card small,
.admin-v2-body .admin-profile-button small { color: #8795a8; font-size: 10px; }
.admin-v2-body .admin-content { width: min(1480px,100%); padding: 30px 32px 70px; }
.admin-v2-body .admin-welcome-strip { border-color: rgba(239,52,59,.2); background: radial-gradient(circle at 84% 30%, rgba(239,52,59,.12), transparent 18rem), #192330; }
.admin-v2-body .admin-welcome-strip h2 { font-size: 24px; }
.admin-v2-body .admin-welcome-strip p,
.admin-v2-body .admin-section-head p { color: #9aa8b8; font-size: 12px; }
.admin-v2-body .admin-welcome-strip span,
.admin-v2-body .admin-panel-head span { font-size: 9px; }
.admin-v2-body .admin-metric,
.admin-v2-body .admin-panel,
.admin-v2-body .admin-order-card,
.admin-v2-body .system-card { border-color: var(--admin-line); background: var(--admin-panel); box-shadow: 0 12px 34px rgba(5,10,18,.12); }
.admin-v2-body .admin-metric { min-height: 132px; padding: 18px; }
.admin-v2-body .admin-metric span { color: #a1adbd; font-size: 10px; }
.admin-v2-body .admin-metric small { color: #8290a2; font-size: 9px; }
.admin-v2-body .admin-panel-head h3 { font-size: 16px; }
.admin-v2-body .admin-panel-head button,
.admin-v2-body .chart-legend { color: #91a0b2; font-size: 10px; }
.admin-v2-body .list-copy strong,
.admin-v2-body .top-game-row > span > strong { font-size: 11px; }
.admin-v2-body .list-copy small,
.admin-v2-body .list-right small,
.admin-v2-body .top-game-row > span > small { color: #8290a2; font-size: 9px; }
.admin-v2-body .list-right strong,
.admin-v2-body .top-game-row > strong { font-size: 10px; }
.admin-v2-body .source-chip { color: #aab5c4; background: #202c3b; font-size: 9px; }
.admin-v2-body .admin-section-head { align-items: center; margin: 5px 0 24px; }
.admin-v2-body .admin-section-head h2 { font-size: 27px; }
.admin-v2-body .admin-toolbar { padding: 10px; background: #17212e; }
.admin-v2-body .admin-toolbar .tab-button { color: #9aa7b7; font-size: 11px; }
.admin-v2-body .admin-toolbar .tab-button.active { background: #253244; }
.admin-v2-body .admin-search,
.admin-v2-body .admin-select { min-height: 40px; color: #e8edf4; background: #111923; font-size: 11px; }
.admin-v2-body .admin-table th { height: 48px; color: #8997a9; background: #151f2b; font-size: 9px; }
.admin-v2-body .admin-table td { height: 70px; color: #aab5c3; font-size: 11px; }
.admin-v2-body .admin-table td b,
.admin-v2-body .table-user strong { color: #edf2f7; font-size: 11px; }
.admin-v2-body .table-user small { color: #8795a6; font-size: 9px; }
.admin-v2-body .system-card { min-height: 160px; }
.admin-v2-body .system-card h3 { font-size: 14px; }
.admin-v2-body .system-card p { color: #91a0b1; font-size: 11px; }
.admin-v2-body .system-state { font-size: 9px; }
.admin-v2-body .system-flow-steps strong { font-size: 11px; }
.admin-v2-body .system-flow-steps small { color: #8996a7; font-size: 9px; }
.admin-v2-body .modal { border-color: var(--admin-line); background: #182230; }

.admin-head-actions { display: flex; align-items: center; gap: 10px; }
.admin-head-actions button { min-height: 42px; padding: 0 16px; }
.catalog-toolbar { justify-content: flex-start; }
.catalog-toolbar .admin-search { width: min(400px,100%); }
.admin-select { width: 190px; padding: 0 12px; border: 1px solid var(--admin-line); border-radius: 10px; }
#catalogCount { margin-left: auto; padding-right: 8px; color: #94a3b8; font-size: 11px; }
.catalog-name { min-width: 220px; display: flex; align-items: center; gap: 11px; }
.catalog-name > span { width: 42px; height: 42px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 11px; color: #fca5a5; background: rgba(239,52,59,.1); font-size: 10px; font-weight: 900; }
.catalog-name > span img { width: 100%; height: 100%; display: block; object-fit: cover; }
.catalog-name b,
.catalog-name small,
.table-subtext { display: block; }
.catalog-name small,
.table-subtext { margin-top: 4px; color: #7f8da0; font-size: 9px; }
.catalog-price { color: #f8fafc; font-size: 12px; }
.catalog-warning { display: inline-flex; padding: 6px 8px; border-radius: 8px; color: #fbbf24; background: rgba(245,158,11,.1); font-size: 9px; font-weight: 700; }
.catalog-status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; }
.catalog-status i { width: 7px; height: 7px; border-radius: 50%; }
.catalog-status.active { color: #72dda0; }
.catalog-status.active i { background: #22c55e; }
.catalog-status.inactive { color: #93a0b1; }
.catalog-status.inactive i { background: #64748b; }
.table-action-button { min-height: 34px; padding: 0 12px; border: 1px solid var(--admin-line); border-radius: 9px; color: #d3dbe6; background: #202c3b; font-size: 10px; font-weight: 700; cursor: pointer; }
.table-action-button:hover { border-color: rgba(239,52,59,.4); color: #fff; }
.admin-info-note { margin-top: 14px; padding: 13px 15px; border: 1px solid rgba(56,189,248,.18); border-radius: 12px; color: #a5b4c6; background: rgba(14,165,233,.055); font-size: 11px; line-height: 1.6; }
.admin-info-note b { color: #d8e4ef; }
.admin-info-note.compact { margin: 0; }

.payment-settings-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 16px; align-items: stretch; }
.settings-form { display: grid; gap: 18px; }
.settings-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-form .form-group + .form-group { margin-top: 0; }
.settings-form .field,
.offer-form .field { min-height: 46px; border-color: var(--admin-line); border-radius: 11px; background: #111923; }
.settings-form > .primary-button { width: fit-content; min-width: 190px; }
.card-preview-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.card-preview-panel > div:first-child span,
.card-preview-panel > div:first-child small { display: block; }
.card-preview-panel > div:first-child span { color: #ef4148; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.card-preview-panel > div:first-child small { margin-top: 7px; color: #91a0b1; font-size: 11px; }
.admin-bank-card { min-height: 215px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: radial-gradient(circle at 90% 5%, rgba(255,255,255,.15), transparent 10rem), linear-gradient(135deg,#cc2028,#68141a); box-shadow: 0 22px 50px rgba(70,10,16,.22); }
.admin-bank-card.humo { margin-top: 14px; background: radial-gradient(circle at 90% 5%, rgba(255,255,255,.12), transparent 10rem), linear-gradient(135deg,#171719,#3b0b0f); }
.settings-subtitle { margin: 4px 0 -6px; color: #fff; font-size: 11px; letter-spacing: .14em; }
.field-hint { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.admin-image-field { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--admin-line); border-radius: 14px; background: #101722; }
.admin-image-field > img,
.offer-image-preview { width: 190px; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #08090b; object-fit: cover; }
.offer-image-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.offer-image-preview span { color: #ef343b; font-size: 22px; font-weight: 900; }
.admin-image-field > div:last-child { display: grid; justify-items: start; gap: 8px; }
.admin-image-field input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-image-field small { color: #8996a7; font-size: 10px; }
.remove-image-check { display: flex; align-items: center; gap: 7px; color: #aab5c4; font-size: 10px; cursor: pointer; }
.remove-image-check input { position: static !important; width: auto !important; height: auto !important; opacity: 1 !important; pointer-events: auto !important; accent-color: #ef343b; }
.promo-admin-code { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(239,52,59,.25); border-radius: 9px; color: #fff; background: rgba(239,52,59,.1); letter-spacing: .08em; }

.advertisement-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.advertisement-summary article { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; border: 1px solid var(--admin-line); border-radius: 16px; background: #111113; }
.advertisement-summary span { color: #ef4148; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.advertisement-summary strong { margin-top: 7px; color: #fff; font-size: 24px; }
.advertisement-summary small { margin-top: 5px; color: #85858e; font-size: 10px; }
.advertisement-campaigns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.advertisement-card { min-width: 0; padding: 20px; border: 1px solid var(--admin-line); border-radius: 18px; background: #111113; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.advertisement-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.advertisement-card-head h3 { margin: 10px 0 4px; color: #fff; font-size: 17px; }
.advertisement-card-head small { color: #777780; font-size: 9px; }
.advertisement-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.advertisement-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.advertisement-status.done { color: #fff; background: rgba(255,255,255,.08); }
.advertisement-status.queued { color: #fca5a5; background: rgba(239,32,40,.1); }
.advertisement-status.sending { color: #fff; background: rgba(239,32,40,.18); }
.advertisement-status.sending i { animation: adPulse 1s ease-in-out infinite; }
.advertisement-status.partial { color: #ffb1b5; background: rgba(239,32,40,.14); }
.advertisement-status.failed { color: #ff7c82; background: rgba(143,18,24,.24); }
@keyframes adPulse { 50% { opacity: .3; transform: scale(.7); } }
.advertisement-media-badge { min-width: 62px; display: grid; place-items: center; gap: 5px; padding: 10px; border: 1px solid var(--admin-line); border-radius: 12px; background: #080809; }
.advertisement-media-badge b { color: #ef343b; font-size: 16px; }
.advertisement-media-badge span { color: #92929b; font-size: 8px; font-weight: 800; }
.advertisement-copy { min-height: 48px; max-height: 92px; margin: 16px 0; overflow: hidden; color: #c2c2c8; font-size: 11px; line-height: 1.6; white-space: pre-line; }
.advertisement-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.advertisement-meta > span { min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: #0b0b0d; }
.advertisement-meta small,.advertisement-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.advertisement-meta small { color: #66666e; font-size: 7px; letter-spacing: .07em; }
.advertisement-meta b { margin-top: 5px; color: #ededf1; font-size: 9px; }
.advertisement-progress { margin-top: 16px; }
.advertisement-progress > div { display: flex; justify-content: space-between; color: #9a9aa2; font-size: 9px; }
.advertisement-progress > i { height: 6px; display: block; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #29292e; }
.advertisement-progress > i em { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#ef2028,#ff535a); transition: width .3s ease; }
.advertisement-progress > small { display: block; margin-top: 6px; color: #707078; font-size: 8px; }
.advertisement-error { margin-top: 14px; padding: 12px; border: 1px solid rgba(239,32,40,.2); border-radius: 11px; color: #b9b9bf; background: rgba(239,32,40,.06); font-size: 9px; line-height: 1.5; }
.advertisement-error > b,.advertisement-error > span { display: block; }
.advertisement-error > b { margin-bottom: 5px; color: #ff7379; }
.advertisement-error ul { max-height: 100px; margin: 8px 0 0; padding: 8px 0 0; overflow: auto; border-top: 1px solid rgba(255,255,255,.07); list-style: none; }
.advertisement-error li { display: grid; grid-template-columns: minmax(80px,.5fr) 1fr; gap: 8px; margin-top: 5px; }
.advertisement-error li b { color: #fff; }
.advertisement-card .admin-actions { margin-top: 16px; }
.advertisement-form .textarea-field { min-height: 130px; color: #fff; border-color: var(--admin-line); background: #080809; }
.advertisement-media-picker { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--admin-line); border-radius: 14px; background: #0b0b0d; }
#advertisementMediaPreview { width: 210px; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; border: 1px dashed rgba(255,255,255,.16); border-radius: 12px; color: #74747d; background: #050506; font-size: 10px; }
#advertisementMediaPreview img,#advertisementMediaPreview video { width: 100%; height: 100%; display: block; object-fit: cover; }
.advertisement-media-picker > div:last-child { display: grid; justify-items: start; gap: 8px; }
.advertisement-media-picker input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.advertisement-media-picker small { color: #85858e; font-size: 9px; line-height: 1.5; }
.text-button { padding: 0; color: #ff7379; border: 0; background: transparent; font-size: 10px; cursor: pointer; }
.advertisement-buttons-editor { padding: 14px; border: 1px solid var(--admin-line); border-radius: 14px; background: #0b0b0d; }
.advertisement-buttons-editor > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.advertisement-buttons-editor > div:first-child b,.advertisement-buttons-editor > div:first-child small { display: block; }
.advertisement-buttons-editor > div:first-child b { color: #fff; font-size: 11px; }
.advertisement-buttons-editor > div:first-child small { margin-top: 4px; color: #777780; font-size: 9px; }
#advertisementButtons { display: grid; gap: 8px; margin-top: 12px; }
#advertisementButtons:empty { display: none; }
.advertisement-button-row { display: grid; grid-template-columns: minmax(120px,.75fr) minmax(220px,1.5fr) 38px; gap: 8px; }
.advertisement-button-row .field { min-width: 0; }
.advertisement-remove-button { border: 1px solid rgba(239,32,40,.22); border-radius: 10px; color: #ff747a; background: rgba(239,32,40,.08); cursor: pointer; }
.advertisement-silent { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--admin-line); border-radius: 12px; background: #0b0b0d; cursor: pointer; }
.advertisement-silent input { accent-color: #ef2028; }
.advertisement-silent b,.advertisement-silent small { display: block; }
.advertisement-silent b { color: #fff; font-size: 10px; }
.advertisement-silent small { margin-top: 3px; color: #777780; font-size: 8px; }
.advertisement-modal-media { width: 100%; max-height: 65vh; display: block; border-radius: 14px; background: #050506; object-fit: contain; }

@media (max-width: 900px) {
  .advertisement-campaigns { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .advertisement-summary { grid-template-columns: 1fr; }
  .advertisement-summary article { min-height: 92px; }
  .advertisement-meta { grid-template-columns: 1fr 1fr; }
  .advertisement-media-picker { grid-template-columns: 1fr; }
  #advertisementMediaPreview { width: 100%; }
  .advertisement-button-row { grid-template-columns: 1fr 38px; }
  .advertisement-button-row [data-ad-button-url] { grid-column: 1 / -1; grid-row: 2; }
  .advertisement-button-row .advertisement-remove-button { grid-column: 2; grid-row: 1; }
}

/* Onboarding, UZS card choice and CodeePay SBP */
.onboarding-card { text-align: center; }
.onboarding-logo { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: linear-gradient(145deg,#ff2732,#a90c14); box-shadow: 0 18px 42px rgba(239,32,40,.28); font-size: 28px; font-weight: 900; font-style: italic; }
.onboarding-card h2 { margin: 10px auto; max-width: 460px; font-size: clamp(25px,5vw,38px); line-height: 1.08; }
.onboarding-card > p { max-width: 480px; margin: 0 auto 24px; color: var(--muted); line-height: 1.7; }
.onboarding-card > .primary-button { margin-top: 22px; }
.onboarding-step { display: inline-flex; margin-bottom: 15px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 800; }
.onboarding-options { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.onboarding-options button { width: 100%; min-height: 78px; display: flex; align-items: center; gap: 14px; padding: 14px; color: var(--text); border: 1px solid var(--line); border-radius: 17px; background: var(--soft); text-align: left; cursor: pointer; }
.onboarding-options button:hover { border-color: rgba(239,32,40,.65); background: rgba(239,32,40,.08); }
.onboarding-options button:disabled { opacity: .42; cursor: not-allowed; }
.onboarding-options button > b { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#ef2028,#831017); font-size: 13px; }
.onboarding-options button > span { min-width: 0; flex: 1; }
.onboarding-options strong,.onboarding-options small { display: block; }
.onboarding-options strong { margin-bottom: 5px; font-size: 14px; }
.onboarding-options small { color: var(--muted); font-size: 11px; }
.checkout-card-tabs { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 10px; }
.checkout-card-tabs button { min-height: 42px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font-weight: 900; cursor: pointer; }
.checkout-card-tabs button.active { color: #fff; border-color: var(--red); background: rgba(239,32,40,.15); }
.sbp-badge { margin-top: 8px; display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid rgba(0,174,239,.25); border-radius: 16px; background: linear-gradient(135deg,rgba(0,174,239,.09),rgba(113,51,255,.08)); }
.sbp-badge strong { width: 54px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: linear-gradient(135deg,#00aeef,#7133ff); }
.sbp-badge span { color: var(--muted); font-size: 12px; font-weight: 700; }

@media (max-width: 680px) {
  .order-row { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: start; gap: 12px; padding: 18px 16px; }
  .order-row .status-icon { grid-row: 1 / span 2; }
  .order-row .row-copy { min-width: 0; }
  .order-row .row-copy strong { white-space: normal; line-height: 1.25; }
  .order-package,.order-player { display: block; margin-top: 5px; white-space: normal; overflow-wrap: anywhere; }
  .order-meta { grid-column: 2; width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; text-align: left; }
  .order-meta > strong { font-size: 16px; }
  .order-meta > small:not(.order-status-copy) { text-align: right; }
  .order-meta .status-pill { width: fit-content; }
  .order-status-copy { grid-column: 1 / -1; max-width: none; text-align: left; line-height: 1.45; overflow-wrap: anywhere; }
  .onboarding-card h2 { font-size: 27px; }
}
.bank-card-top { display: flex; align-items: center; justify-content: space-between; }
.bank-card-top b { font-size: 13px; }
.bank-card-top i { font-size: 11px; font-style: normal; font-weight: 900; letter-spacing: .15em; }
.admin-bank-card > strong { font-size: clamp(18px,2vw,25px); letter-spacing: .09em; }
.admin-bank-card > div:last-child span,
.admin-bank-card > div:last-child b { display: block; }
.admin-bank-card > div:last-child span { margin-bottom: 5px; color: rgba(255,255,255,.65); font-size: 8px; letter-spacing: .13em; }
.admin-bank-card > div:last-child b { font-size: 12px; letter-spacing: .06em; }
.card-preview-panel > p { margin: 0; color: #91a0b1; font-size: 11px; line-height: 1.6; }

.offer-form { display: grid; gap: 16px; }
.offer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.offer-form .form-group + .form-group { margin-top: 0; }
.offer-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.offer-checks label { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid var(--admin-line); border-radius: 10px; color: #b7c2d0; background: #151f2b; font-size: 11px; cursor: pointer; }
.offer-checks input { accent-color: #ef343b; }

@media (min-width: 760px) {
  .admin-v2-body .modal { left: 50%; right: auto; bottom: 28px; width: min(680px,calc(100vw - 40px)); transform: translateX(-50%); padding: 18px 24px 24px; animation: adminModalIn .24s ease both; }
}
@keyframes adminModalIn {
  from { opacity: 0; transform: translate(-50%,18px); }
  to { opacity: 1; transform: translate(-50%,0); }
}
@media (max-width: 900px) {
  .payment-settings-grid { grid-template-columns: 1fr; }
  .catalog-section-head { align-items: stretch; flex-direction: column; gap: 14px; }
  .admin-head-actions { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .admin-v2-body .admin-app { display: block; }
  .admin-v2-body .admin-content { padding: 20px 14px 50px; }
  .catalog-toolbar .admin-search,
  .admin-select { width: 100%; }
  #catalogCount { margin-left: 0; }
}
@media (max-width: 560px) {
  .settings-form-row,
  .offer-form-grid,
  .offer-checks { grid-template-columns: 1fr; }
  .admin-head-actions button { flex: 1; }
  .admin-bank-card { min-height: 185px; padding: 20px; }
  .admin-image-field { grid-template-columns: 1fr; }
  .admin-image-field > img,
  .offer-image-preview { width: 100%; }
}

.home-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 18px 0; }
.home-quick-grid.single { grid-template-columns: 1fr; }
.telegram-target-note { margin-top: 9px; padding: 10px 12px; border: 1px solid rgba(239,32,40,.2); border-radius: 11px; color: #b8bac2; background: rgba(239,32,40,.055); font-size: 10px; line-height: 1.55; }

/* Fezot E-Shop admin v4.1 — black, red and white */
.admin-v2-body {
  --admin-bg: #070708;
  --admin-panel: #111113;
  --admin-panel-2: #161619;
  --admin-line: rgba(255,255,255,.105);
  color: #fff;
  background: #070708;
}
.admin-v2-body .admin-app { background: #070708; }
.admin-v2-body .admin-sidebar { background: #0b0b0d; }
.admin-v2-body .admin-main { background: radial-gradient(circle at 84% 0, rgba(239,32,40,.07), transparent 32rem), #070708; }
.admin-v2-body .admin-topbar { background: rgba(7,7,8,.95); }
.admin-v2-body .admin-topbar p,
.admin-v2-body .admin-date,
.admin-v2-body .admin-nav button,
.admin-v2-body .admin-nav a,
.admin-v2-body .admin-welcome-strip p,
.admin-v2-body .admin-section-head p { color: #a2a2aa; }
.admin-v2-body .admin-nav > small { color: #66666e; }
.admin-v2-body .admin-nav button:hover,
.admin-v2-body .admin-nav a:hover { background: rgba(255,255,255,.055); }
.admin-v2-body .admin-nav button.active { color: #fff; background: linear-gradient(90deg,rgba(239,32,40,.18),rgba(239,32,40,.04)); }
.admin-v2-body .admin-health-card,
.admin-v2-body .admin-welcome-strip,
.admin-v2-body .admin-metric,
.admin-v2-body .admin-panel,
.admin-v2-body .admin-order-card,
.admin-v2-body .system-card { background: #111113; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.admin-v2-body .admin-welcome-strip { background: radial-gradient(circle at 84% 30%,rgba(239,32,40,.14),transparent 18rem),#111113; }
.admin-v2-body .admin-toolbar,
.admin-v2-body .admin-table th { background: #0e0e10; }
.admin-v2-body .admin-toolbar .tab-button.active { color: #fff; background: #252529; }
.admin-v2-body .admin-search,
.admin-v2-body .admin-select,
.admin-v2-body .settings-form .field,
.admin-v2-body .offer-form .field { color: #fff; background: #080809; }
.admin-v2-body .metric-icon,
.admin-v2-body .admin-metric.purple .metric-icon,
.admin-v2-body .admin-metric.blue .metric-icon,
.admin-v2-body .admin-metric.orange .metric-icon,
.admin-v2-body .admin-metric.green .metric-icon,
.admin-v2-body .admin-metric.red .metric-icon,
.admin-v2-body .admin-metric.cyan .metric-icon { color: #ff6970; background: rgba(239,32,40,.12); }
.admin-v2-body .chart-bars i.users { background: linear-gradient(#ff5158,#bf141b); }
.admin-v2-body .chart-bars i.orders { background: linear-gradient(#fff,#8b8b92); }
.admin-v2-body .chart-legend i.orders { background: #fff; }
.admin-v2-body .status-donut > div { background: #111113; }
.admin-v2-body .source-chip,
.admin-v2-body .table-action-button { color: #dedee3; background: #1b1b1f; }
.admin-v2-body .catalog-status.active { color: #fff; }
.admin-v2-body .catalog-status.active i { background: #fff; }
.admin-v2-body .catalog-status.inactive { color: #77777f; }
.admin-v2-body .catalog-warning,
.admin-v2-body .system-state.warn { color: #ff6b71; background: rgba(239,32,40,.1); }
.admin-v2-body .system-state.warn i { background: #ef2028; }
.admin-v2-body .system-state.ok { color: #fff; background: rgba(255,255,255,.07); }
.admin-v2-body .system-state.ok i,
.admin-v2-body .admin-health-card > i.ok,
.admin-v2-body .admin-welcome-strip > div:last-child i { background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.08); }
.admin-v2-body .admin-welcome-strip > div:last-child { color: #dddde2; border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.04); }
.admin-v2-body .text-done { color: #fff; }
.admin-v2-body .text-waiting { color: #c9c9cf; }
.admin-v2-body .text-failed { color: #ff5d64; }
.admin-v2-body .admin-order-accent { background: #fff; }
.admin-v2-body .admin-order-accent.failed { background: #ef2028; }
.admin-v2-body .admin-info-note { color: #bcbcc4; border-color: rgba(255,255,255,.11); background: #0d0d0f; }
.admin-v2-body .offer-checks label { color: #d2d2d7; background: #0d0d0f; }
.admin-v2-body .card-preview-panel > div:first-child small,
.admin-v2-body .card-preview-panel > p,
.admin-v2-body .system-card p,
.admin-v2-body .system-flow-steps small { color: #9d9da6; }
.admin-v2-body .modal { background: #111113; }
.admin-v2-body .summary-row span small { color: #77777f; font-size: 9px; }
.admin-v2-body .admin-profit-row strong { color: #ff6269; }

@media (max-width: 560px) {
  .home-quick-grid { grid-template-columns: 1fr; }
}
