/* === EXISTENTIAL GRIMOIRE THEME === */
/* Inspired by woodcut engravings and dark academia */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  /* Dark parchment palette */
  --bg-void: #050505;
  --bg-abyss: #0a0908;
  --bg-deep: #0f0e0c;
  --bg-surface: #151311;
  --bg-raised: #1a1815;

  /* Aged parchment text */
  --text-light: #f5f0e6;
  --text-cream: #e8e0d0;
  --text-aged: #c4b8a5;
  --text-faded: #8a7e6d;
  --text-whisper: #5a5046;

  /* Burnt amber accent */
  --accent-flame: #d4915a;
  --accent-ember: #b87333;
  --accent-copper: #8b5a2b;
  --accent-glow: rgba(212, 145, 90, 0.12);
  --accent-deep: rgba(184, 115, 51, 0.08);

  /* States */
  --danger: #a04040;
  --success: #5a7a50;

  /* Borders */
  --border-subtle: #252218;
  --border-visible: #3a352a;
  --border-accent: #4a4235;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --font-body: 'EB Garamond', 'Georgia', serif;

  /* Safe areas */
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

/* === BASE BODY WITH GRAIN TEXTURE === */
body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-cream);
  line-height: 1.7;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 10000;
}

/* Vignette effect */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 9999;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: var(--font-body);
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: var(--accent-flame);
  text-decoration: none;
}

/* === APP CONTAINER === */
#app {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

/* === SCREENS === */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.screen.active {
  display: flex;
}

/* === HOME SCREEN === */

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-image-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%) contrast(1.1);
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.3) 0%,
    rgba(5, 5, 5, 0.5) 40%,
    rgba(5, 5, 5, 0.85) 70%,
    var(--bg-void) 100%
  );
  pointer-events: none;
}

/* Add subtle grid pattern to match the image */
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.home-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
  position: relative;
  z-index: 1;
}

/* Decorative element between logo and tagline */
.tagline::before {
  content: '✦';
  display: block;
  font-size: 0.6rem;
  color: var(--accent-flame);
  margin: 1rem 0 0.75rem;
  opacity: 0.6;
}

.logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-light);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

/* Decorative underline */
.logo::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-ember) 50%, transparent 100%);
}

.tagline {
  font-family: var(--font-display);
  color: var(--text-faded);
  font-size: 1.1rem;
  margin-top: 1.75rem;
  font-style: italic;
  letter-spacing: 0.15em;
}

/* === 5-Year Tuesday Viral Hook Card === */
.tuesday-hook-container {
  padding: 1rem 1.5rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.tuesday-hook-card {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(212, 145, 90, 0.15), rgba(212, 145, 90, 0.05));
  border: 1px solid var(--accent-flame);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tuesday-hook-card:hover {
  background: linear-gradient(135deg, rgba(212, 145, 90, 0.25), rgba(212, 145, 90, 0.1));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 145, 90, 0.15);
}

.tuesday-hook-badge {
  position: absolute;
  top: -1px;
  right: 1rem;
  background: var(--accent-flame);
  color: var(--bg-void);
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 0 0 6px 6px;
}

.tuesday-hook-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.tuesday-hook-icon {
  font-size: 2rem;
  color: var(--accent-flame);
  opacity: 0.9;
}

.tuesday-hook-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.tuesday-hook-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-bone);
  letter-spacing: 0.01em;
}

.tuesday-hook-subtitle {
  font-size: 0.8rem;
  color: var(--text-whisper);
  margin-top: 0.25rem;
}

.tuesday-hook-duration {
  font-size: 0.75rem;
  color: var(--accent-flame);
  opacity: 0.8;
  white-space: nowrap;
}

/* === PROTOCOL GRID === */
.protocols-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 0 1.5rem;
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  background: var(--border-subtle);
}

.protocol-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem;
  background: var(--bg-abyss);
  text-align: left;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

/* Crosshatch pattern on hover */
.protocol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(212, 145, 90, 0.03) 2px,
      rgba(212, 145, 90, 0.03) 4px
    );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.protocol-card:hover::before,
.protocol-card:active::before {
  opacity: 1;
}

.protocol-card:hover,
.protocol-card:active {
  background: var(--bg-deep);
}

/* Left accent line on hover */
.protocol-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent-flame);
  transition: height 0.3s ease;
}

.protocol-card:hover::after {
  height: 60%;
}

.protocol-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-flame);
  letter-spacing: 0.05em;
  min-width: 2.5rem;
  opacity: 0.8;
}

.protocol-info {
  flex: 1;
}

.protocol-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.25rem;
}

