﻿

:root {
  --violet: #C77DFF;
  --violet-bright: #E0AAFF;
  --violet-mid: #9D4EDD;
  --violet-dim: #7B2CBF;
  --violet-deep: #5A189A;
  --violet-glow: rgba(199, 125, 255, 0.18);
  --violet-glow-soft: rgba(199, 125, 255, 0.08);

  --pink: #F25CC8;
  --magenta: #B5179E;

  --green: #34C759;
  --orange: #FF9F1C;
  --red: #FF3B6B;
  --red-dim: #C9184A;

  --bg: #07050B;
  --bg-soft: #0F0A18;
  --bg-card: #14101F;
  --bg-raised: #1B1530;
  --bg-input: #0D0918;
  --bg-nav: #08060F;

  --white: #F5F0FF;
  --grey: #8A7EA8;
  --grey-dim: #4C4467;
  --line: rgba(199, 125, 255, 0.08);
  --line-light: rgba(199, 125, 255, 0.14);

  --r: 14px;
  --r-sm: 10px;
  --r-lg: 18px;
  --r-xl: 22px;

  --nav-h: 64px;
  --head-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(155, 78, 221, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(245, 92, 200, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(90, 24, 154, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#app { display: flex; flex-direction: column; height: 100%; position: relative; z-index: 1; }
.app-hidden { display: none !important; }


.tg-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  overflow: hidden;
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.tg-gate::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 40%, rgba(199, 125, 255, .12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 50% 100%, rgba(245, 92, 200, .08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 30% 80%, rgba(90, 24, 154, .12) 0%, transparent 60%);
  pointer-events: none;
}
.tg-gate.tg-gate-pass {
  opacity: 0; transform: scale(1.05);
  pointer-events: none;
}
.tg-gate-inner {
  text-align: center; position: relative; z-index: 1;
  animation: gateIn .6s cubic-bezier(.16,1,.3,1) both;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tg-gate-logo {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: rgba(17, 8, 32, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.tg-gate-logo svg { display: block; }
.splash-ring { width: 40px; height: 40px; }
.splash-ring--sm { width: 32px; height: 32px; }
.splash-ring-track {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
}
.splash-ring-arc {
  stroke: #C084FC;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 26 88;
  animation: splashDash 1.1s linear infinite;
}
@keyframes splashDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -113; }
}
.tg-gate-brand {
  font-size: 0;
  margin-bottom: 8px;
  letter-spacing: 0;
  background: none;
  -webkit-text-fill-color: unset;
}
.splash-gate-brand-a,
.splash-gate-brand-b {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.splash-gate-brand-a {
  color: rgba(255, 255, 255, 0.92);
  margin-right: 0.35em;
}
.splash-gate-brand-b {
  color: #C084FC;
  letter-spacing: 0.28em;
}
.tg-gate-text {
  font-size: 11px; font-weight: 500; color: var(--grey);
  letter-spacing: 0.06em; margin-bottom: 22px;
  text-transform: uppercase;
}
.tg-gate-bar {
  width: 120px; height: 2px; margin: 0 auto; border-radius: 2px;
  background: rgba(255, 255, 255, 0.06); overflow: hidden;
}
.tg-gate-bar span {
  display: block; width: 32%; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.9), transparent);
  animation: gateBar 1.35s ease-in-out infinite;
}
@keyframes gateBar {
  0%   { transform: translateX(-120%); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateX(380%); opacity: 0.6; }
}


.tg-gate-success .tg-gate-logo {
  background: linear-gradient(135deg, rgba(52,199,89,.15), rgba(52,199,89,.05));
  border-color: rgba(52,199,89,.2);
  animation: gateSuccessPop .5s cubic-bezier(.16,1,.3,1);
}
@keyframes gateSuccessPop {
  0%   { transform: scale(.8); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.tg-gate-success .tg-gate-logo svg { color: var(--green); }
.tg-gate-success .tg-gate-text { color: var(--green); }
.tg-gate-success .tg-gate-bar span {
  width: 100%; background: var(--green); animation: none;
}


.tg-gate-blocked .tg-gate-logo {
  background: linear-gradient(135deg, rgba(255,59,107,.14), rgba(255,59,107,.04));
  border-color: rgba(255,59,107,.2); animation: gateShake .5s ease;
}
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.tg-gate-blocked .tg-gate-brand {
  background: linear-gradient(135deg, var(--red), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tg-gate-blocked .tg-gate-text { color: var(--grey); margin-bottom: 12px; }
.tg-gate-blocked .tg-gate-bar { display: none; }
.tg-gate-sub {
  font-size: 13px; color: var(--grey-dim); line-height: 1.6;
  max-width: 260px; margin: 0 auto;
}
.tg-gate-sub a {
  color: var(--violet-bright); text-decoration: none; font-weight: 600;
}
.tg-gate-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; padding: 8px 16px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--grey);
}
.tg-gate-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  animation: dotBlink 1.5s ease infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}



.ico { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.ico-nav { width: 22px; height: 22px; stroke: var(--grey-dim); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.15s; }
.ico-24 { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.ico-sm { width: 16px; height: 16px; }



#app-header {
  flex-shrink: 0;
  height: var(--head-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(20, 16, 31, 0.85), rgba(7, 5, 11, 0.6));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.h-left { display: flex; align-items: center; gap: 10px; }

.h-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-mid), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 14px rgba(199, 125, 255, 0.35);
}

.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.h-name { font-weight: 700; font-size: 14px; letter-spacing: -0.3px; }
.h-sub {
  font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  background: linear-gradient(90deg, var(--violet-bright), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.h-bal {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.10), rgba(245, 92, 200, 0.04));
  border: 1px solid var(--line-light);
  border-radius: 100px;
  font-size: 12px; font-weight: 800; color: var(--violet-bright);
  animation: borderGlow 3s ease infinite;
  text-shadow: 0 0 12px rgba(199, 125, 255, 0.4);
}



#app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
  -webkit-overflow-scrolling: touch;
}

#app-content::-webkit-scrollbar { display: none; }

.page-pad { padding: 16px; }



#app-navbar {
  flex-shrink: 0;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex; align-items: center; justify-content: space-around;
  background: linear-gradient(180deg, rgba(8, 6, 15, 0.6), rgba(8, 6, 15, 0.95));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  z-index: 20;
}

.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 10px; border-radius: var(--r-sm);
  cursor: pointer; user-select: none;
  transition: all 0.15s ease; position: relative;
  min-width: 0;
}

.nav-item .ico-nav { width: 22px; height: 22px; }
.nav-item span { font-size: 9px; font-weight: 700; color: var(--grey-dim); letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.15s; }

.nav-item.active .ico-nav { stroke: var(--violet-bright); }
.nav-item.active span { color: var(--violet-bright); }
.nav-item.active::after {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--violet-bright), var(--pink));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(199, 125, 255, 0.6);
}



.hero {
  position: relative;
  height: 230px;
  overflow: hidden;
  animation: heroIn 0.6s ease;
}

.hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: kenBurns 22s ease-in-out infinite alternate;
  filter: saturate(1.1);
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, -1%); }
}

.hero-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,5,11,0) 25%, rgba(7,5,11,0.65) 70%, rgba(7,5,11,1) 100%),
    linear-gradient(120deg, rgba(90,24,154,0.25) 0%, transparent 60%);
}

.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 20px 22px;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--violet-mid), var(--pink));
  border-radius: 100px;
  font-size: 9px; font-weight: 800; color: #fff;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 10px;
  box-shadow: 0 4px 18px rgba(199, 125, 255, 0.35);
}

