/* Shared SSR Styles for Rantr - The Void */

/* CSS Variables - The Void Color System */
:root {
  --void-bg: #0a0a0a;
  --void-surface: #1a1a1a;
  --void-text: #e0e0e0;
    --void-text-dim: #b3b3b3;
  --void-accent: #d4a574;
  --void-accent-dim: #8a6f4f;
  --void-accent-bright: #f4c594;
}

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

/* Body Layout - The Void */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--void-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
    padding: 12px;
  color: var(--void-text);
}

/* Container */
.container {
  max-width: 600px;
  width: 100%;
}

/* Card - Minimal surface in the void */
.card {
  background: transparent;
  border-radius: 0;
    padding: 32px 20px;
    box-shadow: none;
}

@media (min-width: 640px) {
    body {
        padding: 20px;
    }

    .card {
        padding: 60px 40px;
    }
}

/* Typography - Light and spacious */
h1 {
    font-size: 1.8rem;
  color: var(--void-text);
  font-weight: 300;
  letter-spacing: 0.3em;
    margin-bottom: 32px;
  text-align: center;
  text-transform: lowercase;
}

.subtitle {
  text-align: center;
  color: var(--void-text-dim);
    margin-bottom: 32px;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

@media (min-width: 640px) {
    h1 {
        font-size: 2.5rem;
        margin-bottom: 48px;
    }

    .subtitle {
        margin-bottom: 48px;
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* Vote Count - Ember glow effect */
.vote-count {
  font-size: 2rem;
  font-weight: 300;
  color: var(--void-accent);
  margin-bottom: 32px;
  text-align: center;
  text-shadow: 0 0 40px rgba(212, 165, 116, 0.4);
  animation: ember-pulse 3s ease-in-out infinite;
}

@keyframes ember-pulse {
  0%, 100% {
    text-shadow: 0 0 40px rgba(212, 165, 116, 0.4);
  }
  50% {
    text-shadow: 0 0 60px rgba(212, 165, 116, 0.6);
  }
}

/* Rant Content - Subtle surface */
.rant-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 20px;
  background: var(--void-surface);
  border-radius: 4px;
  border-left: 2px solid var(--void-accent-dim);
  color: var(--void-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-weight: 300;
}

@media (min-width: 640px) {
    .rant-content {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 48px;
        padding: 32px;
    }
}

/* Buttons - Outlined style with glow */
.btn {
  width: 100%;
  padding: 14px 48px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  border: 1px solid var(--void-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--void-accent);
    position: relative;
}

.btn::before {
    content: attr(data-hover-text);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--void-text-dim);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    pointer-events: none;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
  background: transparent;
  color: var(--void-accent);
  border: 1px solid var(--void-accent);
}

.btn-primary:hover:not(:disabled) {
  background: rgba(212, 165, 116, 0.1);
  box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
}

.btn-primary:active:not(:disabled) {
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.4);
    background: rgba(212, 165, 116, 0.15);
    transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--void-text-dim);
  color: var(--void-text-dim);
}

/* Form Elements - Dark theme */
.textarea-wrapper {
    position: relative;
    margin-bottom: 24px;
}

textarea {
  width: 100%;
    padding: 16px;
    padding-bottom: 40px; /* Space for counter */
    font-size: 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  resize: vertical;
    min-height: 150px;
  font-family: inherit;
  background: var(--void-surface);
  color: var(--void-text);
    line-height: 1.6;
  font-weight: 300;
}

@media (min-width: 640px) {
    .textarea-wrapper {
        margin-bottom: 32px;
    }

    textarea {
        padding: 24px;
        padding-bottom: 48px;
        font-size: 1.1rem;
        min-height: 200px;
        line-height: 1.8;
    }
}

textarea::placeholder {
  color: var(--void-text-dim);
  opacity: 0.6;
}

textarea:focus {
  outline: none;
  border-color: var(--void-accent);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.1);
  caret-color: var(--void-accent);
}

/* Void collapse overlay */
.void-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.void-overlay.active {
    pointer-events: all;
}

.void-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--void-accent);
}

textarea.fade-out {
    animation: text-fade 0.8s ease-out forwards;
}