.protocol-duration {
  font-size: 0.8rem;
  color: var(--text-faded);
  letter-spacing: 0.1em;
}

/* === QUICK ACTIONS === */
.quick-actions {
  display: flex;
  gap: 1px;
  padding: 2rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.quick-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  position: relative;
}

/* Corner decorations */
.quick-btn::before,
.quick-btn::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-ember);
  border-style: solid;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.quick-btn::before {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.quick-btn::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 1px 1px 0;
}

.quick-btn:hover::before,
.quick-btn:hover::after {
  opacity: 0.8;
}

.quick-btn:hover,
.quick-btn:active {
  background: var(--bg-surface);
  border-color: var(--border-visible);
}

.quick-icon {
  font-size: 1.5rem;
  color: var(--accent-flame);
}

.quick-btn span:nth-child(2) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.quick-duration {
  font-size: 0.75rem;
  color: var(--text-faded);
  letter-spacing: 0.15em;
}

/* === BOTTOM NAV === */
.bottom-nav {
  display: flex;
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + var(--safe-bottom));
  background: var(--bg-abyss);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  color: var(--text-faded);
  transition: color 0.3s ease;
}

.nav-btn:hover,
.nav-btn:active {
  color: var(--text-cream);
}

.nav-icon {
  font-size: 1.25rem;
}

.nav-btn span:nth-child(2) {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* === SCREEN HEADER === */
.screen-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  padding-top: calc(1rem + var(--safe-top));
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-abyss);
  position: relative;
}

/* Subtle gradient line under header */
.screen-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-ember) 50%, transparent 100%);
  opacity: 0.3;
}

.back-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-faded);
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: var(--accent-flame);
}

.screen-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.session-info {
  flex: 1;
}

.session-info h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

#session-phase {
  font-size: 0.8rem;
  color: var(--text-faded);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* === ABOUT SCREEN === */

/* About Hero */
.about-hero {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.about-hero-image-container {
  position: absolute;
  inset: 0;
}

.about-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(80%) contrast(1.1) brightness(0.8);
  opacity: 0.5;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.4) 0%,
    rgba(5, 5, 5, 0.6) 50%,
    var(--bg-void) 100%
  );
}

/* Golden accent line inspired by kintsugi crack */
.about-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-ember) 50%, transparent 100%);
  opacity: 0.6;
}

.about-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

/* Decorative section marker */
.about-section::before {
  content: '◆';
  position: absolute;
  left: -1.5rem;
  top: 0;
  color: var(--accent-ember);
  font-size: 0.5rem;
  opacity: 0.6;
}

.about-section h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-flame);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.about-section p {
  color: var(--text-aged);
  line-height: 1.8;
}

.about-section em {
  font-family: var(--font-display);
  color: var(--text-light);
  font-style: italic;
  font-size: 1.1em;
}

.credits {
  margin-top: auto;
  text-align: center;
  color: var(--text-faded);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.version {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--text-whisper);
}

/* === BUTTONS === */
.primary-btn {
  font-family: var(--font-display);
  padding: 1rem 2rem;
  background: var(--accent-ember);
  color: var(--bg-void);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: var(--accent-flame);
}

.secondary-btn {
  font-family: var(--font-display);
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--border-visible);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-aged);
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  border-color: var(--accent-ember);
  color: var(--accent-flame);
}

.danger-btn {
  font-family: var(--font-display);
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.danger-btn:hover {
  background: rgba(160, 64, 64, 0.1);
}

/* === HISTORY === */
.history-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  max-width: 600px;
  margin: 0 auto;
}

.history-item {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  background: var(--bg-abyss);
  transition: all 0.3s ease;
  position: relative;
}

.history-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-ember);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.history-item:hover {
  background: var(--bg-deep);
}

.history-item:hover::before {
  opacity: 1;
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.history-item-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-light);
}

.history-item-date {
  font-size: 0.75rem;
  color: var(--text-faded);
  letter-spacing: 0.1em;
}

.history-item-preview {
  font-size: 0.9rem;
  color: var(--text-aged);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-faded);
}

.empty-state p:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-aged);
  margin-bottom: 0.5rem;
}

.empty-state .subtle {
  color: var(--text-whisper);
  font-size: 0.9rem;
  font-style: italic;
}

/* === SESSION / CHAT === */
.session-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg-abyss);
}

.view-session-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.message {
  max-width: 88%;
  padding: 1.25rem 1.5rem;
  line-height: 1.8;
  position: relative;
}

.message.assistant {
  background: var(--bg-deep);
  border-left: 2px solid var(--accent-copper);
  align-self: flex-start;
}

