:root {
  --bg-color: #0d0f17;
  --card-bg: #161926;
  --accent-cyan: #00f2fe;
  --accent-purple: #9b51e0;
  --accent-pink: #ff007f;
  --accent-gold: #ffd700;
  --text-main: #ffffff;
  --text-muted: #a0aec0;
  --border-glow: rgba(0, 242, 254, 0.2);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { max-width: 1000px; margin: 0 auto; padding: 20px; flex: 1; width: 100%; }

/* Язык */
.lang-switch {
  text-align: right;
  padding: 10px 0;
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.lang-switch a { color: var(--text-muted); text-decoration: none; margin: 0 4px; }
.lang-switch a.active, .lang-switch a:hover { color: var(--accent-cyan); }

/* HERO */
.hero {
  text-align: center;
  padding: 40px 20px 30px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, rgba(155,81,224,0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > *:not(.hero-glow) { position: relative; z-index: 1; }

.avatar-wrapper { display: inline-block; margin-bottom: 16px; }
.avatar-img {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6), 0 0 60px rgba(155, 81, 224, 0.3);
  object-fit: cover;
  background: var(--card-bg);
}

.hero-title {
  font-size: 2.4rem;
  color: var(--accent-cyan);
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}
.hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.hero-bio {
  color: #cbd5e0;
  font-size: 0.95rem;
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.6;
}

/* Статистика */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  padding: 12px 22px;
  border-radius: 14px;
  min-width: 110px;
  transition: transform 0.2s, border-color 0.2s;
}
.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}
.stat-num {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Кнопка TikTok */
.tiktok-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 26px;
  background: linear-gradient(90deg, #25f4ee 0%, #fe2c55 100%);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(254, 44, 85, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tiktok-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(254, 44, 85, 0.55);
}
.tiktok-btn svg { display: block; }

/* Заголовки секций */
.section-title {
  font-size: 1.5rem;
  margin: 40px 0 8px;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-glow);
  padding-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.empty-box {
  text-align: center;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  border: 1px dashed var(--border-glow);
  color: var(--text-muted);
}

/* Сетка карточек */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 20px;
  justify-content: center;
}

.item-card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.item-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.15);
}
.item-card.completed {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.item-img { width: 100%; height: 190px; object-fit: cover; background: #000; }
.item-body { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.item-title { font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.item-desc { color: var(--text-muted); font-size: 0.85rem; }

.item-actions { margin-top: 15px; }

.progress-bar { background: #2a2e3d; height: 10px; border-radius: 5px; overflow: hidden; margin: 12px 0 6px; }
.progress-fill { background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); height: 100%; transition: width 0.4s; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.progress-meta .goal { color: var(--accent-cyan); font-weight: bold; }

.sponsors-box {
  margin-top: 10px;
  padding: 8px 10px;
  background: #0d0f17;
  border-radius: 8px;
  border: 1px solid #2a2e3d;
}
.sponsors-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}
.sponsors-list { display: flex; flex-wrap: wrap; gap: 4px; }
.sponsor-pill {
  background: #161926;
  border: 1px solid var(--border-glow);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: #fff;
}

.completed-badge {
  display: inline-block;
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 0.9rem;
}

/* Кнопки */
.btn {
  display: block;
  width: 100%;
  padding: 11px;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  transition: filter 0.2s, transform 0.15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(0.98); }
.btn-paypal { background: #0070ba; color: #fff; }
.btn-card { background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink)); color: #fff; }
.btn-video { background: linear-gradient(90deg, #ffd700, #ff8c00); color: #000; }

/* Идеи */
.form-box {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.form-title { font-size: 1.1rem; margin-bottom: 10px; color: #fff; }
.success-msg { color: var(--accent-cyan); margin-bottom: 10px; font-weight: bold; }

input[type="text"], textarea {
  width: 100%;
  padding: 12px;
  background: #0d0f17;
  border: 1px solid #2a2e3d;
  color: #fff;
  border-radius: 8px;
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.ideas-list { display: flex; flex-direction: column; gap: 12px; }
.idea-card {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  padding: 15px 18px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.idea-author { color: var(--accent-cyan); }
.idea-text { color: #fff; margin-top: 3px; font-size: 0.95rem; }

.vote-btn {
  background: #0d0f17;
  border: 1px solid var(--accent-pink);
  color: var(--accent-pink);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.vote-btn:hover { background: var(--accent-pink); color: #fff; }

/* Подвал */
footer {
  margin-top: 60px;
  padding: 30px 20px;
  background: #05070c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-badge {
  display: inline-block;
  background: var(--accent-purple);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: bold;
}
.disclaimer-text { max-width: 700px; margin: 0 auto; opacity: 0.75; line-height: 1.5; }

/* Бейдж «ожидаем доставку» */
.ordered-badge {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-cyan);
  font-weight: bold;
  font-size: 0.9rem;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

@media (max-width: 520px) {
  .hero-title { font-size: 1.8rem; }
  .avatar-img { width: 100px; height: 100px; }
  .stat-box { padding: 10px 16px; min-width: 90px; }
  .stat-num { font-size: 1.2rem; }
}


/* ===== Навигация по статическим страницам ===== */
.page-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 30px;
  flex-wrap: wrap;
}
.page-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.page-nav a:hover {
  color: var(--accent-cyan);
  border-color: var(--border-glow);
}
.page-nav a.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
}

/* ===== Статические страницы ===== */
.static-page {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h3,
.about-content h3 {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin: 24px 0 8px;
}
.legal-content p,
.about-content p {
  color: #cbd5e0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.about-lead {
  color: #fff !important;
  font-size: 1.05rem !important;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 16px;
  margin-bottom: 24px !important;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.contact-list li {
  padding: 8px 0;
  color: #cbd5e0;
  font-size: 0.95rem;
}
.contact-list a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}

/* ===== Страница «Спасибо» ===== */
.thanks-page {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 50px 30px;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.1);
}
.thanks-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 16px;
  animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.thanks-title {
  color: var(--accent-cyan);
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}
.thanks-hello {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.thanks-text {
  color: #cbd5e0;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.thanks-item {
  background: #0d0f17;
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}
.thanks-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.thanks-item-name {
  color: var(--accent-gold);
  font-size: 1.1rem;
  font-weight: bold;
}
.thanks-actions {
  margin-top: 20px;
}

/* ===== Страница товара ===== */
.item-back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.item-back-link:hover { color: var(--accent-cyan); }

.item-page {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 30px;
}

.item-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}
@media (max-width: 720px) {
  .item-page-grid { grid-template-columns: 1fr; }
}

.item-page-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
  max-height: 400px;
}
.item-page-title {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.item-page-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn-share {
  background: #0d0f17;
  border: 1px solid var(--border-glow) !important;
  color: var(--text-muted);
  margin-top: 15px;
}
.btn-share:hover { color: var(--accent-cyan); border-color: var(--accent-cyan) !important; }

/* Встроенное TikTok */
.item-video-block { margin-top: 30px; }
.tiktok-embed {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.tiktok-embed iframe {
  width: 325px;
  height: 580px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-glow);
}

/* История донатов */
.item-donors { margin-top: 30px; }
.donors-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.donor-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 15px;
  align-items: center;
  padding: 10px 14px;
  background: #0d0f17;
  border: 1px solid #2a2e3d;
  border-radius: 8px;
}
.donor-name { color: #fff; font-weight: 500; }
.donor-amount { color: var(--accent-cyan); font-weight: bold; }
.donor-date { color: var(--text-muted); font-size: 0.8rem; }

/* Ссылка на страницу товара из карточки */
.item-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.item-title-link:hover { color: var(--accent-cyan); }

/* Ошибки форм */
.error-msg {
  color: #ff4d4d;
  margin-bottom: 10px;
  font-weight: bold;
}


.item-suggested {
  color: var(--accent-purple);
  font-size: 0.85rem;
  margin-top: 6px;
  font-style: italic;
}

/* Стили для details/summary в админке */
details.edit-box summary {
  list-style: none;
}
details.edit-box summary::-webkit-details-marker {
  display: none;
}
details.edit-box summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.2s;
}
details.edit-box[open] summary::before {
  transform: rotate(90deg);
}
/* ===== Превью TikTok-видео (вместо iframe) ===== */
.tiktok-preview {
  display: block;
  position: relative;
  max-width: 420px;
  margin: 20px auto;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  border: 2px solid var(--border-glow);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  aspect-ratio: 9 / 16;
  background: #000;
}
.tiktok-preview:hover {
  transform: translateY(-4px);
  border-color: var(--accent-pink);
  box-shadow: 0 10px 40px rgba(254, 44, 85, 0.35);
}
.tiktok-preview-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.5);
  transform: scale(1.1);
}
.tiktok-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,15,23,0.3) 0%, rgba(13,15,23,0.85) 100%);
}
.tiktok-preview-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
}
.tiktok-preview-icon {
  filter: drop-shadow(0 0 20px rgba(254, 44, 85, 0.7));
  transition: transform 0.3s;
}
.tiktok-preview:hover .tiktok-preview-icon {
  transform: scale(1.15);
}
.tiktok-preview-text {
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.3px;
}
.tiktok-preview-handle {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Убираем старые стили iframe (можно оставить, они не мешают) */
.tiktok-embed { display: none; }



/* ===== Страница оплаты ===== */
.pay-page {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 30px;
  max-width: 720px;
  margin: 0 auto;
}
.pay-title {
  color: var(--accent-cyan);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}
.pay-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.pay-item-info {
  display: flex;
  gap: 15px;
  background: #0d0f17;
  border: 1px solid #2a2e3d;
  border-radius: 12px;
  padding: 15px;
  align-items: center;
}
.pay-item-info img {
  width: 90px; height: 90px; object-fit: cover;
  border-radius: 10px; flex-shrink: 0;
}
.pay-item-body { flex: 1; min-width: 0; }
.pay-item-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.pay-item-name {
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 4px;
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}
.pay-method {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #0d0f17;
  border: 1px solid #2a2e3d;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: #fff;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pay-method:not(.pay-method-static):hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.15);
}
.pay-method-static { cursor: default; }

.pay-method-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}
.mono-icon      { background: #000; color: #fff; }
.donatello-icon { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; }
.card-icon      { background: linear-gradient(135deg, #9b51e0, #ff007f); color: #fff; }
.paypal-icon    { background: #0070ba; color: #fff; font-family: Georgia, serif; }

.pay-method-body { flex: 1; min-width: 0; }
.pay-method-name {
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 3px;
}
.pay-method-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: #161926;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px dashed var(--border-glow);
}
.card-row code {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  letter-spacing: 1px;
  flex: 1;
  user-select: all;
}
.copy-card-btn {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
}
.copy-card-btn:hover { filter: brightness(1.1); }
.card-holder {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 5px;
  font-style: italic;
}

.pay-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 25px 0 10px;
  line-height: 1.5;
  opacity: 0.85;
}
/* Кнопка поддержки в hero */
.btn-hero-support {
  display: inline-block;
  width: auto;
  max-width: none;
  padding: 12px 28px;
  margin: 0;
  background: linear-gradient(90deg, #9b51e0, #ff007f);
  color: #fff;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 0, 127, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-support:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 127, 0.55);
  filter: none;
}
.privat-icon { background: linear-gradient(135deg, #009e3d, #007a2f); color: #fff; }