@keyframes text-fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Circle collapse animation - subtle */
@keyframes circle-collapse {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
        box-shadow: 0 0 0 rgba(212, 165, 116, 0);
    }
    30% {
        width: 120px;
        height: 120px;
        opacity: 0.3;
        box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
    }
    100% {
        width: 0;
        height: 0;
        opacity: 0;
        box-shadow: 0 0 0 rgba(212, 165, 116, 0);
    }
}

input[type="email"] {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  margin-bottom: 24px;
  background: var(--void-surface);
  color: var(--void-text);
  font-weight: 300;
}

input[type="email"]::placeholder {
  color: var(--void-text-dim);
  opacity: 0.6;
}

input:focus {
  outline: none;
  border-color: var(--void-accent);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.1);
  caret-color: var(--void-accent);
}

.char-count-overlay {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.75rem;
  color: var(--void-text-dim);
  font-weight: 300;
  letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s, color 0.3s;
    pointer-events: none;
    background: var(--void-surface);
    padding: 4px 8px;
    border-radius: 3px;
}

/* Voice Input UI */
.voice-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--void-text-dim);
}

.voice-btn:hover {
    border-color: var(--void-accent-dim);
    color: var(--void-accent);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.1);
}

.voice-btn:active {
    background: rgba(212, 165, 116, 0.05);
    border-color: var(--void-accent);
    color: var(--void-accent);
}

.voice-btn.recording {
    border-color: var(--void-accent);
    color: var(--void-accent);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.3);
}

/* Recording Overlay */
.recording-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.98);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.recording-status {
    font-size: 1.2rem;
    color: var(--void-accent);
    font-weight: 300;
    letter-spacing: 0.2em;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 40px rgba(212, 165, 116, 0.6);
    }
}

.waveform {
    display: flex;
    gap: 4px;
    height: 40px;
    align-items: center;
}

.waveform span {
    color: var(--void-accent);
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.6;
    animation: wave-pulse 1.2s ease-in-out infinite;
}

.waveform span:nth-child(1) {
    animation-delay: 0s;
}

.waveform span:nth-child(2) {
    animation-delay: 0.1s;
}

.waveform span:nth-child(3) {
    animation-delay: 0.2s;
}

.waveform span:nth-child(4) {
    animation-delay: 0.3s;
}

.waveform span:nth-child(5) {
    animation-delay: 0.4s;
}

.waveform span:nth-child(6) {
    animation-delay: 0.5s;
}

.waveform span:nth-child(7) {
    animation-delay: 0.6s;
}

@keyframes wave-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.recording-hint {
    font-size: 0.8rem;
    color: var(--void-text-dim);
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Transcribing Overlay */
.transcribing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.98);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.transcribing-status {
    font-size: 1rem;
    color: var(--void-accent);
    font-weight: 300;
    letter-spacing: 0.15em;
}

.progress-dots {
    display: flex;
    gap: 8px;
}

