:root {
  --bg: #050505;
  --neon-green: #00e555;
  --neon-dim: #009933;
  --sub: #7a8a9a;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  background: var(--bg);
  overscroll-behavior-y: none;
}

body { overflow-x: hidden; }
body.modal-open { overflow: hidden; }

/* ============================================================
   Animated cyber background
   ============================================================ */
.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.grid-floor {
  position: absolute;
  left: -25%; right: -25%; bottom: -10%;
  height: 55%;
  background-image:
    linear-gradient(rgba(0, 229, 85, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 204, 68, 0.18) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(420px) rotateX(68deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 5%, transparent 75%);
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 75%);
  opacity: 0.55;
  animation: gridMove 14s linear infinite;
}
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 0 38px; } }

.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; }
.glow-blue   { width: 280px; height: 280px; top: -60px; left: -70px;  background: var(--neon-green);   animation: drift 18s ease-in-out infinite; }
.glow-purple { width: 300px; height: 300px; bottom: -70px; right: -80px; background: var(--neon-dim); animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(24px, -22px); }
}

.gift { position: absolute; opacity: 0.22; filter: drop-shadow(0 0 10px rgba(0, 229, 85, 0.45)); }
.gift-1 { width: 56px; height: 56px; top: 14%;  left: 8%;  }
.gift-2 { width: 44px; height: 44px; top: 30%;  right: 7%; }
.gift-3 { width: 64px; height: 64px; bottom: 24%; left: 12%; }
.gift-4 { width: 40px; height: 40px; top: 22%;  right: 28%; }

.float-slow    { animation: floaty 9s  ease-in-out infinite; }
.float-slower  { animation: floaty 12s ease-in-out infinite; }
.float-slowest { animation: floaty 15s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(6deg); }
}

/* ============================================================
   Welcome splash
   ============================================================ */
.splash-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: #050505;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-overlay.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-dim));
  box-shadow: 0 0 12px var(--neon-green);
  width: 0%;
  transition: width 0.15s linear;
  z-index: 101;
}

.splash-card {
  width: 88%;
  max-width: 340px;
  text-align: center;
  padding: 36px 24px 30px;
  border-radius: 24px;
  animation: splashIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: scale(0.92) translateY(20px);
}
@keyframes splashIn {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-logo {
  margin-bottom: 10px;
  animation: splashPulse 2.5s ease-in-out infinite;
}
@keyframes splashPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 229, 85, 0.3)); }
  50%      { filter: drop-shadow(0 0 22px rgba(0, 229, 85, 0.7)); }
}

.splash-title {
  font: 700 20px/1.3 'Space Grotesk', sans-serif;
  margin: 0 0 6px;
  color: #e0eaf5;
}
.splash-name {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-dim));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-sub {
  font-size: 13px;
  color: var(--sub);
  margin: 0 0 22px;
  line-height: 1.4;
}

.splash-btn {
  border: 0;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-dim));
  color: #000;
  font: 700 15px/1 'Inter', sans-serif;
  padding: 14px 36px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 229, 85, 0.35);
  transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.3s;
  opacity: 0.4;
}
.splash-btn:disabled { cursor: default; }
.splash-btn.active {
  opacity: 1;
  animation: splashBtnPulse 2s ease-in-out infinite;
}
.splash-btn.active:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 32px rgba(0, 229, 85, 0.5);
}
.splash-btn.active:active { transform: scale(0.97); }
@keyframes splashBtnPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(0, 229, 85, 0.35); }
  50%      { box-shadow: 0 4px 36px rgba(0, 229, 85, 0.6); }
}