/* Decorative quote mark for assistant */
.message.assistant::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent-ember);
  opacity: 0.15;
  line-height: 1;
}

.message.user {
  background: var(--accent-deep);
  border-right: 2px solid var(--accent-ember);
  align-self: flex-end;
}

.message.system {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-faded);
  text-align: center;
  align-self: center;
  font-size: 0.9rem;
  font-style: italic;
  max-width: 80%;
  position: relative;
}

/* Decorative corners for system messages */
.message.system::before,
.message.system::after {
  content: '◇';
  position: absolute;
  color: var(--accent-ember);
  font-size: 0.5rem;
  opacity: 0.5;
}

.message.system::before {
  top: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
}

.message.system::after {
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
}

.message p {
  margin-bottom: 1rem;
}

.message p:last-child {
  margin-bottom: 0;
}

.message strong {
  color: var(--accent-flame);
  font-weight: 600;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 6px;
  padding: 0.5rem 0;
  align-items: center;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--accent-ember);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* === SESSION FOOTER === */
.session-footer {
  padding: 1.25rem 1.5rem;
  padding-bottom: calc(1.25rem + var(--safe-bottom));
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-abyss);
}

.input-area {
  display: flex;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

.input-area textarea {
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  font-size: 1rem;
  resize: none;
  min-height: 52px;
  max-height: 200px;
  line-height: 1.6;
  transition: border-color 0.3s ease;
}

.input-area textarea:focus {
  outline: none;
  border-color: var(--accent-copper);
}

.input-area textarea::placeholder {
  color: var(--text-whisper);
  font-style: italic;
}

.send-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-ember);
  color: var(--bg-void);
  font-size: 1.25rem;
  font-weight: bold;
  transition: all 0.3s ease;
  align-self: flex-end;
}

.send-btn:hover {
  background: var(--accent-flame);
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === PHASE PROGRESS INDICATOR === */
.phase-progress {
  max-width: 700px;
  margin: 0.75rem auto 0;
  padding: 0.75rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.phase-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.phase-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-whisper);
  padding: 0.35rem 0.75rem;
  background: var(--bg-abyss);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.phase-step.completed {
  color: var(--success);
  background: rgba(90, 122, 80, 0.1);
}

.phase-step.completed::before {
  content: '\2713';
  font-size: 0.65rem;
}

.phase-step.current {
  color: var(--accent-flame);
  background: var(--accent-deep);
  border: 1px solid var(--accent-copper);
}

.phase-step.current::before {
  content: '\25CF';
  font-size: 0.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.phase-step.upcoming {
  color: var(--text-whisper);
  opacity: 0.6;
}

.phase-connector {
  width: 16px;
  height: 1px;
  background: var(--border-visible);
}

.phase-connector.completed {
  background: var(--success);
}

.phase-status {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-faded);
  font-style: italic;
  letter-spacing: 0.05em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === PHASE TRANSITION OVERLAY === */
.phase-transition-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.phase-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

.transition-content {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
  animation: transitionSlideUp 0.5s ease;
}

@keyframes transitionSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.transition-icon {
  font-size: 2.5rem;
  color: var(--accent-flame);
  margin-bottom: 1.5rem;
  animation: transitionPulse 1.5s ease-in-out infinite;
}

@keyframes transitionPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.transition-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent-flame);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.transition-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.transition-description {
  color: var(--text-aged);
  font-size: 1rem;
  line-height: 1.6;
}

/* Auto-progress indicator (subtle "ready to advance" hint) */
.auto-progress-ready {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(90, 122, 80, 0.1);
  border: 1px solid rgba(90, 122, 80, 0.3);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--success);
  animation: fadeIn 0.3s ease;
}

.auto-progress-ready.visible {
  display: flex;
}

.auto-progress-ready::before {
  content: '\2713';
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === COMPLETION CARD (Shareable) === */
.completion-message {
  padding: 0 !important;
  background: transparent !important;
}

.completion-card {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-void) 100%);
  border: 1px solid var(--accent-flame);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.completion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-ember), var(--accent-flame), var(--accent-ember));
}

.completion-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.completion-icon {
  font-size: 1.25rem;
  color: var(--accent-flame);
}

.completion-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-flame);
}

.completion-protocol {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-bone);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.completion-commitment {
  background: rgba(212, 145, 90, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.commitment-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-whisper);
  margin-bottom: 0.75rem;
}

.commitment-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-faded);
  line-height: 1.6;
  margin: 0;
}

.completion-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-whisper);
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.completion-actions {
  margin-top: 1rem;
}