.hero-title {
  font-size: 30px; font-weight: 900;
  letter-spacing: -1.2px; line-height: 1.05;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 13px; color: var(--grey);
  margin-top: 6px; font-weight: 500;
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

.hero-pill {
  animation: slideLeft 0.5s cubic-bezier(0.22,1,0.36,1) 0.3s backwards;
}

.hero-title {
  animation: slideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.4s backwards;
}



.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; margin-bottom: 12px;
}

.sec-title { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; }
.sec-count {
  font-size: 10px; font-weight: 700; color: var(--grey);
  padding: 3px 9px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 100px;
}


.sort-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 100px; cursor: pointer;
  transition: all 0.15s;
}

.sort-toggle:active { background: var(--bg-raised); transform: scale(0.95); }

.sort-toggle span {
  font-size: 10px; font-weight: 700; color: var(--grey);
  letter-spacing: 0.3px;
}

.sort-ico {
  width: 14px; height: 14px;
  stroke: var(--violet-bright); fill: none; stroke-width: 2;
  transition: transform 0.25s ease;
}

.sort-ico.sort-desc { transform: rotate(180deg); }



.tranche {
  margin-bottom: 18px;
  animation: slideUp 0.35s ease backwards;
}

.tranche-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.08), rgba(20, 16, 31, 0.8));
  border: 1px solid var(--line-light);
  border-radius: var(--r) var(--r) 0 0;
}

.tranche-pts {
  font-size: 21px; font-weight: 900;
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.tranche-pts span {
  font-size: 11px; font-weight: 700; color: var(--grey);
  text-transform: uppercase; letter-spacing: 0.5px;
  -webkit-text-fill-color: var(--grey);
}

.tranche-stock {
  font-size: 9px; font-weight: 800; padding: 3px 9px;
  border-radius: 100px; letter-spacing: 0.3px; text-transform: uppercase;
}

.tranche-list {
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  overflow: hidden;
}

.tranche-list .p-card {
  margin-bottom: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
}

.tranche-list .p-card:last-child { border-bottom: none; }



.product-list { padding: 0 16px; }

.p-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  animation: slideUp 0.35s ease backwards;
}

.p-card:nth-child(1) { animation-delay: 0.05s; }
.p-card:nth-child(2) { animation-delay: 0.1s; }
.p-card:nth-child(3) { animation-delay: 0.15s; }
.p-card:nth-child(4) { animation-delay: 0.2s; }
.p-card:nth-child(5) { animation-delay: 0.25s; }
.p-card:nth-child(6) { animation-delay: 0.3s; }

.p-card:active { transform: scale(0.98); background: var(--bg-raised); }

.p-thumb {
  width: 60px; height: 60px; border-radius: var(--r-sm);
  background: var(--bg-raised); overflow: hidden; flex-shrink: 0;
  position: relative;
  border: 1px solid var(--line-light);
}

.p-thumb img,
.p-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }

.p-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, transparent 50%, rgba(7,5,11,0.4) 100%);
  pointer-events: none;
}

.p-thumb-play {
  position: absolute; bottom: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(199, 125, 255, 0.9);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 8px rgba(199, 125, 255, 0.5);
}
.p-thumb-play svg { width: 10px; height: 10px; fill: #fff; }

.p-info { flex: 1; min-width: 0; }
.p-name { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }
.p-cat { font-size: 10px; color: var(--grey); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 1px; }

.p-right { text-align: right; flex-shrink: 0; }
.p-price {
  font-size: 17px; font-weight: 800;
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.p-stock {
  display: inline-block; margin-top: 3px;
  font-size: 9px; font-weight: 700; padding: 2px 7px;
  border-radius: 100px; letter-spacing: 0.2px; text-transform: uppercase;
}

.stk-ok { background: rgba(52,199,89,0.12); color: var(--green); }
.stk-low { background: rgba(255,159,28,0.14); color: var(--orange); }
.stk-out { background: rgba(255,59,107,0.14); color: var(--red); }



.det { animation: fadeIn 0.2s ease; }

.det-img {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
  animation: heroIn 0.5s cubic-bezier(0.22,1,0.36,1);
  aspect-ratio: 16 / 10;
}

.det-img img,
.det-img video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}

.det-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%; background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.det-video-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(90,24,154,0.15), rgba(7,5,11,0.35));
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.det-video-overlay:active { background: linear-gradient(135deg, rgba(90,24,154,0.05), rgba(7,5,11,0.2)); }
.det-video-overlay.hidden { display: none; }

.det-play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(199, 125, 255, 0.5), 0 0 0 1px rgba(255,255,255,0.15) inset;
  animation: playPulse 2s ease-in-out infinite;
}
.det-play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

@keyframes playPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(199,125,255,0.5), 0 0 0 0 rgba(199,125,255,0.4); }
  50%      { transform: scale(1.05); box-shadow: 0 12px 40px rgba(199,125,255,0.6), 0 0 0 12px rgba(199,125,255,0); }
}

.det-fullscreen-btn {
  position: absolute; bottom: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(20, 16, 31, 0.85);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  transition: all 0.2s;
  color: var(--violet-bright);
}
.det-fullscreen-btn:active { transform: scale(0.9); background: rgba(155, 78, 221, 0.4); }
.det-fullscreen-btn svg { width: 18px; height: 18px; }

.det-body { padding: 22px 16px 16px; }

.det-name {
  font-size: 26px; font-weight: 900; letter-spacing: -0.7px;
  animation: slideUp 0.4s cubic-bezier(0.22,1,0.36,1) 0.15s backwards;
  background: linear-gradient(135deg, var(--white), var(--violet-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.det-desc {
  font-size: 13px; color: var(--grey); line-height: 1.55; margin: 8px 0 22px;
  animation: slideUp 0.4s cubic-bezier(0.22,1,0.36,1) 0.2s backwards;
}

.det-price {
  font-size: 38px; font-weight: 900;
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -1.2px; margin-bottom: 24px;
  animation: countUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.25s backwards;
}
.det-unit { font-size: 14px; color: var(--grey); font-weight: 500; -webkit-text-fill-color: var(--grey); }



.qty-row {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 14px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 20px;
}

.qty-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-light); background: var(--bg-raised);
  color: var(--white); font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.12s;
}

.qty-btn:active {
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  color: #fff; border-color: transparent; transform: scale(0.9);
}
.qty-val {
  font-size: 28px; font-weight: 900; min-width: 44px; text-align: center;
  transition: transform 0.15s cubic-bezier(0.22,1,0.36,1);
  background: linear-gradient(135deg, var(--white), var(--violet-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.qty-val.bump { animation: popIn 0.25s cubic-bezier(0.22,1,0.36,1); }



.info-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin-bottom: 10px;
  animation: slideUp 0.35s cubic-bezier(0.22,1,0.36,1) 0.1s backwards;
}

.info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
}

.info-row + .info-row { border-top: 1px solid var(--line); }
.info-label { font-size: 12px; color: var(--grey); font-weight: 500; }
.info-val { font-size: 13px; font-weight: 700; }
.info-val-gold {
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-size: 16px;
}



.btn {
  width: 100%; padding: 15px; border: none;
  border-radius: var(--r);
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.7px; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s cubic-bezier(0.22,1,0.36,1);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}

.btn::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}

.btn:active::after { opacity: 1; }

.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.btn-gold {
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  color: #fff;
  box-shadow: 0 6px 24px rgba(199, 125, 255, 0.32);
}
.btn-gold:active {
  background: linear-gradient(135deg, var(--violet-mid), var(--magenta));
  box-shadow: 0 2px 12px rgba(199, 125, 255, 0.5);
}

.btn-red {
  background: linear-gradient(135deg, var(--red), var(--magenta));
  color: #fff;
  box-shadow: 0 6px 24px rgba(255, 59, 107, 0.28);
}
.btn-red:active { background: linear-gradient(135deg, var(--red-dim), var(--magenta)); }

.btn-ghost {
  background: var(--bg-card); color: var(--white);
  border: 1px solid var(--line-light);
}
.btn-ghost:active { background: var(--bg-raised); border-color: rgba(199, 125, 255, 0.3); }

.btn-back {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; background: rgba(20, 16, 31, 0.7);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--violet-bright); font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
}