/* ============================================================
   App shell
   ============================================================ */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: max(env(safe-area-inset-top), 18px) 22px max(env(safe-area-inset-bottom), 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ============================================================
   Language bar
   ============================================================ */
.lang-bar {
  align-self: flex-end;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--sub);
  font: 600 11px/1 'Inter', sans-serif;
  letter-spacing: 0.5px;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.lang-btn:hover:not(.is-active) {
  color: #c6d2e2;
  transform: translateY(-1px);
}
.lang-btn.is-active {
  color: #000;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-dim));
  box-shadow: 0 0 14px rgba(0, 229, 85, 0.45);
}

/* ============================================================
   Profile
   ============================================================ */
.profile { text-align: center; margin-top: 4px; }

.avatar-ring {
  position: relative;
  width: 92px; height: 92px;
  margin: 6px auto 14px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--neon-green), var(--neon-dim), var(--neon-green));
  box-shadow: 0 0 26px rgba(0, 229, 85, 0.5), 0 0 46px rgba(0, 204, 68, 0.35);
  animation: spinRing 6s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.avatar-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 85, 0.3);
  animation: pulseRing 2.5s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #070b1f;
  animation: spinRing 6s linear infinite reverse;
}
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.verified-dot {
  position: absolute; right: 4px; bottom: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--neon-green);
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px var(--neon-green);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px var(--neon-green); }
  50%      { box-shadow: 0 0 20px var(--neon-green), 0 0 30px rgba(0, 229, 85, 0.25); }
}
.verified-dot::after {
  content: "✓";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800; color: #051a08;
}

.username {
  font: 700 24px/1.1 'Space Grotesk', sans-serif;
  margin: 0;
  background: linear-gradient(90deg, #fff, #a0f0c0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title {
  margin: 6px 0 2px;
  font: 600 15px/1.2 'Inter', sans-serif;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-dim));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subtitle { margin: 0; font-size: 12px; color: var(--sub); letter-spacing: 0.3px; }
/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  display: flex; flex-direction: column; gap: 2px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 85, 0.10), rgba(0, 204, 68, 0.10));
  opacity: 0; transition: opacity 0.3s;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 229, 85, 0.15); }
.stat:active::before { opacity: 1; }
.stat-num {
  font: 700 21px/1 'Space Grotesk', sans-serif;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-dim));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: text-shadow 0.3s ease;
}
.stat-label { font-size: 10.5px; color: var(--sub); text-transform: uppercase; letter-spacing: 0.6px; }

/* ============================================================
   Trust chips
   ============================================================ */
