/* Premium Animations */

.loading-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-waiting);
  animation: pulse-dot 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50%      { transform: scale(1.2); opacity: 1; box-shadow: var(--shadow-glow-amber); }
}

/* Waveform for connected state */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 80px;
}
.waveform-bar {
  width: 4px;
  height: 60px;
  border-radius: 4px;
  background: var(--gradient-green);
  box-shadow: 0 0 10px rgba(56, 239, 125, 0.5);
  transform-origin: center;
  animation: waveform-bar 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.waveform-bar:nth-child(1)  { animation-delay: 0.0s; }
.waveform-bar:nth-child(2)  { animation-delay: 0.1s; }
.waveform-bar:nth-child(3)  { animation-delay: 0.2s; }
.waveform-bar:nth-child(4)  { animation-delay: 0.3s; }
.waveform-bar:nth-child(5)  { animation-delay: 0.15s; }
.waveform-bar:nth-child(6)  { animation-delay: 0.05s; }
.waveform-bar:nth-child(7)  { animation-delay: 0.4s; }
.waveform-bar:nth-child(8)  { animation-delay: 0.25s; }
.waveform-bar:nth-child(9)  { animation-delay: 0.1s; }
.waveform-bar:nth-child(10) { animation-delay: 0.35s; }
.waveform-bar:nth-child(11) { animation-delay: 0.2s; }
.waveform-bar:nth-child(12) { animation-delay: 0.0s; }
.waveform-bar:nth-child(13) { animation-delay: 0.1s; }
.waveform-bar:nth-child(14) { animation-delay: 0.2s; }

@keyframes waveform-bar {
  0%   { transform: scaleY(0.133); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

.waveform.silent .waveform-bar {
  animation: none;
  transform: scaleY(0.133);
  opacity: 0.3;
  box-shadow: none;
  transition: all 0.4s ease;
}

/* Glowing Heartbeat */
@keyframes heartbeat {
  0%   { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255,126,95,0)); }
  15%  { transform: scale(1.2); filter: drop-shadow(0 0 15px rgba(255,126,95,0.6)); }
  30%  { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255,126,95,0)); }
  45%  { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(255,126,95,0.4)); }
  60%  { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255,126,95,0)); }
}

.heartbeat {
  animation: heartbeat 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Page Entry Animations */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-content > * {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered entrance for children of page-content */
.page-content > *:nth-child(1) { animation-delay: 0.1s; }
.page-content > *:nth-child(2) { animation-delay: 0.2s; }
.page-content > *:nth-child(3) { animation-delay: 0.3s; }
.page-content > *:nth-child(4) { animation-delay: 0.4s; }
.page-content > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.moment-card {
  animation: card-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Floating Orbs Background Animation */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(5vw, 5vw) scale(1.1);
  }
  50% {
    transform: translate(0, 10vw) scale(0.9);
  }
  75% {
    transform: translate(-5vw, 5vw) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Accessibility & RTL Overrides */
[dir="rtl"] * {
  letter-spacing: 0 !important; /* Disable letter-spacing for cursive scripts like Arabic */
}
/* Call Page Styles */

.view-container {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.view-container.hidden {
  display: none !important;
}

/* Join View */
#join-view {
  justify-content: center;
  gap: var(--space-6);
  text-align: center;
}

.heart-large {
  font-size: 64px;
  line-height: 1;
}

#join-view .title {
  font-size: 28px;
  font-family: var(--font-heading);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-4);
}

.mic-note {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
}

/* In-Call View */
#incall-view {
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-8);
}

.call-header {
  text-align: center;
  width: 100%;
}

.connected-text {
  font-size: 20px;
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.waveform-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
}

.status-indicator {
  text-align: center;
  margin-bottom: var(--space-10);
}

.status-listening {
  font-size: var(--text-body-sm);
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-1);
}

.status-hint {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
}

/* Translating Indicator */
.translating-indicator {
  text-align: center;
  margin-bottom: var(--space-4);
  transition: opacity 0.3s ease;
}

.translating-indicator.hidden {
  display: none;
}

.translating-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.translating-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-amber-solid);
  animation: translating-pulse 1.4s ease-in-out infinite;
}

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

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