.btn-back .ico-24 { width: 16px; height: 16px; stroke: currentColor; }



.bal-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin-bottom: 16px;
  position: relative; overflow: hidden;
  animation: slideUp 0.4s ease;
}

.bal-card::before {
  content: ''; position: absolute;
  top: -1px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--violet-bright), var(--pink), var(--violet-bright));
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}

.bal-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(199, 125, 255, 0.12), transparent 60%);
  pointer-events: none;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.bal-label {
  font-size: 10px; font-weight: 700; color: var(--grey);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
  animation: fadeIn 0.4s ease 0.1s backwards;
  position: relative; z-index: 1;
}

.bal-amount {
  font-size: 48px; font-weight: 900;
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  position: relative; z-index: 1;
  text-shadow: 0 0 40px rgba(199, 125, 255, 0.3);
}
.bal-cur { font-size: 13px; color: var(--grey); font-weight: 600; margin-top: 4px; position: relative; z-index: 1; }



.o-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 8px;
  cursor: pointer; transition: all 0.15s;
  animation: slideUp 0.3s ease backwards;
}

.o-card:nth-child(1) { animation-delay: 0.04s; }
.o-card:nth-child(2) { animation-delay: 0.08s; }
.o-card:nth-child(3) { animation-delay: 0.12s; }
.o-card:nth-child(4) { animation-delay: 0.16s; }
.o-card:nth-child(5) { animation-delay: 0.2s; }
.o-card:nth-child(6) { animation-delay: 0.24s; }
.o-card:nth-child(7) { animation-delay: 0.28s; }
.o-card:nth-child(8) { animation-delay: 0.32s; }

.o-card:active { transform: scale(0.98); background: var(--bg-raised); }

.o-ico {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

.o-ico.pending { background: rgba(255,159,28,0.12); }
.o-ico.completed { background: rgba(52,199,89,0.12); }
.o-ico.failed { background: rgba(255,59,107,0.12); }

.o-ico .ico-24 { width: 18px; height: 18px; }
.o-ico.pending .ico-24 { stroke: var(--orange); }
.o-ico.completed .ico-24 { stroke: var(--green); }
.o-ico.failed .ico-24 { stroke: var(--red); }

.o-info { flex: 1; min-width: 0; }
.o-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-date { font-size: 10px; color: var(--grey-dim); margin-top: 1px; }

.o-status {
  font-size: 9px; font-weight: 800; padding: 3px 9px;
  border-radius: 100px; letter-spacing: 0.3px; text-transform: uppercase; flex-shrink: 0;
}

.o-status.pending { background: rgba(255,159,28,0.12); color: var(--orange); }
.o-status.completed { background: rgba(52,199,89,0.12); color: var(--green); }
.o-status.failed { background: rgba(255,59,107,0.12); color: var(--red); }



.prof-head { text-align: center; margin-bottom: 24px; animation: slideUp 0.4s ease; }

.prof-av {
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-mid), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #fff;
  margin: 0 auto 12px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(199, 125, 255, 0.4);
}

.prof-av .avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.prof-name { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }
.prof-tag { font-size: 11px; color: var(--grey); margin-top: 2px; }

.set-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 6px;
  cursor: pointer; transition: all 0.15s;
  animation: slideUp 0.3s ease backwards;
}

.set-row:nth-child(1) { animation-delay: 0.06s; }
.set-row:nth-child(2) { animation-delay: 0.1s; }
.set-row:nth-child(3) { animation-delay: 0.14s; }
.set-row:nth-child(4) { animation-delay: 0.18s; }
.set-row:nth-child(5) { animation-delay: 0.22s; }
.set-row:nth-child(6) { animation-delay: 0.26s; }
.set-row:nth-child(7) { animation-delay: 0.3s; }

.set-row:active { background: var(--bg-raised); transform: scale(0.98); }

.set-ico {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--bg-raised); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--grey);
}

.set-ico .ico-24 { width: 18px; height: 18px; stroke: var(--violet-bright); }

.set-label { flex: 1; font-size: 13px; font-weight: 600; }
.set-chev { color: var(--grey-dim); font-size: 16px; }



.empty { text-align: center; padding: 40px 20px; animation: slideUp 0.4s ease; }
.empty-ico { font-size: 44px; margin-bottom: 12px; opacity: 0.4; }
.empty-ico .ico-24 { width: 48px; height: 48px; stroke: var(--violet-mid); }
.empty-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.empty-desc { font-size: 12px; color: var(--grey); line-height: 1.45; }



#toast-container {
  position: fixed; top: 12px; left: 12px; right: 12px;
  z-index: 9999; display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px; border-radius: var(--r);
  font-size: 12px; font-weight: 700;
  animation: toastIn 0.25s ease; pointer-events: auto;
  backdrop-filter: blur(12px);
  border: 1px solid;
}

.toast-success {
  background: rgba(52, 199, 89, 0.92); color: #fff;
  border-color: rgba(255,255,255,0.1);
}
.toast-error {
  background: rgba(255, 59, 107, 0.92); color: #fff;
  border-color: rgba(255,255,255,0.1);
}
.toast-info {
  background: rgba(20, 16, 31, 0.92);
  color: var(--violet-bright);
  border-color: var(--line-light);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-out { animation: toastOut 0.2s ease forwards; }

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-8px) scale(0.96); }
}



.loader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 42vh; gap: 14px;
  animation: fadeIn 0.35s ease;
}
.splash-page-loader-ring {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(17, 8, 32, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.splash-page-loader-label {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

.spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
  display: inline-block; vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }



.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0);
  display: flex; flex-direction: column;
  transition: background 0.25s ease;
}

.modal-overlay.modal-visible { background: rgba(0,0,0,0.97); backdrop-filter: blur(6px); }

.modal-content {
  flex: 1; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px);
  transition: all 0.25s ease;
}

.modal-visible .modal-content { opacity: 1; transform: translateY(0); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; flex-shrink: 0;
}

.modal-title { font-size: 15px; font-weight: 800; color: var(--violet-bright); }

.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(199, 125, 255, 0.12);
  color: var(--violet-bright); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.modal-body { flex: 1; overflow-y: auto; padding: 0 12px 24px; -webkit-overflow-scrolling: touch; }


.video-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.video-modal.visible { opacity: 1; pointer-events: auto; }

.video-modal-stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.video-modal video {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  background: #000;
}