.progress-dots span {
    color: var(--void-accent);
    font-size: 2rem;
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.progress-dots span:nth-child(1) {
    animation-delay: 0s;
}

.progress-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.progress-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Vote Progress - Ember building */
.vote-progress {
  margin: 32px 0;
  padding: 32px;
  background: var(--void-surface);
  border-radius: 4px;
  border-left: 2px solid var(--void-accent-dim);
}

.vote-progress h4 {
  color: var(--void-accent);
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-align: center;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar {
  height: 100%;
  background: var(--void-accent);
  border-radius: 2px;
  transition: width 0.5s ease-in-out;
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
}

.progress-text {
  text-align: center;
  font-weight: 300;
  color: var(--void-text);
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.vote-progress p {
  color: var(--void-text-dim);
  font-size: 0.85rem;
  text-align: center;
  margin: 8px 0;
  font-weight: 300;
}

.odds-tracker .current-votes {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--void-accent);
  margin: 12px 0;
  text-shadow: 0 0 30px rgba(212, 165, 116, 0.3);
}

/* Email Claim Section */
.email-claim {
    margin-top: 24px;
    padding: 20px;
  background: var(--void-surface);
  border-radius: 4px;
  border: 1px solid var(--void-accent-dim);
}

@media (min-width: 640px) {
    .email-claim {
        margin-top: 32px;
        padding: 32px;
    }
}

.email-claim h3 {
  color: var(--void-accent);
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-align: center;
}

.email-claim p {
  color: var(--void-text-dim);
  margin-bottom: 20px;
  font-weight: 300;
  text-align: center;
  font-size: 0.9rem;
}

.email-claim input {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  margin-bottom: 16px;
  background: var(--void-bg);
  color: var(--void-text);
}

.email-claim .btn-secondary {
  background: transparent;
  color: var(--void-accent);
  border: 1px solid var(--void-accent);
}

.email-claim .skip-btn {
  background: transparent;
  color: var(--void-text-dim);
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 8px;
  font-size: 0.85rem;
  display: block;
  margin: 16px auto 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.email-claim .skip-btn:hover {
  color: var(--void-text);
}

/* Owner Badge */
.owner-badge {
  background: transparent;
  color: var(--void-accent);
  border: 1px solid var(--void-accent);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 16px;
  text-transform: lowercase;
}

/* Status Badge */
.status-badge {
  background: transparent;
  color: var(--void-accent-dim);
  border: 1px solid var(--void-accent-dim);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 32px;
  text-transform: lowercase;
}

.status-badge.building {
  background: transparent;
  color: var(--void-accent);
  border-color: var(--void-accent);
  box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
}

.status-badge.launched {
  background: transparent;
  color: var(--void-accent-bright);
  border-color: var(--void-accent-bright);
  box-shadow: 0 0 40px rgba(244, 197, 148, 0.3);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
      margin-bottom: 32px;
  }
}

.stat {
  text-align: center;
    padding: 16px 8px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  background: var(--void-surface);
}

@media (min-width: 640px) {
    .stat {
        padding: 24px 8px;
    }
}

.stat-value {
    font-size: 1.5rem;
  font-weight: 300;
  color: var(--void-accent);
  text-shadow: 0 0 30px rgba(212, 165, 116, 0.3);
}

@media (min-width: 640px) {
    .stat-value {
        font-size: 1.8rem;
    }
}

.stat-label {
    font-size: 0.7rem;
  color: var(--void-text-dim);
    margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-weight: 300;
}

@media (min-width: 640px) {
    .stat-label {
        font-size: 0.75rem;
        margin-top: 8px;
    }
}

/* Solution Link */
.solution-link {
  padding: 32px;
  background: var(--void-surface);
  color: var(--void-text);
  border: 1px solid var(--void-accent);
  border-radius: 4px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
}

.solution-link h3 {
  margin-bottom: 16px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--void-accent);
}

.solution-link a {
  color: var(--void-accent-bright);
  font-weight: 300;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--void-accent-bright);
  letter-spacing: 0.05em;
}

/* Share Public Section */
.share-public {
  text-align: center;
  padding: 24px;
  background: var(--void-surface);
  border-radius: 4px;
  margin-bottom: 24px;
  border: 1px solid #2a2a2a;
}

.share-public p {
  margin-bottom: 16px;
  color: var(--void-text-dim);
  font-weight: 300;
  font-size: 0.9rem;
}

.share-buttons-owner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .share-buttons-owner {
    grid-template-columns: 1fr;
  }
}

.btn-share-owner {
  padding: 12px;
  border: 1px solid #2a2a2a;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  color: var(--void-text);
  text-transform: lowercase;
}

.btn-copy-owner {
  color: var(--void-accent);
  border-color: var(--void-accent-dim);
}

.btn-copy-owner:hover {
  background: rgba(212, 165, 116, 0.1);
  border-color: var(--void-accent);
}

.btn-twitter-owner {
  color: #7bb4d9;
  border-color: #4a6f8a;
}

.btn-twitter-owner:hover {
  background: rgba(123, 180, 217, 0.1);
  border-color: #7bb4d9;
}

.btn-whatsapp-owner {
  color: #6db88a;
  border-color: #4a7a5e;
}

.btn-whatsapp-owner:hover {
  background: rgba(109, 184, 138, 0.1);
  border-color: #6db88a;
}

.btn-linkedin-owner {
  color: #5a9bb8;
  border-color: #3d6778;
}

.btn-linkedin-owner:hover {
  background: rgba(90, 155, 184, 0.1);
  border-color: #5a9bb8;
}

.btn-reddit-owner {
  color: #d98a6f;
  border-color: #8a5c4a;
}

.btn-reddit-owner:hover {
  background: rgba(217, 138, 111, 0.1);
  border-color: #d98a6f;
}

.btn-email-owner {
  color: #c97a71;
  border-color: #8a524a;
}

.btn-email-owner:hover {
  background: rgba(201, 122, 113, 0.1);
  border-color: #c97a71;
}