@keyframes translating-pulse {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.translating-text {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  font-style: italic;
}

.actions-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Spanish Specific Overrides */
html[lang="es"] .connected-text {
  font-size: 22px;
}
/* Reusable Components - Glassmorphism Edition */

/* Buttons */
.btn-primary {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  color: var(--color-text-inverse);
  background: var(--gradient-amber);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  min-height: 64px;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-glow-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.btn-primary:hover {
  background: var(--gradient-amber-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 126, 95, 0.5);
}
.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 16px rgba(255, 126, 95, 0.3);
}
.btn-primary:disabled {
  background: var(--color-glass-input);
  color: var(--color-text-secondary);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-green {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  color: var(--color-text-inverse);
  background: var(--gradient-green);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  min-height: 64px;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-glow-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.btn-green:hover {
  background: var(--gradient-green-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(56, 239, 125, 0.5);
}
.btn-green:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 16px rgba(56, 239, 125, 0.3);
}

.btn-hablar {
  font-size: 1.5rem;
  min-height: 80px;
  letter-spacing: 0.02em;
}

.btn-danger {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  color: var(--color-text-inverse);
  background: var(--gradient-red);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  min-height: 64px;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-glow-red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.btn-danger:hover {
  background: var(--gradient-red-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 65, 108, 0.5);
}
.btn-danger:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 16px rgba(255, 65, 108, 0.3);
}

.btn-secondary {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  color: var(--color-amber-solid);
  background: var(--color-glass-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  min-height: 64px;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.btn-secondary:hover {
  background: rgba(255, 126, 95, 0.1);
  border-color: rgba(255, 126, 95, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-amber);
}
.btn-secondary:active {
  transform: translateY(1px) scale(0.98);
}

/* Inputs */
.input-text {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background: var(--color-glass-input);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  width: 100%;
  max-width: 320px;
  min-height: 56px;
  transition: all 0.3s ease;
}
.input-text:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-amber-solid);
  box-shadow: 0 0 0 4px rgba(255, 126, 95, 0.2);
}
.input-text::placeholder {
  color: var(--color-text-secondary);
}

/* For select elements, ensure text is visible in dropdown (some browsers style dropdowns terribly in dark mode) */
select.input-text {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem top 50%;
  background-size: 0.65rem auto;
}
[dir="rtl"] select.input-text {
  background-position: left 1rem top 50%;
}
select.input-text option {
  background: var(--color-bg);
  color: var(--color-text-primary);
}

/* Call Timer */
.call-timer {
  font-family: var(--font-body);
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Glassmorphism Cards */
.card {
  background: var(--color-glass-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow for cards */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* Page Layout Wrappers */
.page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6) var(--space-4);
  min-height: 100vh;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
/* Create Page Styles */

.header {
  width: 100%;
  margin-bottom: var(--space-8);
  text-align: left;
}

.back-link {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-2) 0;
}

.step-container {
  width: 100%;
  max-width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-container.hidden {
  display: none;
}

.title {
  font-size: var(--text-h1);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.subtitle {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

/* Share Step Styles */
.copy-link {
  font-family: monospace;
  background: var(--color-glass-input);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--color-border);
}

.link-text {
  font-family: monospace;
  font-size: var(--text-body-sm);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-icon {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm);
  cursor: pointer;
  padding: var(--space-1);
}

.action-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.waiting-indicator p {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
/* Premium Landing Page Styles */

.header {
  width: 100%;
  margin-bottom: var(--space-8);
  text-align: left;
  position: relative;
  z-index: 2;
}

.logo {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: 24px;
  background: var(--gradient-amber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.02em;
}

.hero {
  text-align: center;
  margin-bottom: var(--space-10);
  width: 100%;
  position: relative;
  z-index: 2;
}

.headline {
  font-size: var(--text-hero);
  font-weight: var(--weight-extra);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.05;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Add a glowing text highlight for the word "grandmother" if wrapped in span */
.headline-highlight {
  background: var(--gradient-amber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.subhead {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.cta-wrapper .btn-primary {
  text-decoration: none;
}

.free-note {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--weight-semi);
  opacity: 0.8;
}

.how-it-works {
  width: 100%;
  max-width: 320px;
  margin: 0 auto var(--space-10) auto;
  background: var(--color-glass-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-6);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-glass);
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.section-title {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
  color: var(--color-text-primary);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.steps-list li strong {
  color: var(--color-text-primary);
  font-weight: var(--weight-semi);
  display: block;
  margin-bottom: 2px;
}

.steps-list .icon {
  font-size: 28px;
  line-height: 1;
  background: var(--color-glass-input);
  padding: 12px;
  border-radius: 50%;
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer {
  margin-top: auto;
  padding: var(--space-6) 0;
  text-align: center;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  position: relative;
  z-index: 2;
}

/* Responsive Overrides */
@media (min-width: 768px) {
  .headline {
    max-width: 600px;
    font-size: 4rem;
  }
  .subhead {
    max-width: 400px;
    font-size: 1.25rem;
  }
  .how-it-works {
    max-width: 480px;
  }
}
/* Post-Call Page Styles */

.title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  text-align: center;
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.moment-card {
  background: var(--color-glass-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-5);
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.moment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.card-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 4px 12px rgba(255,126,95,0.4));
}

.quote-primary {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  text-align: center;
  line-height: 1.3;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.card-divider {
  color: var(--color-text-secondary);
  font-size: 14px;
  letter-spacing: 4px;
  margin-bottom: var(--space-4);
  opacity: 0.6;
}

.quote-secondary {
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: italic;
  font-weight: var(--weight-medium);
  color: var(--color-amber-solid);
  text-align: center;
  line-height: 1.4;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.quote-author {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-semi);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-footer {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.6;
}

.card-url {
  font-weight: var(--weight-semi);
  color: var(--color-text-primary);
}

.call-duration {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  text-align: center;
  position: relative;
  z-index: 2;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  max-width: 320px;
  align-items: center;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 2;
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  cursor: pointer;
  padding: var(--space-2);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--weight-semi);
  transition: color 0.2s;
}

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

.thanks-text {
  font-size: var(--text-body);
  color: var(--color-text-primary);
  font-weight: var(--weight-bold);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hidden {
  display: none !important;
}

/* Responsive Overrides */
@media (min-width: 480px) {
  .moment-card {
    max-width: 400px;
    padding: var(--space-8) var(--space-6);
  }
}
/* Design Tokens - Premium Dark & Glassy Theme */
:root {
  /* Dynamic Gradients (Buttons) */
  --gradient-amber:      linear-gradient(135deg, #FF7E5F 0%, #FEB47B 100%); /* Sunset glow for primary CTAs */
  --gradient-amber-hover:linear-gradient(135deg, #FF6A46 0%, #FEA362 100%);
  --gradient-green:      linear-gradient(135deg, #11998E 0%, #38EF7D 100%); /* Emerald glow for connected/hablar */
  --gradient-green-hover:linear-gradient(135deg, #0E8077 0%, #2CD669 100%);
  --gradient-red:        linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%); /* Coral glow for end call */
  --gradient-red-hover:  linear-gradient(135deg, #E6355B 0%, #E63D20 100%);

  /* Solid Colors (Text, Icons) */
  --color-amber-solid:   #FF7E5F;
  --color-green-solid:   #38EF7D;
  --color-red-solid:     #FF416C;

  /* Surfaces & Glassmorphism */
  --color-bg:            #0a0a0a;  /* Deep OLED black */
  --color-glass-card:    rgba(255, 255, 255, 0.03); /* Very subtle white for glass */
  --color-glass-border:  rgba(255, 255, 255, 0.25);  /* Delicate glassy edge (increased for visibility) */
  --color-glass-input:   rgba(255, 255, 255, 0.06); /* Slightly more opaque for inputs */
  
  /* Text */
  --color-text-primary:  #FFFFFF;
  --color-text-secondary:rgba(255, 255, 255, 0.65);
  --color-text-inverse:  #111111; /* Dark text for WCAG contrast on bright gradients */

  /* Shadows & Glows */
  --shadow-glow-amber:   0 8px 32px rgba(255, 126, 95, 0.4);
  --shadow-glow-green:   0 8px 32px rgba(56, 239, 125, 0.3);
  --shadow-glow-red:     0 8px 32px rgba(255, 65, 108, 0.4);
  --shadow-glass:        0 8px 32px rgba(0, 0, 0, 0.4);

  /* Status */
  --color-pulse:         #38EF7D;
  --color-waiting:       #FF7E5F;

  /* Typography */
  --font-heading:   'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-hero:      3.5rem;    /* 56px — stunning landing page headline */
  --text-h1:        2.5rem;    /* 40px — page titles */
  --text-h2:        1.75rem;   /* 28px — section headings */
  --text-h3:        1.25rem;   /* 20px — card titles */
  --text-body:      1.125rem;  /* 18px — body text */
  --text-body-sm:   1rem;      /* 16px — secondary text */
  --text-caption:   0.875rem;  /* 14px — timestamps */

  /* Line heights */
  --leading-tight:  1.1;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;

  /* Font weights */
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;
  --weight-extra:   800;

  /* Spacing Scale (8px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3rem;
  --space-9:  4rem;
  --space-10: 5rem;

  /* Border radius */
  --radius-sm:  0.75rem;   /* 12px inputs */
  --radius-md:  1.25rem;   /* 20px cards */
  --radius-lg:  1.5rem;    /* 24px large cards */
  --radius-xl:  2rem;      /* 32px buttons */
  --radius-full:9999px;

  /* Backdrop Blur */
  --blur-glass: blur(24px);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background animated orbs for all pages */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 40vw;
  height: 40vw;
  background: var(--color-amber-solid);
  top: -10vw;
  left: -10vw;
  animation-delay: 0s;
}

.orb-2 {
  width: 30vw;
  height: 30vw;
  background: var(--color-red-solid);
  bottom: -5vw;
  right: -5vw;
  animation-delay: -5s;
}

/* Base typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em; /* Tighter tracking for modern look */
}

a {
  color: inherit;
  text-decoration: none;
}

/* Selection */
::selection {
  background: rgba(255, 126, 95, 0.3);
  color: #fff;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 32px;
  width: auto;
}

.inline-logo {
  height: 1.2em;
  vertical-align: middle;
  margin-top: -0.1em;
  display: inline-block;
}