.video-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20, 16, 31, 0.85);
  border: 1px solid var(--line-light);
  color: var(--violet-bright);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  backdrop-filter: blur(8px);
}
.video-modal-close svg { width: 18px; height: 18px; }
.video-modal-close:active { transform: scale(0.9); }



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

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

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6); }
  70% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 125, 255, 0.35); }
  50% { box-shadow: 0 0 18px 4px rgba(199, 125, 255, 0.18); }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--line-light); }
  50% { border-color: rgba(199, 125, 255, 0.4); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes skeletonLoad {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in { animation: slideUp 0.35s cubic-bezier(0.22,1,0.36,1); }
.fade-left { animation: slideLeft 0.35s cubic-bezier(0.22,1,0.36,1); }
.fade-right { animation: slideRight 0.35s cubic-bezier(0.22,1,0.36,1); }
.pop-in { animation: popIn 0.4s cubic-bezier(0.22,1,0.36,1); }
.anim-float { animation: float 3s ease-in-out infinite; }



.admin-nav {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding: 0 0 4px;
  scroll-snap-type: x mandatory;
}

.admin-nav::-webkit-scrollbar { display: none; }

.admin-nav-btn {
  flex-shrink: 0;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--bg-card); color: var(--grey);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
  scroll-snap-align: start;
}

.admin-nav-btn.active {
  background: linear-gradient(135deg, var(--violet-mid), var(--magenta));
  color: #fff;
  border-color: transparent;
}



.admin-tabs {
  display: flex; gap: 4px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 3px;
}

.admin-tab {
  flex: 1; padding: 9px; border: none; border-radius: var(--r-sm);
  background: transparent; color: var(--grey-dim);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px; cursor: pointer; transition: all 0.15s;
}
.admin-tab.active {
  background: linear-gradient(135deg, var(--violet-mid), var(--magenta));
  color: #fff;
}



.admin-form {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px;
  animation: slideUp 0.35s ease;
}

.input-group { margin-bottom: 8px; }
.input-label { font-size: 10px; font-weight: 700; color: var(--grey); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; display: block; }

.input-field {
  width: 100%; padding: 10px 12px;
  background: var(--bg-input); border: 1px solid var(--line-light);
  border-radius: var(--r-sm); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 13px; outline: none;
  transition: border-color 0.15s;
}
.input-field:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.12); }

.input-textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg-input); border: 1px solid var(--line-light);
  border-radius: var(--r-sm); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 13px; outline: none;
  resize: vertical; min-height: 72px; transition: border-color 0.15s;
}
.input-textarea:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.12); }

.input-row { display: flex; gap: 6px; }

.admin-separator { height: 1px; background: var(--line); margin: 12px 0; }

.file-zone { position: relative; margin-bottom: 10px; }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: -1; }

.file-zone-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 22px; border: 2px dashed var(--line-light);
  border-radius: var(--r); cursor: pointer; transition: border-color 0.15s, background 0.2s;
}
.file-zone-inner:active { border-color: var(--violet-bright); background: rgba(199, 125, 255, 0.04); }
.file-zone-icon { display: flex; align-items: center; justify-content: center; }
.file-zone-icon .ico-24 { width: 24px; height: 24px; stroke: var(--grey-dim); }
.file-zone-text { font-size: 11px; color: var(--grey-dim); font-weight: 600; }

.file-preview {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--bg-input);
  border-radius: var(--r-sm); border: 1px solid var(--line);
}
.file-preview-img { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; }
.file-preview-name { flex: 1; font-size: 11px; font-weight: 600; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-remove {
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(255, 59, 107, 0.14); color: var(--red);
  font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.bc-result { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 11px; font-weight: 700; text-align: center; animation: slideUp 0.25s ease; }
.bc-result-success { background: rgba(52,199,89,0.12); color: var(--green); }
.bc-result-error { background: rgba(255, 59, 107, 0.12); color: var(--red); }



.admin-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}

.admin-stats-grid .stat-card { animation: popIn 0.4s cubic-bezier(0.22,1,0.36,1) backwards; }
.admin-stats-grid .stat-card:nth-child(1) { animation-delay: 0s; }
.admin-stats-grid .stat-card:nth-child(2) { animation-delay: 0.06s; }
.admin-stats-grid .stat-card:nth-child(3) { animation-delay: 0.12s; }
.admin-stats-grid .stat-card:nth-child(4) { animation-delay: 0.18s; }
.admin-stats-grid .stat-card:nth-child(5) { animation-delay: 0.24s; }
.admin-stats-grid .stat-card:nth-child(6) { animation-delay: 0.3s; }
.admin-stats-grid .stat-card:nth-child(7) { animation-delay: 0.36s; }
.admin-stats-grid .stat-card:nth-child(8) { animation-delay: 0.42s; }
.admin-stats-grid .stat-card:nth-child(9) { animation-delay: 0.48s; }

.stat-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; text-align: center;
  animation: scaleIn 0.35s ease backwards;
}

.stat-val {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.stat-lbl { font-size: 9px; font-weight: 700; color: var(--grey); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.stat-card-wide { grid-column: span 2; }



.adm-user-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-sm); margin-bottom: 4px;
  animation: slideUp 0.25s ease backwards;
}

.adm-user-info { flex: 1; min-width: 0; }
.adm-user-name { font-size: 12px; font-weight: 700; }
.adm-user-meta { font-size: 9px; color: var(--grey-dim); margin-top: 1px; }

.adm-user-actions { display: flex; gap: 4px; flex-shrink: 0; }

.adm-btn-sm {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg-raised);
  color: var(--grey); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.adm-btn-sm .ico-24 { width: 14px; height: 14px; }
.adm-btn-sm:active { transform: scale(0.9); }
.adm-btn-del { border-color: rgba(255, 59, 107, 0.18); color: var(--red); }
.adm-btn-del .ico-24 { stroke: var(--red); }
.adm-btn-del:active { background: rgba(255, 59, 107, 0.1); }
.adm-btn-dm { color: var(--violet-bright); }
.adm-btn-dm .ico-24 { stroke: var(--violet-bright); }



.crypto-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 2px 0;
}
.crypto-tabs::-webkit-scrollbar { display: none; }

.crypto-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--grey); cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}

.crypto-tab .ico { width: 18px; height: 18px; }

.crypto-tab.active {
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  color: #fff;
  border-color: transparent;
}



.pay-info-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px;
  animation: slideUp 0.35s ease;
}

.pay-info-title {
  font-size: 14px; font-weight: 800; color: var(--green);
  margin-bottom: 12px;
}

.pay-info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--grey);
}

.pay-info-amount {
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-size: 14px;
}

.pay-info-addr {
  font-size: 10px; font-weight: 600; color: var(--white);
  font-family: monospace;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pay-info-note {
  font-size: 10px; color: var(--grey-dim); margin-top: 10px;
  line-height: 1.4;
}



.pay-methods {
  display: flex; gap: 6px;
}

.pay-method-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 800;
  color: var(--grey); cursor: pointer;
  transition: all 0.15s; text-transform: uppercase; letter-spacing: 0.3px;
}

.pay-method-btn .ico { width: 22px; height: 22px; }

.pay-method-btn.active {
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  color: #fff;
  border-color: transparent;
}

.pay-method-btn:active { transform: scale(0.97); }



.pay-steps {
  margin-bottom: 16px;
}

.pay-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  animation: slideLeft 0.35s cubic-bezier(0.22,1,0.36,1) backwards;
}

.pay-step:nth-child(1) { animation-delay: 0.05s; }
.pay-step:nth-child(2) { animation-delay: 0.12s; }
.pay-step:nth-child(3) { animation-delay: 0.19s; }

.pay-step + .pay-step { border-top: 1px solid var(--line); }

.pay-step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(199, 125, 255, 0.1);
  border: 1px solid rgba(199, 125, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: var(--violet-bright);
  flex-shrink: 0;
}

.pay-step-text {
  font-size: 12px; font-weight: 600; color: var(--grey);
}



