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

:root {
  --section-padding-x: 24px;
  --section-padding-top: 32px;
  --section-padding-bottom: 40px;

  --title-margin-top: 0;
  --title-margin-bottom: 24px;

  --section-content-gap: 20px;

  --primary-color: #5e5c93;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

main {
  width: 100%;
}

.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.site-header-inner {
  color: #5e5c93;
  padding: 16px 24px;
  height: 58.25px;
  width: calc(90vw + 4px);
  max-width: 600px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 0;
  background: rgba(255,255,255,0.30);
  transition: background 0.3s, box-shadow 0.2s;
}

.top-padding { height: 86px; }

.home-button {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: #fafafa;
  border: 1px  solid #f3f2ff;
  border-radius: 12px;
  padding: 5px 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.home-button:hover { background-color: #f3f2ff; transform: scale(1.03); }

.centered-container {
  width: 90vw;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--section-padding-top) var(--section-padding-x) var(--section-padding-bottom);
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 0px solid var(--primary-color);
}

.section-title {
  margin-top: var(--title-margin-top);
  margin-bottom: var(--title-margin-bottom);
  font-size: 22px;
  font-weight: 600;
  color: #5e5c93;
  text-align: left;
  width: 100%;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: var(--section-content-gap);
}

@media (max-width: 600px) {
  .donation-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}

#send-message-button,
#cancel-message-button {
  width: 80px; 
  padding: 0 16px;
}

.donate-button,
.next-button {
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.donate-button, .next-button {
  background-color: #5e5c93;
  color: #fafafa; 
}

#cancel-message-button { background-color: #fafafa; color: #1a1a1a; }
#cancel-message-button:hover { background-color: #bbb; transform: scale(1.02); }
#cancel-message-button:active { transform: scale(0.96); }

#message-input-container {
  display: flex; flex-direction: column; align-items: stretch; width: 100%;
}

.textarea-wrapper { 
  position: relative; 
  width: 100%;
  height: 110px;
  overflow: visible;
}

#message-text {
  width: 100%;
  padding: 12px;
  padding-bottom: 32px;
  font-size: 16px;
  font-family: inherit;
  border: 3px  solid #f3f2ff;
  border-radius: 16px;
  background-color: #fafafa;
  color: #1a1a1a;
  resize: none;
  transition: border-color 0.2s ease;
}

#message-text:focus {
   outline: none; 
   border-color: #5e5c93; 
}

#char-count {
  position: absolute;
  bottom: 10px; right: 8px;
  font-size: 14px; color: #666;
  pointer-events: none;
  line-height: 1;
}

.message-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#name-input, #city-input {
  flex: 1 1 0; min-width: 100px;
  padding: 12px; font-size: 16px;
  border: 3px  solid #f3f2ff; border-radius: 16px;
  background-color: #fafafa; color: #1a1a1a;
  transition: border-color 0.2s ease;
  font-family: inherit;
}
#name-input:focus, #city-input:focus { outline: none; border-color: #5e5c93; }

#name-input::placeholder, #city-input::placeholder, #message-text::placeholder, #email-input::placeholder {
   font-size: 14px;
   font-weight: 600;
    color: #888; 
}

.top-controls { display: flex; flex-direction: column; }

#stats-container { order: 1; }
#contribute-container { order: 2; }

@media (min-width: 900px) {
  .stats-container { max-width: 720px; }
}

.progress-bar-container {
  position: relative;
  width: 100%;
  height: 24px;        
  background-color: #f3f2ff;
  border-radius: 18px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7f87b5, #b39df0, #ffb8d2);
  transition: width 0.4s ease;
}

.progress-caption,
#progress-label {
  margin-top: 0px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  position: static; 
  transform: none; left: auto; top: auto;
}

.stats-labels {
  display: flex; 
  flex-direction: column;
  font-size: 14px; 
  color: #1a1a1a;
  font-weight: 600;
  gap: 12px;
  align-items: center; 
  text-align: center;  
}

.stat-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0effd;
  color: #5e5c93;
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
}

.wall-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1600px;
  margin: 40px auto 0;
}

.wall-section .meta {
  font-size: 12px;
  font-weight: 600;
  color: #888;
}

