/* ============================================================
   FOREVER POSTCARD — Cosmic Theme Stylesheet
   Static version for Cloudflare Pages
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --background: #0a0515;
  --foreground: #ffffff;
  --primary: #9d4edd;
  --primary-foreground: #ffffff;
  --accent: #00f5d4;
  --destructive: #ff4d4d;
  --neon-pink: #ff6ec7;
  --neon-blue: #00f5d4;
  --neon-purple: #9d4edd;
  --glass-bg: rgba(20, 10, 40, 0.6);
  --glass-border: rgba(157, 78, 221, 0.4);
  --card-bg: rgba(20, 10, 40, 0.85);

  --font-montserrat: 'Montserrat', sans-serif;
  --font-architects: 'Architects Daughter', cursive;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-montserrat);
  letter-spacing: 0.02em;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: var(--font-montserrat);
}

input, textarea, select {
  font-family: var(--font-montserrat);
}

/* ===== COSMIC BACKGROUND ===== */
.cosmic-bg {
  background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0515 60%, #000 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Stars */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Nebula */
.nebula {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(157, 78, 221, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(255, 110, 199, 0.1) 0%, transparent 45%);
  animation: nebulaShift 20s ease-in-out infinite;
}

@keyframes nebulaShift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

/* ===== SHOOTING STARS ===== */
.shooting-star {
  position: fixed;
  width: 150px;
  height: 2px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), white);
  border-radius: 2px;
  transform: rotate(35deg);
  animation: shootAcross var(--shoot-duration, 8s) linear infinite;
  animation-delay: var(--shoot-delay, 0s);
}

@keyframes shootAcross {
  0%   { top: 5%; left: -5%; opacity: 0; }
  2%   { opacity: 1; }
  8%   { opacity: 1; }
  12%  { top: 80%; left: 85%; opacity: 0; }
  100% { top: 80%; left: 85%; opacity: 0; }
}

/* ===== HEADER ===== */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo svg {
  width: 48px;
  height: 48px;
}

.logo-text {
  font-family: var(--font-architects);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #c2185b, #4169e1, #9d4edd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); }
  50%      { filter: drop-shadow(0 0 20px rgba(255,255,255,0.6)); }
}

/* My Posts Button */
.my-posts-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 8px 16px;
  color: white;
  font-size: 14px;
  font-family: var(--font-montserrat);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  animation: myPostsTwinkle 2s ease-in-out infinite;
}

@keyframes myPostsTwinkle {
  0%, 100% { border-color: rgba(255,255,255,0.3); box-shadow: 0 0 8px rgba(255,255,255,0.1); }
  50%      { border-color: rgba(255,255,255,0.8); box-shadow: 0 0 20px rgba(255,255,255,0.4), 0 0 40px rgba(157,78,221,0.2); }
}

.my-posts-btn:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.my-posts-btn.active {
  background: rgba(0,245,212,0.2);
  border-color: var(--neon-blue);
  box-shadow: 0 0 25px rgba(0,245,212,0.4);
  animation: none;
}

.my-posts-btn .star-icon {
  width: 14px;
  height: 14px;
}

.my-posts-btn.active .star-icon {
  animation: starPulse 1.5s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { filter: drop-shadow(0 0 5px white); }
  50%      { filter: drop-shadow(0 0 10px var(--neon-blue)); }
}

/* ===== TAGLINE ===== */
.tagline {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  margin: 30px 0 35px;
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
  animation: taglineGlow 4s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tagline-line1 {
  font-family: var(--font-architects);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.3;
  opacity: 0.85;
}

.tagline-line2 {
  font-family: var(--font-architects);
  font-size: 60px;
  text-transform: uppercase;
  letter-spacing: 8px;
  line-height: 1.1;
  margin-top: -4px;
}

@media (max-width: 600px) {
  .tagline-line1 { font-size: 14px; letter-spacing: 2px; }
  .tagline-line2 { font-size: 32px; letter-spacing: 4px; }
}

@keyframes taglineGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); }
  50%      { filter: drop-shadow(0 0 20px rgba(157,78,221,0.5)); }
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  text-align: center;
  font-family: var(--font-montserrat);
  font-size: calc(0.85rem + 5px);
  color: #9d4edd;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 18px;
  position: relative;
  z-index: 10;
}