.btn-paypal {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border: none; border-radius: var(--r);
  background: linear-gradient(135deg, #0070BA, #003087);
  color: #fff;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 6px 20px rgba(0, 112, 186, 0.25);
}

.btn-paypal .ico { width: 20px; height: 20px; }

.btn-paypal:active { transform: scale(0.97); background: linear-gradient(135deg, #005EA6, #002870); }



.ticket-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}

.ticket-head-ico {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.18), rgba(245, 92, 200, 0.08));
  border: 1px solid rgba(199, 125, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
}

.ticket-head-ico .ico-24 { width: 22px; height: 22px; stroke: var(--violet-bright); }

.ticket-head-text { flex: 1; }
.ticket-head-title { font-size: 16px; font-weight: 800; }
.ticket-head-desc { font-size: 11px; color: var(--grey); margin-top: 2px; }

.ticket-form {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px;
  animation: slideUp 0.35s ease;
}

.ticket-subjects {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}

.ticket-subj {
  padding: 7px 12px;
  background: var(--bg-raised); border: 1px solid var(--line-light);
  border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--grey); cursor: pointer;
  transition: all 0.15s;
}

.ticket-subj.active {
  background: linear-gradient(135deg, var(--violet-bright), var(--pink));
  color: #fff;
  border-color: transparent;
}

.ticket-history {
  margin-top: 20px;
}

.ticket-item {
  padding: 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 6px;
  animation: slideLeft 0.35s cubic-bezier(0.22,1,0.36,1) backwards;
}

.ticket-item:nth-child(1) { animation-delay: 0.04s; }
.ticket-item:nth-child(2) { animation-delay: 0.08s; }
.ticket-item:nth-child(3) { animation-delay: 0.12s; }
.ticket-item:nth-child(4) { animation-delay: 0.16s; }

.ticket-item-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}

.ticket-item-subj { font-size: 12px; font-weight: 700; }
.ticket-item-date { font-size: 9px; color: var(--grey-dim); }
.ticket-item-msg { font-size: 11px; color: var(--grey); line-height: 1.4; }
.ticket-item-status {
  display: inline-block; margin-top: 6px;
  font-size: 9px; font-weight: 800; padding: 2px 8px;
  border-radius: 100px; letter-spacing: 0.3px; text-transform: uppercase;
}
.ticket-item-status.sent { background: rgba(52,199,89,0.12); color: var(--green); }



.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-raised) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s ease-in-out infinite;
  border-radius: var(--r);
}

.skel-card {
  height: 76px; margin-bottom: 8px; border-radius: var(--r);
}

.skel-stat {
  height: 80px; border-radius: var(--r);
}

.skel-hero {
  height: 230px; border-radius: 0;
}

.skel-block {
  height: 44px; border-radius: var(--r-sm); margin-bottom: 6px;
}



#app-content {
  transition: none;
}

.page-enter {
  animation: pageSlideIn 0.35s cubic-bezier(0.22,1,0.36,1);
}

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



.nav-item { transition: all 0.2s cubic-bezier(0.22,1,0.36,1); }
.nav-item:active { transform: scale(0.88); }
.nav-item.active .ico-nav { filter: drop-shadow(0 0 8px rgba(199, 125, 255, 0.6)); }

.h-bal { transition: all 0.3s ease; }
.h-bal:hover, .h-bal:active { animation: goldPulse 1.5s ease infinite; }

.p-card { transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), background 0.15s, box-shadow 0.2s; }
.p-card:active { transform: scale(0.97); box-shadow: 0 0 24px rgba(199, 125, 255, 0.12); }

.p-price { transition: filter 0.2s; }
.p-card:active .p-price { filter: brightness(1.4); }

.o-card { transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), background 0.15s; }
.o-card:active { transform: scale(0.97) translateX(4px); }

.btn { transition: all 0.2s cubic-bezier(0.22,1,0.36,1); }
.btn-gold:active { box-shadow: 0 0 24px rgba(199, 125, 255, 0.5); }
.btn-red:active { box-shadow: 0 0 24px rgba(255, 59, 107, 0.4); }

.stat-card { transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:active { transform: scale(0.96); box-shadow: 0 0 14px rgba(199, 125, 255, 0.12); }

.stat-val { animation: countUp 0.5s cubic-bezier(0.22,1,0.36,1) backwards; }

.bal-amount { animation: countUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.2s backwards; }
.bal-card { transition: transform 0.3s; }
.bal-card:active { transform: scale(0.98); }

.tranche-head { transition: background 0.2s; }
.tranche:active .tranche-head { background: linear-gradient(135deg, rgba(199, 125, 255, 0.14), var(--bg-raised)); }

.set-row { transition: all 0.2s cubic-bezier(0.22,1,0.36,1); }
.set-row:active { transform: scale(0.97) translateX(4px); }
.set-row:active .set-ico { background: rgba(199, 125, 255, 0.2); }

.sort-toggle { transition: all 0.2s cubic-bezier(0.22,1,0.36,1); }
.sort-toggle:active { transform: scale(0.9); }
.sort-toggle:active .sort-ico { transform: rotate(180deg); }

.crypto-tab { transition: all 0.2s cubic-bezier(0.22,1,0.36,1); }
.crypto-tab:active { transform: scale(0.93); }
.crypto-tab.active { box-shadow: 0 0 14px rgba(199, 125, 255, 0.3); }

.pay-method-btn { transition: all 0.2s cubic-bezier(0.22,1,0.36,1); }
.pay-method-btn.active { box-shadow: 0 0 18px rgba(199, 125, 255, 0.3); }

.admin-nav-btn { transition: all 0.2s cubic-bezier(0.22,1,0.36,1); }
.admin-nav-btn:active { transform: scale(0.92); }
.admin-nav-btn.active { box-shadow: 0 0 14px rgba(155, 78, 221, 0.4); }

.ticket-subj { transition: all 0.2s cubic-bezier(0.22,1,0.36,1); }
.ticket-subj:active { transform: scale(0.92); }
.ticket-subj.active { box-shadow: 0 0 12px rgba(199, 125, 255, 0.3); }

.qty-btn { transition: all 0.15s cubic-bezier(0.22,1,0.36,1); }
.qty-btn:active { transform: scale(0.85); }
.qty-val { transition: transform 0.15s; }

.modal-close { transition: all 0.15s; }
.modal-close:active { transform: scale(0.85) rotate(90deg); }

.file-zone-inner { transition: border-color 0.2s, background 0.2s; }
.file-zone-inner:active { background: rgba(199, 125, 255, 0.04); border-color: var(--violet-bright); }

.adm-btn-sm { transition: all 0.15s cubic-bezier(0.22,1,0.36,1); }
.adm-btn-sm:active { transform: scale(0.8); }

.prof-av { transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); animation: popIn 0.5s cubic-bezier(0.22,1,0.36,1); }
.prof-av:active { transform: scale(0.92); }

.ticket-head-ico { animation: popIn 0.5s cubic-bezier(0.22,1,0.36,1) 0.1s backwards; }



.stagger-1 { animation-delay: 0.04s !important; }
.stagger-2 { animation-delay: 0.08s !important; }
.stagger-3 { animation-delay: 0.12s !important; }
.stagger-4 { animation-delay: 0.16s !important; }
.stagger-5 { animation-delay: 0.2s !important; }
.stagger-6 { animation-delay: 0.24s !important; }
.stagger-7 { animation-delay: 0.28s !important; }
.stagger-8 { animation-delay: 0.32s !important; }



.glow-gold { box-shadow: 0 0 14px rgba(199, 125, 255, 0.18); }
.glow-red { box-shadow: 0 0 14px rgba(255, 59, 107, 0.16); }
.glow-green { box-shadow: 0 0 14px rgba(52, 199, 89, 0.14); }