.messages-header {
  width: 90vw;
  max-width: 600px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dev-tools {
  max-width: 600px; margin: 40px auto; padding: 0 24px;
  display: flex; justify-content: flex-end;
}

.mb-0  { margin-bottom: 0px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-30 { margin-bottom: 30px; }
.mb-32 { margin-bottom: 32px; }

:root{
  --fade-dur: .45s;                     
  --fade-ease: cubic-bezier(.2,.7,.2,1);
  --fade-blur: 8px;                   
  --pop-in-start: .55;              
  --pop-in-overshoot: 1.05;           
}

@keyframes msgPop{
  0%   { opacity: 0; transform: scale(var(--pop-in-start)); filter: blur(var(--fade-blur)); }
  70%  { opacity: 1; transform: scale(var(--pop-in-overshoot)); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.message-fade-in{
  animation: msgPop var(--fade-dur) var(--fade-ease) both;
}

@media (prefers-reduced-motion: reduce){
  .message-fade-in{ animation: none !important; }
}

.custom-select {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 2;
  pointer-events: auto;
  height: 36px;
  width: 120px;
  padding: 6px 32px 6px 12px;
  font-size: 14px; 
  font-weight: 600;
  color: var(--primary-color);
  background-color: #ffffff;
  border: 1px  solid #f3f2ff;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%235e5c93' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  background-size: 12px 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.custom-select:hover { background-color: #f3f2ff; }
.custom-select:focus { outline: none; box-shadow: 0 0 0 2px rgba(94, 92, 147, 0.25); }
.custom-select option { font-family: 'Inter', sans-serif; font-size: 14px; color: #333; }

.modal-backdrop {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(243, 242, 255, 0.6);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s;
  opacity: 1;
  pointer-events: all;
  display: flex; align-items: center; justify-content: center;
}

.modal-backdrop.hidden { opacity: 0; pointer-events: none; }

.modal-message {
  width: 95vw; max-width: 410px;
  height: 330px; max-height: 82vh;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  padding: 24px 24px 20px 24px;
  border-radius: 18px;
  background: #fafafa;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 4px rgba(80,70,120,0.10);
  position: relative; overflow: visible;
  animation: modalPopIn 0.32s cubic-bezier(.22,1.21,.36,1) both;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-message .modal-close {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 22px; color: #bdbadf;
  background: none; border: none; cursor: pointer;
  transition: color 0.2s, transform 0.12s;
  font-weight: 600; padding: 2px 8px; line-height: 1; z-index: 10;
}

.modal-message .modal-close:hover { color: #5e5c93; transform: scale(1.16); }
#modal-message-content {
  flex: 1 1 auto; overflow-y: auto;
  font-size: 18px; font-weight: 500; color: #1a1a1a;
  margin-bottom: 32px; word-break: break-word;
  font-family: 'Inter', sans-serif;
  text-align: left; padding-right: 0;
}

#modal-message-meta {
  font-size: 12px; font-weight: 600; color: #888;
  word-break: break-word;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 600px) {
  .modal-message {
    max-width: 80vw; width: 80vw; min-width: 0;
    height: auto; min-height: 170px;
    padding: 8vw 4vw 7vw 4vw; box-sizing: border-box;
  }
}

@media (max-width: 400px) {
  .modal-message {
    max-width: 90vw; width: 90vw;
    padding: 8vw 2vw 6vw 2vw;
  }
}

#toast-root {
  position: fixed;
  z-index: 3000;
  right: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 220px; max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1a1a1a; color: #fafafa;
  font-size: 14px; line-height: 1.5;
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(8px);
  animation: toast-in .18s ease-out forwards;
}

.toast__icon { font-size: 16px; }

.toast__msg  { margin-right: 6px; }

.toast__close {
  background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 16px; opacity: .8;
}

.toast__close:hover { opacity: 1; }

.toast--success { background: #6eec85; }
.toast--error   { background: #8a1c1c; }
.toast--warn    { background: #7a5a00; }
.toast--info    { background: #2b3a67; }

@keyframes toast-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

.hero-band {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 8px;
  text-align: center;
}

.hero-title {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.hero-title .highlight { color: #5e5c93; }
.hero-subtitle {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #1a1a1a;
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
}

.progress-tooltip {
  position: fixed;
  z-index: 2500;
  pointer-events: none;
  padding: 6px 8px;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fafafa;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  white-space: nowrap;
  opacity: 0;     
  transition: none;        
}

.messages-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 8px;
}

.messages-nav-btn:active {
  transform: scale(0.97);
}

.messages-nav-btn {
  margin-bottom: 16px;
  margin-top: 16px;
  min-width: 120px;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px  solid #f3f2ff;
  background-color: #fafafa;
  color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease;
}

.messages-nav-btn:disabled {
  background-color: #fafafa;
  color: #aaa;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.messages-nav-btn:not(:disabled):hover {
  background-color: #f3f2ff;
  transform: scale(1.03);
}

.pagination-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  min-width: 62px;         
  height: 40px; 
  border-radius: 12px;   
  font-size: 14px;     
  font-weight: 600;
  background: #fafafa;
  color: #1a1a1a;
  border: 1px  solid #f3f2ff;
  margin: 0 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform 0.11s;
  outline: none;
}

.pagination-btn:disabled {
  background: #fafafa;
  color: #aaa;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination-btn:not(:disabled):hover,
.pagination-btn:not(:disabled):focus {
  background: #f3f2ff;
  color: #1a1a1a;
  transform: scale(1.04);
}

.pagination-btn:active:not(:disabled) {
  background: #4d496e;
  color: #fff;
  transform: scale(0.97);
}

.pagination-btn-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.range-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin-top: 8px;
}

.messages-title-row {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0; 
  min-height: 48px; 
  margin-bottom: 28px;
}

.messages-title {
  flex: 0 1 auto;
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 46px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 600px) {
  .messages-title-row {
    flex-direction: column;
    align-items: center;
    position: static;
    min-height: unset;
  }
  .messages-title {
    position: static;
    width: 100%;
    pointer-events: auto;
    margin-bottom: 12px;
    font-size: 36px; 
  }
  .messages-title-row .custom-select {
    position: static;
    width: 100%;
    width: 118px;
    margin: 0 auto 0;
    transform: none;
    z-index: 1;
  }
}

@media (max-width: 768px) {
  .wall-section > div {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

.wall-section > div[data-premium="true"] .meta {
  color: #fafafa;
}

#contribute-container.centered-container {
  max-width: 420px;
  min-height: 394px;
  padding-top: 24px;
  padding-bottom: 24px;
  border: 0px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #fafafa;
  position: relative;
  /* даём блоку расти вместе с аккордеоном */
  overflow: visible;
}

.contribute-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding-bottom: 0px; 
}

.stats-container .section-title.centered {
  font-size: 28px;
}

#stats-container {
  --section-padding-top: 24px;
  --section-padding-bottom: 24px;
  --section-content-gap: 16px;
  padding-top: var(--section-padding-top);
  padding-bottom: var(--section-padding-bottom);
}

.contribute-container .section-title.centered {
  text-align: center;
  margin-bottom: 0px;
  font-size: 28px;
}

.section-title.centered {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #5e5c93;
  margin-top: 0;
  margin-bottom: 24px;
}

.contribute-container .sub-title {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 24px;
}

.contribute-inner .row-1 {
  display: flex;
  gap: 8px;
}

.row-1 .donate-button {
  flex: 1;
}

.contribute-inner .row-2 {
  display: flex;
  gap: 8px;
}

.row-2 .donate-button {
  width: calc((100% - 8px) / 3);
}

#custom-amount {
  width: calc(((100% - 8px) / 3) * 2);
  height: 56px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border: 3px  solid #f3f2ff;
  border-radius: 16px;
  background-color: #fafafa;
  color: #1a1a1a;
  box-sizing: border-box;
}

.contribute-container .donate-button {
  height: 56px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  border: 1px  solid #f3f2ff;
  background-color: #fafafa;
  color: #1a1a1a;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#next-btn.next-button {
  bottom: 12px; 
  width: 30%;
  left: 0;
  right: 0;
  margin: 0 auto;
  margin-top: 12px;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  border: 1px  solid #f3f2ff;
  background-color: #fafafa;
  color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease;
}

#next-btn:hover {
  background-color: #f3f2ff;
  transform: scale(1.03);
}

#next-btn:active {
  transform: scale(0.97);
}

#send-message-button {
  height: 56px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px  solid #f3f2ff;
  background-color: #fafafa;
  color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease;
}

#send-message-button:hover:not(:disabled) {
  background-color: #f3f2ff;
  transform: scale(1.03);
}

#send-message-button:active:not(:disabled) {
  transform: scale(0.97);
}

#cancel-message-button {
  height: 56px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px  solid #f3f2ff;
  background-color: #fafafa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  color: #1a1a1a;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease;
}

#cancel-message-button:hover {
  background-color: #bbb;
  transform: scale(1.03);
}