.social-proof .fire-icon {
  filter: brightness(1.6) saturate(1.3);
}

/* ===== INPUT BOX / OBSERVATORY ===== */
.input-box {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 900px;
  margin: 0 auto 30px;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 30px;
  padding: 25px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 0 50px rgba(157,78,221,0.2), inset 0 0 30px rgba(0,245,212,0.05);
  transition: all 0.4s ease;
}

.input-box::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  border-radius: 4px;
}

.input-box.awake {
  box-shadow: 0 0 60px rgba(157,78,221,0.4), inset 0 0 40px rgba(0,245,212,0.1);
  border-color: var(--selected-color, var(--glass-border));
}

.input-box.awake::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--selected-color, var(--neon-purple)), var(--neon-pink)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderShine 3s linear infinite;
  pointer-events: none;
}

@keyframes borderShine {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ===== ICON GRID ===== */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .icon-grid { grid-template-columns: repeat(4, 1fr); }
}

.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.icon-box svg {
  width: 28px;
  height: 28px;
  fill: var(--icon-color, white);
  filter: drop-shadow(0 0 5px var(--icon-color, white));
  transition: all 0.3s ease;
}

.icon-box .icon-label {
  font-size: 0.6rem;
  font-family: var(--font-montserrat);
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1;
}

.icon-box:hover {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.icon-box.selected {
  border-color: var(--icon-color, white);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 25px var(--icon-color, white);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 25px var(--icon-color, white); }
  50%      { box-shadow: 0 0 40px var(--icon-color, white); }
}

.icon-box.selected svg {
  filter: drop-shadow(0 0 10px var(--icon-color, white));
}

.icon-box.selected .icon-label {
  color: #fff;
}

/* ===== TEXT INPUT ===== */
.text-input-area {
  position: relative;
  margin-bottom: 15px;
}

.text-input-area textarea {
  width: 100%;
  min-height: 90px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 15px;
  color: white;
  font-family: var(--font-montserrat);
  font-size: 14px;
  resize: none;
  outline: none;
  transition: all 0.3s;
}

.text-input-area textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0,245,212,0.2);
}

.text-input-area textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.char-counter {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.75rem;
}

.char-counter-gray  { color: rgba(255,255,255,0.4); }
.char-counter-green { color: #00f5a0; }
.char-counter-yellow { color: #ffd700; }

/* ===== GLASS INPUT ===== */
.glass-input {
  flex: 1;
  min-width: 120px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 10px 15px;
  color: white;
  font-family: var(--font-montserrat);
  font-size: 13px;
  outline: none;
  transition: all 0.3s;
}

.glass-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0,245,212,0.2);
}

.glass-input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* ===== ACTION ROW ===== */
.action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

@media (max-width: 600px) {
  .action-row { flex-direction: column; }
}

/* ===== AUDIO BUTTON ===== */
.audio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.audio-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  animation: audioPulse 2s ease-in-out infinite;
}

@keyframes audioPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); }
  50%      { box-shadow: 0 0 25px rgba(0,245,212,0.4); border-color: rgba(0,245,212,0.6); }
}

.audio-btn .ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.3);
  animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.audio-btn .star-shape {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 5px white);
}

.audio-btn .timer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--neon-pink) 0deg, transparent 0deg);
  opacity: 0;
  transition: opacity 0.2s;
}

.audio-btn.recording .timer-ring { opacity: 1; }

.audio-btn.recording {
  animation: none;
  border-color: var(--neon-pink);
  box-shadow: 0 0 30px rgba(255,110,199,0.5);
}

.audio-btn.recording .star-shape {
  animation: starBeat 0.5s ease-in-out infinite;
}

@keyframes starBeat {
  0%, 100% { filter: drop-shadow(0 0 5px white); }
  50%      { filter: drop-shadow(0 0 15px var(--neon-pink)); }
}

.audio-label {
  font-size: 11px;
  font-family: var(--font-montserrat);
  color: rgba(255,255,255,0.7);
  text-align: center;
  letter-spacing: 0.5px;
}

