:root {
  --color-base: #1a253a;
  --color-card-bg: rgba(255, 255, 255, 0.06);
  --color-card-bg-hover: rgba(255, 255, 255, 0.09);
  --color-card-bg-active: rgba(255, 255, 255, 0.11);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-active: rgba(255, 255, 255, 0.16);
  --slider-thumb: rgba(255, 255, 255, 0.95);
  --slider-track: rgba(255, 255, 255, 0.1);
  --slider-fill: rgba(255, 255, 255, 0.7);
}

html, body {
  background-color: var(--color-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  background-image:
    radial-gradient(ellipse at 15% -10%, rgba(110, 140, 230, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 0%,   rgba(170, 110, 230, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 110%, rgba(60, 100, 200, 0.06)  0%, transparent 60%);
  background-attachment: fixed;
}

#premium-modal:not(.hidden),
#preset-modal:not(.hidden),
#timer-modal:not(.hidden),
#onboarding-modal:not(.hidden),
#auth-modal:not(.hidden) {
  display: flex;
}

.premium-microcopy {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  letter-spacing: 0.01em;
}

.premium-payment-block {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.premium-payment-block:empty {
  display: none;
}

.premium-payment-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  font-size: 0.95rem;
}

.premium-payment-loading .spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: premium-spin 0.8s linear infinite;
}

@keyframes premium-spin {
  to { transform: rotate(360deg); }
}

.premium-payment-error {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: rgba(220, 100, 100, 0.08);
  border: 1px solid rgba(220, 100, 100, 0.25);
  border-radius: 12px;
  color: rgba(245, 200, 200, 0.92);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.45;
}

.premium-payment-error i {
  flex-shrink: 0;
  margin-top: 1px;
}

.premium-payment-error p {
  margin: 0;
}

.payment-return-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  animation: payment-overlay-in 320ms ease-out;
}

.payment-return-overlay.fading-out {
  animation: payment-overlay-out 260ms ease-in forwards;
}

@keyframes payment-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes payment-overlay-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.payment-return-card {
  background: var(--card-bg, #1c2638);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2.25rem 2rem 2rem;
  max-width: 28rem;
  width: 100%;
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  animation: payment-card-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes payment-card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.payment-return-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.payment-return-icon.success {
  background: rgba(120, 200, 140, 0.16);
  border: 1.5px solid rgba(120, 200, 140, 0.5);
  color: rgba(180, 230, 195, 1);
  box-shadow: 0 0 38px -8px rgba(120, 200, 140, 0.5);
}

.payment-return-icon.pending {
  background: rgba(220, 170, 90, 0.14);
  border: 1.5px solid rgba(220, 170, 90, 0.45);
  color: rgba(240, 200, 130, 1);
}

.payment-return-icon.failure {
  background: rgba(220, 100, 100, 0.14);
  border: 1.5px solid rgba(220, 100, 100, 0.45);
  color: rgba(245, 180, 180, 1);
}

.payment-return-icon .spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(240, 200, 130, 0.95);
  border-radius: 50%;
  animation: premium-spin 0.8s linear infinite;
}

.payment-return-card h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  margin: 0;
}

.payment-return-card p {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  margin: 0 0 0.5rem;
  max-width: 320px;
}

.payment-return-cta {
  margin-top: 0.5rem;
  width: 100%;
  background: #fff;
  color: #000;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.payment-return-cta:hover {
  background: rgba(245, 245, 245, 1);
}

.payment-return-cta.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-return-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

#onboarding-modal .onboarding-card {
  animation: onboarding-fade-in 320ms ease-out;
}

#onboarding-modal.fading-out .onboarding-card {
  animation: onboarding-fade-out 280ms ease-in forwards;
}

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

@keyframes onboarding-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(6px); }
}

.onboarding-step {
  animation: onboarding-step-in 240ms ease-out;
}

@keyframes onboarding-step-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.onboarding-progress {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.onboarding-progress[hidden] {
  display: none;
}

.onboarding-progress-bar {
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  transition: width 320ms ease;
  width: 20%;
}

.onboarding-progress-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.onboarding-option {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.1rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  color: rgba(245, 248, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 400;
  transition: background-color 180ms ease, border-color 180ms ease, transform 120ms ease;
}

.onboarding-option:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.onboarding-option:active {
  transform: scale(0.99);
}

.onboarding-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.7);
  animation: onboarding-spin 900ms linear infinite;
}

@keyframes onboarding-spin {
  to { transform: rotate(360deg); }
}

.onboarding-tracks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.onboarding-track {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.85rem;
}