.trust { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px; color: #dbe6f2; font-weight: 500;
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

/* ============================================================
   CTAs
   ============================================================ */
.cta { display: flex; flex-direction: column; gap: 11px; }

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%;
  border: 0; cursor: pointer;
  font: 600 15px/1 'Inter', sans-serif;
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.3s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-dim));
  box-shadow: 0 6px 24px rgba(0, 229, 85, 0.40), 0 0 0 1px rgba(255, 255, 255, 0.10) inset;
  animation: pulseGlow 3s ease-in-out infinite;
  color: #000;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(0, 229, 85, 0.35), 0 0 0 1px rgba(255,255,255,0.10) inset; }
  50%      { box-shadow: 0 8px 34px rgba(0, 204, 68, 0.55), 0 0 0 1px rgba(255,255,255,0.16) inset; }
}
.tg-icon { width: 20px; height: 20px; }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #e8f1ff;
  transition: transform 0.18s ease, box-shadow 0.3s ease, border-color 0.25s, background 0.25s;
}
.btn-ghost:hover {
  border-color: rgba(0, 229, 85, 0.3);
  background: rgba(255, 255, 255, 0.07);
}
.btn-soft {
  background: rgba(0, 229, 85, 0.10);
  border: 1px solid rgba(0, 229, 85, 0.3);
  color: #80e8a0;
}
.btn-sm { padding: 13px; font-size: 14px; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  pointer-events: none;
  animation: rippleAnim 0.7s ease-out forwards;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

.footnote { text-align: center; font-size: 10.5px; color: var(--sub); margin: 0; opacity: 0.8; }
.credit { text-align: center; font-size: 9.5px; color: var(--sub); margin: 4px 0 0; opacity: 0.5; }
.credit a { color: var(--sub); text-decoration: none; transition: color 0.2s; }
.credit a:hover { color: var(--neon-green); }
.nexs0de { text-align: center; font-size: 10.5px; color: var(--sub); margin: 0; opacity: 0.8; }

/* ============================================================
   Reviews modal
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: 100%; max-width: 430px;
  max-height: 90dvh;
  border-radius: 22px 22px 0 0;
  border-bottom: 0;
  overflow: hidden;
  padding: 18px 18px max(env(safe-area-inset-bottom), 18px);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(5, 5, 5, 0.92);
}
.modal-head,
.rating-summary,
.filter-bar,
#toggleForm { flex-shrink: 0; }
.modal-overlay.open .modal { transform: translateY(0); }

.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h2 { margin: 0; font: 700 19px/1 'Space Grotesk', sans-serif; }
.modal-close {
  border: 0; background: transparent; color: var(--sub);
  font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: #fff; }

.rating-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.stars { color: #ffcc4d; letter-spacing: 2px; font-size: 14px; text-shadow: 0 0 10px rgba(255, 204, 77, 0.5); }
.rating-text { font-size: 12px; color: var(--sub); }
.rating-text b { color: #fff; }

.filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--sub);
  font: 600 10.5px/1 'Inter', sans-serif;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.filter-btn:hover {
  color: #c6d2e2;
  border-color: rgba(0, 229, 85, 0.35);
}
.filter-btn.is-active {
  color: #000;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-dim));
  border-color: transparent;
  box-shadow: 0 0 18px rgba(0, 229, 85, 0.35);
}

.reviews-list {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 85, 0.4) transparent;
}
.reviews-list::-webkit-scrollbar { width: 4px; }
.reviews-list::-webkit-scrollbar-thumb { background: rgba(0, 229, 85, 0.4); border-radius: 4px; }

.review-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 13px;
  animation: cardIn 0.4s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 85, 0.12);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.review-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.review-user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.review-ava {
  width: 30px; height: 30px; border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  font: 700 12px 'Space Grotesk', sans-serif; color: #04111f;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-dim));
}
.review-name { font-size: 13px; font-weight: 600; color: #eaf2ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-tag {
  flex-shrink: 0;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.3px;
  color: #80e8a0;
  background: rgba(0, 229, 85, 0.10);
  border: 1px solid rgba(0, 229, 85, 0.25);
  padding: 2px 7px; border-radius: 999px;
  text-transform: uppercase;
}

.review-card.mine { border-color: rgba(0, 229, 85, 0.5); box-shadow: 0 0 16px rgba(0, 229, 85, 0.2); }
.mine-badge {
  font-size: 9px; font-weight: 700; color: #051a08;
  background: var(--neon-green); padding: 1px 6px; border-radius: 999px;
}

.review-amount {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  color: #00e555;
  background: rgba(0, 229, 85, 0.08);
  border: 1px solid rgba(0, 229, 85, 0.2);
  padding: 3px 8px; border-radius: 999px;
}
.review-stars { color: #ffcc4d; font-size: 11px; letter-spacing: 1px; margin-bottom: 4px; }
.review-text { font-size: 12.5px; line-height: 1.45; color: #c6d2e2; margin: 0; }
.review-verified { font-size: 10px; color: #46e6a0; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

#toggleForm { margin-top: 12px; flex-shrink: 0; }
#toggleForm .plus { font-size: 18px; line-height: 0; font-weight: 700; }

/* ---------- Add-review form sheet ---------- */
.form-sheet, .success-sheet {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 22px 22px 0 0;
  animation: sheetIn 0.25s ease both;
}
@keyframes sheetIn { from { opacity: 0; } to { opacity: 1; } }

.review-form {
  width: 100%;
  display: flex; flex-direction: column; gap: 11px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.92);
  animation: cardIn 0.3s ease both;
}
.form-title { margin: 0 0 2px; font: 700 17px 'Space Grotesk', sans-serif; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 11px; color: var(--sub); font-weight: 500; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 11px;
  padding: 11px 12px;
  color: #fff;
  font: 400 14px 'Inter', sans-serif;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394A3B8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 30px; cursor: pointer;
}
.field select option { background: #000; color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #5b6b85; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px rgba(0, 229, 85, 0.12);
}
.form-actions { display: flex; gap: 10px; margin-top: 4px; }
.form-actions .btn { flex: 1; }

