/* =========================================================
   Gashapon Online — main.css (FULL)
   ========================================================= */

/* ---------- Theme ---------- */
:root{
  --bg: #f6fbff;
  --bg2:#ffffff;
  --card: rgba(255,255,255,0.82);
  --stroke: rgba(12, 28, 58, 0.14);

  --blue: #1363ff;
  --blue2:#0aa6ff;
  --deep:#0b1b3a;

  --text:#0b1b3a;
  --muted: rgba(11,27,58,.68);

  --radius: 18px;
  --shadow: 0 18px 45px rgba(10, 40, 120, 0.12);
  --shadow2: 0 28px 70px rgba(10, 40, 120, 0.18);
}

/* ---------- Base ---------- */
*{ box-sizing: border-box; }

body{
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(19,99,255,.14), transparent 60%),
    radial-gradient(900px 520px at 85% 10%, rgba(10,166,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}

.page{
  min-height: calc(100vh - 64px);
}

a{ text-decoration: none; }

/* ---------- Navbar / Footer ---------- */
.nav-blue{
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(11,27,58,.10);
  box-shadow: 0 10px 30px rgba(12,28,58,.06);
  backdrop-filter: blur(12px);
}

.navbar .navbar-brand{
  color: rgba(11,27,58,.92) !important;
}

.navbar .navbar-toggler{
  border: 1px solid rgba(11,27,58,.18);
}
.navbar .navbar-toggler-icon{
  filter: invert(1) grayscale(1) brightness(.2);
}


.brand{
  font-weight: 800;
  letter-spacing: .2px;
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-dot{
  width:10px; height:10px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, #0aa6ff);
  box-shadow: 0 0 0 6px rgba(10,166,255,.18);
}

.footer{
  border-top: 1px solid var(--stroke);
  padding: 18px 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}

/* ---------- Cards / Buttons ---------- */
.card{
  border-radius: 18px !important;
  border: 1px solid rgba(11,27,58,.10) !important;
  background: rgba(255,255,255,.85) !important;
  box-shadow: 0 18px 45px rgba(12,28,58,.08);
}

.btn{
  border-radius: 999px !important;
  font-weight: 700;
}

.btn-pill{
  padding: 8px 14px !important;
  font-weight: 700 !important;
}

.btn-ghost{
  color: rgba(11,27,58,.82) !important;
  border: 1px solid rgba(11,27,58,.12) !important;
  background: rgba(255,255,255,.60) !important;
  backdrop-filter: blur(10px);
}

.btn-ghost:hover{
  background: rgba(255,255,255,0.12) !important;
}

.btn-white{
  background: #fff !important;
  color: rgba(11,27,58,.88) !important;
  border: 1px solid rgba(11,27,58,.10) !important;
  box-shadow: 0 10px 24px rgba(12,28,58,.06);
}

.btn-outline-white{
  color: rgba(11,27,58,.82) !important;
  border: 1px solid rgba(11,27,58,.14) !important;
  background: transparent !important;
}

.btn-light-blue{
  background: #e8f3ff !important;
  color: rgba(11,27,58,.90) !important;
  border: 1px solid rgba(19,99,255,.18) !important;
  box-shadow: 0 10px 24px rgba(12,28,58,.08);
}

.btn-light-blue:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(12,28,58,.10);
}


.btn-warn{
  background: rgba(255, 206, 61, 0.95) !important;
  color: #121212 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}

/* ---------- Hero ---------- */
.hero{
  padding: 86px 0 60px;
  color: rgba(11,27,58,.92);
  background:
    radial-gradient(900px 420px at 30% 10%, rgba(173, 216, 255, .55), transparent 60%),
    radial-gradient(900px 420px at 70% 0%, rgba(190, 255, 240, .45), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(11,27,58,.08);
}
.hero .lead{
  color: rgba(11,27,58,.62);
}

/* ---------- Home collection cards ---------- */
.gashapon-card{
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.gashapon-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(12,28,58,.10);
}
.gashapon-card .card-body{
  padding: 16px 16px 18px 16px;
}
.gashapon-card .btn{
  width: 100%;
}
.carousel img{
  height: 320px;
  width: 100%;
  object-fit: cover;
  filter: saturate(1.02);
}

/* ---------- Prices (sale) ---------- */
.old-price{
  text-decoration: line-through;
  color: rgba(0,0,0,0.5);
  margin-right: 8px;
}
.new-price{
  color: #d32f2f;
  font-weight: 800;
}
.balance-pill{
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11,27,58,.04);
  border: 1px solid rgba(11,27,58,.10);
  color: rgba(11,27,58,.85);
  font-weight: 800;
  font-size: 13px;
}

.header-padding{
 padding 10px;
}

/* =========================================================
   Collection detail — machine + purchase animation
   ========================================================= */

/* Screen background */
.gashapon-screen{
  position: relative;
  height: 100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  background:
    radial-gradient(900px 480px at 50% 10%, rgba(19,99,255,.10), transparent 60%),
    linear-gradient(180deg, #eef8ff, #ffffff);
}

/* Container */
#gashapon-container{
  position: relative;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction: column;
}

.machine {
  position: relative;
  width: 420px;
  height: 760px;
  background: #ffffff;
  border-radius: 22px;

  /* ТОЛСТЫЙ КОНТУР */
  border: 4px solid #111;

  box-shadow:
    0 20px 50px rgba(0,0,0,.18),
    inset 0 0 0 2px rgba(255,255,255,.6);
}

.machine-frame {
  position: absolute;
  inset: 12px;
  border-radius: 16px;

  /* СРЕДНИЙ КОНТУР */
  border: 2px solid rgba(0,0,0,.55);
  pointer-events: none;
}

.machine-glass {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);

  width: 300px;
  height: 300px;

  background: #f7fbff;
  border-radius: 16px;

  /* жирная рамка */
  border: 3px solid #111;

  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.15),
    inset 0 20px 30px rgba(255,255,255,.6);
}