.onboarding-track-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--accent, 255, 255, 255), 0.14);
  color: rgba(245, 248, 255, 0.92);
  flex-shrink: 0;
  box-shadow: 0 0 14px -4px rgba(var(--accent, 255, 255, 255), 0.35);
}

.onboarding-track-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.onboarding-track-title {
  font-size: 0.92rem;
  color: rgba(245, 248, 255, 0.92);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.onboarding-track-lock {
  color: rgba(255, 255, 255, 0.55);
}

.onboarding-track-vol {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.onboarding-back[style*="hidden"] {
  pointer-events: none;
}

.timer-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.375rem 0.875rem;
  border-radius: 0.875rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
  transition: opacity 320ms ease, background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease, transform 320ms ease;
  animation: timer-fade-in 320ms ease;
}

.timer-display.hidden {
  display: none;
}

.timer-display.paused {
  opacity: 0.45;
}

.timer-display.chime {
  background-color: rgba(220, 170, 90, 0.10);
  border-color: rgba(220, 170, 90, 0.55);
  box-shadow:
    0 0 0 1px rgba(220, 170, 90, 0.18),
    0 0 28px -6px rgba(220, 170, 90, 0.45);
}

.timer-display .timer-phase {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 215, 235, 0.55);
}

.timer-display .timer-time {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(245, 248, 255, 0.95);
}

.timer-display.chime .timer-phase {
  color: rgba(235, 195, 130, 0.85);
}

.timer-display.chime .timer-time {
  color: rgba(250, 220, 170, 1);
}

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

.timer-display.fading-out {
  opacity: 0;
  transform: translateY(-4px);
}

.timer-toggle {
  position: relative;
}

.timer-toggle.has-session::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(245, 248, 255, 0.85);
  box-shadow: 0 0 6px rgba(245, 248, 255, 0.55);
}

.timer-config-row[data-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.timer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.timer-ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(235, 240, 250, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.timer-ctrl-btn:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.timer-ctrl-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.timer-ctrl-primary {
  width: 56px;
  height: 56px;
  border-radius: 1.125rem;
}

.timer-ctrl-primary[aria-pressed="true"] {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
  color: #1a253a;
  box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.25);
}

.timer-ctrl-primary[aria-pressed="true"]:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 1);
}

.timer-ctrl-danger:hover:not(:disabled) {
  background-color: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 120, 120, 0.25);
  color: rgba(255, 150, 150, 0.95);
}

.timer-time.flash-reset {
  animation: timer-reset-flash 380ms ease;
}

@keyframes timer-reset-flash {
  0% {
    opacity: 0.3;
    transform: scale(0.96);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.icon-wrap-sm {
  width: 36px;
  height: 36px;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.master-slider {
  margin-top: 0;
}

.master-toggle {
  width: 44px;
  height: 44px;
  border-radius: 0.875rem;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.master-toggle:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.1);
}

.master-toggle:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.master-toggle[aria-pressed="true"] {
  background-color: rgba(255, 255, 255, 0.95);
  color: #1a253a;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.25);
}

.master-toggle[aria-pressed="true"]:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 1);
}

.preset-card {
  position: relative;
  background-color: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  padding: 1rem 1.125rem;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--color-border);
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.preset-card:hover {
  background-color: var(--color-card-bg-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
}

.preset-card .preset-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.preset-card .preset-info {
  flex: 1;
  min-width: 0;
}

.preset-card .preset-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-card .preset-meta {
  margin-top: 0.125rem;
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.005em;
}

.preset-card .preset-edit,
.preset-card .preset-delete {
  width: 30px;
  height: 30px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms ease, color 150ms ease;
}

.preset-card .preset-edit:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.preset-card .preset-delete:hover {
  background-color: rgba(255, 80, 80, 0.12);
  color: rgba(255, 120, 120, 0.95);
}

.sound-card {
  --accent: 175, 195, 220;
  --accent-intensity: 0;
  position: relative;
  background-color: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--color-border);
  transition:
    background-color 400ms ease,
    border-color 400ms ease,
    transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 500ms ease,
    filter 400ms ease;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.02) inset;
}

.sound-card:hover:not(.disabled):not(.locked) {
  background-color: var(--color-card-bg-hover);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.65);
}

.sound-card.active {
  background-color: var(--color-card-bg-active);
  border-color: rgba(var(--accent), calc(0.18 + var(--accent-intensity) * 0.18));
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(var(--accent), calc(0.06 + var(--accent-intensity) * 0.08)),
    0 24px 56px -18px rgba(0, 0, 0, 0.75),
    0 0 60px -10px rgba(var(--accent), calc(0.10 + var(--accent-intensity) * 0.18));
}