#cancel-message-button:active {
  transform: scale(0.97);
}

.donate-button:disabled,
.next-button:disabled,
#send-message-button:disabled,
#next-btn:disabled {
  background-color: #fafafa;
  color: #aaa;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

#name-input,
#city-input {
  height: 56px;
}

.donate-button,
.next-button,
#send-message-button,
#cancel-message-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

#stats-container,
#contribute-container.centered-container {
  margin-bottom: 24px;
}

.modal-donor-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #5e5c93;
  margin-bottom: 18px;
  align-self: center;
}

#modal-message[data-premium="true"] .modal-donor-title {
  color: #fafafa;
}

.message-content {
  color: #222;
}

.wall-section .message-content,
.wall-section .message__text {
  display: block; 
}

[data-premium] .message-content,
#modal-message[data-premium="true"] {
  color: #fafafa;
}

.donor-title {
  color: #1a1a1a;
}

[data-premium] .donor-title {
  color: #fafafa;
}

#modal-message {
  color: #222;
}

.no-messages-placeholder {
  margin-top: 12px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
}

.no-messages-placeholder .bold-part {
  color: #1a1a1a;
}

.no-messages-placeholder .soft-part {
  color: #5e5c93;
}

.no-messages-placeholder.hidden {
  display: none;
}