.share-completion-btn {
  background: var(--accent-ember);
  color: var(--bg-void);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-completion-btn:hover {
  background: var(--accent-flame);
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: calc(1.5rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-visible);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10001;
}

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

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--danger);
}

.toast.warning {
  border-color: var(--accent-flame);
}

.toast.info {
  border-color: var(--accent-subtle);
}

/* === LOADING STATE === */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* === RESPONSIVE === */
@media (min-width: 640px) {
  .hero-section {
    min-height: 50vh;
  }

  .hero-image {
    opacity: 0.4;
  }

  .protocols-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
    gap: 1px;
  }

  .protocol-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
  }

  .protocol-number {
    margin-bottom: 0.75rem;
  }

  .quick-actions {
    max-width: 500px;
  }

  .home-header {
    padding: 5rem 2rem 4rem;
  }

  .logo {
    font-size: 3rem;
  }
}

@media (min-width: 900px) {
  .hero-section {
    min-height: 55vh;
  }

  .hero-image {
    opacity: 0.45;
  }

  html {
    font-size: 18px;
  }

  .protocols-grid {
    max-width: 800px;
  }
}

/* === DECORATIVE DIVIDER === */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  color: var(--text-whisper);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-visible), transparent);
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
  background: var(--border-visible);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-accent);
}

/* === SELECTION === */
::selection {
  background: var(--accent-ember);
  color: var(--bg-void);
}

/* === FOCUS STYLES === */
:focus-visible {
  outline: 1px solid var(--accent-ember);
  outline-offset: 2px;
}

/* === PAGE ENTRANCE ANIMATION === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen.active {
  animation: fadeIn 0.5s ease-out;
}

.protocol-card {
  animation: fadeIn 0.5s ease-out;
  animation-fill-mode: both;
}

.protocol-card:nth-child(1) { animation-delay: 0.05s; }
.protocol-card:nth-child(2) { animation-delay: 0.1s; }
.protocol-card:nth-child(3) { animation-delay: 0.15s; }
.protocol-card:nth-child(4) { animation-delay: 0.2s; }
.protocol-card:nth-child(5) { animation-delay: 0.25s; }
.protocol-card:nth-child(6) { animation-delay: 0.3s; }
.protocol-card:nth-child(7) { animation-delay: 0.35s; }
.protocol-card:nth-child(8) { animation-delay: 0.4s; }
.protocol-card:nth-child(9) { animation-delay: 0.45s; }
.protocol-card:nth-child(10) { animation-delay: 0.5s; }

/* === REMINDER SETTINGS === */
.reminder-settings {
  margin-top: 1rem;
}

.reminder-toggle {
  margin-bottom: 1rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  color: var(--text-cream);
}

.toggle-label input {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--bg-deep);
  border: 1px solid var(--border-visible);
  transition: all 0.3s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--text-faded);
  transition: all 0.3s ease;
}

.toggle-label input:checked + .toggle-switch {
  background: var(--accent-deep);
  border-color: var(--accent-ember);
}

.toggle-label input:checked + .toggle-switch::after {
  left: 25px;
  background: var(--accent-flame);
}