.sound-card.locked {
  background-color: #12192b;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.03),
    0 8px 20px -12px rgba(0, 0, 0, 0.5);
}

.sound-card.locked .icon-wrap {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(245, 248, 255, 0.85);
}

.sound-card.locked .title {
  color: rgba(255, 255, 255, 0.92);
}

.sound-card.locked .subtitle {
  color: rgba(200, 215, 235, 0.55);
}

.sound-card.locked:hover {
  background-color: #161e34;
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
    0 0 32px -6px rgba(255, 255, 255, 0.22),
    0 14px 32px -14px rgba(0, 0, 0, 0.6);
}

.sound-card.locked:hover .icon-wrap {
  color: rgba(255, 255, 255, 0.95);
}

.sound-card.locked:hover .title {
  color: rgba(255, 255, 255, 1);
}

.sound-card:not(.locked) .lock-badge {
  display: none;
}

.lock-badge {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.sound-card.locked:hover .lock-badge {
  color: rgba(255, 255, 255, 1);
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 12px -2px rgba(255, 255, 255, 0.25);
}

.sound-card.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sound-card.disabled:hover {
  background-color: var(--color-card-bg);
  transform: none;
  box-shadow: none;
}

.sound-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 0.875rem;
  background-color: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(235, 240, 250, 0.78);
  transition:
    background-color 500ms ease,
    color 500ms ease,
    box-shadow 500ms ease,
    transform 600ms ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sound-card.active .icon-wrap {
  background-color: rgba(var(--accent), calc(0.08 + var(--accent-intensity) * 0.10));
  color: rgba(245, 248, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent), calc(0.18 + var(--accent-intensity) * 0.20)),
    inset 0 0 12px -2px rgba(var(--accent), calc(0.20 + var(--accent-intensity) * 0.30)),
    0 0 24px -4px rgba(var(--accent), calc(0.10 + var(--accent-intensity) * 0.22));
  animation: icon-breathe 5s ease-in-out infinite;
}

@keyframes icon-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

.sound-card .title {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
}

.sound-card .subtitle {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(148, 163, 184, 0.55);
  letter-spacing: 0.01em;
}

.volume-slider-wrap {
  margin-top: auto;
  padding-top: 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 280ms ease, opacity 220ms ease 60ms;
}

.sound-card.active .volume-slider-wrap {
  max-height: 50px;
  opacity: 1;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--slider-track);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background-image: linear-gradient(
    to right,
    rgba(var(--accent, 175, 195, 220), calc(0.45 + var(--accent-intensity, 0) * 0.45)),
    rgba(var(--accent, 175, 195, 220), calc(0.65 + var(--accent-intensity, 0) * 0.30))
  );
  background-repeat: no-repeat;
  transition: background-image 600ms ease;
}

.sound-card.active .volume-slider {
  box-shadow: 0 0 12px -2px rgba(var(--accent), calc(0.15 + var(--accent-intensity) * 0.25));
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--slider-thumb);
  cursor: pointer;
  border: none;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(var(--accent, 175, 195, 220), calc(0.10 + var(--accent-intensity, 0) * 0.30));
  transition: transform 160ms ease, box-shadow 400ms ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--slider-thumb);
  cursor: pointer;
  border: none;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(var(--accent, 175, 195, 220), calc(0.10 + var(--accent-intensity, 0) * 0.30));
}

.volume-slider::-moz-range-track {
  height: 2px;
  background: var(--slider-track);
  border-radius: 999px;
}

/* Master volume não usa accent — fica neutro/branco */
.master-slider {
  background-image: linear-gradient(to right, var(--slider-fill), var(--slider-fill));
}

.master-slider::-webkit-slider-thumb {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.master-slider::-moz-range-thumb {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   Landing Page — convive com o app no mesmo HTML.
   body.landing-active esconde .app-shell; clicar no CTA remove
   a classe e dispara o onboarding existente. Tudo prefixado
   por .lp-* ou .landing-* para não colidir com o app.
   ============================================================ */

body.landing-active .app-shell {
  display: none;
}

.landing-root {
  display: none;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0 1.25rem 5rem;
  color: rgba(245, 248, 255, 0.92);
  opacity: 0;
  transition: opacity 480ms ease;
}

body.landing-active .landing-root {
  display: block;
  opacity: 1;
}

body.landing-fading .landing-root {
  opacity: 0;
  pointer-events: none;
}

.landing-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 0%,    rgba(110, 145, 230, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 25%,   rgba(170, 115, 230, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 15% 55%,   rgba(80, 130, 220, 0.08)  0%, transparent 70%);
}

.landing-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.landing-root > *:not(.landing-glow):not(.landing-decor) {
  position: relative;
  z-index: 1;
}

.lp-decor-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(220, 230, 250, 1);
  pointer-events: none;
  user-select: none;
  z-index: 2;
  filter: blur(0.3px);
  transition: opacity 600ms ease;
}

.lp-decor-icon.lp-decor-back {
  z-index: 0;
}

.lp-decor-icon i,
.lp-decor-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.25;
}