.machine-glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.machine-price {
  position: absolute;
  top: 420px;
  left: 32px;

  font-weight: 900;
  font-size: 20px;
  letter-spacing: .5px;

  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;

  border: 2px solid #111;
}
.machine-arrow {
  position: absolute;
  top: 445px;
  left: 50%;
  transform: translateX(-50%);

  width: 160px;
  height: 160px;
  border-radius: 50%;

  border: 12px solid rgba(0,180,170,.45);
  border-left-color: transparent;
  border-bottom-color: transparent;

  opacity: .85;
}
.machine-handle {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);

  width: 120px;
  height: 120px;
  border-radius: 50%;

  /* толстый контур */
  border: 4px solid #111;
  background: #fafafa;

  box-shadow:
    inset 0 -8px 0 rgba(0,0,0,.15),
    0 12px 25px rgba(0,0,0,.25);

  cursor: pointer;
}

.handle-core {
  position: absolute;
  inset: 14px;
  border-radius: 50%;

  background: #111;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  letter-spacing: 1px;
}
.machine-drop {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);

  width: 120px;
  height: 26px;

  border-radius: 12px;
  border: 2px dashed rgba(0,0,0,.5);
  background: rgba(0,0,0,.06);
}


/* Machine (bigger + nicer) */
#gashapon-machine{
  width: 460px;
  height: 700px;
  position: relative;
  border-radius: 34px;
  background: linear-gradient(180deg, #f7fbff, #ffffff 40%, #f3f7ff);
  border: 3px solid rgba(11,27,58,.78);
  box-shadow:
    inset 0 0 0 4px rgba(255,255,255,.7),
    0 24px 60px rgba(0,0,0,.16);
}

/* Top cap */
.machine-top{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:76px;
  border-top-left-radius: 34px;
  border-top-right-radius: 34px;
  background:
    linear-gradient(180deg, #bfe3ff, #f7fbff);
  border-bottom: 3px solid rgba(11,27,58,.78);
  box-shadow: inset 0 -10px 22px rgba(0,0,0,0.08);
}

/* Side accent stripes */
#gashapon-machine::before,
#gashapon-machine::after{
  content:"";
  position:absolute;
  top:92px;
  width: 14px;
  height: 530px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(19,99,255,.35), rgba(10,166,255,.15));
  opacity: .8;
}
#gashapon-machine::before{ left: 18px; }
#gashapon-machine::after{ right: 18px; }

/* Glass (square banner window) */
#gashapon-glass{
  position:absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.85), rgba(255,255,255,.55) 40%, rgba(255,255,255,.35)),
    linear-gradient(180deg, rgba(10,166,255,.06), rgba(19,99,255,.03));
  border: 3px solid rgba(11,27,58,.78);
  box-shadow:
    inset 0 0 0 4px rgba(255,255,255,.65),
    inset 0 18px 40px rgba(10,166,255,.08);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* “glass shine” */
#gashapon-glass::before{
  content:"";
  position:absolute;
  inset:-20px -40px;
  background: linear-gradient(115deg, transparent 45%, rgba(255,255,255,.35) 55%, transparent 65%);
  transform: translateX(-30%);
  opacity: .55;
  pointer-events:none;
}

