/* Оформление v2: сцена с монетами, свечения, стеклянные карточки. Подключается после styles.css. */

body {
  background:
    radial-gradient(90% 45% at 50% 0%, rgba(37, 99, 255, .38), transparent 65%),
    radial-gradient(55% 35% at 0% 55%, rgba(245, 182, 42, .14), transparent 70%),
    radial-gradient(55% 35% at 100% 75%, rgba(31, 208, 138, .13), transparent 70%),
    linear-gradient(180deg, #071029 0%, #050914 45%, #04070f 100%);
  background-attachment: fixed;
}
/* точечная сетка и световые пятна поверх фона */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(rgba(120, 160, 255, .16) 1px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 10%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 70% at 50% 10%, #000 30%, transparent 75%);
}
body::after {
  content: ""; position: fixed; left: -20%; right: -20%; bottom: -60px; height: 220px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(50% 40% at 30% 100%, rgba(245, 182, 42, .22), transparent 70%),
    radial-gradient(50% 40% at 75% 100%, rgba(43, 108, 255, .25), transparent 70%);
  filter: blur(10px);
}
main { position: relative; }

.top {
  background: linear-gradient(180deg, rgba(5, 9, 20, .92), rgba(5, 9, 20, .7));
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(245, 182, 42, .5), rgba(31, 208, 138, .5), transparent) 1;
}

/* ----- сцена ----- */
.hero { padding: 0 0 8px; text-align: center; }
.hero-art { display: block; width: 100%; max-width: 420px; margin: -6px auto -10px; overflow: visible; }
.hero-art .coin { transform-box: fill-box; transform-origin: center; animation: float 5s ease-in-out infinite; }
.hero-art .coin-b { animation-delay: -2.5s; }
.hero-art .spark { animation: twinkle 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px); } }
@keyframes twinkle { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .hero-art *, .btn::after, .live i { animation: none !important; } }