.message-tagline {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: #1a1a1a;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.donate-button:hover,
.donate-button.active-donate-button {
  background-color: #f3f2ff;
  border: 1px solid #5e5c93;
  color: #1a1a1a;
  transform: scale(1.03);
}

.go-to-message-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#go-to-input {
  width: 180px;
  height: 36px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px  solid #f3f2ff;
  border-radius: 12px;
  text-align: center;
}

#go-to-btn {
  width: 80px;
  height: 36px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px  solid #f3f2ff;
  background-color: #ffffff;
  color: var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

#go-to-btn:hover {
  background-color: #f3f2ff;
  transform: scale(1.03);
}

#email-input {
  height: 56px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 3px  solid #f3f2ff;
  border-radius: 16px;
  background-color: #fafafa;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
}

#email-input:focus {
  outline: none;
  border-color: #5e5c93;
}


.wall-section > div.highlighted {
  background-color: #f3f2ff;
  box-shadow: 0 0 0 4px #5e5c93;
  transform: scale(1.5);
}

.info-modal {
  position: fixed;
  z-index: 1001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  width: 80%;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);

  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px  solid rgba(200, 200, 255, 0.1);

  overflow: visible;
}

.modal-overlay {
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(243, 242, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s;
  opacity: 1;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 22px;
  color: #bdbadf;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, transform 0.12s;
  font-weight: 600;
  padding: 2px 8px;
  line-height: 1;
  z-index: 10;
}

.info-modal-close:hover {
  color: #5e5c93;
  transform: scale(1.16);
}

.info-modal h2 {
  text-align: center;
  color: #5e5c93;
  margin-bottom: 20px;
}

body.modal-open {
  overflow: hidden;
}

.info-modal-content {
  font-family: inherit;
  text-align: center;
  color: #1a1a1a;
  font-size: 18px;
  line-height: 1.5;
  max-height: 80vh;
  max-width: 80vh;
  overflow-y: auto;
  padding-right: 24px;
  padding-left: 24px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.info-modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.info-modal h3 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.info-modal ul {
  padding-left: 20px;
  margin-top: 10px;
}

.info-modal ul li {
  margin-bottom: 8px;
}

.info-modal ol {
  padding-left: 20px;
  margin-top: 10px;
}

.info-modal ol li {
  margin-bottom: 10px;
}

.hidden {
  display: none;
}

.contribute-links-row {
  display: flex;
  justify-content: center;
  gap: 18px; 
  margin-top: 12px;
}

.contribute-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.contribute-link:hover {
  color: #7a78b3;
}

.donate-button,
.next-button,
#send-message-button,
#cancel-message-button,
.pagination-btn,
.messages-nav-btn,
#go-to-btn,
.home-button {
  transition: background 0.18s, color 0.16s, transform 0.11s;
  will-change: transform;
}

.donate-button:not(:disabled):hover,
.next-button:not(:disabled):hover,
#send-message-button:not(:disabled):hover,
#cancel-message-button:not(:disabled):hover,
.pagination-btn:not(:disabled):hover,
.messages-nav-btn:not(:disabled):hover,
#go-to-btn:hover,
.home-button:hover {
  transform: scale(1.04);
  background-color: #f3f2ff; 
  color: var(--primary-color);
}

.donate-button:not(:disabled):active,
.next-button:not(:disabled):active,
#send-message-button:not(:disabled):active,
#cancel-message-button:not(:disabled):active,
.pagination-btn:not(:disabled):active,
.messages-nav-btn:not(:disabled):active,
#go-to-btn:active,
.home-button:active {
  background-color: var(--primary-color); 
  color: #fff;     
  transform: scale(0.97);     
}

.donate-button:disabled,
.next-button:disabled,
#send-message-button:disabled,
#cancel-message-button:disabled,
.pagination-btn:disabled,
.messages-nav-btn:disabled {
  transform: none;
}

#next-btn.next-button:active {
  background-color: var(--primary-color) !important;
  color: #fff !important;
  transform: scale(0.97);
}

.premium-animated {
  display: inline-block;
  background-size: 500% 100%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: premiumGradientShift 5s linear infinite;
  will-change: background-position;
}

@keyframes premiumGradientShift {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

.search-message-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#search-input {
  width: 268px; 
  height: 36px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px  solid #f3f2ff;
  border-radius: 12px;
  text-align: center;
}

#modal-message:not([data-premium="true"]) #modal-message-content span {
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.5;
  margin-top: 43px;
}