@media (max-width: 720px) {
  /* Mobile: esconde ícones marcados como "back" (ficavam atrás do texto) e
     limita os restantes a no máximo 60px. Usamos nth-child pra remover ainda
     mais densidade — em tela estreita, 1/3 dos ícones já é suficiente. */
  .lp-decor-icon.lp-decor-back,
  .lp-decor-icon:nth-child(3n) {
    display: none;
  }
  .lp-decor-icon {
    max-width: 60px;
    max-height: 60px;
    opacity: 0.05 !important;
  }
}

.lp-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lp-brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
}

.lp-nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245, 248, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.lp-nav-cta:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 1);
}

.lp-hero {
  max-width: 880px;
  margin: 2.5rem auto 4.5rem;
  padding: clamp(2.5rem, 8vw, 5rem) 1rem;
  text-align: center;
}

.lp-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.lp-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 215, 235, 0.55);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.lp-headline {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: rgba(255, 255, 255, 0.98);
  max-width: 18ch;
}

.lp-subheadline {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(200, 215, 235, 0.7);
  max-width: 52ch;
  margin: 0 auto;
}

.lp-cta-primary {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: rgba(245, 248, 255, 0.98);
  background-color: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 40px -16px rgba(110, 145, 230, 0.4);
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.lp-cta-primary:hover {
  background-color: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 32px -4px rgba(255, 255, 255, 0.22),
    0 14px 44px -14px rgba(110, 145, 230, 0.5);
  transform: translateY(-1px);
}

.lp-cta-primary:active {
  transform: translateY(0);
}

.lp-cta-hint {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(200, 215, 235, 0.45);
  letter-spacing: 0.01em;
}

.lp-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.lp-section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.96);
  max-width: 22ch;
}

.lp-section-title em {
  font-style: normal;
  color: rgba(220, 200, 255, 0.95);
  background: linear-gradient(180deg, rgba(220, 200, 255, 1) 0%, rgba(150, 170, 230, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-section-lede {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(200, 215, 235, 0.65);
  max-width: 56ch;
}

.lp-pain-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 720px) {
  .lp-pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lp-pain-card {
  text-align: left;
  background-color: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  transition: background-color 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.lp-pain-card:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.lp-pain-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(220, 200, 255, 0.85);
  margin-bottom: 1rem;
}

.lp-pain-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
}

.lp-pain-card p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(200, 215, 235, 0.6);
}

.lp-science-card {
  width: 100%;
  max-width: 720px;
  background-color: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.5rem;
  padding: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px -28px rgba(0, 0, 0, 0.6);
}

.lp-science-icon {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 248, 255, 0.95);
  background-color: rgba(110, 145, 230, 0.14);
  border: 1px solid rgba(110, 145, 230, 0.28);
  box-shadow:
    inset 0 0 14px -4px rgba(110, 145, 230, 0.45),
    0 0 28px -8px rgba(110, 145, 230, 0.5);
  margin-bottom: 0.25rem;
}

.lp-science-title {
  max-width: 26ch;
}

.lp-science-text {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(210, 220, 240, 0.78);
  max-width: 56ch;
}

.lp-science-text strong {
  color: rgba(245, 248, 255, 0.96);
  font-weight: 500;
}

.lp-contrast-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 720px) {
  .lp-contrast-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lp-contrast-card {
  text-align: left;
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  padding: 1.6rem 1.5rem;
}

.lp-contrast-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}

.lp-contrast-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(210, 220, 240, 0.78);
}

.lp-contrast-card li i {
  flex-shrink: 0;
  margin-top: 0.18rem;
}

.lp-contrast-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-contrast-bad .lp-contrast-label {
  color: rgba(220, 130, 130, 0.75);
}

.lp-contrast-bad li i {
  color: rgba(220, 130, 130, 0.7);
}

.lp-contrast-good {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 40px -22px rgba(110, 145, 230, 0.35);
}

.lp-contrast-good .lp-contrast-label {
  color: rgba(180, 200, 250, 0.92);
}

.lp-contrast-good li i {
  color: rgba(180, 200, 250, 0.92);
}

.lp-contrast-good li {
  color: rgba(230, 235, 245, 0.88);
}