.reminder-options {
  padding: 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reminder-options.hidden {
  display: none;
}

.reminder-frequency,
.reminder-window {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.reminder-frequency label,
.reminder-window label {
  color: var(--text-aged);
  font-size: 0.9rem;
}

.reminder-window span {
  color: var(--text-faded);
  font-size: 0.9rem;
}

.reminder-settings select {
  padding: 0.5rem 0.75rem;
  background: var(--bg-abyss);
  border: 1px solid var(--border-visible);
  color: var(--text-cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.reminder-settings select:focus {
  outline: none;
  border-color: var(--accent-ember);
}

.reminder-status {
  font-size: 0.85rem;
  color: var(--text-faded);
  font-style: italic;
  margin-top: 0.5rem;
}

.reminder-status.active {
  color: var(--accent-flame);
}

/* === JOURNAL SCREEN === */
.journal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.journal-nav {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1rem;
  background: var(--bg-abyss);
}

.journal-tab {
  flex: 1;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faded);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.journal-tab:hover {
  color: var(--text-cream);
}

.journal-tab.active {
  color: var(--accent-flame);
  border-bottom-color: var(--accent-ember);
}

.journal-view {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.journal-view.active {
  display: block;
}

.journal-entries {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.journal-entry {
  background: var(--bg-deep);
  border-left: 2px solid var(--accent-copper);
  padding: 1.5rem;
}

.journal-entry-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent-flame);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.journal-entry-type {
  font-size: 0.75rem;
  color: var(--text-faded);
  padding: 0.25rem 0.5rem;
  background: var(--bg-abyss);
  display: inline-block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.journal-entry-content {
  color: var(--text-aged);
  line-height: 1.8;
}

.journal-entry-content strong {
  color: var(--text-light);
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

/* Insights view */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.insight-card {
  background: var(--bg-deep);
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent-ember);
  position: relative;
}

.insight-card::before {
  content: '"';
  position: absolute;
  top: 0.25rem;
  right: 0.75rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent-ember);
  opacity: 0.1;
}

.insight-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
}

.insight-source {
  font-size: 0.8rem;
  color: var(--text-faded);
  margin-top: 0.75rem;
  letter-spacing: 0.1em;
}

/* Patterns view */
.patterns-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.pattern-card {
  background: var(--bg-deep);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.pattern-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pattern-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent-flame);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.pattern-count {
  font-size: 0.75rem;
  color: var(--text-faded);
}

.pattern-description {
  color: var(--text-aged);
  line-height: 1.6;
}

/* === COMMITMENTS SCREEN === */
.commitments-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem;
}

.commitments-summary {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.summary-stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-flame);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-faded);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.commitments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.commitment-item {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.commitment-item:hover {
  border-color: var(--border-visible);
}

.commitment-item.completed {
  opacity: 0.6;
}

.commitment-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.commitment-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 1px solid var(--border-visible);
  background: var(--bg-abyss);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-flame);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.commitment-checkbox:hover {
  border-color: var(--accent-ember);
}

.commitment-checkbox.checked {
  background: var(--accent-ember);
  border-color: var(--accent-ember);
  color: var(--bg-void);
}

.commitment-text {
  flex: 1;
}

.commitment-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.commitment-why {
  font-size: 0.9rem;
  color: var(--text-aged);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.commitment-action {
  font-size: 0.85rem;
  color: var(--accent-flame);
}

.commitment-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-faded);
}

.commitment-streak {
  color: var(--success);
}

/* === FAB BUTTON === */
.fab-btn {
  position: fixed;
  bottom: calc(1.5rem + var(--safe-bottom));
  right: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--accent-ember);
  color: var(--bg-void);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border: none;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.fab-btn:hover {
  background: var(--accent-flame);
  transform: translateY(-2px);
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

/* Auth modal should appear on top of other modals */
#auth-modal {
  z-index: 1100;
}

.modal-content {
  background: var(--bg-abyss);
  border: 1px solid var(--border-visible);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-faded);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--accent-flame);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* Reflection form */
.reflection-prompts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reflection-date {
  font-family: var(--font-display);
  color: var(--accent-flame);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.reflection-field,
.commitment-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reflection-field label,
.commitment-field label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-cream);
  line-height: 1.4;
}

.reflection-field textarea,
.commitment-field textarea,
.commitment-field input {
  padding: 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.reflection-field textarea:focus,
.commitment-field textarea:focus,
.commitment-field input:focus {
  outline: none;
  border-color: var(--accent-ember);
}

.reflection-field textarea::placeholder,
.commitment-field textarea::placeholder,
.commitment-field input::placeholder {
  color: var(--text-whisper);
  font-style: italic;
}

/* === DECORATIVE FOOTER === */
#app::after {
  content: '◆ ◆ ◆ ◆ ◆ ◆ ◆';
  display: block;
  text-align: center;
  color: var(--border-visible);
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  padding: 2rem 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* === AUTH UI === */
.auth-state {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-state.hidden {
  display: none;
}

.auth-email {
  font-size: 0.9rem;
  color: var(--text-cream);
  word-break: break-all;
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-deep);
  border: 1px solid var(--accent-ember);
  color: var(--accent-flame);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.subscription-badge .badge-icon {
  color: var(--success);
}

.logout-btn {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
}

/* Auth Modal */
.auth-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.auth-description {
  color: var(--text-aged);
  text-align: center;
}

.auth-field input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  font-size: 1rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent-ember);
}

.auth-field input::placeholder {
  color: var(--text-whisper);
}

.auth-error {
  color: var(--danger);
  font-size: 0.9rem;
  text-align: center;
}

.auth-error.hidden {
  display: none;
}

.magic-link-sent {
  text-align: center;
  padding: 1rem 0;
}

.magic-link-sent .sent-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.magic-link-sent h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.magic-link-sent p {
  color: var(--text-aged);
  line-height: 1.6;
}

.magic-link-sent .subtle {
  font-size: 0.85rem;
  color: var(--text-faded);
  margin-top: 1rem;
}

/* Subscribe Gate Modal */
.subscribe-benefits {
  list-style: none;
  margin: 1.5rem 0;
}

.subscribe-benefits li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-aged);
}