.wall-section > div[data-premium="true"] .message__meta {
  font-size: 12px !important;
  font-weight: 600 !important;
}

.wall-section > div[data-premium="true"] .message__title {
  font-size: 16px !important;
  font-weight: 600 !important;
}

.modal-actions-inline {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 6px 0 8px 0;  
  padding: 0;   
}

.copy-link-btn {
  min-width: auto;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  padding: 6px 12px;
  margin: 0;   
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.map-wrap {
  margin: 24px 0;
}

.modal-actions {
  justify-content: center;
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-self: flex-start;
  margin: 4px 0 0 0;
}

.modal-action-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px  solid #1a1a1a;
  background-color: #fafafa;
  color: #1a1a1a;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease;
}

.modal-action-btn:hover { background-color: #f3f2ff; transform: scale(1.03); }
.modal-action-btn:active { transform: scale(0.97); }

#modal-message-meta { margin-top: 0; }

#modal-message[data-premium="true"] .modal-action-btn {
  background-color: #1a1a1a;
  color: #fafafa;
  border-color: #fafafa;
}

#modal-message[data-premium="true"] .modal-action-btn:hover {
  background-color: #c5c5c5;
}

.stats-more {
  margin-top: 16px;
}

.more-btn {
  display: flex;      
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px  solid #f3f2ff;
  background-color: #fafafa;
  color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform 0.11s;
  margin: 4px auto;    
  margin-bottom: 0px;   
}

.more-btn:hover { background: #f3f2ff; transform: scale(1.03); }
.more-btn:active { background: var(--primary-color); color: #fff; transform: scale(0.97); }

.map-canvas {
  height: 420px;
  width: 100%;
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  background: #eaeaea;
  margin-top: 13px;
}

@media (max-width: 480px) {
  .map-canvas { height: 340px; }
}

.wall-section.masonry {
  display: block;        
  position: relative;
  max-width: 1600px;
  margin: 40px auto 0;
}

.wall-section.masonry > div {
  position: absolute;
  width: var(--col-width, 300px);
  max-width: none;             
  min-width: 0;       
  margin: 0; 
}

.wall-section.masonry > div:hover { transform: scale(1.03); }

.wall-section .message {
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}

.message--focus{
  z-index: 1000 !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.28), 0 2px 8px rgba(0,0,0,.12);
}

.message--beat{
  animation: heartbeat .9s ease-in-out 2;
  will-change: transform;
}

.message{ --beat1: 1.1; --beat2: 1.08; }

@keyframes heartbeat{
  0%   { transform: scale(1); }
  15%  { transform: scale(var(--beat1)); }
  30%  { transform: scale(1); }
  55%  { transform: scale(var(--beat2)); } 
  70%  { transform: scale(1); }
  100% { transform: scale(1); }
}

@media (max-width: 640px){
  .message{ --beat1: 1.02; --beat2: 1.015; }
}

#roadmap-block{
  position:relative; width:60%; margin:0 auto 0; overflow:visible; padding:0;
}