.btn-native-share {
  background: transparent;
  color: var(--void-accent);
  border: 1px solid var(--void-accent);
  font-weight: 400;
  grid-column: 1 / -1;
  letter-spacing: 0.1em;
}

.btn-native-share:hover {
  background: rgba(212, 165, 116, 0.1);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
}

/* First Time Banner */
.first-time-banner {
  background: var(--void-surface);
  border: 1px solid var(--void-accent-dim);
  border-radius: 4px;
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    display: none;
}

@media (min-width: 640px) {
    .first-time-banner {
        padding: 32px;
        margin-bottom: 32px;
    }
}

.first-time-banner.show {
  display: block;
}

.banner-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.banner-text {
  flex: 1;
}

.first-time-banner h4 {
  color: var(--void-accent);
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.first-time-banner p {
  color: var(--void-text-dim);
  margin: 0 0 16px 0;
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
}

.banner-url {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--void-accent);
  word-break: break-all;
  padding: 12px;
  background: var(--void-bg);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  margin-bottom: 16px;
}

.banner-copy-btn {
  background: transparent;
  color: var(--void-accent);
  border: 1px solid var(--void-accent);
    padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 300;
  font-size: 0.85rem;
    letter-spacing: 0.05em;
  text-transform: lowercase;
  width: 100%;
  transition: all 0.3s;
}

.banner-copy-btn:hover {
  background: rgba(212, 165, 116, 0.1);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
}

.banner-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  color: var(--void-text-dim);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px 8px;
  font-weight: 300;
  opacity: 0.6;
}

.banner-close:hover {
  color: var(--void-text);
  opacity: 1;
}

/* Footer */
.footer {
    margin-top: 32px;
  text-align: center;
    font-size: 0.8rem;
  color: var(--void-text-dim);
  font-weight: 300;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
    .footer {
        margin-top: 48px;
        font-size: 0.85rem;
    }
}