.subscribe-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
}

#subscribe-gate-modal .modal-footer {
  flex-direction: column;
  gap: 0.75rem;
}

#subscribe-gate-modal .modal-footer button {
  width: 100%;
}

/* === 5-YEAR TUESDAY VIRAL HOOK === */

/* Home screen entry point */
.viral-hook-container {
  padding: 0 1.5rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.viral-hook-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-deep) 0%, rgba(184, 115, 51, 0.15) 100%);
  border: 1px solid var(--accent-ember);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.viral-hook-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 145, 90, 0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.viral-hook-btn:hover::before {
  transform: translateX(100%);
}

.viral-hook-btn:hover {
  background: linear-gradient(135deg, rgba(184, 115, 51, 0.2) 0%, rgba(212, 145, 90, 0.25) 100%);
  border-color: var(--accent-flame);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(184, 115, 51, 0.2);
}

.hook-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.hook-icon {
  font-size: 1.75rem;
  color: var(--accent-flame);
  opacity: 0.9;
}

.hook-text {
  flex: 1;
  text-align: left;
}

.hook-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-light);
  display: block;
  letter-spacing: 0.05em;
}

.hook-subtitle {
  font-size: 0.85rem;
  color: var(--text-faded);
  display: block;
  margin-top: 0.25rem;
}

.hook-arrow {
  font-size: 1.25rem;
  color: var(--accent-flame);
  transition: transform 0.3s ease;
}

.viral-hook-btn:hover .hook-arrow {
  transform: translateX(4px);
}

/* Social Proof */
.social-proof {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-ghost);
  opacity: 0.8;
}

.proof-count {
  color: var(--accent-ember);
  font-weight: 600;
}

/* Tuesday Screen Styles */
.tuesday-header {
  background: var(--bg-abyss);
}

.tuesday-title-area {
  flex: 1;
}

.tuesday-title-area h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.tuesday-subtitle {
  font-size: 0.8rem;
  color: var(--text-faded);
  letter-spacing: 0.1em;
}

.tuesday-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg-void);
}

.tuesday-step {
  display: none;
  flex: 1;
  padding: 2rem 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

.tuesday-step.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Intro step */
.tuesday-intro {
  text-align: center;
  max-width: 400px;
}

.tuesday-intro-icon {
  font-size: 3rem;
  color: var(--accent-flame);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.tuesday-intro h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.tuesday-intro p {
  color: var(--text-aged);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.tuesday-warning {
  font-style: italic;
  color: var(--text-faded);
  font-size: 0.9rem;
  margin-bottom: 2rem !important;
}

.tuesday-intro .primary-btn {
  margin-top: 1rem;
  min-width: 180px;
}

/* Question steps */
.tuesday-question-container {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.tuesday-progress {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent-flame);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}

.tuesday-question {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.tuesday-hint {
  color: var(--text-faded);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.tuesday-input {
  width: 100%;
  padding: 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-light);
  transition: border-color 0.3s ease;
  margin-bottom: 1.5rem;
}

.tuesday-input:focus {
  outline: none;
  border-color: var(--accent-ember);
}

.tuesday-input::placeholder {
  color: var(--text-whisper);
}

/* Hide ugly number input spinners */
.tuesday-input::-webkit-outer-spin-button,
.tuesday-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tuesday-input[type=number] {
  -moz-appearance: textfield;
}

.tuesday-textarea {
  width: 100%;
  padding: 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  font-size: 1rem;
  color: var(--text-light);
  resize: none;
  line-height: 1.7;
  transition: border-color 0.3s ease;
  margin-bottom: 1.5rem;
}

.tuesday-textarea:focus {
  outline: none;
  border-color: var(--accent-ember);
}

.tuesday-textarea::placeholder {
  color: var(--text-whisper);
  font-style: italic;
}

.tuesday-question-container .primary-btn {
  min-width: 160px;
}

.tuesday-question-container .primary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Generating step */
.tuesday-generating {
  text-align: center;
}

.tuesday-loading {
  margin-bottom: 2rem;
}

.tuesday-spinner {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent-flame);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

.tuesday-generating h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.tuesday-loading-hint {
  color: var(--text-faded);
  font-size: 0.9rem;
  font-style: italic;
}

/* Result step */
.tuesday-result-container {
  width: 100%;
  max-width: 600px;
}

.tuesday-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tuesday-result-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent-flame);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tuesday-result-age {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-cream);
}

.tuesday-result-content {
  background: var(--bg-deep);
  border-left: 3px solid var(--accent-copper);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.tuesday-result-content::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent-ember);
  opacity: 0.15;
  line-height: 1;
}

.tuesday-result-content p {
  color: var(--text-aged);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.tuesday-result-content p:last-child {
  margin-bottom: 0;
}

.tuesday-result-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tuesday-result-actions button {
  flex: 1;
}

.tuesday-cta-hint {
  text-align: center;
  color: var(--text-faded);
  font-size: 0.85rem;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .tuesday-question {
    font-size: 1.2rem;
  }

  .tuesday-result-actions {
    flex-direction: column;
  }

  .hook-title {
    font-size: 1rem;
  }

  .hook-subtitle {
    font-size: 0.8rem;
  }
}

/* === THE ONE THING - Actionable Insight === */
.tuesday-one-thing {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--accent-copper);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.tuesday-one-thing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-ember), var(--accent-flame), var(--accent-ember));
}