.pulse-gold { animation: goldPulse 2s ease infinite; }
.border-glow { animation: borderGlow 2s ease infinite; }


.pay-poll-status {
  padding: 14px; border-radius: var(--r);
  background: var(--bg-card); border: 1px solid var(--line);
}
.poll-row {
  display: flex; align-items: center; gap: 10px;
}
.poll-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.poll-dot.waiting {
  background: var(--orange);
  animation: dotBlink 1.5s ease infinite;
}
.poll-dot.confirming {
  background: var(--violet-bright);
  animation: dotBlink 0.8s ease infinite;
}
.poll-dot.success { background: var(--green); animation: none; }
.poll-dot.error   { background: var(--red); animation: none; }
.poll-label {
  font-size: 13px; font-weight: 600; color: var(--white);
}
.poll-timer {
  margin-top: 8px; font-size: 12px; font-weight: 700;
  color: var(--grey-dim); font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}

.hidden { display: none !important; }



.divider { height: 1px; background: var(--line); margin: 14px 0; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.gap-8 { gap: 8px; }

/* ============================================================
   MISA — VIOLET NÉON & ONYX  (refonte 2026 v2)
   Black absolu + violet électrique + magenta glow.
   Glassmorphism, néon edges, magazine layout.
   ============================================================ */

:root {
  --ink:      #04020A;
  --ink-2:    #0A0613;
  --ink-3:    #110820;
  --ink-4:    #18102C;
  --ink-5:    #221538;

  --vio-50:   #F3E8FF;
  --vio-100:  #E9D5FF;
  --vio-200:  #D8B4FE;
  --vio-300:  #C084FC;
  --vio-400:  #A855F7;
  --vio-500:  #9333EA;
  --vio-600:  #7C3AED;
  --vio-700:  #6D28D9;
  --vio-800:  #5B21B6;

  --mag-300:  #F472B6;
  --mag-400:  #EC4899;
  --mag-500:  #DB2777;

  --cream:    #F5F0FF;
  --bone:     #DCD0F0;
  --smoke:    #8E80AA;
  --smoke-2:  #5E5478;
  --smoke-3:  #3A3252;

  --line-soft:   rgba(168, 85, 247, 0.08);
  --line-mid:    rgba(168, 85, 247, 0.18);
  --line-strong: rgba(192, 132, 252, 0.32);

  --status-ok:   #34D399;
  --status-warn: #FBBF24;
  --status-err:  #FB7185;

  --grad-vio:       linear-gradient(135deg, #C084FC 0%, #A855F7 35%, #7C3AED 70%, #5B21B6 100%);
  --grad-vio-bright:linear-gradient(135deg, #E9D5FF, #C084FC 40%, #A855F7);
  --grad-vio-mag:   linear-gradient(135deg, #C084FC 0%, #A855F7 50%, #EC4899 100%);
  --grad-vio-soft:  linear-gradient(135deg, rgba(192, 132, 252, 0.16), rgba(168, 85, 247, 0.04));
  --grad-onyx:      linear-gradient(180deg, rgba(24, 16, 44, 0.86), rgba(17, 8, 32, 0.86));

  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-lift: 0 24px 60px rgba(0, 0, 0, 0.55);
  --glow-vio:    0 0 24px rgba(168, 85, 247, 0.42);
  --glow-vio-soft: 0 0 16px rgba(168, 85, 247, 0.20);
  --glow-mag:    0 0 26px rgba(236, 72, 153, 0.36);

  /* Compatibilité avec l'ancien token system */
  --violet:        #A855F7;
  --violet-bright: #C084FC;
  --violet-mid:    #7C3AED;
  --violet-dim:    #5B21B6;
  --violet-deep:   #3B0764;
  --violet-glow:      rgba(168, 85, 247, 0.18);
  --violet-glow-soft: rgba(168, 85, 247, 0.08);

  --pink:    #EC4899;
  --magenta: #DB2777;

  --green:   #34D399;
  --orange:  #FBBF24;
  --red:     #FB7185;
  --red-dim: #BE123C;

  --bg:        #04020A;
  --bg-soft:   #0A0613;
  --bg-card:   #110820;
  --bg-raised: #18102C;
  --bg-input:  #07050E;
  --bg-nav:    #04020A;

  --white:    #F5F0FF;
  --grey:     #8E80AA;
  --grey-dim: #5E5478;
  --line:       rgba(168, 85, 247, 0.08);
  --line-light: rgba(192, 132, 252, 0.20);

  --r:    14px;
  --r-sm: 10px;
  --r-lg: 20px;
  --r-xl: 28px;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--cream);
}

body::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168, 85, 247, 0.22), transparent 65%),
    radial-gradient(ellipse 65% 45% at 100% 100%, rgba(236, 72, 153, 0.12), transparent 75%),
    radial-gradient(ellipse 65% 45% at 0% 100%, rgba(91, 33, 182, 0.18), transparent 75%);
}

body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* === Boot gate === */
.tg-gate { background: var(--ink); }
.tg-gate::before {
  background:
    radial-gradient(ellipse 600px 380px at 50% 38%, rgba(168, 85, 247, 0.18), transparent 70%),
    radial-gradient(ellipse 480px 320px at 50% 100%, rgba(236, 72, 153, 0.12), transparent 70%);
}
.tg-gate-logo {
  background: rgba(17, 8, 32, 0.72);
  border: 1px solid var(--line-mid);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.tg-gate-logo svg { display: block; }
.tg-gate-brand {
  background: none;
  -webkit-text-fill-color: unset;
}
.splash-gate-brand-b { color: var(--vio-300); }
.tg-gate-text { color: var(--smoke-2); }
.tg-gate-bar { background: rgba(255, 255, 255, 0.06); }
.tg-gate-bar span {
  background: linear-gradient(90deg, transparent, var(--vio-300), transparent);
}
.splash-ring-arc { stroke: var(--vio-300); }
.tg-gate-sub a { color: var(--vio-300); }
.tg-gate-badge {
  background: var(--ink-3);
  border: 1px solid var(--line-mid);
  color: var(--smoke);
}

/* === Header === */
#app-header {
  background: linear-gradient(180deg, rgba(24, 16, 44, 0.85), rgba(4, 2, 10, 0.65));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.h-avatar {
  background: var(--grad-vio-mag);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.40);
}
.h-name {
  color: var(--cream);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
}
.h-sub {
  background: none;
  -webkit-text-fill-color: var(--vio-300);
  color: var(--vio-300);
  letter-spacing: 0.18em;
  font-weight: 700;
}
.h-bal {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--line-mid);
  color: var(--vio-200);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
  font-weight: 800;
  animation: none;
}

/* === Navbar === */
#app-navbar {
  background: linear-gradient(180deg, rgba(4, 2, 10, 0.6), rgba(4, 2, 10, 0.96));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-top: 1px solid var(--line-soft);
}
.nav-item span {
  color: var(--smoke-2);
  font-size: 9px;
  letter-spacing: 0.6px;
}
.nav-item.active .ico-nav {
  stroke: var(--vio-300);
  filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.7));
}
.nav-item.active span { color: var(--vio-200); }
.nav-item.active::after {
  background: var(--grad-vio-mag);
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.7);
}

/* === Section title === */
.sec-title {
  color: var(--cream);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sec-count {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--line-mid);
  color: var(--vio-200);
}

