@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --panel-w: 320px;
  --bottom-h: 48px;

  --night1: #071225;
  --night2: #081a34;
  --night3: #0a2346;

  --ink: rgba(235,245,255,.92);

  --glass: rgba(10, 20, 40, .42);
  --glass-border: rgba(255,255,255,.14);

  --accent1: #1f8f4e;
  --accent2: #38d97c;

  --strip: rgba(8, 26, 52, .95);
  --strip-border: rgba(255,255,255,.10);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
}

body{
  position: relative;
  background:
    radial-gradient(900px 650px at 20% 15%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(800px 600px at 80% 20%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 700px at 55% 90%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, var(--night1) 0%, var(--night2) 55%, var(--night3) 100%);
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.18) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,.14) 0 1px, transparent 2px),
    radial-gradient(circle at 33% 82%, rgba(255,255,255,.12) 0 1px, transparent 2px);
  opacity: .25;
}

/* Canvas */
canvas{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: calc(100vw - var(--panel-w));
  height: calc(100vh - var(--bottom-h));
  display: block;
  background: transparent;
}

/* Top strip */
#top-strip{
  position: fixed;
  left: 0;
  top: 0;
  width: calc(100vw - var(--panel-w));
  height: 14px;
  z-index: 6;
  background: var(--strip);
  border-bottom: 1px solid var(--strip-border);
}

/* Panel */
#panel{
  position: fixed;
  right: 0;
  top: 0;
  width: var(--panel-w);
  height: 100%;
  z-index: 10;

  background: var(--glass);
  border-left: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);

  padding: 22px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Prevent missing text */
.panel-content{
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 18px);
  overflow: auto;
  padding-right: 6px;
}

.panel-content::-webkit-scrollbar{ width: 8px; }
.panel-content::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.12);
  border-radius: 10px;
}
.panel-content::-webkit-scrollbar-track{ background: transparent; }

/* Brand */
.brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 14px;
}

.badge{
  display: inline-block;
  border: 1px solid rgba(255,255,255,.26);
  color: rgba(235,245,255,.88);
  background: rgba(255,255,255,.06);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 600;
}

#panel h2{
  margin: 0;
  font-weight: 800;
  font-size: clamp(18px, 2.1vw, 20px);
  letter-spacing: .3px;
  color: rgba(235,245,255,.95);
}

.tagline{
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(235,245,255,.72);
}

/* Text blocks */
.intro{
  margin: 8px 0 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(235,245,255,.86);
}

.quiet-lines{
  margin: 6px 0 10px;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 700;
  color: rgba(235,245,255,.78);
}

.meaning{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(235,245,255,.70);
}

.manifesto{
  margin: 8px 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(235,245,255,.82);
}

.manifesto.one-line{
  line-height: 1.55;
}

/* Counter */
.counter{
  margin: 6px 0 12px;
  font-size: 13px;
  color: rgba(235,245,255,.72);
}

#counter-value{
  font-size: 22px;
  font-weight: 800;
  margin-right: 6px;
  color: rgba(235,245,255,.95);
}

.counter-label{
  color: rgba(235,245,255,.66);
}

/* Buttons */
button{
  width: 100%;
  padding: 12px 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 14px;
}

#bring-btn{
  background: rgba(255,255,255,.90);
  color: rgba(10,20,35,.92);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  margin-bottom: 10px;
}

button.secondary{
  background: rgba(255,255,255,.06);
  color: rgba(235,245,255,.86);
  border: 1px solid rgba(255,255,255,.16);
}

button:hover{ opacity: .92; }

.hidden{ display:none; }

/* Amount overlay */
.amount-overlay{
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
}

.amount-title{
  font-size: 12px;
  font-weight: 700;
  color: rgba(235,245,255,.78);
  margin-bottom: 10px;
}

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  appearance: none;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
  color: rgba(235,245,255,.92);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .12s ease, transform .08s ease;
}

.chip:hover{ opacity: .92; transform: translateY(-1px); }

.chip.is-active{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
}