.footer a {
  color: var(--void-accent);
  text-decoration: none;
  font-weight: 300;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.footer a:hover {
  border-bottom-color: var(--void-accent);
}

/* Landing Page Specific */
.share-card {
  display: none;
}

.share-card.show {
  display: block;
}

.success-header {
  text-align: center;
    margin-bottom: 32px;
}

.success-header h2 {
    font-size: 1.2rem;
  color: var(--void-accent);
    margin-bottom: 12px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

.success-header p {
  color: var(--void-text-dim);
    font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
    .success-header {
        margin-bottom: 48px;
    }

    .success-header h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .success-header p {
        font-size: 0.95rem;
    }
}

.link-box {
    margin-bottom: 24px;
    padding: 20px;
  border-radius: 4px;
  border: 1px solid;
  background: var(--void-surface);
}

@media (min-width: 640px) {
    .link-box {
        margin-bottom: 32px;
        padding: 32px;
    }
}

.owner-box {
  border-color: var(--void-accent);
  background: var(--void-surface);
  box-shadow: 0 0 30px rgba(212, 165, 116, 0.15);
}

.share-box {
  border-color: var(--void-accent-dim);
  background: var(--void-surface);
}

.box-header {
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  border: 1px solid;
  background: transparent;
  text-transform: lowercase;
}

.share-badge {
  background: transparent;
  color: var(--void-accent-dim);
  border-color: var(--void-accent-dim);
}

.box-header h3 {
  font-size: 1.1rem;
  color: var(--void-text);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.box-description {
  color: var(--void-text-dim);
  font-size: 0.85rem;
  margin-bottom: 20px;
  line-height: 1.7;
  font-weight: 300;
}

.url-display {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--void-accent);
  word-break: break-all;
  padding: 14px;
  background: var(--void-bg);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  margin-bottom: 16px;
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .share-buttons {
    grid-template-columns: 1fr;
  }
}

.btn-copy {
  width: 100%;
  padding: 12px;
  border: 1px solid #2a2a2a;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  text-transform: lowercase;
}

.btn-owner {
  color: var(--void-accent);
  border-color: var(--void-accent);
}

.btn-owner:hover {
  background: rgba(212, 165, 116, 0.1);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
}

.btn-share {
  color: var(--void-accent);
  border-color: var(--void-accent-dim);
}

.btn-share:hover {
  background: rgba(212, 165, 116, 0.1);
  border-color: var(--void-accent);
}

.btn-twitter {
  color: #7bb4d9;
  border-color: #4a6f8a;
}

.btn-twitter:hover {
  background: rgba(123, 180, 217, 0.1);
  border-color: #7bb4d9;
}

.btn-whatsapp {
  color: #6db88a;
  border-color: #4a7a5e;
}

.btn-whatsapp:hover {
  background: rgba(109, 184, 138, 0.1);
  border-color: #6db88a;
}

.btn-linkedin {
  color: #5a9bb8;
  border-color: #3d6778;
}

.btn-linkedin:hover {
  background: rgba(90, 155, 184, 0.1);
  border-color: #5a9bb8;
}

.btn-reddit {
  color: #d98a6f;
  border-color: #8a5c4a;
}

.btn-reddit:hover {
  background: rgba(217, 138, 111, 0.1);
  border-color: #d98a6f;
}

.btn-email {
  color: #c97a71;
  border-color: #8a524a;
}

.btn-email:hover {
  background: rgba(201, 122, 113, 0.1);
  border-color: #c97a71;
}

.btn-sms {
  color: #6db88a;
  border-color: #4a7a5e;
}

.btn-sms:hover {
  background: rgba(109, 184, 138, 0.1);
  border-color: #6db88a;
}

.btn-primary-share {
  background: transparent;
  color: var(--void-accent);
  border: 1px solid var(--void-accent);
  font-weight: 400;
  letter-spacing: 0.1em;
  grid-column: 1 / -1;
}

.btn-primary-share:hover {
  background: rgba(212, 165, 116, 0.1);
  box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
}

/* Payment Redirect Page */
.spinner {
  border: 2px solid #2a2a2a;
  border-top: 2px solid var(--void-accent);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

.fallback {
  margin-top: 32px;
  display: none;
}

.fallback.show {
  display: block;
}

.button {
  background: transparent;
  color: var(--void-accent);
  border: 1px solid var(--void-accent);
  padding: 12px 32px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  transition: all 0.3s;
}

.button:hover {
  background: rgba(212, 165, 116, 0.1);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
}

/* 404 Page */
.error-404 {
  text-align: center;
  color: var(--void-text);
}

.error-404 h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  color: var(--void-text);
  font-weight: 300;
  letter-spacing: 0.1em;
}

.error-404 p {
  color: var(--void-text-dim);
  margin-bottom: 32px;
  font-weight: 300;
}

.error-404 a {
  color: var(--void-accent);
  background: transparent;
  border: 1px solid var(--void-accent);
  padding: 12px 32px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  transition: all 0.3s;
}

.error-404 a:hover {
  background: rgba(212, 165, 116, 0.1);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
}

/* Waiting indicator - for "others are waiting" */
.waiting-indicator {
  text-align: center;
    margin: 32px 0 24px;
  color: var(--void-text-dim);
    font-size: 0.8rem;
  font-weight: 300;
    letter-spacing: 0.12em;
    opacity: 0.8;
    animation: ember-pulse 3s ease-in-out infinite;
}

.waiting-indicator .count {
    color: var(--void-accent);
    font-weight: 400;
    text-shadow: 0 0 30px rgba(212, 165, 116, 0.4);
}

@media (min-width: 640px) {
    .waiting-indicator {
        margin: 48px 0;
        font-size: 0.9rem;
        letter-spacing: 0.15em;
    }
}

/* Success message after submission */
.success-message {
    text-align: center;
    font-size: 1.5rem;
    color: var(--void-accent);
    font-weight: 300;
    letter-spacing: 0.2em;
    margin: 48px 0;
    opacity: 0;
    animation: fade-in 1s ease-in forwards;
}

.success-subtext {
    text-align: center;
    font-size: 0.9rem;
    color: var(--void-text-dim);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-top: 16px;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Privacy note subtle styling */
.privacy-note {
    font-size: 0.7rem;
    color: var(--void-text-dim);
    text-align: center;
    font-weight: 300;
    font-style: italic;
    opacity: 0.7;
    margin-top: 20px !important;
}

@media (min-width: 640px) {
    .privacy-note {
        font-size: 0.75rem;
    }
}

/* Cookie Consent Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--void-surface);
    border-top: 1px solid var(--void-border);
    padding: 20px;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-content p {
    margin: 0;
    color: var(--void-text-dim);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 600px;
}

.cookie-banner-content a {
    color: var(--void-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--void-accent-dim);
}

.cookie-banner-content button {
    flex-shrink: 0;
    padding: 10px 28px;
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: 100px;
    width: auto !important; /* Override btn width: 100% */
}

@media (max-width: 640px) {
    .cookie-banner-content {
        gap: 16px;
        max-width: 100%;
    }

    .cookie-banner-content p {
        font-size: 0.8125rem;
        max-width: none;
    }

    .cookie-banner-content button {
        padding: 10px 24px;
        font-size: 0.8125rem;
        min-width: 90px;
        width: auto !important;
    }
}

/* Legal Pages Styling */
.legal-content {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-content h1 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 8px;
    color: var(--void-text);
}

.legal-content h2 {
    font-size: 1rem;
    font-weight: 400;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--void-text);
}

.legal-content p {
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--void-text-dim);
}