/* === LEGACY hero (used by other pages) === */
.hero {
  border: 1px solid var(--line-mid);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(192, 132, 252, 0.06);
}
.hero-fade {
  background:
    linear-gradient(180deg, rgba(4, 2, 10, 0) 25%, rgba(4, 2, 10, 0.6) 75%, rgba(4, 2, 10, 0.96) 100%),
    linear-gradient(135deg, rgba(91, 33, 182, 0.32), transparent 60%);
}
.hero-pill {
  background: rgba(4, 2, 10, 0.55);
  border: 1px solid var(--line-strong);
  color: var(--vio-200);
  backdrop-filter: blur(8px);
  font-weight: 800;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.4);
}
.hero-title {
  color: var(--cream);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.hero-title em {
  background: var(--grad-vio-mag);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc { color: var(--bone); }

/* === Generic surface elements === */
.p-card,
.o-card,
.set-row,
.ticket-item,
.info-card,
.admin-form,
.ticket-form,
.pay-info-card,
.bal-card,
.stat-card,
.adm-user-row,
.qty-row,
.pay-poll-status {
  background: var(--grad-onyx);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.p-name, .o-name, .prof-name, .ticket-head-title, .set-label, .adm-user-name,
.det-name, .empty-title, .ticket-item-subj, .modal-title {
  color: var(--cream);
  font-family: 'Sora', sans-serif;
}
.p-cat, .o-date, .prof-tag, .ticket-head-desc, .ticket-item-msg, .empty-desc,
.pay-step-text, .adm-user-meta, .ticket-item-date, .bal-label, .bal-cur,
.input-label, .stat-lbl {
  color: var(--smoke);
}

.tranche-pts, .p-price, .det-price, .bal-amount, .stat-val,
.pay-info-amount, .info-val-gold, .qty-val {
  background: var(--grad-vio-mag);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bal-card { padding: 40px 20px; border-radius: var(--r-xl); }
.bal-card::before {
  background: linear-gradient(90deg, #C084FC, #A855F7, #EC4899, #A855F7, #C084FC);
}
.bal-card::after {
  background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.20), transparent 65%);
}
.bal-amount { text-shadow: 0 0 28px rgba(192, 132, 252, 0.4); }

/* === Status pills === */
.stk-ok, .o-status.completed, .ticket-item-status.sent {
  background: rgba(52, 211, 153, 0.14);
  color: var(--status-ok);
}
.stk-low, .o-status.pending {
  background: rgba(251, 191, 36, 0.14);
  color: var(--status-warn);
}
.stk-out, .o-status.failed {
  background: rgba(251, 113, 133, 0.14);
  color: var(--status-err);
}

.o-ico.pending  { background: rgba(251, 191, 36, 0.12); }
.o-ico.completed{ background: rgba(52, 211, 153, 0.12); }
.o-ico.failed   { background: rgba(251, 113, 133, 0.12); }
.o-ico.pending .ico-24   { stroke: var(--status-warn); }
.o-ico.completed .ico-24 { stroke: var(--status-ok); }
.o-ico.failed .ico-24    { stroke: var(--status-err); }

/* === Buttons === */
.btn { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: 0.06em; }
.btn-gold {
  background: var(--grad-vio-mag);
  color: var(--cream);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.40),
              inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}
.btn-gold:active {
  background: linear-gradient(135deg, #A855F7, #DB2777);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.6);
}
.btn-red {
  background: linear-gradient(135deg, #FB7185, #BE123C);
  color: #fff;
  box-shadow: 0 8px 24px rgba(251, 113, 133, 0.32);
}
.btn-ghost {
  background: rgba(17, 8, 32, 0.7);
  border: 1px solid var(--line-mid);
  color: var(--cream);
  backdrop-filter: blur(6px);
}
.btn-ghost:active {
  background: rgba(34, 21, 56, 0.85);
  border-color: var(--line-strong);
}
.btn-back {
  background: rgba(17, 8, 32, 0.7);
  border: 1px solid var(--line-soft);
  color: var(--vio-200);
  backdrop-filter: blur(8px);
}

/* === Inputs === */
.input-field, .input-textarea {
  background: var(--ink-2);
  border: 1px solid var(--line-mid);
  color: var(--cream);
}
.input-field::placeholder, .input-textarea::placeholder { color: var(--smoke-2); }
.input-field:focus, .input-textarea:focus {
  border-color: var(--vio-300);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.18);
}
.file-zone-inner { border-color: var(--line-mid); background: rgba(17, 8, 32, 0.4); }
.file-zone-icon .ico-24 { stroke: var(--smoke); }
.file-zone-text { color: var(--smoke); }
.file-preview { background: var(--ink-2); border-color: var(--line-soft); }
.file-preview-name { color: var(--bone); }

/* === Tabs / chips === */
.admin-nav-btn, .admin-tab, .crypto-tab, .pay-method-btn, .ticket-subj {
  background: rgba(17, 8, 32, 0.6);
  border: 1px solid var(--line-soft);
  color: var(--bone);
}
.admin-nav-btn.active, .admin-tab.active, .crypto-tab.active,
.pay-method-btn.active, .ticket-subj.active {
  background: var(--grad-vio-mag);
  border-color: transparent;
  color: var(--cream);
  box-shadow: 0 8px 22px rgba(168, 85, 247, 0.40);
}
.admin-tabs {
  background: rgba(17, 8, 32, 0.7);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(6px);
}

.prof-av {
  background: var(--grad-vio-mag);
  color: var(--cream);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.45);
}

/* === Detail page === */
.det-name {
  background: linear-gradient(135deg, var(--cream), var(--vio-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.det-img::after { background: linear-gradient(transparent, var(--ink)); }
.det-fullscreen-btn {
  background: rgba(17, 8, 32, 0.85);
  border: 1px solid var(--line-mid);
  color: var(--vio-300);
}
.det-play-btn {
  background: var(--grad-vio-mag);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.55),
              0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.det-play-btn svg { fill: var(--cream); }

.qty-btn {
  background: var(--ink-3);
  border: 1px solid var(--line-mid);
  color: var(--cream);
}
.qty-btn:active {
  background: var(--grad-vio-mag);
  color: var(--cream);
  border-color: transparent;
}

/* === Modal === */
.modal-overlay.modal-visible {
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
}
.modal-title { color: var(--vio-200); }
.modal-close {
  background: rgba(168, 85, 247, 0.12);
  color: var(--vio-200);
  border: 1px solid var(--line-mid);
}

/* === Toast === */
.toast-success { background: rgba(52, 211, 153, 0.94); color: var(--ink); }
.toast-error   { background: rgba(251, 113, 133, 0.95); color: #fff; }
.toast-info {
  background: rgba(17, 8, 32, 0.95);
  color: var(--vio-200);
  border-color: var(--line-mid);
  backdrop-filter: blur(12px);
}

/* === Loader (splash ring — même logique que gate) === */
.splash-page-loader .splash-ring-track { stroke: rgba(255, 255, 255, 0.07); }
.splash-page-loader .splash-ring-arc { stroke: var(--vio-300); }
.splash-page-loader-label { color: var(--smoke); }

.skeleton {
  background: linear-gradient(90deg, rgba(17, 8, 32, 0.8) 25%, rgba(34, 21, 56, 0.95) 50%, rgba(17, 8, 32, 0.8) 75%);
  background-size: 200% 100%;
}

.pay-step-num {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--line-strong);
  color: var(--vio-300);
}
.pay-info-title { color: var(--status-ok); }
.ticket-head-ico {
  background: var(--grad-vio-soft);
  border: 1px solid var(--line-mid);
}
.ticket-head-ico .ico-24 { stroke: var(--vio-300); }
.empty-ico .ico-24 { stroke: var(--vio-500); }
.set-ico { background: var(--ink-3); color: var(--smoke); }
.set-ico .ico-24 { stroke: var(--vio-300); }
.set-chev { color: var(--smoke-2); }

.adm-btn-sm { background: var(--ink-3); border-color: var(--line-soft); color: var(--smoke); }
.adm-btn-dm { color: var(--vio-300); }
.adm-btn-dm .ico-24 { stroke: var(--vio-300); }
.adm-btn-del { border-color: rgba(251, 113, 133, 0.22); color: var(--status-err); }
.adm-btn-del .ico-24 { stroke: var(--status-err); }

.btn-paypal {
  background: linear-gradient(135deg, #0070BA, #003087);
  box-shadow: 0 8px 22px rgba(0, 112, 186, 0.32);
}

.glow-gold { box-shadow: 0 0 18px rgba(192, 132, 252, 0.28); }

.poll-dot.confirming { background: var(--vio-300); }
.poll-label { color: var(--cream); }
.poll-timer { color: var(--smoke); }

.divider { background: var(--line-soft); }

.bc-result-success { background: rgba(52, 211, 153, 0.14); color: var(--status-ok); }
.bc-result-error   { background: rgba(251, 113, 133, 0.14); color: var(--status-err); }

.info-row + .info-row { border-top-color: var(--line-soft); }
.info-label { color: var(--smoke); }
.info-val { color: var(--cream); }
.pay-info-row { border-bottom-color: var(--line-soft); color: var(--smoke); }
.pay-info-addr { color: var(--bone); }
.pay-info-note { color: var(--smoke-2); }

.tranche-pts span, .det-unit {
  -webkit-text-fill-color: var(--smoke);
  color: var(--smoke);
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.45); }
  50%      { box-shadow: 0 0 24px 6px rgba(192, 132, 252, 0.20); }
}
@keyframes borderGlow {
  0%, 100% { border-color: var(--line-soft); }
  50%      { border-color: rgba(192, 132, 252, 0.40); }
}

.btn-gold:active   { box-shadow: 0 0 28px rgba(192, 132, 252, 0.6); }
.btn-red:active    { box-shadow: 0 0 26px rgba(251, 113, 133, 0.5); }
.crypto-tab.active { box-shadow: 0 0 18px rgba(192, 132, 252, 0.42); }
.pay-method-btn.active { box-shadow: 0 0 20px rgba(192, 132, 252, 0.42); }
.admin-nav-btn.active  { box-shadow: 0 0 16px rgba(168, 85, 247, 0.48); }
.ticket-subj.active    { box-shadow: 0 0 14px rgba(192, 132, 252, 0.40); }
.set-row:active .set-ico { background: rgba(168, 85, 247, 0.22); }
.file-zone-inner:active {
  background: rgba(168, 85, 247, 0.06);
  border-color: var(--vio-300);
}
.nav-item.active .ico-nav { filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.72)); }

/* ============================================================
   MISA SHOP — REFINED MAGAZINE LAYOUT  (.m-* classes)
   Pro · fin · pixel-perfect · icônes SVG · zéro emoji
   ============================================================ */

.m-page {
  padding: 0 0 20px;
  position: relative;
}

/* --- HERO (image bannière) --- */
.m-hero {
  position: relative;
  margin: 10px 14px 0;
  border-radius: 16px;
  overflow: hidden;
  height: 160px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  isolation: isolate;
  background: var(--ink-2);
}
.m-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.m-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 2, 10, 0.10) 0%, rgba(4, 2, 10, 0.55) 60%, rgba(4, 2, 10, 0.92) 100%),
    linear-gradient(135deg, rgba(91, 33, 182, 0.18), transparent 60%);
}
.m-hero-content {
  position: relative; z-index: 2;
  height: 100%;
  padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.m-hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 5px 9px 5px 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}
