/* ======================================================
   Do You Have a Dollar? — Premium Dark Styles v2
   ====================================================== */

:root {
  --bg: #0e0e14;
  --bg-card: #17171f;
  --bg-card2: #1e1e2a;
  --bg-card3: #12121a;
  --accent: #f5c518;
  --accent2: #ff6b35;
  --accent3: #6ee7b7;
  --accent4: #818cf8;
  --text: #f0f0f8;
  --muted: #9090a8;
  --border: rgba(255, 255, 255, 0.07);
  --gold1: #ffd700;
  --gold2: #c0c0c0;
  --gold3: #cd7f32;
  --sign-bg: #c8a96e;
  --sign-dark: #7d5a2e;
  --radius: 14px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Utility ---- */
.mt-8 {
  margin-top: 8px !important;
}

.mt-16 {
  margin-top: 16px !important;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Coins bg ---- */
.coins-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.coin {
  position: absolute;
  font-size: 1.4rem;
  animation: floatCoin linear infinite;
  opacity: 0;
}

.coin:nth-child(1) {
  left: 4%;
  animation-duration: 9s;
  animation-delay: 0s;
}

.coin:nth-child(2) {
  left: 14%;
  animation-duration: 12s;
  animation-delay: 2s;
}

.coin:nth-child(3) {
  left: 27%;
  animation-duration: 8s;
  animation-delay: 4s;
}

.coin:nth-child(4) {
  left: 41%;
  animation-duration: 14s;
  animation-delay: 1s;
}

.coin:nth-child(5) {
  left: 56%;
  animation-duration: 10s;
  animation-delay: 3s;
}

.coin:nth-child(6) {
  left: 68%;
  animation-duration: 7s;
  animation-delay: 5.5s;
}

.coin:nth-child(7) {
  left: 80%;
  animation-duration: 11s;
  animation-delay: 0.5s;
}

.coin:nth-child(8) {
  left: 91%;
  animation-duration: 9s;
  animation-delay: 6s;
}

@keyframes floatCoin {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.35;
  }

  90% {
    opacity: 0.35;
  }

  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(14, 14, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-emoji {
  font-size: 1.9rem;
  animation: wobble 3s ease-in-out infinite;
}

.logo-text {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.4rem;
  color: var(--accent);
  text-shadow: 0 2px 12px rgba(245, 197, 24, 0.35);
  flex: 1;
}

@keyframes wobble {

  0%,
  100% {
    transform: rotate(-5deg)
  }

  50% {
    transform: rotate(5deg)
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.35);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--accent3);
}

.user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent3);
}

.chip-logout {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0 0 0 4px;
}

.chip-logout:hover {
  color: #ff6b6b;
}

.btn-outline-sm {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Tagline bar ---- */
.tagline-bar {
  text-align: center;
  padding: 40px 24px 40px;
  font-size: 1.8rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.tagline-bar em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

.tagline-allegedly {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
  animation: allegedlyPulse 3s ease-in-out infinite;
}

@keyframes allegedlyPulse {

  0%,
  100% {
    text-shadow: 0 0 0px transparent;
  }

  50% {
    text-shadow: 0 0 8px rgba(245, 197, 24, 0.5);
  }
}

.tagline-sub {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  opacity: 0.72;
  letter-spacing: 0.04em;
  margin-top: 6px;
  vertical-align: baseline;
}

/* ---- Hero Grid (3-col: panhandler | form | leaderboard) ---- */
.hero-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 24px;
  padding: 28px 24px 20px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Center: submit form embedded in hero */
.hero-center {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

/* Left: panhandler */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.sign-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.cardboard-sign {
  background: var(--sign-bg);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(160, 116, 50, .22) 24px, rgba(160, 116, 50, .22) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(160, 116, 50, .1) 30px, rgba(160, 116, 50, .1) 31px);
  border: 4px solid var(--sign-dark);
  border-radius: 6px;
  padding: 22px 28px;
  text-align: center;
  box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.55), inset 0 0 24px rgba(0, 0, 0, 0.12);
  transform: rotate(-2deg);
  animation: signWave 4s ease-in-out infinite;
  max-width: 300px;
  position: relative;
}

.cardboard-sign::before,
.cardboard-sign::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 7px;
  height: 26px;
  background: #c8a040;
  border-radius: 2px;
}

.cardboard-sign::before {
  left: 28%;
}

.cardboard-sign::after {
  left: 68%;
}

@keyframes signWave {

  0%,
  100% {
    transform: rotate(-2deg)
  }

  50% {
    transform: rotate(1deg)
  }
}