.legal-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-content li {
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 8px;
    color: var(--void-text-dim);
}

.legal-content a {
    color: var(--void-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--void-accent-dim);
    transition: border-color 0.2s;
}

.legal-content a:hover {
    border-color: var(--void-accent);
}

@media (min-width: 640px) {
    .legal-content h1 {
        font-size: 1.75rem;
    }

    .legal-content h2 {
        font-size: 1.125rem;
        margin-top: 40px;
    }

    .legal-content p {
        font-size: 0.9375rem;
    }

    .legal-content li {
        font-size: 0.9375rem;
    }
}


/* Success Screen - New Hierarchy */

/* Main CTA: Secure Link (70% prominence) */
.secure-box {
    border-color: var(--void-accent);
    background: var(--void-surface);
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.2);
    margin-bottom: 32px;
    transition: all 0.6s ease;
}

.secure-box .box-header h3 {
    font-size: 1.2rem;
    color: var(--void-accent);
    margin: 0 0 16px 0;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-align: center;
}

.secure-box .box-description {
    color: var(--void-text-dim);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.7;
    font-weight: 300;
    text-align: center;
}

.secure-box input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    margin-bottom: 16px;
    background: var(--void-bg);
    color: var(--void-text);
    font-weight: 300;
}

.secure-box .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.manual-copy-section {
    margin-top: 24px;
    text-align: center;
}

.or-text {
    font-size: 0.75rem;
    color: var(--void-text-dim);
    margin-bottom: 12px;
    font-weight: 300;
    opacity: 0.6;
}

.link-copy-btn {
    background: transparent;
    border: none;
    color: var(--void-text-dim);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.link-copy-btn:hover {
    color: var(--void-accent);
}

/* Secondary CTA: Share (30% prominence) */
.share-box-secondary {
    border-color: #2a2a2a;
    background: transparent;
    opacity: 0.8;
    transition: all 0.6s ease;
}

.share-box-secondary .box-header h3 {
    font-size: 0.95rem;
    color: var(--void-text-dim);
    margin: 0 0 12px 0;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-align: center;
}

.share-box-secondary .box-description {
    color: var(--void-text-dim);
    font-size: 0.8rem;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 300;
    text-align: center;
    opacity: 0.8;
}

@media (min-width: 640px) {
    .secure-box {
        margin-bottom: 48px;
    }

    .secure-box .box-header h3 {
        font-size: 1.4rem;
    }

    .secure-box .box-description {
        font-size: 0.95rem;
    }

    .secure-box .btn-primary {
        padding: 18px;
        font-size: 1.05rem;
    }

    .share-box-secondary .box-header h3 {
        font-size: 1rem;
    }

    .share-box-secondary .box-description {
        font-size: 0.85rem;
    }
}

/* Owner Page - Conditional Highlighting */

/* Share public section - add top spacing */
.share-public {
    margin-top: 32px;
}

@media (min-width: 640px) {
    .share-public {
        margin-top: 48px;
    }
}

/* Email claim - bigger glow when user hasn't entered email */
.email-claim-highlight {
    border-color: var(--void-accent) !important;
    box-shadow: 0 0 50px rgba(212, 165, 116, 0.25) !important;
}

/* Share section - glow when user has entered email (focus on sharing) */
.share-public-highlight {
    border: 1px solid var(--void-accent);
    background: var(--void-surface);
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.2);
}

@media (min-width: 640px) {
    .share-public-highlight {
        padding: 32px;
    }
}