.m-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: pulseDot 1.6s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.35); }
}

.m-hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
}
.m-hero-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.m-hero-brand b {
  font-weight: 800;
  background: linear-gradient(135deg, #E9D5FF 0%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.m-hero-tag {
  font-size: 10px; font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* --- STATS BAND --- */
.m-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 14px 0;
}
.m-stat {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px;
  background: rgba(17, 8, 32, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.m-stat-ico {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--vio-300);
}
.m-stat-ico svg {
  width: 13px; height: 13px;
  stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.m-stat-text { min-width: 0; }
.m-stat-num {
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 13px;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.m-stat-lbl {
  font-size: 8px; font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--smoke-2);
  margin-top: 1px;
}

/* --- FILTER CHIPS --- */
.m-filters {
  display: flex; gap: 5px;
  padding: 12px 14px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.m-filters::-webkit-scrollbar { display: none; }
.m-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--line-mid);
  border-radius: 100px;
  color: var(--smoke);
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.18s ease;
  scroll-snap-align: start;
  white-space: nowrap;
}
.m-chip:active { transform: scale(0.94); }
.m-chip.active {
  background: var(--cream);
  border-color: transparent;
  color: var(--ink);
  font-weight: 700;
}

/* --- SHOP HEAD (title + count + sort) --- */
.m-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 16px 8px;
  gap: 10px;
}
.m-head-l {
  display: flex; align-items: baseline; gap: 8px;
  min-width: 0;
}
.m-head-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.m-head-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--smoke-2);
  letter-spacing: 0.02em;
}
.m-sort {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--line-mid);
  border-radius: 100px;
  color: var(--smoke);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.m-sort:active { transform: scale(0.92); }
.m-sort svg {
  width: 10px; height: 10px;
  stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.m-sort.desc svg { transform: rotate(180deg); }

/* --- PRODUCT GRID --- */
.m-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 14px;
}

.m-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  animation: mCardIn 0.4s cubic-bezier(0.22,1,0.36,1) backwards;
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), border-color 0.18s;
  isolation: isolate;
}
.m-card:active {
  transform: scale(0.97);
  border-color: var(--line-strong);
}
@keyframes mCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.m-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ink-3);
  overflow: hidden;
}
.m-card-media video,
.m-card-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.m-card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 6, 19, 0.45) 100%);
  pointer-events: none;
}

.m-card-pts {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  padding: 3px 7px;
  background: rgba(4, 2, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 10px; font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

.m-card-dot {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 7px; height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(4, 2, 10, 0.85);
}
.m-card-dot.ok  { background: var(--status-ok); }
.m-card-dot.low { background: var(--status-warn); }
.m-card-dot.out { background: var(--status-err); }

.m-card-body {
  padding: 10px 11px 11px;
  position: relative;
}
.m-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--bone);
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
}
.m-card-price {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.m-card-stk {
  font-family: 'Inter', sans-serif;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.m-card-stk.ok  { color: var(--status-ok); }
.m-card-stk.low { color: var(--status-warn); }
.m-card-stk.out { color: var(--status-err); }

/* --- EMPTY STATE --- */
.m-empty {
  text-align: center;
  padding: 48px 20px;
  margin: 8px 14px;
  border-radius: 14px;
  background: rgba(17, 8, 32, 0.4);
  border: 1px dashed var(--line-mid);
}
.m-empty-ico {
  width: 32px; height: 32px;
  margin: 0 auto 10px;
  color: var(--vio-400);
  opacity: 0.7;
}
.m-empty-ico svg {
  width: 100%; height: 100%;
  stroke: currentColor; stroke-width: 1.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.m-empty-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600; font-size: 13px;
  color: var(--cream);
  margin-bottom: 3px;
}
.m-empty-desc {
  color: var(--smoke);
  font-size: 11px;
}