/* ---------- Success popup ---------- */
.success-card {
  width: 100%; max-width: 320px;
  text-align: center;
  padding: 26px 22px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.95);
  animation: cardIn 0.35s ease both;
}
.success-check { width: 64px; height: 64px; margin: 0 auto 14px; }
.success-check svg { width: 100%; height: 100%; }
.success-check circle { stroke: var(--neon-green); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: drawCircle 0.5s ease forwards; }
.success-check path { stroke: var(--neon-green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck 0.35s 0.4s ease forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.success-title { margin: 0 0 8px; font: 700 19px 'Space Grotesk', sans-serif;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-dim));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.success-body { margin: 0 0 18px; font-size: 13px; line-height: 1.5; color: #c6d2e2; }

/* ---------- Undo toast ---------- */
.undo-toast {
  position: absolute;
  bottom: max(env(safe-area-inset-bottom), 14px);
  left: 14px; right: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(10, 14, 32, 0.95);
  border: 1px solid rgba(0, 229, 85, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.35s ease both;
}
@keyframes toastIn {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.undo-text { font-size: 13px; color: #c6d2e2; font-weight: 500; }
.undo-btn {
  flex-shrink: 0;
  border: 0;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-dim));
  color: #000;
  font: 700 12px/1 'Inter', sans-serif;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 14px rgba(0, 229, 85, 0.3);
}
.undo-btn:hover { transform: scale(1.04); }
.undo-btn:active { transform: scale(0.96); }

/* ============================================================
   Desktop (≥768px)
   ============================================================ */
@media (min-width: 768px) {
  .glow-blue   { width: 480px; height: 480px; top: -100px; left: -120px; }
  .glow-purple { width: 520px; height: 520px; bottom: -120px; right: -140px; }
  .gift-1 { width: 72px; height: 72px; top: 18%;  left: 12%;  }
  .gift-2 { width: 60px; height: 60px; top: 36%;  right: 10%; }
  .gift-3 { width: 84px; height: 84px; bottom: 28%; left: 16%; }
  .gift-4 { width: 54px; height: 54px; top: 26%;  right: 32%; }
  .grid-floor { height: 65%; background-size: 50px 50px; }
  @keyframes gridMove { from { background-position: 0 0; } to { background-position: 0 50px; } }

  .app { max-width: 560px; padding: max(env(safe-area-inset-top), 32px) 32px max(env(safe-area-inset-bottom), 28px); gap: 20px; }
  .profile { transform: scale(1.1); margin: 8px 0; }
  .avatar-ring { width: 108px; height: 108px; margin: 10px auto 18px; }
  .username { font-size: 30px; }
  .title { font-size: 18px; }
  .subtitle { font-size: 14px; }
  .stats { gap: 14px; }
  .stat { padding: 18px 14px; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 12px; }
  .trust { gap: 10px; }
  .chip { font-size: 13px; padding: 9px 14px; }
  .btn { font-size: 16px; padding: 18px; border-radius: 18px; }
  .footnote { font-size: 12px; }
  .credit { font-size: 11px; }
  .lang-btn { font-size: 12px; padding: 7px 12px; }
  .gift { opacity: 0.28; }

  .modal-overlay { align-items: center; }
  .modal {
    max-width: 520px;
    max-height: 75vh;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.92) translateY(30px);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
  }
  .modal-overlay.open .modal { transform: scale(1) translateY(0); opacity: 1; }
  .modal-head h2 { font-size: 22px; }
  .filter-btn { font-size: 11.5px; padding: 8px 18px; }
  .review-name { font-size: 14px; }
  .review-text { font-size: 13px; }
  .form-sheet, .success-sheet { border-radius: 22px; }
  .undo-toast { left: 20px; right: 20px; }
}

/* Larger desktop (≥1024px) */
@media (min-width: 1024px) {
  .app { max-width: 640px; padding: max(env(safe-area-inset-top), 40px) 40px; }
  .profile { transform: scale(1.15); }
  .avatar-ring { width: 120px; height: 120px; }
  .username { font-size: 34px; }
  .modal { max-width: 580px; max-height: 70vh; padding: 28px; }
}

/* ============================================================
   Shimmer / Section entrances
   ============================================================ */
.shimmer-text {
  background-size: 200% 100% !important;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.stagger-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: staggerIn 0.5s ease forwards;
}
.stagger-fade:nth-child(1) { animation-delay: 0.05s; }
.stagger-fade:nth-child(2) { animation-delay: 0.15s; }
.stagger-fade:nth-child(3) { animation-delay: 0.25s; }
.stagger-fade:nth-child(4) { animation-delay: 0.35s; }
@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

.profile, .stats, .trust, .cta, .footnote {
  opacity: 0;
  transform: translateY(20px);
  animation: sectionIn 0.6s ease forwards;
}
.profile     { animation-delay: 0.1s; }
.stats       { animation-delay: 0.3s; }
.trust       { animation-delay: 0.5s; }
.cta         { animation-delay: 0.7s; }
.footnote    { animation-delay: 0.9s; }
@keyframes sectionIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Random sparkle on stat numbers
   ============================================================ */
.stat-num {
  position: relative;
}
.stat-num::after {
  content: '';
  position: absolute;
  top: -2px; right: -4px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px 2px var(--neon-green);
  opacity: 0;
  animation: sparkle 5s ease-in-out infinite;
}
.stat:nth-child(2) .stat-num::after { animation-delay: 1.2s; }
.stat:nth-child(3) .stat-num::after { animation-delay: 2.6s; }
.stat:nth-child(4) .stat-num::after { animation-delay: 4s; }
@keyframes sparkle {
  0%, 90%, 100% { opacity: 0; transform: scale(0.5); }
  93% { opacity: 1; transform: scale(1.2); }
  96% { opacity: 0.6; transform: scale(1); }
}

/* ============================================================
   Tighter layout for short screens
   ============================================================ */
@media (max-height: 820px) {
  .app { gap: 10px; }
  .avatar-ring { width: 78px; height: 78px; margin: 2px auto 10px; }
  .username { font-size: 21px; }
  .title { font-size: 14px; }
  .stat { padding: 10px 8px; }
  .stat-num { font-size: 19px; }
  .btn { padding: 14px; }
  .footnote { display: none; }
  .gift { display: none; }
}

@media (max-height: 680px) {
  .avatar-ring { width: 66px; height: 66px; margin: 0 auto 8px; }
  .username { font-size: 19px; }
  .subtitle { font-size: 11px; }
  .stats { gap: 8px; }
  .stat { padding: 8px; }
  .cta { gap: 9px; }
  .btn { padding: 13px; font-size: 14px; }
}

/* ============================================================
   Shooting stars (meteors)
   ============================================================ */
.meteor {
  position: fixed;
  top: -20px;
  left: var(--x, 20%);
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(0, 229, 85, 0.6);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: meteorFall var(--dur, 1.2s) var(--d, 3s) infinite;
}
.meteor::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50px;
  height: 1px;
  background: linear-gradient(to left, rgba(0, 229, 85, 0.5), transparent);
}
@keyframes meteorFall {
  0%   { transform: rotate(var(--angle, -25deg)) translateY(0); opacity: 1; }
  8%   { opacity: 1; }
  100% { transform: rotate(var(--angle, -25deg)) translateY(calc(100vh + 120px)); opacity: 0; }
}

/* ============================================================
   Magnetic cursor glow
   ============================================================ */
.cursor-glow {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 85, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  will-change: transform;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Projects modal
   ============================================================ */
.projects-subtitle { font-size: 12px; color: var(--sub); margin: 4px 0 14px; }
.projects-list {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; flex: 1 1 auto; min-height: 0; padding-right: 4px;
}
.project-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  text-decoration: none; color: #eaf2ff;
  transition: all 0.25s ease; cursor: pointer;
}
.project-btn:hover {
  background: rgba(0, 229, 85, 0.06);
  border-color: rgba(0, 229, 85, 0.25);
  transform: translateX(4px);
}
.project-btn:active { transform: scale(0.98); }
.project-icon { font-size: 20px; flex-shrink: 0; }
.project-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.project-name { font-size: 14px; font-weight: 600; color: var(--neon-green); }
.project-desc { font-size: 11px; color: var(--sub); }
.project-arrow { font-size: 16px; color: var(--sub); transition: transform 0.25s; flex-shrink: 0; }
.project-btn:hover .project-arrow { transform: translateX(4px); color: var(--neon-green); }