@media (max-width:768px){
  #roadmap-block{ width:92%; padding:0 10px 4px; margin:0 auto; }
}

#roadmap-steps{
  display:flex; align-items:center; justify-content:center; gap:8px;
  flex-wrap:nowrap; list-style:none; margin:16px 0 0; padding:0; position:relative; z-index:1;
}

.rd-gap{ flex:1 1 0; min-width:24px; height:1px; pointer-events:none; }
.rd-gap--long{ flex-grow:2; }
.rd-gap--mid { flex-grow:1; } 
.rd-step{
  display:flex;
  flex-direction:column;    
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}

.rd-label{ font-size:14px; font-weight:600; color:#1a1a1a; cursor:default; }
.rd-step.done .rd-label, .rd-step.active .rd-label{ color:#0f172a; }
.rd-dot{
  width:10px; height:10px; border-radius:50%; position:relative;
  background:#f0effd; border:1px solid rgba(0,0,0,.15);
}

.rd-step.done .rd-dot{ background:var(--primary-color); }
.rd-step.active .rd-dot{ background:var(--primary-color); }
.rd-step.active .rd-dot::after{
  content:""; position:absolute; inset:-4px; border-radius:inherit;
  border:2px solid var(--primary-color); opacity:.6; animation:rdPulseRing 1.5s ease-out infinite;
}

@keyframes rdPulseRing{ 0%{transform:scale(1);opacity:.65;} 100%{transform:scale(1.45);opacity:0;} }
#roadmap-rail{ position:absolute; inset:0; pointer-events:none; overflow:visible; z-index:0; }
.rd-line{ stroke:#f0effd; stroke-width:2; }
.rd-progress{ stroke:var(--primary-color); stroke-width:3; stroke-linecap:round; }
#rd-tooltip{
  position:fixed; z-index:9999; pointer-events:none; max-width:min(480px,90vw);
  background:#111; color:#fff; padding:8px 10px; border-radius:8px; font-size:12px; line-height:1.5;
  opacity:0; transition:opacity .12s;
}

.wall-section > div[data-premium="true"] .message__text,
#modal-message[data-premium="true"] .message__text {
  font-size: 22px !important;
  font-weight: 700 !important;
}

.wall-section > div.message.message--tier1 .message__text { 
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.wall-section > div.message.message--tier2 .message__text { 
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
.wall-section > div.message.message--tier3 .message__text { 
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.wall-section .message { --msg-gap: 18px; }

.wall-section .message__title { margin-bottom: var(--msg-gap); }

.wall-section .message__text  { margin: var(--msg-gap) 0; }

.wall-section .message__meta  { margin-top: var(--msg-gap); }

.wall-section .message:not([data-premium="true"]) { --msg-gap: 18px; }

.wall-section .message:not([data-premium="true"]) .message__title {
  margin-top: 12px; 
}

.wall-section .message[data-premium="true"] .message__title {
  margin-top: 12px;
}

.wall-section .message:not([data-premium="true"]) .message__text {
  margin-top: 8px; 
}

.wall-section > div:not([data-premium="true"]) .message__meta,
.wall-section > div:not([data-premium="true"]) .meta {
  font-size: 12px !important;  
  font-weight: 600 !important;
}

.modal-message.modal--no-title {
  padding-top: 67px;
}

.modal-nav {
  position: fixed;
  z-index: 2500;      
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #f3f2ff;
  background: #ffffff;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 700;
  display: none;           
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.18s, color 0.16s, transform 0.11s;
}

.modal-nav:hover   { background: #f3f2ff; transform: translateY(-50%) scale(1.04); }
.modal-nav:active  { background: var(--primary-color); color: #fff; transform: translateY(-50%) scale(0.97); }

.modal-nav--left  { left: 480px; }
.modal-nav--right { right: 480px; }

@media (max-width: 480px) {
  .modal-nav {
    width: 38px; height: 38px; font-size: 18px;
  }
}

.next-btn.pulsing {
  animation: ctaPulse 1s ease-out infinite;
}

@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(94,92,147, 0.8); }
  70%  { box-shadow: 0 0 0 10px rgba(94,92,147, 0.0); }
  100% { box-shadow: 0 0 0 0 rgba(94,92,147, 0.0); }
}

.message-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "name   city"
    "cancel ok";
  gap: 12px;
}
#name-input            { grid-area: name; }
#city-input            { grid-area: city; }
#cancel-message-button { grid-area: cancel; width: 100%; }
#send-message-button   { grid-area: ok;     width: 100%; }

body {
  background-color: #f4f4f4fa; 
  font-family: 'Inter', sans-serif;

}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 1800%;
  background-image: radial-gradient(#1a1a1a 1.2px, transparent 1px); 
  background-size: 148px 148px; 
  opacity: 1;      
  z-index: -1;
  pointer-events: none;
  transform: translateY(var(--bg-shift, 0));
}

.top-controls-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 90vw;
  max-width: 1240px;
  margin: 0 auto 24px;
}

@media (min-width: 960px) {
  .top-controls-row {
    flex-direction: row;
    align-items: stretch; 
  }
  .top-controls-row .centered-container {
    flex: 1 1 0;
    max-width: none;
    margin: 0;
  }
  #stats-container,
  #contribute-container.centered-container {
    margin-bottom: 0;
  }
}

#stats-container.centered-container,
#contribute-container.centered-container {
  height: auto;
  align-self: flex-start;  
  place-self: start stretch;
}