.hero-title { margin: 0 0 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wordmark {
  font-size: 46px; line-height: 1.05; padding: 0 6px; font-weight: 900; font-style: italic; letter-spacing: -.03em; text-transform: lowercase;
  background: linear-gradient(180deg, #ffffff 0%, #e3e8f0 40%, #8e98aa 62%, #dfe5ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #1a2233) drop-shadow(0 6px 18px rgba(0, 0, 0, .6));
}
.route {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 24px; font-size: 16px; font-weight: 800; letter-spacing: .04em;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  background: linear-gradient(90deg, #f5b62a, #ffd76a, #f5b62a);
  position: relative;
}
.route::before {
  content: ""; position: absolute; inset: 1.5px; z-index: 0;
  clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%);
  background: #0a0f1c;
}
.route b, .route i { position: relative; z-index: 1; }
.route b { color: #fff; }
.route i { font-style: normal; color: var(--gold); }

/* ----- карточка курса ----- */
.rate-card {
  position: relative; text-align: left; padding: 14px 16px 12px; border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(25, 40, 78, .92), rgba(9, 15, 30, .95)) padding-box,
    linear-gradient(120deg, rgba(245, 182, 42, .85), rgba(43, 108, 255, .35) 45%, rgba(31, 208, 138, .85)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(43, 108, 255, .15);
}
.rate-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--green); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(31, 208, 138, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(31, 208, 138, 0); } }
.rate-card .rate-big { justify-content: flex-start; margin: 6px 0 10px; }
.rate-card .rate-big b {
  font-size: 38px; text-shadow: none;
  background: linear-gradient(180deg, #8dffd0, #1fd08a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(31, 208, 138, .35));
}
.tiers { margin-top: 0; gap: 6px; }
.tiers div { background: rgba(5, 9, 20, .55); border-color: rgba(93, 140, 255, .18); text-align: center; padding: 6px 4px; }
.tiers div b { color: var(--gold2); }

.perks { list-style: none; display: flex; gap: 8px; margin: 12px 0 6px; padding: 0; }
.perks li {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; font-size: 12px; font-weight: 600;
  border-radius: 14px; background: rgba(15, 24, 43, .75); border: 1px solid rgba(93, 140, 255, .18);
}
.perks i { font-style: normal; font-size: 18px; filter: drop-shadow(0 0 8px rgba(245, 182, 42, .45)); }

/* ----- карточки ----- */
.card {
  background:
    linear-gradient(165deg, rgba(22, 34, 62, .9), rgba(10, 16, 31, .95)) padding-box,
    linear-gradient(140deg, rgba(93, 140, 255, .45), rgba(93, 140, 255, .08) 40%, rgba(245, 182, 42, .35)) border-box;
  border: 1px solid transparent; border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.calc {
  margin-top: 8px;
  background:
    linear-gradient(165deg, rgba(22, 34, 62, .92), rgba(10, 16, 31, .96)) padding-box,
    linear-gradient(140deg, rgba(245, 182, 42, .9), rgba(245, 182, 42, .1) 35%, rgba(31, 208, 138, .1) 65%, rgba(31, 208, 138, .9)) border-box;
}
.card h2 { display: flex; align-items: center; gap: 8px; }
.card h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(var(--gold2), var(--green)); }

input { background: rgba(4, 8, 18, .75); border-color: rgba(93, 140, 255, .22); }
.amount input { font-size: 26px; }
.cur { background: linear-gradient(180deg, #1b2846, #111a2f); border-color: rgba(93, 140, 255, .3); }
.arrow {
  width: 36px; height: 36px; margin: -8px auto -2px; display: grid; place-items: center; position: relative; z-index: 1;
  border-radius: 50%; color: #1a1203; font-weight: 900;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 0 0 4px #0f1830, 0 0 18px rgba(245, 182, 42, .45);
}
.chip { background: rgba(4, 8, 18, .7); border-color: rgba(93, 140, 255, .22); }
.chip.on { background: linear-gradient(180deg, rgba(31, 208, 138, .18), rgba(31, 208, 138, .05)); box-shadow: 0 0 0 1px var(--green) inset, 0 0 18px rgba(31, 208, 138, .2); }

.btn {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffe08a 0%, #f5b62a 55%, #e09a10 100%);
  box-shadow: 0 8px 28px rgba(245, 182, 42, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: shine 3.5s ease-in-out infinite;
}
.btn:disabled::after, .btn-ghost::after { display: none; }
@keyframes shine { 60%, 100% { left: 130%; } }
.btn:disabled { background: linear-gradient(180deg, #4a4130, #3a3324); color: #b3a37f; opacity: 1; box-shadow: none; }
.btn-ghost { background: rgba(4, 8, 18, .7); }

.how { margin-top: 6px; padding: 16px; border-radius: 20px; background: rgba(10, 16, 31, .65); border: 1px solid rgba(93, 140, 255, .15); }
.how h2 { margin-bottom: 14px; }
.how li::before { background: radial-gradient(circle at 35% 30%, #2a3a63, #0d1529); box-shadow: 0 0 12px rgba(245, 182, 42, .25); }
.how li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 1px; background: linear-gradient(rgba(245, 182, 42, .5), transparent); }

/* ----- заявка и списки ----- */
.order-head h1 { font-size: 34px; }
.pay {
  background:
    linear-gradient(165deg, rgba(14, 44, 40, .88), rgba(10, 16, 31, .96)) padding-box,
    linear-gradient(140deg, rgba(31, 208, 138, .9), rgba(31, 208, 138, .1) 50%, rgba(245, 182, 42, .6)) border-box;
}
.row { background: linear-gradient(165deg, rgba(22, 34, 62, .88), rgba(10, 16, 31, .92)); border-color: rgba(93, 140, 255, .2); }
.stats div, .tabs, .seg { background: rgba(10, 16, 31, .8); }