.sign-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 2rem;
  color: #2a1a00;
  line-height: 1.2;
}

.sign-divider {
  height: 3px;
  background: var(--sign-dark);
  margin: 10px 0;
  opacity: 0.45;
  border-radius: 2px;
}

.sign-sub {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: #3d2200;
  font-weight: 700;
}

.panhandler-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.panhandler-img {
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
  animation: imgFloat 6s ease-in-out infinite;
  border: 2px solid rgba(245, 197, 24, 0.18);
}

@keyframes imgFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-9px)
  }
}

/* Right: Leaderboard */
.hero-right {
  position: relative;
  z-index: 1;
}

.leaderboard-card {
  background: var(--bg-card);
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: 100%;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.lb-icon {
  font-size: 2rem;
}

.lb-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.25rem;
  color: var(--accent);
}

.lb-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.lb-live-dot {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent3);
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7)
  }
}

.lb-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card2);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  animation: cardPop 0.4s ease;
  border: 1px solid var(--border);
}

.lb-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
}

.lb-item:nth-child(1)::before {
  background: var(--gold1);
}

.lb-item:nth-child(2)::before {
  background: var(--gold2);
}

.lb-item:nth-child(3)::before {
  background: var(--gold3);
}

.lb-item:nth-child(4)::before,
.lb-item:nth-child(5)::before {
  background: var(--muted);
}

.lb-rank {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.lb-body {
  flex: 1;
  min-width: 0;
}

.lb-text {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.lb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--muted);
}

.lb-name {
  color: var(--accent);
  font-weight: 600;
}

.lb-amount {
  margin-left: auto;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.lb-share-btns {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.lb-share-btn {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.lb-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lb-skeleton {
  height: 72px;
  background: var(--bg-card2);
  border-radius: 10px;
  border: 1px solid var(--border);
  animation: shimmer 1.5s linear infinite;
  background: linear-gradient(90deg, var(--bg-card2) 25%, #22223a 50%, var(--bg-card2) 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

/* ---- Trending ---- */
.trending-section {
  padding: 20px 24px 40px;
  position: relative;
  z-index: 1;
}

.trending-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  padding-bottom: 0;
}

.tab-btn {
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Joke Card */
.joke-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  animation: cardPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.joke-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.joke-card-text {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

.joke-card-meta {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.joke-card-name {
  color: var(--accent);
  font-weight: 600;
}

.joke-card-amount {
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.72rem;
  color: var(--accent);
}

.joke-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  transition: all 0.15s;
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 197, 24, 0.07);
}

.action-btn.liked {
  color: #ff6b6b;
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
}

.action-btn.liked:hover {
  background: rgba(255, 107, 107, 0.15);
}

.share-dropdown {
  position: relative;
}

.share-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 6px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  z-index: 10;
  display: none;
  min-width: 160px;
  box-shadow: var(--shadow);
}

.share-menu.open {
  display: block;
  animation: fadeDown 0.15s ease;
}

.share-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.share-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes cardPop {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(12px)
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0)
  }
}

/* ---- Form Section ---- */
.form-section {
  padding: 10px 24px 60px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  max-width: 580px;
  width: 100%;
  box-shadow: var(--shadow);
}

.form-header h2 {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.form-group {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.label-hint {
  font-weight: 400;
  text-transform: none;
  font-size: 0.78rem;
}

.form-group textarea,
.form-group input[type='text'],
.form-group input[type='number'] {
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea:focus,
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.14);
}

.char-counter {
  text-align: right;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Amount picker */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.amount-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s;
}

.amount-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.amount-btn.active {
  border-color: var(--accent);
  background: rgba(245, 197, 24, 0.12);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.2);
}

.tier-label {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--muted);
}

.amount-btn.active .tier-label {
  color: rgba(245, 197, 24, 0.7);
}

.custom-amount-input {
  margin-top: 8px !important;
}

/* Protection bar */
.protection-bar-wrap {
  margin-top: 18px;
}

.protection-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.protection-track {
  height: 8px;
  background: var(--bg-card2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.protection-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff6b35, #f5c518, #6ee7b7);
  transition: width 0.5s ease;
}

/* Stripe element */
.stripe-card-element {
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 15px;
  transition: border-color 0.2s;
}

.card-errors {
  color: #ff7070;
  font-size: 0.84rem;
  min-height: 18px;
  margin-top: 4px;
}

/* Price tag */
.price-tag {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.1), rgba(255, 107, 53, 0.07));
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: 10px;
  padding: 13px 17px;
}

.price-amount {
  font-family: 'Permanent Marker', cursive;
  font-size: 2rem;
  color: var(--accent);
}