.waveform-container {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.waveform-bar {
  display: inline-block;
  width: 3px;
  background: var(--neon-pink);
  border-radius: 2px;
  animation: waveform 0.8s ease-in-out infinite;
}

@keyframes waveform {
  0%, 100% { height: 8px; }
  50%      { height: 24px; }
}

.audio-captured-msg {
  font-size: 12px;
  margin-top: 8px;
  color: #00f5a0;
  font-family: var(--font-montserrat);
}

/* ===== SUBMIT / CTA BUTTON ===== */
.submit-btn {
  position: relative;
  padding: 16px 48px;
  min-width: 280px;
  background: linear-gradient(135deg, #ff6ec7, #9d4edd);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 30px;
  color: white;
  font-family: var(--font-architects), var(--font-montserrat);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
  animation: magneticFloat 2s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(255,110,199,0.6), 0 0 80px rgba(157,78,221,0.4), inset 0 0 20px rgba(255,255,255,0.2);
  filter: brightness(1.15);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
  filter: grayscale(0.5) brightness(0.7);
  box-shadow: none;
}

.submit-btn:not(:disabled):hover {
  box-shadow: 0 0 60px rgba(255,110,199,0.8), 0 0 100px rgba(157,78,221,0.6), inset 0 0 30px rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.7);
  filter: brightness(1.25);
  transform: translateY(-3px);
}

.submit-btn .shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmerSweep 1.2s ease-in-out infinite;
}

.submit-btn:disabled .shimmer { display: none; }

@keyframes shimmerSweep {
  0%   { left: -100%; }
  100% { left: 100%; }
}

@keyframes magneticFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* ===== SECRET TOGGLE ===== */
.secret-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  font-family: var(--font-montserrat);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}

.secret-toggle.active {
  border-color: rgba(255,110,199,0.6);
  background: rgba(255,110,199,0.15);
  color: #ff6ec7;
  box-shadow: 0 0 15px rgba(255,110,199,0.2);
}

/* ===== MODE TOGGLE ===== */
.mode-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 15px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  font-family: var(--font-montserrat);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
}

.mode-btn.text-active {
  border-color: var(--neon-blue);
  background: rgba(0,245,212,0.15);
  color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0,245,212,0.2);
}

.mode-btn.audio-active {
  border-color: var(--neon-pink);
  background: rgba(255,110,199,0.15);
  color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255,110,199,0.2);
}

.mode-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ===== OPTIONAL FIELDS ROW ===== */
.optional-fields {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 25px;
  flex-wrap: wrap;
  max-width: 700px;
  padding: 0 20px;
}

.filter-dropdown {
  position: relative;
  flex: 1;
  min-width: 150px;
}

.filter-label {
  display: block;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 10px 15px;
  color: white;
  font-family: var(--font-montserrat);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
}

.filter-dropdown:hover .filter-label {
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.filter-dropdown.active .filter-label {
  border-color: var(--neon-blue);
  box-shadow: 0 0 25px rgba(0,245,212,0.3);
  animation: filterPulse 2s ease-in-out infinite;
}

@keyframes filterPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(0,245,212,0.3); }
  50%      { box-shadow: 0 0 35px rgba(0,245,212,0.5); }
}

.filter-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 5, 20, 0.98);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  max-height: 300px;
  overflow-y: auto;
}

.filter-dropdown.open .filter-options {
  display: flex;
}