.one-thing-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.one-thing-icon {
  color: var(--accent-flame);
  font-size: 1.2rem;
}

.one-thing-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-flame);
}

.one-thing-pattern {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pattern-label {
  color: var(--text-faded);
  font-size: 0.85rem;
}

.pattern-name {
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.one-thing-action {
  color: var(--text-cream);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.one-thing-timeframe {
  color: var(--accent-ember);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

/* === IMPROVED JOURNAL CARDS === */
.journal-entry {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  transition: border-color 0.2s ease;
}

.journal-entry:hover {
  border-color: var(--border-accent);
}

.journal-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.journal-entry-date {
  font-size: 0.8rem;
  color: var(--text-faded);
  margin-bottom: 0.5rem;
}

.journal-entry-type {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background: var(--accent-deep);
  color: var(--accent-flame);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* AI-generated summary for journal entries */
.journal-entry-summary {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-cream);
  line-height: 1.5;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-copper);
}

.journal-entry-content {
  color: var(--text-aged);
  font-size: 0.9rem;
  line-height: 1.6;
}

.journal-entry-content strong {
  color: var(--text-cream);
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

/* Pattern tags on journal entries */
.journal-entry-patterns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.pattern-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-raised);
  color: var(--text-faded);
  border-radius: 3px;
  text-transform: lowercase;
}

.pattern-tag.recurring {
  background: var(--accent-deep);
  color: var(--accent-flame);
}

/* Pattern alert banner */
.pattern-alert {
  background: linear-gradient(135deg, rgba(184, 115, 51, 0.1) 0%, rgba(212, 145, 90, 0.05) 100%);
  border: 1px solid var(--accent-copper);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.pattern-alert-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pattern-alert-icon {
  color: var(--accent-flame);
}

.pattern-alert-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-flame);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pattern-alert-message {
  color: var(--text-cream);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pattern-alert-question {
  color: var(--text-aged);
  font-style: italic;
  margin-top: 0.5rem;
}

/* === RETURN VISIT FOLLOW-UP === */
.followup-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.followup-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.followup-header {
  margin-bottom: 1.5rem;
}

.followup-label {
  font-size: 0.75rem;
  color: var(--text-faded);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.followup-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-light);
}

.followup-reminder {
  background: var(--bg-deep);
  border-left: 3px solid var(--accent-copper);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.followup-reminder-label {
  font-size: 0.7rem;
  color: var(--accent-ember);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.followup-reminder-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-cream);
}

.followup-question {
  color: var(--text-aged);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.followup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.followup-btn {
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.followup-btn.yes {
  background: var(--accent-ember);
  color: var(--text-light);
}

.followup-btn.yes:hover {
  background: var(--accent-flame);
}

.followup-btn.no {
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--text-aged);
}

.followup-btn.no:hover {
  border-color: var(--accent-ember);
  color: var(--text-cream);
}

.followup-skip {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-faded);
  background: none;
  border: none;
  cursor: pointer;
}

.followup-skip:hover {
  color: var(--text-aged);
}

/* === PRICING OPTIONS === */
.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.pricing-best {
  position: relative;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-ember) 0%, var(--accent-copper) 100%);
  border: 2px solid var(--accent-flame);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.pricing-best:hover {
  background: linear-gradient(135deg, var(--accent-flame) 0%, var(--accent-ember) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 145, 90, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: var(--bg-void);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
}

.pricing-savings {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* === CREDITS SYSTEM UI === */
.credits-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  margin: 0 auto 1rem;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

.credits-icon {
  font-size: 1.5rem;
  color: var(--accent-flame);
}

.credits-info {
  flex: 1;
}

.credits-count {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
}

.credits-label {
  font-size: 0.75rem;
  color: var(--text-faded);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.credits-low {
  border-color: var(--danger);
}

.credits-low .credits-count {
  color: var(--danger);
}

.credits-refill-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Credits cost badge on protocol cards */
.protocol-cost {
  font-size: 0.7rem;
  color: var(--accent-ember);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* Low credits warning modal */
.credits-warning {
  text-align: center;
  padding: 1rem 0;
}

.credits-warning-icon {
  font-size: 3rem;
  color: var(--accent-flame);
  margin-bottom: 1rem;
}

.credits-warning h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.credits-warning p {
  color: var(--text-aged);
  margin-bottom: 0.5rem;
}

.credits-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.credits-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.credits-option:hover {
  border-color: var(--accent-ember);
  background: var(--bg-surface);
}

.credits-option.featured {
  border-color: var(--accent-ember);
  background: var(--accent-deep);
}

.credits-option-info {
  text-align: left;
}

.credits-option-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
}

.credits-option-bonus {
  font-size: 0.8rem;
  color: var(--success);
}

.credits-option-price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-flame);
}

/* === REFERRAL SYSTEM === */
.referral-card {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--accent-copper);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.referral-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.referral-icon {
  font-size: 1.5rem;
  color: var(--accent-flame);
}

.referral-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.referral-benefit {
  color: var(--text-aged);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.referral-benefit strong {
  color: var(--accent-flame);
}

.referral-code-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.referral-code {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-abyss);
  border: 1px solid var(--border-visible);
  color: var(--text-cream);
  font-family: monospace;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.1em;
}

.referral-copy-btn {
  padding: 0.75rem 1rem;
  background: var(--accent-ember);
  color: var(--bg-void);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.referral-copy-btn:hover {
  background: var(--accent-flame);
}

.referral-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.referral-stat {
  text-align: center;
}

.referral-stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-flame);
}

.referral-stat-label {
  font-size: 0.7rem;
  color: var(--text-faded);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === SHAREABLE INSIGHT CARDS === */
.insight-share-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-void) 100%);
  border: 1px solid var(--border-accent);
  padding: 2rem;
  margin: 1.5rem 0;
  overflow: hidden;
}