.price-label {
  font-size: 0.87rem;
  color: var(--muted);
}

/* Submit btn */
.submit-btn {
  margin-top: 22px;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #f5c518, #ff8c00);
  border: none;
  border-radius: 12px;
  color: #1a0f00;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.35);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 197, 24, 0.5);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.success-msg {
  margin-top: 18px;
  background: rgba(110, 231, 183, 0.1);
  border: 1.5px solid var(--accent3);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--accent3);
  font-weight: 600;
  text-align: center;
  animation: popIn 0.4s ease;
}

.error-msg {
  margin-top: 14px;
  background: rgba(255, 80, 80, 0.09);
  border: 1.5px solid #ff4040;
  border-radius: 10px;
  padding: 12px 16px;
  color: #ff7070;
  font-size: 0.88rem;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.secure-badge {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Auth Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(8, 8, 14, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  animation: popIn 0.25s ease;
}

.modal-card--wide {
  max-width: 560px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
}

.modal-close:hover {
  color: var(--text);
}

.modal-robot {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 12px;
}

.modal-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.6rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 6px;
}

.modal-sub {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.5;
}

/* OTP boxes */
.otp-hint {
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  margin: 14px 0 10px;
}

.otp-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.otp-box {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.otp-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.15);
}

.btn-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5c518, #ff8c00);
  color: #1a0f00;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-error {
  margin-top: 10px;
  color: #ff7070;
  font-size: 0.84rem;
  text-align: center;
}

/* ── Email input (redesigned) ── */
.auth-email-wrap {
  position: relative;
  margin-top: 20px;
}

.auth-email-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  line-height: 1;
}

.auth-email-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 14px 42px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-email-input::placeholder {
  color: var(--muted);
}

.auth-email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.15);
  background: rgba(245, 197, 24, 0.04);
}

/* ── Consent checkboxes ── */
.consent-group {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  user-select: none;
}

.consent-label:hover {
  color: var(--text);
}

.consent-check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--bg-card2);
  cursor: pointer;
  margin-top: 1px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.consent-check:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-check:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #1a0f00;
  line-height: 14px;
  text-align: center;
  left: 2px;
}

.consent-check:focus {
  outline: 2px solid rgba(245, 197, 24, 0.5);
  outline-offset: 2px;
}

.consent-link {
  color: var(--accent);
  text-decoration: none;
}

.consent-link:hover {
  text-decoration: underline;
}

.consent-req {
  color: #ff7070;
  font-weight: 700;
}

/* Comments */
.comment-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.comment-item {
  background: var(--bg-card2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.comment-name {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 3px;
}

.comment-text {
  color: var(--text);
}

.comment-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.comment-form textarea {
  flex: 1;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  resize: none;
  outline: none;
}

.comment-form textarea:focus {
  border-color: var(--accent);
}

.comment-form .btn-primary {
  width: auto;
  padding: 10px 18px;
}

.auth-prompt {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 10px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
}

/* ---- Footer ---- */
.site-footer {
  background: #0a0a10;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  position: relative;
  z-index: 1;
}

.footer-disclaimer {
  margin-top: 7px;
  font-size: 0.75rem;
  opacity: 0.55;
}

/* Demo badge */
.demo-badge {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 300;
  background: rgba(245, 197, 24, 0.12);
  border: 1.5px solid rgba(245, 197, 24, 0.35);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.78rem;
  color: var(--accent);
  max-width: 260px;
  line-height: 1.4;
  pointer-events: none;
}

.demo-badge code {
  background: rgba(245, 197, 24, 0.15);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* ---- Payment Method Tabs ---- */
.pay-tabs {
  display: flex;
  gap: 8px;
}

.pay-tab {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card2);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.pay-tab.active {
  border-color: var(--accent);
  background: rgba(245, 197, 24, 0.1);
  color: var(--accent);
}

.paypal-note {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

/* PayPal button overrides */
#paypal-button-container {
  border-radius: 10px;
  overflow: hidden;
}

/* ---- Terms Checkbox ---- */
.terms-check {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 197, 24, 0.05);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
}

.terms-check input[type='checkbox'] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.terms-check label {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.terms-check label strong {
  color: var(--text);
}

.terms-link {
  color: var(--accent);
  text-decoration: underline;
}

.terms-link:hover {
  opacity: 0.8;
}

/* ---- Footer (updated) ---- */
.footer-brand {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.footer-owner {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-sep {
  color: var(--border);
}

.footer-legal {
  font-size: 0.77rem;
  color: var(--muted);
  opacity: 0.7;
  margin-bottom: 6px;
}

/* ---- Merch Teaser Section ---- */
.merch-teaser-section {
  padding: 0 24px 50px;
  position: relative;
  z-index: 1;
}

.merch-teaser-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1a140a 0%, #12121e 50%, #0f1020 100%);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 16px 60px rgba(245, 197, 24, 0.1), 0 4px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.merch-teaser-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(245, 197, 24, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.merch-teaser-left {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.merch-teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  animation: pulseDot 2.5s ease-in-out infinite;
}

.merch-teaser-title {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(245, 197, 24, 0.2);
}

.merch-teaser-title span {
  color: var(--accent);
}

.merch-teaser-sub {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 380px;
}

.merch-teaser-items {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.merch-teaser-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
}

.merch-teaser-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f5c518, #ff8c00);
  border: none;
  border-radius: 12px;
  color: #1a0f00;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 26px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.35);
  width: fit-content;
  margin-top: 6px;
}

.merch-teaser-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(245, 197, 24, 0.55);
}

.merch-teaser-btn:active {
  transform: translateY(0);
}

.merch-teaser-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: rgba(0, 0, 0, 0.2);
}

.merch-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.merch-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.merch-preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 24, 0.4);
}