/* Banner inside */
#banner{
  width: 92%;
  height: 92%;
  border-radius: 16px;
  overflow:hidden;
  border: 2px solid rgba(11,27,58,.55);
  box-shadow: 0 14px 36px rgba(0,0,0,.14);
  background: #fff;
}
#banner img{
  width:100%;
  height:100%;
  object-fit: cover;
}

/* Price label (left, under glass) */
#price-container{
  position:absolute;
  top: 384px;
  left: 67px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 2px solid rgba(11,27,58,.78);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
#price-container .price{
  margin:0;
  font-weight: 900;
  font-size: 18px;
  color: #081633;
}

/* Handle */
#gashapon-handle{
  position:absolute;
  top: 461px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
}

/* handle base plate */
#gashapon-handle::before{
  content:"";
  position:absolute;
  inset:-18px -26px;
  border-radius: 28px;
  /*background: linear-gradient(180deg, rgba(11,27,58,.10), rgba(11,27,58,.06));
  border: 2px solid rgba(11,27,58,.35);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.45); */
}

.handle{
  position:absolute;
  inset: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 4px solid rgba(11,27,58,.85);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.7), transparent 35%),
    linear-gradient(180deg, #ff6a3d, #e74c2a 60%, #c93b22);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.handle:hover{
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(10,166,255,.35), 0 22px 55px rgba(0,0,0,.28);
}

.handle:active{
  transform: scale(0.98);
}

/* Capsule drop slot (placeholder detail) */
#capsule-drop-zone{
  position:absolute;
  top: 587px;
  left: 24%;
  transform: translateX(-50%);
  width: 119px;
  height: 86px;
  border-radius: 20px;
  border: 3px solid rgba(11,27,58,.78);
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
  box-shadow: inset 0 12px 26px rgba(0,0,0,.10);
}

/* slot mouth */
#capsule-drop-zone::before{
  content:"";
  position:absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
}

/* =========================================================
   Reveal scene (capsule -> glow -> figure)
   Requires collection_detail.html markup:
   #overlay (fixed) + #reveal-scene + #capsule + #figure-frame
   ========================================================= */

#overlay{
  position: fixed;
  inset: 0;
  background: radial-gradient(600px 380px at 50% 45%, rgba(255,255,255,.95), rgba(255,255,255,.55));
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 1000;
}

#overlay.is-on{
  opacity: 1;
  pointer-events: auto;
}

#reveal-scene{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 1001;
}
#reveal-scene.is-on{ display: grid; }

.capsule{
  width: 140px;
  height: 140px;
  position: relative;
  transform: translateY(-420px) scale(.6);
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.35));
}

.capsule-half{
  position:absolute;
  inset:0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 35%),
    linear-gradient(180deg, #0b0f1a, #000);
  border: 2px solid rgba(255,255,255,.22);
}
.capsule-half--top{ clip-path: inset(0 0 50% 0); }
.capsule-half--bot{ clip-path: inset(50% 0 0 0); }

.capsule-glow{
  position:absolute; inset:-50px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(10,166,255,.50), transparent 60%);
  opacity: 0;
  transform: scale(.9);
  filter: blur(1px);
}
.capsule-spark{
  position:absolute; inset:-140px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(19,99,255,.26), transparent 60%),
    radial-gradient(circle, rgba(10,166,255,.24), transparent 55%);
  opacity: 0;
  transform: scale(.7);
  filter: blur(2px);
}

/* Drop */
.capsule.is-drop{
  animation: capsuleDrop .55s cubic-bezier(.2,.9,.25,1.05) forwards;
}
@keyframes capsuleDrop{
  to { transform: translateY(0) scale(1); }
}

/* Zoom */
.capsule.is-zoom{
  animation: capsuleZoom .30s ease-out forwards;
}
@keyframes capsuleZoom{
  to { transform: translateY(0) scale(1.18); }
}

