/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #06060b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(129, 140, 248, 0.2);
  --text: #e4e4e7;
  --text-muted: #71717a;
  --accent-1: #3b82f6; /* Blue shade 1 */
  --accent-2: #2563eb; /* Blue shade 2 */
  --accent-3: #1d4ed8; /* Blue shade 3 */
  --glow: rgba(59, 130, 246, 0.25); /* Blue glow */
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  touch-action: pan-x pan-y;
}

@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
    position: relative;
    height: auto;
    min-height: 100vh;
  }
}

body {
  font-family: 'Inter', 'Noto Sans Sinhala', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

/* ── Particle Canvas ──────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── 3D Floating Orbs ─────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
  bottom: -10%;
  right: -5%;
  animation-delay: -3s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.2), transparent 70%);
  top: 50%;
  left: 60%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(30px, -25px, 50px) scale(1.05); }
  66%      { transform: translate3d(-20px, 20px, -30px) scale(0.95); }
}

/* ── Flowing Comments Ticker ──────────────────────── */
.comments-flow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.flow-bubble {
  position: absolute;
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0;
  animation: floatBubble linear forwards;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  transform-style: preserve-3d;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(12px)) {
  .flow-bubble {
    background: rgba(20, 20, 30, 0.95);
  }
}

.flow-bubble .bubble-name {
  color: var(--accent-1);
  font-weight: 600;
  margin-right: 6px;
}

@keyframes floatBubble {
  0%   { transform: translateX(110vw) translateZ(20px) rotateY(-5deg); opacity: 0; }
  5%   { opacity: 0.7; }
  50%  { transform: translateX(50vw) translateZ(40px) rotateY(0deg); }
  95%  { opacity: 0.7; }
  100% { transform: translateX(-120%) translateZ(20px) rotateY(5deg); opacity: 0; }
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 720px;
  padding: 40px 24px;
  transform-style: preserve-3d;
}

.hero-card {
  background: linear-gradient(
    135deg,
    rgba(15, 15, 25, 0.85) 0%,
    rgba(20, 20, 35, 0.9) 50%,
    rgba(15, 15, 25, 0.85) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 50px 40px 40px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 60px -20px rgba(0, 0, 0, 0.5),
    0 0 40px -10px var(--glow);
  position: relative;
  overflow: hidden;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
  .hero-card {
    background: linear-gradient(
      135deg,
      rgba(15, 15, 25, 0.95) 0%,
      rgba(20, 20, 35, 0.98) 50%,
      rgba(15, 15, 25, 0.95) 100%
    );
  }
}

/* Glass shine layer */
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-card:hover::before {
  opacity: 1;
}

/* Edge glow on hover */
.hero-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 29px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.hero-card:hover::after {
  opacity: 0.15;
}

/* ── Logo Image with Effects ──────────────────────── */
.logo-container {
  margin-bottom: 30px;
  transform: translateZ(40px);
}

.logo-image {
  width: 470px;
  height: 90px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(59, 130, 246, 0.3))
          drop-shadow(0 0 60px rgba(147, 197, 253, 0.2));
  animation: logoFloat 4s ease-in-out infinite, logoGlow 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.1) rotate(5deg);
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 8px 32px rgba(59, 130, 246, 0.3))
            drop-shadow(0 0 60px rgba(147, 197, 253, 0.2));
  }
  50% {
    filter: drop-shadow(0 8px 40px rgba(59, 130, 246, 0.5))
            drop-shadow(0 0 80px rgba(147, 197, 253, 0.4));
  }
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  transform: translateZ(20px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  font-family: 'Inter', 'Noto Sans Sinhala', system-ui, sans-serif;
}

h3 {
  font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 32px;
  transform: translateZ(10px);
  font-weight: 400;
}