.insight-share-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-ember), var(--accent-flame), var(--accent-ember));
}

.insight-share-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.insight-share-quote::before,
.insight-share-quote::after {
  content: '"';
  color: var(--accent-ember);
  font-size: 2rem;
  opacity: 0.5;
}

.insight-share-watermark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-faded);
  letter-spacing: 0.15em;
}

.insight-share-watermark::before {
  content: '✦';
  color: var(--accent-ember);
}

.share-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.share-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-visible);
  color: var(--text-aged);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.share-btn:hover {
  border-color: var(--accent-ember);
  color: var(--accent-flame);
}

/* === STREAK DISPLAY (GENTLE) === */
.streak-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
}

.streak-flame {
  font-size: 1rem;
  color: var(--accent-flame);
}

.streak-count {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}

.streak-label {
  font-size: 0.75rem;
  color: var(--text-faded);
}


/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === PRIVACY INDICATORS === */

/* Privacy status in About section */
.privacy-status {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  margin-bottom: 1rem;
}

.privacy-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.encryption-icon {
  font-size: 1.1rem;
}

.encryption-icon::before {
  content: '\1F512'; /* Lock icon */
}

.encryption-icon.unlocked::before {
  content: '\1F513'; /* Unlocked icon */
}

#encryption-status {
  font-size: 0.9rem;
  color: var(--text-aged);
}

#encryption-status.encrypted {
  color: var(--accent-pulse);
}

#encryption-status.unencrypted {
  color: var(--accent-ember);
}

.privacy-details {
  font-size: 0.85rem;
  color: var(--text-faded);
  line-height: 1.6;
}

.privacy-details p {
  margin: 0;
}

.privacy-details em {
  color: var(--text-aged);
  font-style: normal;
  font-weight: 500;
}

.privacy-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.privacy-actions .secondary-btn {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--text-ghost);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Session Privacy Badge */
.session-privacy-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  color: var(--text-faded);
  cursor: help;
}

.privacy-badge-icon::before {
  content: '\1F512';
  font-size: 0.7rem;
}

.privacy-badge-text {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Privacy badge states */
.session-privacy-badge.encrypted {
  border-color: var(--accent-pulse);
  color: var(--accent-pulse);
}

.session-privacy-badge.local-only {
  border-color: var(--accent-ember);
}

/* Toast notification for key actions */
.privacy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-deep);
  border: 1px solid var(--accent-pulse);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  z-index: 1000;
  animation: fadeInUp 0.3s ease-out;
}

.privacy-toast.error {
  border-color: var(--accent-ember);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