/* Open */
.capsule.is-open .capsule-half--top{
  animation: openTop .55s cubic-bezier(.2,.8,.2,1) forwards;
}
.capsule.is-open .capsule-half--bot{
  animation: openBot .55s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes openTop{
  to { transform: translateY(-62px) rotate(-14deg); opacity:.95; }
}
@keyframes openBot{
  to { transform: translateY(62px) rotate(12deg); opacity:.95; }
}

/* Glow burst */
.capsule.is-open .capsule-glow{
  opacity: 1;
  animation: glowPop .60s ease-out forwards;
}
.capsule.is-open .capsule-spark{
  opacity: 1;
  animation: sparkPop .75s ease-out forwards;
}
@keyframes glowPop{
  0%{ transform: scale(.9); opacity:.0; }
  40%{ transform: scale(1.30); opacity:1; }
  100%{ transform: scale(1.55); opacity:.0; }
}
@keyframes sparkPop{
  0%{ transform: scale(.7); opacity:0; }
  35%{ transform: scale(1.08); opacity:1; }
  100%{ transform: scale(1.40); opacity:0; }
}

/* Figure frame (fix "white square" look) */
.figure-frame{
  position: absolute;
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(10,166,255,.28), transparent 55%),
    linear-gradient(180deg, rgba(11,27,58,.58), rgba(11,27,58,.18));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(18px) scale(.92);
  transition: opacity .20s ease, transform .20s ease;
  backdrop-filter: blur(10px);
}
.figure-frame.is-on{
  opacity: 1;
  transform: translateY(0) scale(1);
}
.figure-frame img{
  width: 78%;
  height: 78%;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

/* =========================================================
   Notifications (single style, no duplicates)
   ========================================================= */

#notification-container{
  position: fixed;
  top: 180px;
  right: 18px;
  z-index: 1200;
}

.notification{
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(11,27,58,.18);
  backdrop-filter: blur(10px);
  color: var(--deep);
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.18);
}

/* =========================================================
   Ticker (recent purchases strip)
   ========================================================= */

.spin-ticker{
  width: 100%;
  border: 1px solid rgba(11,27,58,.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  overflow: hidden;
  padding: 12px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.spin-ticker-track{
  display:flex;
  gap: 14px;
  align-items:center;
  width: max-content;
  padding: 0 12px;
  animation: tickerMove 28s linear infinite;
}

@keyframes tickerMove{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item{
  display:flex;
  align-items:center;
  gap:10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 8px 10px;
  min-width: 260px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.ticker-item img{
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
}

.ticker-item .t1{
  font-size: 12px;
  color: rgba(0,0,0,0.6);
}

.ticker-item .t2{
  font-weight: 800;
  line-height: 1.1;
}

.ticker-item .badge-r{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.2);
}
.cookie-bar{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2000;
  display: none;
}
.cookie-inner{
  max-width: 980px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(11,27,58,.14);
  box-shadow: 0 18px 55px rgba(0,0,0,.14);
  backdrop-filter: blur(12px);
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
}
.cookie-text{
  font-size: 13px;
  color: rgba(11,27,58,.72);
  line-height: 1.35;
}
.cookie-text a{
  color: rgba(11,27,58,.92);
  text-decoration: underline;
}

/* Прокрутка для истории выпадений и пополнений */
.history-scroll {
  max-height: 400px;  /* Максимальная высота, можно настроить */
  overflow-y: auto;   /* Включаем вертикальную прокрутку */
  padding-right: 10px;  /* Немного отступа справа для полосы прокрутки */
  margin-top: 10px;
}

.history-item {
  padding: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Разделители между элементами */
}

.history-item:last-child {
  border-bottom: none; /* Убираем разделитель у последнего элемента */
}

.history-scroll::-webkit-scrollbar {
  width: 8px; /* Ширина полосы прокрутки */
}

.history-scroll::-webkit-scrollbar-thumb {
  background: rgba(19, 99, 255, 0.6); /* Цвет полосы прокрутки */
  border-radius: 4px;
}

.history-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(19, 99, 255, 0.8); /* Цвет полосы при наведении */
}


/* ===== Machine layout: panel + machine =====
.machine-layout{
  width: min(1100px, 92vw);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: center;
}

@media (max-width: 900px){
  .machine-layout{
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
*/
/*
.figure-panel{
  align-self: stretch;
  border-radius: 18px;
  border: 1px solid rgba(11,27,58,.12);
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 45px rgba(12,28,58,.08);
  padding: 14px 14px 12px;
  backdrop-filter: blur(10px);
}

.figure-panel-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.figure-panel-title{
  font-weight: 900;
  letter-spacing: .2px;
}

.figure-panel-sub{
  font-size: 12px;
  color: rgba(11,27,58,.62);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,27,58,.12);
  background: rgba(255,255,255,.65);
}

.figure-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.figure-chip{
  border-radius: 14px;
  border: 1px solid rgba(11,27,58,.12);
  background: rgba(255,255,255,.78);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 22px rgba(12,28,58,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}

.figure-chip:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(12,28,58,.10);
}

.figure-chip img{
  width: 100%;
  height: 76px;
  object-fit: cover;
  display:block;
  filter: saturate(1.02);
}

.figure-panel-note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(11,27,58,.55);
}
*/