/* ── Comment Form ─────────────────────────────────── */
.comment-form {
  margin-bottom: 16px;
  transform: translateZ(15px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-field, .textarea-field {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', 'Noto Sans Sinhala', system-ui, sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  width: 100%;
}

.input-field::placeholder, .textarea-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus, .textarea-field:focus {
  border-color: var(--accent-1);
  box-shadow:
    0 4px 20px -10px rgba(0, 0, 0, 0.4),
    0 0 25px -5px var(--glow),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.textarea-field {
  resize: vertical;
  min-height: 80px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px -3px var(--glow);
  width: 100%;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px -4px var(--glow);
}

.submit-button:active:not(:disabled) {
  transform: scale(0.98);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.comment-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  transform: translateZ(5px);
}

.comment-count span {
  color: var(--accent-2);
  font-weight: 700;
}

/* ── Animated Chat Demo ───────────────────────────── */
.chat-demo {
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  transform: translateZ(20px);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}

.chat-bubble {
  padding: 12px 18px;
  border-radius: 18px;
  max-width: 80%;
  animation: bubbleSlideIn 0.4s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
  word-wrap: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px -3px var(--glow);
}

.chat-bubble.ai {
  align-self: flex-start;
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-bottom-left-radius: 4px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
  .chat-bubble.ai {
    background: rgba(20, 20, 30, 0.95);
  }
}

.chat-bubble .typing-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.chat-bubble .typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
  animation: typingDot 1.4s infinite;
}

.chat-bubble .typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-bubble .typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bubbleSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* ── Floating Comment Cards ───────────────────────── */
.floating-comments {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
  perspective: 800px;
}

.float-card {
  position: absolute;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 260px;
  opacity: 0;
  animation: floatCard3D 14s ease-in-out forwards;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px -8px var(--glow),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform-style: preserve-3d;
}

.float-card .fc-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
}

.float-card .fc-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@keyframes floatCard3D {
  0%   { opacity: 0; transform: translateY(40px) translateZ(-50px) rotateX(10deg) scale(0.9); }
  10%  { opacity: 0.55; transform: translateY(0) translateZ(0) rotateX(0deg) scale(1); }
  50%  { transform: translateY(-10px) translateZ(30px) rotateX(-2deg) rotateY(3deg) scale(1.02); }
  85%  { opacity: 0.55; transform: translateY(-25px) translateZ(10px) rotateX(2deg) scale(1); }
  100% { opacity: 0; transform: translateY(-60px) translateZ(-40px) rotateX(-8deg) scale(0.9); }
}

/* ── Toast ────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 8px 30px -5px var(--glow);
}

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

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Logo */
  .logo-image {
    width: 90%;
    max-width: 350px;
    height: auto;
  }

  /* Hero Card */
  .hero-card {
    padding: 30px 20px 25px;
    border-radius: 20px;
    margin: 20px;
  }

  /* Heading */
  h1 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 10px;
  }

  h3 {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  /* Chat Demo */
  .chat-demo {
    margin-top: 25px;
  }

  .chat-bubble {
    max-width: 85%;
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  /* Flowing comment bubbles */
  .flow-bubble {
    padding: 8px 14px;
    font-size: 11px;
  }

  .flow-bubble .bubble-name {
    font-size: 11px;
  }

  /* FAB Buttons */
  .fab-container {
    bottom: 20px;
    gap: 10px;
  }

  .fab-button {
    width: 50px;
    height: 50px;
  }

  .fab-comment svg, .fab-like svg {
    width: 22px;
    height: 22px;
  }

  .fab-like-count {
    font-size: 10px;
    min-width: 20px;
    height: 20px;
  }

  /* Modal */
  .modal-content {
    padding: 25px 20px;
    width: 95%;
    border-radius: 20px;
  }

  .modal-content h2 {
    font-size: 1.4rem;
  }

  .input-field, .textarea-field {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  /* Confetti */
  .confetti {
    width: 8px;
    height: 8px;
  }

  .confetti.ribbon {
    width: 6px;
    height: 16px;
  }

  /* Hide orbs on mobile */
  .orb { display: none; }
}

@media (max-width: 480px) {
  /* Smaller phones */
  .logo-image {
    width: 95%;
    max-width: 280px;
  }

  .hero-card {
    padding: 25px 15px 20px;
    margin: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1rem;
    margin-top: -20px !important;
  }

  .chat-bubble {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .chat-messages {
    min-height: 150px;
  }

  .fab-container {
    gap: 8px;
  }

  .fab-button {
    width: 45px;
    height: 45px;
  }

  /* Comment indicator on mobile */
  .comment-indicator {
    bottom: 55px;
  }

  .indicator-text {
    font-size: 10px;
    padding: 5px 10px;
  }

  .indicator-arrow {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  /* Very small phones */
  .logo-image {
    width: 100%;
    max-width: 240px;
  }

  .hero-card {
    padding: 20px 12px;
  }

  .chat-bubble {
    font-size: 0.75rem;
  }
}

/* -- Floating Action Buttons Container -------------- */
.fab-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 1000;
}

.fab-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  pointer-events: auto;
  position: relative;
}

.fab-comment {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
}

.fab-comment:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px -5px var(--glow), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.fab-comment svg {
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.fab-like {
  background: linear-gradient(135deg, #ff1744, #ff5252);
  color: #fff;
  box-shadow: 0 8px 25px -4px rgba(255, 23, 68, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fab-like:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px -5px rgba(255, 23, 68, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.fab-like.liked {
  animation: heartPulse 0.6s ease-out;
}

.fab-like svg {
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.fab-like-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #fff;
  color: #ff1744;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 50%;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.fab-button:active {
  transform: scale(0.95);
}

/* ── Comment Here Indicator ──────────────────────── */
.comment-indicator {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  animation: indicatorBounce 2s ease-in-out infinite;
}

.indicator-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  animation: indicatorPulse 2s ease-in-out infinite;
}

.indicator-arrow {
  font-size: 20px;
  animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes indicatorBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
    opacity: 0.9;
  }
}

@keyframes indicatorPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
  }
}

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

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

/* -- Comment Modal ---------------------------------- */
.comment-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 2000;
}

.comment-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(
    135deg,
    rgba(20, 20, 30, 0.95) 0%,
    rgba(30, 30, 45, 0.98) 50%,
    rgba(20, 20, 30, 0.95) 100%
  );
  border: 2px solid var(--accent-1);
  border-radius: 28px;
  padding: 40px;
  position: relative;
  max-width: 500px;
  width: 90%;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.3),
    0 20px 60px -20px rgba(0, 0, 0, 0.9),
    0 0 60px -10px var(--glow);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.comment-modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto; /* Allow interaction when shown */
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-1);
}