@media (min-width: 768px) {
  .top-controls {
    align-items: flex-start; 
  }
}

.collapsible {
  overflow: hidden;  
  contain: layout;
  will-change: height;
  backface-visibility: hidden;
  margin-top: 0px;
}

@supports (overflow: clip) {
  .collapsible { overflow: clip; }
}

.collapsible > * {
  opacity: 0;
  transform: translateY(4px);
}

.collapsible.is-open {
  overflow: visible;
  margin-top: 6px;
}
.collapsible.is-open > * {
  opacity: 1;
  transform: none;
  transition: opacity 160ms ease 40ms, transform 160ms ease 40ms;
}

#stats-container.centered-container,
#contribute-container.centered-container {
  min-height: 394px; 
}

[data-tilt]{
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .18s ease, box-shadow .18s ease;
  backface-visibility: hidden;
  perspective: 800px; 
}

@media (hover: hover) and (pointer: fine){
  [data-tilt]:hover{
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  }
}

@media (prefers-reduced-motion: reduce){
  [data-tilt]{
    transition: none !important;
    transform: none !important;
  }
}

.wall-section > .message {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.message__box {
  border-radius: 18px;
  padding: 8px 14px 14px;
  background: #fafafa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .18s ease, box-shadow .18s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.wall-section > div:hover .message__box {
  box-shadow: 0 6px 16px rgba(94, 92, 147, 0.10);
  z-index: 2;
}

.message__box[data-premium="true"] {
  background: #0a0a0a;
}

.modal-tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .18s ease, box-shadow .18s ease;
}

.modal-message .modal-close:focus { outline: none !important; box-shadow: none !important; }

.message__box {
  box-shadow: 0 6px 14px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
}

.centered-container {
  box-shadow: 0 12px 22px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.contact-email {
  display: inline-block;
  font-size: 20px;
  font-weight: 400;
  color: #1a1a1a; 
  text-decoration: none;
  margin-top: 0;
  margin-bottom: 24px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-email:hover {
  color: var(--primary-color);
  text-decoration: underline;
  transform: scale(1.03);
}

.contact-email:active {
  transform: scale(1);
}

/* Footer spacing/separator tweak */
.site-footer .footer-sep { opacity:.5; margin: 0 4px; }

/* Privacy modal content tone */
#modal-privacy .info-modal-content ul { margin: 0.75rem 0 1rem 1.25rem; }
#modal-privacy .info-modal-content li { margin: .25rem 0; }
#modal-privacy .muted { opacity:.85; }

/* Button style to match your UI */
.btn-secondary{
  background:#262a34; color:#fff; border:1px solid rgba(255,255,255,.16);
  padding:8px 12px; border-radius:8px; cursor:pointer;
}
.privacy-actions{ margin-top:12px; }

.site-footer {
  display: flex;
  justify-content: center; 
  gap: 16px;
  margin-top: 60px;
  padding: 20px 0;
  border-top: 2px solid rgba(0,0,0,.08);
  text-align: center;
  font-size: 16px;
  color: #1a1a1a;
  background: #fafafa;  
  text-decoration: underline;
}

.info-modal-close:focus {
  outline: none;
}