.filter-option {
  padding: 8px 12px;
  border-radius: 8px;
  color: white;
  font-family: var(--font-montserrat);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.filter-option:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.filter-option.active {
  background: rgba(0,245,212,0.2);
  border-color: var(--neon-blue);
}

.filter-option svg {
  width: 16px;
  height: 16px;
  fill: var(--option-color, white);
  filter: drop-shadow(0 0 3px var(--option-color, white));
  flex-shrink: 0;
}

/* ===== DATE SELECTOR ===== */
.date-selector {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -15px auto 25px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.date-selector select {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 8px 12px;
  color: white;
  font-family: var(--font-montserrat);
  font-size: 13px;
  outline: none;
}

.date-selector select option {
  background: #0a0515;
  color: white;
}

.date-selector button {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  color: white;
  font-family: var(--font-montserrat);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.date-selector button:hover {
  filter: brightness(1.2);
}

/* ===== CLICK-OVERLAY ===== */
.click-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: transparent;
}

/* ===== WALL ===== */
.wall-heading {
  position: relative;
  z-index: 10;
  text-align: center;
  font-family: var(--font-architects), var(--font-montserrat);
  font-size: 1.8rem;
  margin: 60px 0 40px;
  color: white;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.wall-grid {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  padding: 0 40px 80px;
  margin: 0 auto;
  column-count: 4;
  column-gap: 20px;
}

@media (max-width: 1400px) { .wall-grid { column-count: 3; } }
@media (max-width: 900px)  { .wall-grid { column-count: 2; padding: 0 20px 60px; } }
@media (max-width: 500px)  { .wall-grid { column-count: 1; } }

/* ===== POST CARDS ===== */
.post-card {
  position: relative;
  background: rgba(20,10,40,0.85);
  border: 2px solid var(--card-color, rgba(255,255,255,0.3));
  border-radius: 20px;
  padding: 20px;
  break-inside: avoid;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: visible;
  isolation: isolate;
  color: #fff;
  box-shadow: 0 0 20px color-mix(in srgb, var(--card-color, rgba(157,78,221,0.3)) 20%, transparent);
}

.post-card:hover {
  box-shadow: 0 10px 40px color-mix(in srgb, var(--card-color, rgba(157,78,221,0.3)) 30%, transparent);
  transform: translateY(-3px);
}

.post-card .top-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--card-color, #9d4edd), transparent);
  box-shadow: 0 0 20px var(--card-color, #9d4edd);
}

.post-card .icon-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.7);
  border: 2px solid var(--card-color, #9d4edd);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--card-color, #9d4edd);
  z-index: 2;
}

.post-card .icon-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--card-color, #9d4edd);
  filter: drop-shadow(0 0 5px var(--card-color, #9d4edd));
}

.post-card .card-content {
  margin-top: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card .card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  font-family: var(--font-montserrat);
  font-weight: 400;
  word-wrap: break-word;
}

.post-card .card-meta {
  font-size: 11px;
  font-family: var(--font-montserrat);
  color: rgba(255,255,255,0.5);
  margin-top: auto;
}

/* ===== AUDIO CARD ===== */
.post-card.audio-post {
  border-color: rgba(255,255,255,0.2);
  background: rgba(20,10,40,0.85);
  min-height: 220px;
  justify-content: center;
  align-items: center;
  padding: 15px;
  padding-top: 25px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.post-card.audio-post:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.4);
}

.audio-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.play-btn {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  position: relative;
}

.play-btn:hover {
  background: rgba(255,255,255,0.2);
  filter: drop-shadow(0 0 20px var(--card-color, rgba(255,255,255,0.6)));
  transform: scale(1.08);
}

.play-icon {
  width: 48px;
  height: 48px;
  fill: white;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
  margin-left: 4px;
}

.twinkle-glow {
  animation: twinkleGlow 2s ease-in-out infinite;
}

@keyframes twinkleGlow {
  0%, 100% { filter: drop-shadow(0 0 5px white); }
  50%      { filter: drop-shadow(0 0 12px var(--card-color, #9d4edd)); }
}

.audio-duration {
  font-size: 11px;
  font-family: var(--font-montserrat);
  color: rgba(255,255,255,0.5);
}

.post-card.audio-post.playing {
  border-color: var(--neon-blue);
  box-shadow: 0 0 30px rgba(0,245,212,0.4);
}

.post-card.audio-post.playing .play-btn {
  background: rgba(0,245,212,0.15);
  box-shadow: 0 0 25px rgba(0,245,212,0.3);
}

.post-card.audio-post.playing .play-icon {
  fill: var(--neon-blue);
  filter: drop-shadow(0 0 15px var(--neon-blue));
  animation: playPulse 0.4s ease-in-out infinite;
}

@keyframes playPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

.audio-meta {
  text-align: center;
  font-size: 10px;
  font-family: var(--font-montserrat);
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
  order: -1;
}

/* ===== BILLBOARD CARD ===== */
.billboard-card {
  background: linear-gradient(135deg, #ff0040, #4000ff, #8000ff, #0040ff, #ff0040);
  background-size: 400% 400%;
  animation: billboardDrift 15s ease infinite;
  border: 1px solid rgba(255,255,255,0.5);
  border-left: 3px solid rgba(255,255,255,0.5);
}

.billboard-card .top-line { display: none; }

.billboard-card:hover {
  transform: rotate(-0.5deg);
}

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

.billcard-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  border-radius: 20px;
}

.billcard-content {
  position: relative;
  z-index: 10;
}

.billcard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  margin-top: 4px;
}

.billcard-header .emotion-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.billcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== SECRET CARD ===== */
.secret-blur {
  filter: blur(8px) grayscale(60%);
  user-select: none;
  pointer-events: none;
}

.secret-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 20px;
  z-index: 5;
  color: white;
  font-family: var(--font-montserrat);
  font-size: 0.9rem;
}

.secret-overlay .reveal-btn {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(157,78,221,0.4);
  border: 1px solid rgba(157,78,221,0.6);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.secret-overlay .reveal-btn:hover {
  background: rgba(157,78,221,0.6);
}

.secret-overlay .share-link-btn {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.secret-overlay .share-link-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* ===== REACTIONS ===== */
.reactions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.audio-reactions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.reaction {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.reaction svg {
  width: 16px;
  height: 16px;
  fill: white;
  filter: drop-shadow(0 0 3px white);
  animation: reactionTwinkle 3s ease-in-out infinite;
  transition: all 0.2s;
}

.reaction:hover svg {
  filter: drop-shadow(0 0 10px white);
}

@keyframes reactionTwinkle {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

.reaction .count {
  font-size: 10px;
  font-family: var(--font-montserrat);
  color: rgba(255,255,255,0.6);
}

/* ===== SHARE BUTTON ===== */
.share-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.share-btn:hover {
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.share-btn svg {
  width: 14px;
  height: 14px;
  fill: white;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.4), transparent);
  margin: 0 0 16px 0;
}

/* ===== TOAST ===== */
.fp-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0,0,0,0.9);
  border: 1px solid var(--neon-blue);
  border-radius: 10px;
  padding: 12px 24px;
  color: white;
  font-family: var(--font-montserrat);
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.fp-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== FOOTER ===== */
.fp-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 16px;
  margin-top: auto;
  border-top: 1px solid rgba(157,78,221,0.2);
}

.fp-footer p {
  font-family: var(--font-montserrat);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ===== LOADING / EMPTY STATE ===== */
.wall-state {
  text-align: center;
  padding: 48px 0;
  position: relative;
  z-index: 10;
}

.wall-state p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-montserrat);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  position: relative;
  z-index: 10;
  flex: 1;
  padding: 0 16px 32px;
  width: 100%;
}

/* ===== SCROLLBAR ===== */
.filter-options::-webkit-scrollbar {
  width: 6px;
}

.filter-options::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
  background: rgba(157,78,221,0.4);
  border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
  background: rgba(157,78,221,0.6);
}
/* ========== SUBMIT HELPER MESSAGE ========== */
.submit-helper {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 8px;
  min-height: 20px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-5px);
}

.submit-helper.visible {
  opacity: 1;
  transform: translateY(0);
}

.submit-helper.warning {
  color: #ffd700;
  font-weight: 600;
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ========== STEP LABEL & HELPER MESSAGES ========== */

.emotion-step-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-align: center;
}

.emotion-step-label .step-num {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a6d, #b967ff);
  color: white;
  font-size: 11px;
  font-weight: bold;
  margin-right: 8px;
  vertical-align: middle;
}

/* Submit button helper message */
.submit-helper-msg {
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  min-height: 20px;
  transition: opacity 0.3s ease;
}

.submit-helper-msg.info {
  color: rgba(255, 255, 255, 0.5);
}

.submit-helper-msg.warning {
  color: #ffd700;
  font-weight: 600;
  animation: pulse-warning 1.5s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}