.lp-social-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .lp-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lp-social-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lp-testimonial {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background-color: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  padding: 1.4rem 1.35rem;
  transition: background-color 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.lp-testimonial:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.lp-testimonial-persona {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 215, 235, 0.78);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  align-self: flex-start;
}

.lp-testimonial blockquote {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(235, 240, 250, 0.92);
  letter-spacing: -0.005em;
}

.lp-testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.lp-testimonial-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(235, 240, 250, 0.85);
  letter-spacing: 0.005em;
}

.lp-testimonial-role {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(180, 200, 250, 0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-mantra {
  padding: clamp(2rem, 5vw, 3rem) 0.5rem;
  gap: 0.75rem;
}

.lp-mantra-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.lp-mantra-line span {
  color: rgba(245, 248, 255, 0.95);
  position: relative;
}

.lp-mantra-line span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.85rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(180, 200, 250, 0.55);
  transform: translateY(-50%);
}

.lp-mantra-sub {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 300;
  color: rgba(200, 215, 235, 0.55);
  letter-spacing: 0.005em;
}

.lp-pricing-highlights {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0.5rem 0 0.25rem;
}

.lp-pricing-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
}

.lp-pricing-hl-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(220, 200, 255, 0.95);
  background-color: rgba(170, 115, 230, 0.12);
  border: 1px solid rgba(170, 115, 230, 0.28);
  box-shadow: inset 0 0 12px -4px rgba(170, 115, 230, 0.4);
}

.lp-pricing-hl-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.lp-pricing-hl-text strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.96);
}

.lp-pricing-hl-text span {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(200, 215, 235, 0.62);
}

.lp-pricing-card {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.5rem;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 40px -8px rgba(255, 255, 255, 0.12),
    0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

.lp-pricing-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 200, 255, 0.95);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(170, 115, 230, 0.12);
  border: 1px solid rgba(170, 115, 230, 0.32);
}

.lp-pricing-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0.5rem 0 1.25rem;
}

.lp-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(220, 230, 245, 0.85);
  text-align: left;
}

.lp-pricing-features li i {
  flex-shrink: 0;
  margin-top: 0.18rem;
  color: rgba(180, 200, 250, 0.95);
}

.lp-cta-pricing {
  align-self: stretch;
  justify-content: center;
}

.lp-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 0.5rem 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(200, 215, 235, 0.4);
  letter-spacing: 0.01em;
}

.lp-footer-sep {
  margin: 0 0.45rem;
  opacity: 0.6;
}

.lp-footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 215, 235, 0.18);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lp-footer-link:hover {
  color: rgba(220, 232, 250, 0.85);
  border-bottom-color: rgba(200, 215, 235, 0.5);
}

@media (min-width: 720px) {
  .landing-root {
    padding: 0 2rem 6rem;
  }
}

.lp-final {
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.lp-final-card {
  width: 100%;
  max-width: 760px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.75rem;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(110, 145, 230, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(170, 115, 230, 0.08) 0%, transparent 70%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px -28px rgba(0, 0, 0, 0.6);
}

.lp-final-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.98);
  max-width: 22ch;
}

.lp-final-title em {
  font-style: normal;
  background: linear-gradient(180deg, rgba(220, 200, 255, 1) 0%, rgba(150, 170, 230, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-cta-final {
  margin-top: 0.25rem;
}

.lifetime-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 30px;
  padding: 0 0.75rem 0 0.65rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  color: rgba(245, 248, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 18px -6px rgba(255, 255, 255, 0.28);
  user-select: none;
}

.lifetime-pill i,
.lifetime-pill svg {
  color: rgb(240, 198, 116);
  stroke: rgb(240, 198, 116);
  fill: rgba(240, 198, 116, 0.25);
  filter: drop-shadow(0 0 6px rgba(240, 198, 116, 0.55));
}

.lifetime-pill.hidden {
  display: none;
}

@media (max-width: 640px) {
  .lifetime-pill span {
    display: none;
  }
  .lifetime-pill {
    padding: 0 0.5rem;
  }
}

.auth-button {
  height: 36px;
  padding: 0 0.875rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.auth-button:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 1);
}

.auth-button.logged-in {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.22);
}

.auth-button.logged-in:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.auth-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.auth-avatar-initial {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.auth-google-btn {
  letter-spacing: 0.005em;
}

.auth-tier-pill {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-tier-pill.is-premium {
  color: rgba(220, 200, 255, 0.95);
  border-color: rgba(220, 200, 255, 0.35);
  background-color: rgba(220, 200, 255, 0.08);
}

@media (max-width: 640px) {
  .auth-button:not(.logged-in) span {
    display: none;
  }
  .auth-button:not(.logged-in) {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}