.merch-preview-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.merch-preview-label {
  padding: 10px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-card2);
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 32px 16px 20px;
  }

  .hero-right {
    order: -1;
  }

  .form-card {
    padding: 24px 18px;
  }

  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .merch-teaser-inner {
    grid-template-columns: 1fr;
  }

  .merch-teaser-right {
    display: none;
  }

  .merch-teaser-left {
    padding: 32px 24px;
  }
}

@media (max-width: 500px) {
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .otp-box {
    width: 38px;
    height: 46px;
    font-size: 1.2rem;
  }

  .modal-card {
    padding: 28px 18px;
  }
}

/* ── Compact top-of-page form modifiers ─────────────────────────── */
.form-section--top {
  padding-top: 24px;
  padding-bottom: 8px;
}

.form-card--compact {
  padding: 24px 32px;
  max-width: 1100px;
}

/* Inline header: title left, price badge right */
.form-header--inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.form-header--inline h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.form-header--inline p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.price-tag--inline {
  flex-shrink: 0;
  background: rgba(245, 197, 24, .12);
  border: 1px solid rgba(245, 197, 24, .3);
  border-radius: 10px;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-tag--inline .price-amount {
  font-size: 1.5rem;
}

.price-tag--inline .price-label {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Two-column row for joke textarea + name field */
.form-row-2col {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.form-row-2col .form-group {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .form-header--inline {
    flex-direction: column;
  }

  .price-tag--inline {
    display: none;
  }

  .form-row-2col {
    flex-direction: column;
  }

  .form-card--compact {
    padding: 20px 16px;
  }
}

/* ── hero-center density overrides (scoped to form-in-hero column) ── */
.hero-center h2 {
  font-size: 1rem !important;
  margin-bottom: 2px !important;
}

.hero-center p {
  font-size: 0.73rem !important;
}

.hero-center label {
  font-size: 0.71rem;
}

.hero-center .label-hint {
  font-size: 0.64rem;
}

.hero-center .form-group {
  margin-bottom: 6px;
}

.hero-center textarea,
.hero-center input[type="text"],
.hero-center input[type="number"] {
  font-size: 0.79rem;
  padding: 5px 9px;
}

.hero-center .char-counter {
  font-size: 0.63rem;
}

.hero-center .amount-grid {
  gap: 5px;
}

.hero-center .amount-btn {
  padding: 5px 4px;
  font-size: 0.73rem;
}

.hero-center .tier-label {
  font-size: 0.58rem;
}

.hero-center .protection-bar-wrap {
  margin: 3px 0 5px;
}

.hero-center .protection-bar-label {
  font-size: 0.66rem;
}

.hero-center .pay-tabs {
  gap: 5px;
}

.hero-center .pay-tab {
  padding: 5px 10px;
  font-size: 0.72rem;
}

.hero-center .stripe-card-element {
  padding: 6px 9px;
  min-height: 30px;
}

.hero-center .price-tag {
  padding: 5px 10px;
  margin: 5px 0 4px !important;
}

.hero-center .price-amount {
  font-size: 1.05rem;
}

.hero-center .price-label {
  font-size: 0.67rem;
}

.hero-center .terms-check {
  font-size: 0.67rem;
  gap: 5px;
  margin-bottom: 5px;
}

.hero-center .secure-badge {
  font-size: 0.63rem !important;
  margin-top: 5px !important;
}

.hero-center .form-header {
  margin-bottom: 10px !important;
}