:root {
  --glass-ink: #30251c;
  --glass-muted: #6b5848;
  --glass-accent: #8d4307;
  --glass-line: rgba(255,255,255,.86);
  --glass-shadow: 0 14px 42px -24px #ad6b2c85, inset 0 1px 1px #fff;
  --glass-surface: linear-gradient(145deg, #ffffffd6, #fff0d49c);
}
body {
  color: var(--glass-ink);
  background: radial-gradient(ellipse at 13% 8%, #ffe8b7 0%, transparent 42%),
    radial-gradient(ellipse at 83% 17%, #ffdfbf 0%, transparent 44%),
    radial-gradient(ellipse at 84% 85%, #ffebc5 0%, transparent 48%), #fff8ed;
  background-attachment: fixed;
}
#root .min-h-\[100svh\] { background: transparent; }
#root header, #root footer {
  background: linear-gradient(115deg, #ffffffe0, #fff1dcb8);
  border-color: var(--glass-line);
  backdrop-filter: blur(20px) saturate(145%);
  box-shadow: 0 8px 30px -25px #9b6028;
}
#root :is(main, .z-50, .z-40) :is(.bg-white, .bg-white\/80, .bg-white\/90, .bg-white\/95).border,
#root .z-50 > .bg-white {
  background: var(--glass-surface);
  border-color: var(--glass-line);
  box-shadow: var(--glass-shadow);
}
#root .z-50 > .bg-white { background: linear-gradient(145deg,#fdfefe,#fff3df); }
#root main .bg-gray-100.border-transparent {
  background: linear-gradient(145deg,#ffffffc9,#ffebcb90);
  border-color: #ffffffcf;
  box-shadow: inset 0 1px 0 #fff, 0 7px 22px -17px #986036;
}
#root main .bg-gray-100.border-transparent:hover {
  border-color: #e7a04a;
  background: #fffbf2;
}
#root main .bg-\[\#FE2C55\], #root .z-50 button.bg-\[\#FE2C55\] {
  color: #31200e;
  background: linear-gradient(140deg, #ffb84d, #e88b00 74%);
  border-color: #c67515;
  box-shadow: inset 0 1px 0 #ffffff61, 0 10px 22px -12px #9e521a;
}
#root main .text-\[\#FE2C55\] { color: #914408; }
#root main :is(button, a, input, select):focus-visible, #root .z-50 :is(button,input):focus-visible {
  outline: 2px solid #ac590f;
  outline-offset: 3px;
}
#root button:disabled { opacity: .55; cursor: not-allowed; }
.glass-currency-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .45rem; margin: .6rem 0 1rem; }
.glass-currency {
  display: grid; gap: .2rem; place-items: center;
  min-width: 0; padding: .55rem .1rem; border: 1px solid #fff; border-radius: .9rem;
  background: linear-gradient(145deg,#fff,#fff1da); color: var(--glass-ink);
  font-variant-numeric: tabular-nums;
}
.glass-currency span { color: var(--glass-muted); font-size: .65rem; letter-spacing: .08em; }
.glass-currency strong { max-width: 100%; overflow-wrap: anywhere; text-align: center; font-size: clamp(.66rem,2.6vw,.95rem); }
.glass-currency:first-child { border-color: #eeb775; background: linear-gradient(145deg,#fffdf8,#ffe4b5); }
.telegram-store { --service-color: #99510b; --service-glow: #ffe7a6; }
.telegram-store[data-service="premium"] { --service-color: #9f480f; --service-glow: #ffd4a6; }
.telegram-main { width: min(100%, 73rem); margin: 0 auto; padding: 6.3rem 1.15rem 4rem; }
.telegram-hero, .telegram-catalog {
  position: relative; border: 1px solid var(--glass-line); border-radius: 2rem;
  background: var(--glass-surface); box-shadow: var(--glass-shadow);
}
.telegram-hero {
  isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: clamp(1.35rem, 6vw, 4.2rem); min-height: clamp(13rem,32vw,21rem);
  background: radial-gradient(ellipse at 88% 35%,var(--service-glow),transparent 64%), var(--glass-surface);
}
.telegram-hero::before, .telegram-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 27rem; height: 18rem; right: -5rem; top: -2rem; border: 1px solid #ffffff9c; border-radius: 50%;
  transform: rotate(-28deg); box-shadow: inset 0 1px 10px #ffffff75;
}
.telegram-hero::after { top: 2rem; right: -9rem; }
.telegram-hero-copy { position: relative; z-index: 1; }
.telegram-kicker {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .72rem;
  border: 1px solid #fff; border-radius: 999px; background: #ffffffad; color: var(--service-color);
  font-weight: 800; letter-spacing: .11em; font-size: .64rem;
}
.telegram-hero h1 {
  max-width: 15ch; font-size: clamp(1.75rem, 5.5vw, 4.25rem); font-weight: 850;
  margin: .85rem 0 .45rem; letter-spacing: -.048em; line-height: 1.08;
}
.telegram-hero p { max-width: 40ch; color: var(--glass-muted); font-weight: 600; }
.telegram-orbit {
  width: clamp(4.5rem, 17vw, 10rem); aspect-ratio: 1; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 35%; border: 1px solid #fff;
  background: linear-gradient(145deg,#ffffffef,#ffffff37 58%,#ffffffbe);
  color: var(--service-color); transform: rotate(11deg);
  box-shadow: inset 0 2px 12px #fff, 0 20px 45px -20px var(--service-color);
}
.telegram-orbit svg { width: 53%; height: 53%; transform: rotate(-11deg); filter: drop-shadow(0 5px 6px #a263233a); }
.telegram-catalog { margin-top: 1.25rem; padding: clamp(1rem, 3.7vw, 2.5rem); }
.telegram-switch { display: inline-flex; max-width: 100%; gap: .35rem; padding: .35rem; border: 1px solid #fff; border-radius: 999px; background: #fbe9cb9e; }
.telegram-switch button {
  display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--glass-muted);
  padding: .65rem clamp(.55rem,2vw,1.25rem); border-radius: 999px; font-size: clamp(.68rem,2vw,.92rem);
  border: 1px solid transparent; font-weight: 760;
}
.telegram-switch button[aria-pressed="true"] {
  color: var(--service-color); background: linear-gradient(155deg,#fff,#fff4df);
  border-color: #fff; box-shadow: 0 4px 14px -8px var(--service-color);
}
@media (max-width: 380px) {
  .telegram-main { padding-inline: .7rem; }
  .telegram-hero { padding-inline: .95rem; }
  .telegram-orbit { width: 3.5rem; }
}

@media (max-width: 420px) {
  .glass-currency-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.telegram-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr));
  align-items: start;
  gap: .9rem;
  margin: 1.4rem 0;
}
.telegram-fields label { display: grid; gap: .4rem; font-weight: 720; }
.telegram-fields input {
  width: 100%;
  min-width: 0;
  border: 1px solid #fff;
  border-radius: .9rem;
  background: #ffffffbf;
  color: var(--glass-ink);
  box-shadow: inset 0 1px 3px #a9652d1c;
  padding: .75rem .9rem;
  font-size: 1rem;
}
.telegram-fields small, .telegram-input-hint { color: var(--glass-muted); font-size: .82rem; }
.telegram-options-title, .telegram-total h2 { font-weight: 800; font-size: 1.1rem; margin: 0 0 .65rem; }
.telegram-options {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr));
  gap: .55rem;
}
.telegram-options button {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  padding: .85rem .9rem;
  border: 1px solid #fff;
  border-radius: .95rem;
  background: linear-gradient(145deg,#fff,#fff3df);
  color: var(--glass-ink);
  text-align: start;
}
.telegram-options button svg { color: var(--service-color); }
.telegram-options button[aria-pressed="true"] {
  border-color: var(--service-color);
  background: linear-gradient(145deg,#fff,var(--service-glow));
}
.telegram-input-hint { margin-top: .65rem; }
.telegram-total {
  padding: 1rem;
  margin-top: 1.25rem;
  border: 1px solid #fff;
  border-radius: 1.35rem;
  background: #ffffff82;
}
.telegram-continue {
  display: block;
  width: 100%;
  padding: .85rem;
  border-radius: .9rem;
  color: #31200e;
  font-weight: 780;
  background: linear-gradient(135deg,#ffb84d,#e88b00);
}
#root .admin-glass-header {
  --header-rim: #ffffffde;
  gap: 1rem;
  padding: .9rem 1.15rem;
  border: 1px solid var(--header-rim);
  border-radius: 1.45rem;
  background:
    radial-gradient(ellipse at 14% 0%, #ffffffa3, transparent 62%),
    linear-gradient(112deg, #fffdf8d1, #ffebd086 70%, #ffe4c4b5);
  box-shadow: 0 15px 32px -24px #915b30, inset 0 1px 1px #fff, inset 0 -1px 8px #ffffff75;
  backdrop-filter: blur(24px) saturate(155%);
}
#root .admin-glass-header-mobile {
  top: .45rem;
  inset-inline: .65rem;
  height: 3.15rem;
  padding: .25rem .8rem;
  border-radius: 1.15rem;
}
.admin-glass-status {
  flex: 0 0 auto;
  padding: .5rem .78rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #ffffff9c;
  color: #5d493b;
  font-size: .86rem;
  font-weight: 650;
}
.admin-glass-status-dot {
  width: .5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #28a575;
  box-shadow: 0 0 0 .2rem #28a57520;
}
@keyframes glass-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glass-hero-refract {
  from { transform: rotate(5deg) scale(.94); }
  to { transform: rotate(11deg) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .admin-glass-header, .telegram-hero, .storefront-shell main > div {
    animation: glass-arrive .42s cubic-bezier(.22,1,.36,1) backwards;
  }
  .telegram-catalog { animation: glass-arrive .46s .07s cubic-bezier(.22,1,.36,1) backwards; }
  .telegram-orbit { animation: glass-hero-refract .85s cubic-bezier(.2,.85,.25,1) backwards; }
  .glass-currency { animation: glass-arrive .28s cubic-bezier(.22,1,.36,1) backwards; }
  .glass-currency:nth-child(2) { animation-delay: 25ms; }
  .glass-currency:nth-child(3) { animation-delay: 50ms; }
  .glass-currency:nth-child(4) { animation-delay: 75ms; }
  .glass-currency:nth-child(5) { animation-delay: 100ms; }
  .telegram-options button, .telegram-continue, #root .storefront-shell main .bg-gray-100.border-transparent {
    transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
  }
  .telegram-options button:active, .telegram-continue:enabled:active { transform: scale(.985); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .telegram-options button:hover, .telegram-continue:enabled:hover, #root .storefront-shell main .bg-gray-100.border-transparent:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px -12px #9f672c99, inset 0 1px 0 #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  #root .telegram-store *, #root .storefront-shell *, #root .admin-glass-header {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

#root .storefront-shell main .cursor-pointer.bg-\[\#FE2C55\]\/10 {
  border-color: #dc8b32;
  background: linear-gradient(145deg, #fffaf1e8, #ffdeaaac);
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px -17px #a6602e;
}

#root .storefront-shell main input[type="tel"][inputmode="numeric"] {
  width: min(100%, 8rem);
  padding: .38rem .65rem;
  border: 1px solid #eab16b;
  border-radius: 999px;
  background: linear-gradient(145deg, #fffdf8, #fff0d6);
  color: #4a2b15;
  font-size: 1rem;
  box-shadow: inset 0 1px 1px #fff, 0 3px 10px #a6602e26;
}

#root .storefront-shell main input[type="tel"][inputmode="numeric"]:focus {
  outline: none;
  border-color: #a65a14;
  box-shadow: inset 0 1px 1px #fff, 0 0 0 3px #ffb84d78;
}

#root .storefront-shell main input[type="tel"][inputmode="numeric"]::placeholder {
  color: #896849;
  opacity: 1;
}

.store-service-links { display: flex; flex-wrap: wrap; gap: .5rem; }
#root main .store-service-link {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.5rem;
  padding: .4rem .76rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
  color: var(--glass-ink);
  font-size: clamp(.75rem, 2.5vw, .9rem);
  font-weight: 750;
  white-space: nowrap;
}
.store-service-link img { object-fit: contain; flex: none; }
#root main .store-service-link-telegram { color: #13639d; background: linear-gradient(145deg,#fff,#e2f4ff); }
#root main .store-service-link:hover { border-color: currentColor; }

body:has(.telegram-store) {
  background: radial-gradient(ellipse at 13% 8%,#cdeaff 0%,transparent 52%),
    radial-gradient(ellipse at 85% 26%,#d9e5ff 0%,transparent 48%), #f0f7ff;
  background-attachment: fixed;
}
#root .telegram-store {
  --glass-ink: #182744;
  --glass-muted: #536581;
  --glass-surface: linear-gradient(145deg,#ffffffd6,#e5f3ffad);
  --glass-shadow: 0 14px 42px -24px #4267a9aa, inset 0 1px 1px #fff;
  --service-color: #176b9f;
  --service-glow: #c3eaff;
}
#root .telegram-store[data-service="premium"] { --service-color: #2954a4; --service-glow: #c6daff; }
#root .telegram-store :is(header,footer,.telegram-options button,.glass-currency) { background: linear-gradient(145deg,#fff,#eaf5ff); }
#root .telegram-store .telegram-switch { background: #e0efff; }
#root .telegram-store :is(.telegram-switch button[aria-pressed="true"],.telegram-options button[aria-pressed="true"],.glass-currency:first-child) {
  border-color: #89bce7;
  background: linear-gradient(145deg,#fff,var(--service-glow));
}
#root .telegram-store .telegram-continue, #root .telegram-store .z-50 button.bg-\[\#FE2C55\] {
  border-color: #225ab1;
  color: #fff;
  background: linear-gradient(135deg,#287fbc,#244fa3);
  box-shadow: 0 10px 22px -16px #244fa3;
}
#root .telegram-store .z-50 > .bg-white { background: linear-gradient(145deg,#fff,#edf6ff); }
#root .telegram-store :is(button,a,input,select):focus-visible { outline-color: var(--service-color); }