.custom-row{ margin-top: 10px; }

.custom-label{
  display: block;
  font-size: 12px;
  color: rgba(235,245,255,.78);
}

.custom-label input{
  width: 100%;
  margin-top: 7px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  color: rgba(235,245,255,.95);
  border: 1px solid rgba(255,255,255,.16);
  outline: none;
}

.custom-label input::placeholder{
  color: rgba(235,245,255,.45);
}

.custom-hint{
  margin-top: 6px;
  font-size: 11px;
  color: rgba(235,245,255,.55);
}

.custom-continue{
  margin-top: 10px;
  background: rgba(255,255,255,.90);
  color: rgba(10,20,35,.92);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.amount-note{
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(235,245,255,.58);
}

/* After activation */
.success{
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(235,245,255,.78);
}

label{
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(235,245,255,.78);
}

.optional{
  color: rgba(235,245,255,.50);
  font-weight: 400;
}

input{
  width: 100%;
  margin-top: 7px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  color: rgba(235,245,255,.95);
  border: 1px solid rgba(255,255,255,.16);
  outline: none;
}

input::placeholder{
  color: rgba(235,245,255,.45);
}

.actions{
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* About */
.about-button{
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.about-btn{
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  background: rgba(255,255,255,.06);
  color: rgba(235,245,255,.90);
  border: 1px solid rgba(255,255,255,.16);

  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  transition: opacity .15s ease, transform .1s ease;
}

.about-btn:hover{
  opacity: .9;
  transform: translateY(-1px);
}

/* Hover info */
#hover-info{
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(235,245,255,.78);
}

.hover-placeholder{
  color: rgba(235,245,255,.55);
}

/* Socials */
.socials{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.14);

  display: flex;
  gap: 10px;
}

.social-btn{
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 10px;
  border-radius: 14px;
  text-decoration: none;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(235,245,255,.90);

  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  transition: opacity .15s ease, transform .1s ease;
}

.social-btn:hover{
  opacity: .9;
  transform: translateY(-1px);
}

.social-btn svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: .92;
}

.social-btn span{
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2px;
}

/* Mute */
.mute-btn{
  margin-top: 10px;
  background: rgba(255,255,255,.06);
  color: rgba(235,245,255,.86);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 700;
  padding: 10px 12px;
}

/* Bottom progress */
#bottom-progress{
  position: fixed;
  left: 0;
  bottom: 0;
  width: calc(100vw - var(--panel-w));
  height: var(--bottom-h);
  z-index: 6;
  pointer-events: none;

  /* ВОТ ЭТО КЛЮЧ: нижние 14px — это отдельная полоска, туда не центрируем */
  padding: 0 38px 33px;       /* ~1см слева/справа + 14px снизу */
  display: flex;
  align-items: center;        /* вертикальный центр */
  justify-content: center;    /* горизонтальный центр */
}

#progress-track{
  /* теперь НЕ absolute — иначе снова будут пляски */
  position: relative;
  width: 100%;                /* отступы уже заданы padding-ом контейнера */
  height: 22px;

  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

#progress-fill{
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  border-radius: 999px;
  transition: width .6s ease;
}

#progress-text{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  font-size: 12px;
  font-weight: 800;
  color: rgba(235,245,255,.82);
  pointer-events:none;
  z-index: 2;
}

#highlight-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
}

#highlight-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}
/* ===== Info Modal (popup) ===== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}

.modal-card{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(320px, calc(100vw - 40px));
  padding: 16px;
  border-radius: 16px;

  background: rgba(10, 20, 40, .75);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.modal-title{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 10px;
  color: rgba(235,245,255,.92);
  text-align: center;
}

.modal-link{
  display: block;
  text-decoration: none;
  text-align: center;

  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 14px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(235,245,255,.92);

  font-size: 13px;
  font-weight: 700;
}

.modal-link:hover{
  opacity: .92;
  transform: translateY(-1px);
}

.modal-close{
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(255,255,255,.90);
  color: rgba(10,20,35,.92);
  font-weight: 800;
}