.modal-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Adjust form within modal for better fit */
.comment-modal .comment-form {
  margin-top: 20px;
  transform: none;
}

.comment-modal .comment-count {
  margin-top: 20px;
  text-align: center;
}

/* ── Like Button in Bubbles ────────────────────────── */
.bubble-like {
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bubble-like:hover:not(.already-liked) {
  background: rgba(255, 100, 100, 0.3);
  border-color: rgba(255, 100, 100, 0.5);
  transform: scale(1.1);
}

.bubble-like:active:not(.already-liked) {
  transform: scale(0.95);
}

.bubble-like.already-liked {
  background: rgba(255, 50, 100, 0.4);
  border-color: rgba(255, 50, 100, 0.6);
  cursor: not-allowed;
  opacity: 0.7;
}

.like-count {
  font-weight: 600;
}

/* ── Flying Hearts Animation ───────────────────────── */
.flying-heart {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  z-index: 9999;
  animation: flyHeart 2s ease-out forwards;
}

@keyframes flyHeart {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translate(var(--random-x), -100px) scale(1.5) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--random-x), -250px) scale(0.5) rotate(360deg);
    opacity: 0;
  }
}

/* ── Party Confetti Rain Animation ────────────────── */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5000;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  background-color: #ff0080;
  animation: confettiFall linear forwards;
  opacity: 0;
}

.confetti.ribbon {
  width: 8px;
  height: 20px;
  border-radius: 2px;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotateZ(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotateZ(720deg);
    opacity: 0.8;
  }
}


/* Responsive adjustments for modal */
@media (max-width: 600px) {
  .modal-content {
    padding: 30px;
    border-radius: 20px;
  }
  .fab-container {
    bottom: 20px;
    gap: 12px;
  }
  .fab-button {
    width: 56px;
    height: 56px;
  }
  .fab-comment svg, .fab-like svg {
    width: 24px;
    height: 24px;
  }
  .fab-like-count {
    font-size: 11px;
    min-width: 22px;
    height: 22px;
    padding: 2px 6px;
  }
}
