/* ========== Mobile App - Bright & Hopeful Theme ========== */
:root {
  --bg-light: #f8f5ff;
  --bg-white: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-input: #ffffff;
  --accent: #7c4dff;
  --accent-light: #b388ff;
  --accent-soft: rgba(124, 77, 255, 0.1);
  --gold: #ff9800;
  --gold-light: #ffb74d;
  --sunrise: linear-gradient(135deg, #ff9a56 0%, #ffb74d 50%, #ffd54f 100%);
  --text: #2d2d3a;
  --text-muted: rgba(45, 45, 58, 0.6);
  --text-light: #ffffff;
  --border: rgba(124, 77, 255, 0.15);
  --success: #4caf50;
  --success-light: #81c784;
  --danger: #f44336;
  --sky-blue: #64b5f6;
  --lavender: #ce93d8;
  --peach: #ffab91;
  --mint: #80cbc4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  background: var(--bg-light);
  color: var(--text);
  overflow: hidden;
  overflow-x: hidden;
}

/* ========== Soft Gradient Background ========== */
.stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(206, 147, 216, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(100, 181, 246, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 183, 77, 0.2) 0%, transparent 50%);
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* ========== Auth Screen ========== */
.auth-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: env(safe-area-inset-top, 20px);
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.auth-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #e8f5e9 0%, #f3e5f5 40%, #fff3e0 80%, #e3f2fd 100%);
}

.auth-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  text-align: center;
  z-index: 1;
  padding: 0 16px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.auth-logo {
  font-size: 64px;
  margin-bottom: 4px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(255, 152, 0, 0.4));
  line-height: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.auth-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  line-height: 1.15;
}

.auth-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--accent-light);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.auth-dev-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #b39ddb;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.7;
}

.auth-dev-dot {
  width: 5px;
  height: 5px;
  background: #b39ddb;
  border-radius: 50%;
  animation: devPulse 2.5s ease-in-out infinite;
}

@keyframes devPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.3; }
}

.auth-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.auth-btn:active {
  transform: scale(0.97);
}

.auth-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 4px 16px rgba(124, 77, 255, 0.3);
}

.auth-btn.secondary {
  background: var(--bg-white);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.auth-btn.text {
  background: transparent;
  color: var(--text-muted);
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
}

/* ========== Auth Forms ========== */
.auth-form {
  text-align: left;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  padding: 0 4px;
}

/* Back buttons — visibility controlled by JS in showAuthForm() */

/* Consistent button spacing within auth forms */
.auth-form > .auth-btn {
  margin-top: 10px;
}
.auth-form > .auth-btn + .auth-btn.text {
  margin-top: 4px;
}
.auth-form > .auth-btn.text + .auth-btn.text {
  margin-top: 2px;
}

.auth-form h2 {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--accent);
  letter-spacing: 0.3px;
}

/* --- Grouped form card (iOS-style) --- */
.form-group {
  margin-bottom: 14px;
  position: relative;
}

.form-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-group.flex-1 {
  flex: 1;
  min-width: 0;
}

.form-group.flex-1 input {
  width: 100%;
  box-sizing: border-box;
}

.input-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  padding-left: 2px;
  line-height: 1.4;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 5px;
  font-weight: 500;
  padding-left: 2px;
}
.referral-optional { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.auth-subtitle-form { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 20px; }
.auth-step-caption { font-size: 14px; color: var(--accent); text-align: center; font-weight: 600; margin-bottom: 16px; }
.form-section-hint { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
.auth-field-status { font-size: 12px; margin-top: 6px; min-height: 16px; line-height: 1.4; }
.auth-field-status.error { color: #e53935; }
.auth-field-status.success { color: #4caf50; }
.auth-field-status.info { color: var(--text-muted); }
.auth-inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.auth-field-status.info { color: var(--accent); }

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237c4dff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input::placeholder {
  color: rgba(45, 45, 58, 0.35);
}

/* Password input with toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  flex: 1;
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.password-toggle:hover,
.password-toggle.visible {
  opacity: 1;
}

/* Password match status */
.password-match-status {
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
  padding-left: 2px;
}

.password-match-status.error {
  color: #e53935;
}

.password-match-status.success {
  color: var(--success);
}

.form-divider {
  text-align: center;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 14px;
  position: relative;
  font-weight: 600;
}

.form-divider::before,
.form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--border);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.city-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 12px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.city-dropdown.show {
  display: block;
}

.city-dropdown .item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.city-dropdown .item:last-child {
  border-bottom: none;
}

.city-dropdown .item:active {
  background: var(--accent-soft);
}

/* ========== Loading Overlay ========== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #e8f5e9 0%, #f3e5f5 40%, #fff3e0 80%, #e3f2fd 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay.show {
  display: flex;
}

.loading-content {
  text-align: center;
  padding: 40px;
}

.loading-icon {
  font-size: 72px;
  animation: float 2s ease-in-out infinite;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 20px rgba(255, 152, 0, 0.4));
}

.loading-stars {
  font-size: 28px;
  margin-bottom: 20px;
  letter-spacing: 8px;
}

.loading-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.loading-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--gold), var(--peach));
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
  box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
}

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

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ========== App Container ========== */
.app-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
}

/* ========== App Header ========== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header-logo-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.app-logo {
  font-size: 16px;
  line-height: 1;
}

.app-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding-left: 22px;
  margin-top: -1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.credit-glow {
  animation: creditGlow 2s ease-out;
}
@keyframes creditGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); transform: scale(1); }
  20% { box-shadow: 0 0 14px 5px rgba(255, 193, 7, 0.6); transform: scale(1.12); }
  50% { box-shadow: 0 0 22px 10px rgba(255, 193, 7, 0.3); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); transform: scale(1); }
}

.header-badge-label {
  display: block;
  font-size: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.5;
  text-align: center;
  line-height: 1;
}
.header-refresh-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.3s;
  line-height: 1;
}
.header-refresh-btn:not(:disabled) {
  opacity: 1;
  color: var(--accent);
}
.header-refresh-btn:not(:disabled):active {
  transform: rotate(180deg);
}
.header-refresh-btn.spinning {
  opacity: 0.7;
  animation: refreshSpin 1s linear infinite;
  pointer-events: none;
}
@keyframes refreshSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.header-refresh-btn:disabled {
  cursor: default;
}
.header-streak-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,152,0,0.08);
  border: 1px solid rgba(255,152,0,0.2);
  border-radius: 10px;
  padding: 3px 8px 2px;
  white-space: nowrap;
  line-height: 1.2;
}
.header-credit-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 3px 8px 2px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
}

.header-credit-badge:active {
  transform: scale(0.95);
  background: var(--accent-soft);
}

.header-credit-icon {
  font-size: 14px;
  line-height: 1;
}

.header-credit-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.header-credit-badge.low-balance {
  border-color: #f0ad4e;
  background: #fff8ed;
}

.header-credit-badge.low-balance .header-credit-count {
  color: #e68a00;
}

.header-credit-badge.zero-balance {
  border-color: #e74c3c;
  background: #fdf0ef;
}

.header-credit-badge.zero-balance .header-credit-count {
  color: #e74c3c;
}

.header-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
}

/* ========== Tab Navigation ========== */
.tab-nav {
  display: flex;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-btn.active {
  color: var(--accent);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px 3px 0 0;
}

.tab-icon {
  font-size: 20px;
}

.tab-label {
  font-weight: 600;
}

/* ========== Tab Content ========== */
.tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tab-pane {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ========== Insights Tab ========== */
.insights-container {
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* ========== Welcome Banner ========== */
.welcome-banner {
  position: relative;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.1), rgba(255, 152, 0, 0.08));
  border: 1px solid rgba(124, 77, 255, 0.15);
  border-radius: 16px;
  margin-bottom: 14px;
  animation: bannerSlideIn 0.5s ease-out;
}
.welcome-greeting {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.welcome-teaser {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}
.welcome-dismiss {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
  padding: 4px;
}

.reading-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.1), rgba(255, 152, 0, 0.1));
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.status-icon {
  font-size: 32px;
}

.status-text {
  flex: 1;
}

.status-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}

.status-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.quick-link {
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(124, 77, 255, 0.3);
}

/* ========== Insight Cards ========== */
.insight-card {
  background: var(--bg-white);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
}

.card-icon {
  font-size: 24px;
}

.card-title {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.card-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
  font-size: 16px;
  color: var(--accent);
  font-weight: 700;
}

.card-content {
  padding: 0 16px 16px;
}

.card-content.collapsed {
  display: none;
}

/* ========== Data Rows ========== */
.data-section {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 12px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.data-row:last-child {
  border-bottom: none;
}

.data-label {
  color: var(--text-muted);
  font-size: 13px;
}

.data-value {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
}

/* ========== Sub-sections ========== */
.sub-section {
  margin-top: 12px;
}

.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 152, 0, 0.1));
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.sub-toggle {
  font-size: 14px;
  font-weight: 700;
}

.sub-content {
  padding-top: 12px;
}

.sub-content.collapsed {
  display: none;
}

/* ========== Charts ========== */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.chart-box {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
}

.chart-box .chart-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 10px;
}

.chart-box .legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chart-box .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.chart-box .legend-dot.asc {
  background: var(--accent);
}

.chart-label {
  font-size: 13px;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 700;
}

.chart-container {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 280px;
  width: 100%;
}

/* ========== Dasha List ========== */
.dasha-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Dasha Drill-Down */
.dasha-drill-level { margin-bottom: 6px; }
.dasha-drill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.15s;
}
.dasha-drill-header.expandable { cursor: pointer; }
.dasha-drill-header.expandable:active { background: var(--accent-soft); border-color: var(--accent); }
.drill-header-left { flex: 1; }
.drill-level-name { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.drill-level-planet { font-size: 15px; font-weight: 700; color: var(--text); }
.drill-header-right { display: flex; align-items: center; gap: 8px; }
.drill-remaining { font-size: 11px; color: var(--accent); font-weight: 600; }
.drill-arrow { font-size: 10px; color: var(--text-muted); }
.dasha-drill-children { padding-left: 16px; border-left: 2px solid var(--border); margin: 4px 0 4px 14px; }
.dasha-drill-children.collapsed { display: none; }
.dasha-drill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.1s;
  font-size: 13px;
}
.dasha-drill-item:active { background: var(--accent-soft); }
.dasha-drill-item.past { opacity: 0.4; }
.dasha-drill-item.current { font-weight: 600; color: var(--accent); }
.dasha-drill-item.future { opacity: 0.7; }
.drill-planet { font-weight: 600; min-width: 50px; }
.drill-dates { font-size: 11px; color: var(--text-muted); flex: 1; }
.drill-remaining { font-size: 10px; color: var(--accent); font-weight: 600; }
.drill-current-badge { color: var(--accent); font-size: 12px; }

/* What's Next section */
.dasha-whats-next {
  margin-top: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.06), rgba(255, 152, 0, 0.06));
  border: 1px solid var(--border);
  border-radius: 10px;
}
.whats-next-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.next-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text);
}
.next-label { color: var(--text-muted); font-size: 11px; min-width: 80px; }
.next-date { font-size: 11px; color: var(--text-muted); }

.dasha-level {
  margin-bottom: 0;
}

.dasha-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(145deg, rgba(248, 250, 255, 0.95), rgba(240, 245, 255, 0.85));
  border-radius: 12px;
  border: 1px solid rgba(100, 181, 246, 0.2);
  box-shadow: 0 2px 8px rgba(100, 181, 246, 0.06);
  transition: all 0.3s ease;
}

.dasha-item.current {
  background: linear-gradient(145deg, rgba(245, 251, 255, 0.98), rgba(230, 244, 255, 0.95));
  border: 2px solid rgba(100, 181, 246, 0.35);
  box-shadow: 0 4px 12px rgba(100, 181, 246, 0.1);
}

.dasha-level .dasha-item {
  cursor: pointer;
}

.dasha-level .dasha-item:active {
  transform: scale(0.98);
}

.dasha-item.expanded {
  background: linear-gradient(145deg, rgba(240, 248, 255, 0.98), rgba(225, 240, 255, 0.95));
  border-color: var(--sky-blue);
  box-shadow: 0 4px 16px rgba(100, 181, 246, 0.15);
}

.dasha-item .dasha-left {
  flex: 1;
  min-width: 0;
}

.dasha-planet {
  font-weight: 700;
  font-size: 15px;
  color: var(--sky-blue);
  text-shadow: 0 1px 2px rgba(100, 181, 246, 0.1);
}

.dasha-item.expanded .dasha-planet {
  color: var(--sky-blue);
}

.dasha-dates {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dasha-item .dasha-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dasha-item .dasha-period {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: right;
}

.dasha-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 10px;
  color: var(--sky-blue);
  background: rgba(100, 181, 246, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dasha-expand.expanded {
  background: rgba(100, 181, 246, 0.2);
  color: var(--sky-blue);
  transform: rotate(180deg);
}

/* Dasha Timeline Expansion */
.dasha-timeline-list {
  margin-top: 12px;
  margin-left: 8px;
  padding: 12px;
  padding-left: 16px;
  border-left: 3px solid rgba(100, 181, 246, 0.4);
  background: rgba(240, 248, 255, 0.5);
  border-radius: 0 12px 12px 0;
  max-height: 350px;
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

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

.dasha-timeline-list.collapsed {
  display: none;
}

.dasha-timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.9));
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid rgba(100, 181, 246, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.dasha-timeline-item:last-child {
  margin-bottom: 0;
}

.dasha-timeline-item.current {
  background: linear-gradient(135deg, rgba(232, 250, 248, 0.98), rgba(200, 240, 235, 0.9));
  border: 2px solid var(--mint);
  box-shadow: 0 2px 8px rgba(128, 203, 196, 0.15);
}

.dasha-timeline-item .timeline-planet {
  font-weight: 700;
  font-size: 14px;
  color: var(--sky-blue);
}

.dasha-timeline-item.current .timeline-planet {
  color: var(--mint);
}

.dasha-timeline-item .timeline-dates {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

/* ========== Upcoming Changes ========== */
.upcoming-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upcoming-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 253, 250, 0.98), rgba(255, 248, 240, 0.95));
  border-radius: 12px;
  border: 1px solid rgba(255, 183, 77, 0.2);
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.06);
}

.upcoming-item.dasha-change {
  background: linear-gradient(145deg, rgba(248, 250, 255, 0.98), rgba(235, 245, 255, 0.95));
  border-color: rgba(100, 181, 246, 0.25);
  box-shadow: 0 2px 8px rgba(100, 181, 246, 0.08);
}

.upcoming-item.pa-change {
  background: linear-gradient(145deg, rgba(245, 253, 252, 0.98), rgba(230, 250, 248, 0.95));
  border-color: rgba(128, 203, 196, 0.25);
  box-shadow: 0 2px 8px rgba(128, 203, 196, 0.08);
}

.upcoming-item.pas-change {
  background: linear-gradient(145deg, rgba(252, 248, 255, 0.98), rgba(245, 238, 255, 0.95));
  border-color: rgba(206, 147, 216, 0.25);
  box-shadow: 0 2px 8px rgba(206, 147, 216, 0.08);
}

.upcoming-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.upcoming-details {
  flex: 1;
  min-width: 0;
}

.upcoming-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.upcoming-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.upcoming-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.upcoming-countdown {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 152, 0, 0.1);
  color: var(--gold);
}

.upcoming-item.dasha-change .upcoming-countdown {
  background: rgba(100, 181, 246, 0.1);
  color: var(--sky-blue);
}

.upcoming-item.pa-change .upcoming-countdown {
  background: rgba(128, 203, 196, 0.1);
  color: #4db6ac;
}

.upcoming-item.pas-change .upcoming-countdown {
  background: rgba(206, 147, 216, 0.1);
  color: var(--lavender);
}

.upcoming-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-style: italic;
}
.upcoming-item { cursor: pointer; transition: all 0.15s; }
.upcoming-item:active { opacity: 0.7; transform: scale(0.98); }
.upcoming-summary {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}
.upcoming-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 3px;
}
.explain-upcoming-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: var(--bg-white);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.explain-upcoming-btn:active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(0.97);
}

/* ========== Explain Section ========== */
.explain-section {
  margin-top: 10px;
}

.explain-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  background: var(--bg-white);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.explain-btn:active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(0.97);
}
.explain-btn:disabled { opacity: 0.4; cursor: not-allowed; }

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

.explain-result {
  margin-top: 12px;
  display: none;
}

.explain-result.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.explain-content {
  padding: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 255, 0.95));
  border-radius: 12px;
  border: 1px solid rgba(124, 77, 255, 0.15);
  box-shadow: 0 2px 12px rgba(124, 77, 255, 0.08);
}

.explain-content p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

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

.explain-content strong {
  color: var(--accent);
}

.explain-content .highlight {
  background: linear-gradient(135deg, rgba(255, 243, 220, 0.6), rgba(255, 235, 200, 0.4));
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.explain-error {
  padding: 12px 16px;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 8px;
  color: var(--danger);
  font-size: 13px;
}

/* ========== Explain Modal ========== */
.explain-modal {
  max-width: 90%;
  width: 360px;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  padding: 24px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explain-modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.explain-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.explain-modal-body {
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.explain-modal-body p {
  margin-bottom: 12px;
}

.explain-modal-body p:last-child {
  margin-bottom: 0;
}

.explain-modal-body strong {
  color: var(--accent);
}

.explain-modal-body .highlight {
  background: linear-gradient(135deg, rgba(255, 243, 220, 0.6), rgba(255, 235, 200, 0.4));
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Guidance List - Clean bullet points */
.explain-modal-body .guidance-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.explain-modal-body .guidance-list li {
  position: relative;
  padding: 12px 12px 12px 24px;
  margin-bottom: 8px;
  background: var(--bg-light);
  border-radius: 10px;
  line-height: 1.6;
}

.explain-modal-body .guidance-list li::before {
  content: '•';
  position: absolute;
  left: 10px;
  top: 12px;
  color: var(--accent);
  font-weight: bold;
  font-size: 16px;
}

.explain-modal-body .guidance-list li.emoji-bullet {
  padding-left: 12px;
}

.explain-modal-body .guidance-list li.emoji-bullet::before {
  content: none;
}

.explain-modal-body .guidance-list li:last-child {
  margin-bottom: 0;
}

.explain-modal-body .guidance-list li strong {
  color: var(--text);
  font-weight: 700;
}

.explain-modal-body .guidance-list li strong:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.explain-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: var(--text-muted);
}

.explain-loading .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(124, 77, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.chat-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.1), rgba(100, 181, 246, 0.1));
  border: 2px solid var(--accent);
  border-radius: 12px;
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
  transition: all 0.2s;
}

.chat-prompt:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), rgba(100, 181, 246, 0.2));
}

/* ========== Horoscope Cards ========== */
.horoscope-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.horoscope-card {
  padding: 20px 14px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.horoscope-card.daily {
  background: linear-gradient(145deg, rgba(255, 213, 79, 0.25), rgba(255, 167, 38, 0.15));
  border-color: rgba(255, 183, 77, 0.25);
  box-shadow: 0 4px 16px rgba(255, 167, 38, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.horoscope-card.weekly {
  background: linear-gradient(145deg, rgba(100, 181, 246, 0.2), rgba(66, 165, 245, 0.12));
  border-color: rgba(100, 181, 246, 0.25);
  box-shadow: 0 4px 16px rgba(66, 165, 245, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.horoscope-card.tomorrow {
  background: linear-gradient(145deg, rgba(255, 183, 77, 0.2), rgba(255, 138, 101, 0.15));
  border-color: rgba(255, 183, 77, 0.25);
  box-shadow: 0 4px 16px rgba(255, 138, 101, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.horoscope-card:active {
  transform: scale(0.95);
}

.horoscope-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.horoscope-date {
  margin-bottom: 6px;
}

.horoscope-date .date-day {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.5px;
}

.horoscope-date .date-month {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  display: block;
  margin-top: 2px;
}

.horoscope-date .date-range {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.3px;
}

.horoscope-date .date-range-months {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  display: block;
  margin-top: 2px;
}

/* Modal date badge (replaces emoji icon) */
.modal-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(124, 77, 255, 0.04));
  border: 1px solid rgba(124, 77, 255, 0.15);
  margin-bottom: 12px;
}

.modal-date-badge .badge-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 2px;
}

.modal-date-badge .badge-date {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.horoscope-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.horoscope-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Refresh Reading Button - styles moved to bottom of file */

/* ========== Chat Tab ========== */
.chat-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chat-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fafafa 0%, #f5f0ff 50%, #fff8e1 100%);
  z-index: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  z-index: 1;
  position: relative;
}

.chat-message {
  margin-bottom: 16px;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--peach));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(255, 152, 0, 0.2);
}

.message-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
}

.message-content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.message-content strong, .message-content b {
  font-weight: 600;
  color: var(--text);
}
.message-content p {
  margin: 0 0 8px;
}
.message-content p:last-child {
  margin-bottom: 0;
}

.message-user {
  text-align: right;
}

.message-user .message-bubble {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  max-width: 80%;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(124, 77, 255, 0.2);
}

/* ========== Chat Suggestions ========== */
.chat-suggestions {
  padding: 0 16px;
  z-index: 1;
  position: relative;
}

.suggestion-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.suggestion-btn:active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.suggestions-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 4px;
}

/* ========== Starter Question Pills ========== */
.starter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  z-index: 1;
  position: relative;
}

.starter-pill {
  padding: 10px 18px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.starter-pill:active {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: scale(0.96);
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
}

/* Thinking animation */
.thinking-text {
  color: var(--accent);
  font-style: italic;
}

.thinking-text::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ========== Question Counter ========== */
.question-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 16px;
  padding: 8px 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  z-index: 1;
  position: relative;
}

.counter-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#questionsLeft {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.buy-btn {
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Low/zero balance warnings */
.question-counter.low-balance {
  border-color: #f59e0b;
}
.question-counter.low-balance .counter-icon path {
  fill: #f59e0b;
  stroke: #f59e0b;
}
.question-counter.zero-balance {
  border-color: #ef4444;
}
.question-counter.zero-balance .counter-icon path {
  fill: #ef4444;
  stroke: #ef4444;
}

/* ========== "Go deeper" hint on short responses ========== */
.deeper-hint {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  line-height: 1.4;
}
.deeper-hint-clickable {
  cursor: pointer;
}
.deeper-hint-clickable:active {
  opacity: 0.7;
}
.deeper-hint strong {
  color: var(--accent);
}

/* ========== Chat Input ========== */
.chat-input-area {
  padding: 8px 16px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 1;
  position: relative;
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 20px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chat-encrypted-badge {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

#chatInput {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
  min-height: 22px;
  overflow-y: hidden;
  transition: all 0.2s ease;
}

#chatInput::placeholder {
  color: var(--text-muted);
}

/* Expanded state — textarea grows modestly */
.chat-input-area.expanded #chatInput {
  min-height: 80px;
  max-height: 120px;
  overflow-y: auto;
  padding-top: 4px;
}

.chat-input-area.expanded .chat-input-wrap {
  align-items: flex-end;
  border-radius: 18px;
}

.mic-btn,
.send-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 2px 10px rgba(124, 77, 255, 0.3);
}

.send-btn {
  background: var(--bg-light);
  color: var(--text-muted);
}

.send-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--success), var(--success-light));
  color: white;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* Mic button listening state */
.mic-btn.listening {
  background: linear-gradient(135deg, #f44336, #ff5252);
  animation: pulse-mic 1s ease-in-out infinite;
}

@keyframes pulse-mic {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
}

/* Like button on messages */
.message-actions {
  display: flex;
  justify-content: flex-end;
  padding: 6px 12px 4px;
}
.like-btn {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  transition: all 0.2s ease;
}
.like-btn:hover {
  background: rgba(124, 77, 255, 0.08);
  color: var(--accent);
  border-color: var(--accent);
}
.like-btn.liked {
  background: rgba(124, 77, 255, 0.12);
  color: var(--accent);
  border-color: var(--accent);
  animation: like-pop 0.3s ease;
}
@keyframes like-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Speaker button on messages */
.speak-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.speak-btn:hover {
  background: rgba(124, 77, 255, 0.2);
  color: var(--accent);
}

.speak-btn:active {
  transform: scale(0.9);
}

.speak-btn.speaking {
  background: rgba(124, 77, 255, 0.3);
  color: var(--accent);
  animation: pulse-speak 1.5s ease-in-out infinite;
}

@keyframes pulse-speak {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Floating link removed — Insights accessible via tab bar */

/* ========== Profile Tab ========== */
.profile-container {
  padding: 20px 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.profile-header {
  text-align: center;
  margin-bottom: 24px;
}

.profile-avatar-wrap {
  position: relative;
  width: 88px;
  margin: 0 auto 12px;
}
.profile-avatar {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.3);
  overflow: hidden;
}
.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: 2px solid white;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 0;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.profile-email {
  font-size: 14px;
  color: var(--text-muted);
}

.profile-section {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 700;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  color: var(--text-muted);
  font-size: 14px;
}

.profile-value {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

/* Toggle row alignment */
.profile-row.toggle-row {
  align-items: center;
}

.profile-row-hint {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0 8px;
  margin-top: -8px;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-light);
  border-radius: 28px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
}

.profile-btn {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-sizing: border-box;
}

.profile-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 2px 10px rgba(124, 77, 255, 0.25);
}

.profile-btn.primary:active {
  box-shadow: 0 1px 4px rgba(124, 77, 255, 0.2);
  transform: scale(0.98);
}

.profile-btn.logout {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}

.profile-btn.logout:active {
  background: rgba(0, 0, 0, 0.03);
}

.profile-btn.danger {
  width: 100%;
  padding: 10px 20px;
  background: none;
  border: none;
  color: rgba(244, 67, 54, 0.7);
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

.profile-btn.danger:active {
  color: var(--danger);
}

/* ========== Payment Section ========== */
.payment-card {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  color: white;
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
}

.payment-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.payment-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.payment-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin-bottom: 16px;
}

.balance-label {
  font-size: 13px;
  opacity: 0.9;
}

.balance-value {
  font-size: 20px;
  font-weight: 700;
}

/* Credit cost reference table */
.credit-costs {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-bottom: 14px;
}
.credit-costs-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  margin-bottom: 6px;
}
.credit-cost-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 2px 0;
  opacity: 0.9;
}

/* Payment badge (Popular, Best Value) */
.payment-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 2px;
}
.payment-badge.best {
  background: rgba(255, 255, 255, 0.45);
}
.payment-label {
  margin-top: 2px;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}

.payment-option {
  position: relative;
  padding: 14px 10px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid transparent;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-option.popular {
  background: rgba(255, 152, 0, 0.15);
  border-color: rgba(255, 152, 0, 0.4);
}

.payment-option.best {
  background: rgba(124, 77, 255, 0.15);
  border-color: rgba(124, 77, 255, 0.4);
}

.payment-option:active,
.payment-option.selected {
  background: rgba(255, 255, 255, 0.35);
  border-color: white;
  transform: scale(0.97);
}

.payment-option.popular.selected {
  border-color: var(--gold);
}

.payment-option.best.selected {
  border-color: var(--accent-light);
}

.payment-badge {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.payment-qty {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.payment-label {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 1px;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.payment-price {
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
}

.payment-per {
  font-size: 9px;
  opacity: 0.7;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

.payment-option.coming-soon {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.payment-coming-soon {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
  opacity: 0.7;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  padding: 1px 5px;
  display: inline-block;
}

.buy-questions-btn {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: white;
  border: none;
  border-radius: 12px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.credit-referral-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(124, 77, 255, 0.06);
  border: 1px solid rgba(124, 77, 255, 0.15);
  border-radius: 12px;
}
.credit-referral-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.credit-referral-row {
  display: flex;
  gap: 8px;
}
.credit-referral-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: white;
  color: var(--text);
}
.credit-referral-btn {
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.credit-referral-status {
  font-size: 11px;
  margin-top: 6px;
  min-height: 14px;
}
.credit-referral-status.success { color: #4caf50; }
.credit-referral-status.error { color: #e53935; }

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-overlay.show,
.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.modal-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Inline Section Edit */
.section-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-edit-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.section-edit-btn:active {
  background: var(--accent-soft);
}
.inline-form-group {
  margin-bottom: 12px;
  position: relative;
}
.inline-form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.inline-form-group input[type="date"],
.inline-form-group input[type="time"],
.inline-form-group input[type="text"],
.inline-form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  font-size: 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}
.inline-hint {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  font-style: italic;
}
.inline-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.inline-save-btn {
  flex: 1;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}
.inline-cancel-btn {
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

/* Aura Preferences Sliders */
.edit-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 8px;
}
.edit-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.pref-slider-group {
  margin-bottom: 16px;
}
.pref-slider-group:last-child {
  margin-bottom: 4px;
}
.pref-slider-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}
.pref-slider-wrap {
  padding: 0 2px;
}
.pref-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(124, 77, 255, 0.15);
  border-radius: 2px;
  outline: none;
}
.pref-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(124, 77, 255, 0.3);
}
.pref-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-muted);
}
.pref-slider-labels-3 {
  justify-content: space-between;
  padding: 0 4px;
}
.pref-slider-labels span {
  text-align: center;
}
.pref-slider-labels small {
  color: var(--accent);
  font-weight: 600;
  font-size: 9px;
}
.pref-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

/* Preferences Nudge Banner */
.prefs-nudge {
  position: fixed;
  bottom: 80px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.prefs-nudge.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.prefs-nudge-content {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.prefs-nudge-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.prefs-nudge-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.prefs-nudge-actions {
  display: flex;
  gap: 8px;
}
.prefs-nudge-btn {
  flex: 1;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.prefs-nudge-dismiss {
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.modal-btn {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.modal-btn:active {
  transform: scale(0.97);
}

.modal-btn.cancel {
  background: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.modal-btn.confirm {
  background: var(--danger);
  color: white;
}

.modal-btn.save {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 2px 10px rgba(124, 77, 255, 0.25);
}

/* Edit Profile Modal */
.edit-modal {
  max-width: 380px;
  max-height: 85vh;
  overflow-y: auto;
  text-align: left;
  padding: 24px 20px;
  border-radius: 20px;
}

.edit-modal .modal-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--text);
}

.edit-form .form-group {
  margin-bottom: 14px;
}

.edit-form .form-group label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 5px;
  font-weight: 500;
  padding-left: 2px;
}

.edit-form .form-group input,
.edit-form .form-group select {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.edit-form .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237c4dff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--bg-light);
  padding-right: 36px;
}

.edit-form .form-group input:focus,
.edit-form .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.edit-form .city-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 10px;
  margin-top: 4px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.edit-form .city-dropdown.show {
  display: block;
}

.edit-form .city-dropdown .item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.edit-form .city-dropdown .item:last-child {
  border-bottom: none;
}

.edit-form .city-dropdown .item:active {
  background: var(--accent-soft);
}

/* ========== Chat Status Messages ========== */
.chat-status {
  text-align: center;
  padding: 40px 20px;
}

.chat-status-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.chat-status-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}

.chat-status-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 4px;
}

/* ========== Suggestions Header & Toggle ========== */
/* Suggestion toggle link */
.suggestion-toggle-link {
  text-align: center;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  padding: 6px 0;
  opacity: 0.8;
}
.suggestion-toggle-link:active { opacity: 1; }

/* Pill-style suggestion buttons */
.suggestion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
  align-items: center;
}
.suggestion-pill {
  padding: 7px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-pill:active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(0.96);
}
.suggestion-refresh-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.suggestion-refresh-btn:active {
  background: var(--accent-soft);
  color: var(--accent);
  transform: rotate(180deg);
}

/* ========== Vertical Chart Layout ========== */
.chart-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-stack .chart-box {
  width: 100%;
}

/* ========== Voice Cloning ========== */
.voice-section {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.05), rgba(179, 136, 255, 0.1));
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.voice-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-white);
  border-radius: 12px;
  margin-bottom: 16px;
}

.voice-status-icon {
  font-size: 24px;
}

.voice-status-title {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.voice-status-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.voice-status.cloned .voice-status-icon {
  color: var(--success);
}

.voice-clone-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  color: white !important;
  border: none !important;
}

.voice-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}
.voice-expiry-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: #856404;
  text-align: center;
  line-height: 1.4;
}

/* Voice Modal */
.voice-modal {
  max-width: 360px;
  text-align: center;
}

.voice-modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.voice-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.voice-step {
  animation: fadeIn 0.3s ease;
}

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

.voice-instructions p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.voice-sample-text {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(179, 136, 255, 0.12));
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
  text-align: left;
}

.voice-sample-text.recording-text {
  font-size: 14px;
  opacity: 0.8;
}

.voice-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.voice-tips .tip {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-record-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.voice-record-btn:active {
  transform: scale(0.98);
}

.voice-record-btn.stop-btn {
  background: linear-gradient(135deg, #f44336, #ff5252);
}

.record-icon {
  font-size: 20px;
}

/* Recording Indicator */
.recording-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.recording-pulse {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f44336;
  animation: recordPulse 1s ease-in-out infinite;
  margin-bottom: 16px;
}

@keyframes recordPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(244, 67, 54, 0); }
}

.recording-time {
  font-size: 32px;
  font-weight: 700;
  color: #f44336;
  font-variant-numeric: tabular-nums;
}

/* Voice Preview */
/* Microphone Selector */
.mic-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.mic-selector-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  overflow: hidden;
}

.mic-selector-label .mic-icon {
  flex-shrink: 0;
}

#selectedMicName {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.mic-change-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.mic-change-btn:active {
  transform: scale(0.95);
}

.mic-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mic-dropdown.hidden {
  display: none;
}

.mic-dropdown-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.mic-list {
  max-height: 200px;
  overflow-y: auto;
}

.mic-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.mic-option:last-child {
  border-bottom: none;
}

.mic-option:active {
  background: var(--bg-light);
}

.mic-option.selected {
  background: rgba(108, 92, 231, 0.1);
}

.mic-option-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.mic-option-info {
  flex: 1;
  overflow: hidden;
}

.mic-option-name {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mic-option-type {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mic-option-check {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.mic-bluetooth {
  color: #3498db;
}

.voice-preview {
  margin-bottom: 20px;
}

.preview-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.voice-preview audio {
  width: 100%;
  height: 44px;
}

.voice-actions {
  display: flex;
  gap: 12px;
}

.voice-action-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.voice-action-btn.secondary {
  background: var(--bg-light);
  color: var(--text-muted);
}

.voice-action-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
}

.voice-action-btn:active {
  transform: scale(0.98);
}

/* Voice Processing */
.voice-processing {
  padding: 40px 0;
}

.voice-processing .loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.processing-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.processing-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Voice Success */
.voice-success {
  padding: 30px 0;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 8px;
}

.success-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ========== Toast Notification ========== */
.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--text-light);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  text-align: center;
  max-width: 90vw;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

/* ========== Refresh Suggestion Banner ========== */
.refresh-suggestion-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(255, 152, 0, 0.1));
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: 16px;
  margin-bottom: 14px;
  animation: bannerSlideIn 0.4s ease-out;
  box-shadow: 0 2px 8px rgba(124, 77, 255, 0.08);
}

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

.refresh-suggestion-banner .banner-text {
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.refresh-suggestion-banner .banner-text strong {
  color: var(--accent);
  font-weight: 700;
}

.refresh-suggestion-banner .banner-refresh-btn {
  padding: 9px 16px;
  background: var(--bg-white);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.refresh-suggestion-banner .banner-refresh-btn:active {
  transform: scale(0.95);
}

.refresh-suggestion-banner .banner-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.6;
}

/* ========== Refresh Reading Button (own row) ========== */
.refresh-reading-row {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 10px;
  padding-left: 2px;
}

.top-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.ask-aura-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-white);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ask-aura-btn:active {
  background: var(--accent);
  color: white;
  transform: scale(0.95);
}
.ask-aura-btn.listening {
  background: var(--accent);
  color: white;
  animation: auraPulse 1.5s ease-in-out infinite;
}
@keyframes auraPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 77, 255, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(124, 77, 255, 0); }
}
.ask-aura-mic { font-size: 15px; }

.greeting-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.last-refresh-date {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

.refresh-reading-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-reading-btn:active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.refresh-reading-btn .refresh-icon {
  font-size: 14px;
}

/* ========== Google Auth ========== */
.auth-btn.google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-btn.google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.google-icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ========== Auth Tabs (Email / Phone) ========== */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  padding: 3px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 77, 255, 0.3);
}

/* ========== Phone OTP Input ========== */
.phone-input-wrapper {
  display: flex;
  gap: 8px;
}

.phone-input-wrapper > select.country-code-select {
  width: 100px !important;
  min-width: 100px;
  padding: 12px 4px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  background-image: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  -webkit-appearance: menulist;
  appearance: menulist;
}

.phone-input-wrapper > input[type="tel"] {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text);
  font-size: 15px;
}

.otp-sent-info {
  text-align: center;
  color: var(--success);
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 500;
}

#otpCode {
  text-align: center;
  font-size: 22px;
  letter-spacing: 8px;
  font-weight: 700;
  padding: 14px;
}

.otp-resend {
  text-align: center;
  margin-top: 8px;
}

.otp-timer {
  color: var(--text-muted);
  font-size: 13px;
}

.otp-resend-btn {
  font-size: 14px !important;
  color: var(--accent) !important;
  font-weight: 600;
}

/* Google welcome text in profile completion (kept for backward compat) */
.google-welcome, .oauth-welcome {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

/* Google badge on profile page */
.google-auth-status {
  margin-top: 6px;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f0f4ff;
  border: 1px solid #d2e3fc;
  border-radius: 16px;
  font-size: 12px;
  color: #1a73e8;
  font-weight: 500;
}

.google-icon-sm {
  flex-shrink: 0;
}

.link-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 20px;
  font-size: 13px;
  color: #3c4043;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.link-google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ========== Apple Auth ========== */
.auth-btn.apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  border: 1.5px solid #000000;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.auth-btn.apple:hover {
  background: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.apple-icon {
  flex-shrink: 0;
}

/* Apple badge on profile page */
.apple-auth-status {
  margin-top: 6px;
}

.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
}

.apple-icon-sm {
  flex-shrink: 0;
}

.auth-btn.phone-signup {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1.5px solid var(--accent-light);
  font-weight: 600;
}

.auth-btn.phone-signup:hover {
  background: var(--accent);
  color: #fff;
}

.phone-auth-status {
  margin-top: 6px;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-light);
  border-radius: 16px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

/* OAuth welcome text (shared by Google + Apple) */
.oauth-welcome {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

/* App disclaimer link */
.app-disclaimer-link {
  text-align: center;
  padding: 16px 0 8px;
}
.app-disclaimer-link a {
  font-size: 11px;
  color: #aaa;
  text-decoration: none;
}
.legal-links {
  text-align: center;
  padding: 16px 0 8px;
}
.legal-links a {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
}
.legal-links a:hover { text-decoration: underline; }
.legal-dot {
  font-size: 10px;
  color: var(--text-muted);
  margin: 0 4px;
  opacity: 0.5;
}
.auth-daily-quote {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
  font-style: italic;
  padding: 0 12px;
  opacity: 0.8;
}
.app-version {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.5;
  padding: 4px 0 12px;
}
.optional-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.modal-legal .modal-text {
  max-height: 60vh;
  overflow-y: auto;
}

/* ========== Match Tab ========== */
.match-container {
  padding: 16px;
  padding-bottom: 120px;
  overflow-y: auto;
  height: 100%;
}

.match-header {
  text-align: center;
  padding: 20px 0 16px;
}
.match-header-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.match-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.match-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.match-form {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.match-dob-row {
  display: flex;
  gap: 8px;
}
.match-dob-select {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  font-size: 14px;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

.optional-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

.match-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #e91e63, #ff5252);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(233,30,99,0.3);
}
.match-submit-btn:active {
  transform: scale(0.97);
}
.match-cost-badge {
  font-size: 11px;
  background: rgba(255,255,255,0.25);
  padding: 3px 8px;
  border-radius: 8px;
}

/* Match Loading */
.match-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.match-loading-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(233,30,99,0.15);
  border-top-color: #e91e63;
  animation: matchSpin 1s linear infinite;
  margin-bottom: 20px;
  position: relative;
}
.match-loading-ring::after {
  content: '💕';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  animation: matchPulse 1.5s ease-in-out infinite;
}
@keyframes matchSpin {
  to { transform: rotate(360deg); }
}
@keyframes matchPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}
.match-loading-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Match Results */
.match-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.match-back-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}
.match-partner-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Gauge */
.match-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.partner-snapshot {
  background: rgba(124, 77, 255, 0.06);
  border: 1px solid rgba(124, 77, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  width: 120px;
  flex-shrink: 0;
}

.partner-snapshot-title {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.partner-snapshot-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-snapshot-detail {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}

.match-gauge-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}
.match-gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge-bg {
  fill: none;
  stroke: rgba(233,30,99,0.1);
  stroke-width: 12;
}
.gauge-fill {
  fill: none;
  stroke: url(#gaugeGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 1.5s ease-out;
}
.gauge-score {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'DM Sans', sans-serif;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #e91e63, #ff5252);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gauge-label {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.gauge-desc {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
  margin-top: -8px;
  margin-bottom: 20px;
  padding: 0 24px;
  line-height: 1.4;
}

.match-tap-hint {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
  opacity: 0.7;
}

/* Category Cards */
.match-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.match-cat-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}
.match-cat-icon {
  font-size: 24px;
  margin-bottom: 4px;
}
.match-cat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.match-cat-score {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.match-cat-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(233,30,99,0.1);
  margin-top: 8px;
  overflow: hidden;
}
.match-cat-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #e91e63, #ff5252);
  transition: width 1s ease-out;
  width: 0;
}
.match-cat-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

/* Breakdown (collapsible) */
.match-breakdown {
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 16px;
  overflow: hidden;
}
.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.breakdown-toggle-icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.breakdown-content {
  padding: 0 16px 16px;
}
.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-label {
  font-size: 13px;
  color: var(--text);
  flex: 1;
}
.breakdown-score {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  min-width: 40px;
  text-align: right;
  margin-right: 10px;
}
.breakdown-bar {
  width: 80px;
  height: 5px;
  border-radius: 3px;
  background: rgba(124,77,255,0.1);
  overflow: hidden;
}
.breakdown-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.8s ease-out;
}

/* Narrative */
.match-narrative {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.match-narrative p {
  margin-bottom: 12px;
}
.match-narrative p:last-child {
  margin-bottom: 0;
}

/* Ask Aura CTA */
.match-ask-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(124,77,255,0.3);
}

/* Saved Partners */
.match-saved {
  margin-top: 8px;
}
.match-saved-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.match-saved-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-saved-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.1s;
  position: relative;
}
.match-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition: all 0.15s;
}
.match-delete-btn:active {
  background: rgba(244, 67, 54, 0.1);
  border-color: #f44336;
  color: #f44336;
}
.match-saved-card:active {
  transform: scale(0.98);
}
.match-saved-score {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(233,30,99,0.1), rgba(255,82,82,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #e91e63;
  margin-right: 12px;
  flex-shrink: 0;
}
.match-saved-info {
  flex: 1;
}
.match-saved-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.match-saved-date {
  font-size: 11px;
  color: var(--text-muted);
}
.match-saved-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ========== Right Now Pulse ========== */
.right-now-pulse {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.06), rgba(255, 152, 0, 0.06));
  border-radius: 14px;
  margin-bottom: 14px;
  animation: pulseGlow 3s ease-in-out infinite;
  position: relative;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.pulse-icon { font-size: 18px; }
.pulse-text {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
  font-style: italic;
}


/* ========== Today's Focus ========== */
.todays-focus {
  padding: 14px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
}
.focus-header { margin-bottom: 14px; }
.focus-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.focus-subtitle {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
/* Vertical focus bars */
.focus-bars {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 0 4px;
}
.focus-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  cursor: pointer;
  gap: 4px;
}
.focus-col:active { opacity: 0.7; }
.focus-col-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.focus-col-track {
  width: 20px;
  height: 80px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.focus-col-fill {
  width: 100%;
  border-radius: 10px;
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-col-fill.high   { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.focus-col-fill.medium { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.focus-col-fill.low    { background: linear-gradient(180deg, #fda4af, #e11d48); }
.focus-col-icon {
  font-size: 16px;
  margin-top: 2px;
}
.focus-col-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.15;
  max-width: 56px;
}
.focus-col-cue {
  font-size: 8px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.1;
  max-width: 56px;
}

/* ========== Life Metrics ========== */
.life-metrics { margin-bottom: 14px; }
.metrics-desc {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.metrics-grid {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2px 14px;
}
.metric-row {
  display: grid;
  grid-template-columns: 108px 1fr 48px;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
}
.metric-row:last-child { border-bottom: none; }
.metric-row:active { opacity: 0.7; }
.metric-row-left { display: flex; align-items: center; gap: 7px; }
.metric-row-icon { font-size: 16px; flex-shrink: 0; }
.metric-row-label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
}
.metric-row-track {
  height: 8px;
  background: rgba(0,0,0,0.07);
  border-radius: 4px;
  overflow: hidden;
}
.metric-row-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.metric-row-fill.high   { background: #6bcb77; }
.metric-row-fill.medium { background: #ffd93d; }
.metric-row-fill.low    { background: #ff6b6b; }
.metric-row-right { text-align: right; }
.metric-row-score { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.metric-row-hint { display: block; font-size: 10px; color: var(--text-muted); }

.hidden { display: none !important; }

/* Mood Ring Widget */
.mood-ring-widget {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.mood-ring-widget:active { transform: scale(0.98); border-color: var(--accent); }
.mood-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.mood-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.mood-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mood-emoji { font-size: 36px; }
.mood-word { font-size: 16px; font-weight: 700; color: var(--text); }
.mood-hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Last Year Widget */
.last-year-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.last-year-widget:active { transform: scale(0.98); border-color: var(--accent); }
.last-year-icon { font-size: 28px; }
.last-year-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.last-year-text { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 3px; }

/* ========== Streak Counter Widget ========== */
.streak-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fff8f0, #fff3e6);
  border: 1px solid #ffd6a0;
  border-radius: 14px;
  margin-bottom: 12px;
}
.streak-flame { font-size: 28px; line-height: 1; }
.streak-details { display: flex; align-items: baseline; gap: 6px; }
.streak-count { font-size: 28px; font-weight: 800; color: #e65100; line-height: 1; }
.streak-label { font-size: 12px; color: #bf6000; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.streak-badge {
  margin-left: auto;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  animation: streakPulse 1.5s ease-in-out infinite;
}
@keyframes streakPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ========== Birth Star Card ========== */
.birth-star-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.birth-star-card:active { transform: scale(0.98); border-color: var(--accent); }
.birth-star-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.birth-star-icon { font-size: 20px; }
.birth-star-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.birth-star-headline { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.birth-star-personality { font-size: 14px; color: var(--text); line-height: 1.5; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.birth-star-theme { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 6px; }
.birth-star-knowmore { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 8px; cursor: pointer; }
.birth-star-name { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ========== Birthday Banner ========== */
.birthday-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff4e0, #ffe0f0, #fff0e8);
  border: 1px solid #ffd1a0;
  border-radius: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s;
  animation: birthdayGlow 3s ease-in-out infinite;
}
@keyframes birthdayGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 180, 100, 0); }
  50% { box-shadow: 0 0 16px 2px rgba(255, 180, 100, 0.25); }
}
.birthday-banner:active { transform: scale(0.98); }
.birthday-emoji { font-size: 36px; line-height: 1; }
.birthday-details { flex: 1; }
.birthday-greeting { font-size: 16px; font-weight: 700; color: #b85400; margin-bottom: 4px; }
.birthday-message { font-size: 13px; color: #a06030; }

/* ========== Retro-validation Card ========== */
.retro-card {
  background: var(--bg-white);
  border: 2px solid #d4b0ff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}
.retro-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(167, 139, 250, 0.12);
  border-radius: 50%;
  color: #9c7fd4;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}
.retro-dismiss:hover { background: rgba(167, 139, 250, 0.25); }
.retro-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 14px;
}
.retro-actions { display: flex; gap: 10px; }
.retro-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.retro-btn:active { transform: scale(0.96); }
.retro-btn.yes {
  background: linear-gradient(135deg, #7c4dff, #651fff);
  color: #fff;
}
.retro-btn.more {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ========== Referral Section ========== */
.referral-section {
  padding: 16px;
  background: rgba(124, 77, 255, 0.04);
  border: 1px solid rgba(124, 77, 255, 0.12);
  border-radius: 14px;
  margin-bottom: 14px;
  text-align: center;
}
.referral-header { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.referral-subtitle { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.referral-code-row { display: flex; gap: 8px; justify-content: center; align-items: center; margin-bottom: 12px; }
.referral-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent);
  padding: 10px 20px;
  background: white;
  border: 1.5px dashed var(--accent);
  border-radius: 10px;
}
.referral-copy-btn {
  padding: 8px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}
.referral-share-btn {
  width: 100%; padding: 10px; background: var(--accent); color: white; border: none;
  border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.referral-reward-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}
.referral-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}
.referral-redeem-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.referral-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  background: var(--bg-white);
  color: var(--text);
}
.referral-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text-muted);
}
.referral-redeem-btn {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.referral-redeem-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.referral-redeem-status {
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}
.referral-redeem-status.success { color: #4caf50; }
.referral-redeem-status.error { color: #e53935; }

/* Collapsible profile sections */
.section-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.section-toggle-icon {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.section-body.collapsed {
  display: none;
}

/* ========== Life Timeline ========== */
.timeline-container { padding: 12px 0; }
.timeline-item { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
  background: var(--border);
}
.timeline-item.current .timeline-dot { background: var(--accent); box-shadow: 0 0 8px rgba(124,77,255,0.4); }
.timeline-item.past .timeline-dot { background: var(--text-muted); opacity: 0.5; }
.timeline-line {
  position: absolute; left: 5px; top: 20px; bottom: -8px; width: 2px; background: var(--border);
}
.timeline-item:last-child .timeline-line { display: none; }
.timeline-content { flex: 1; }
.timeline-planet { font-size: 14px; font-weight: 600; color: var(--text); }
.timeline-item.past .timeline-planet { color: var(--text-muted); }
.timeline-item.current .timeline-planet { color: var(--accent); }
.timeline-dates { font-size: 12px; color: var(--text-muted); }
.timeline-duration { font-size: 11px; color: var(--text-muted); opacity: 0.7; }

/* ========== Share Insight Button ========== */
.share-insight-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(124, 77, 255, 0.08);
  color: var(--accent, #7c4dff);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s, transform 0.15s;
  z-index: 2;
  padding: 0;
  line-height: 1;
}
.share-insight-btn:hover {
  opacity: 1;
  background: rgba(124, 77, 255, 0.15);
}
.share-insight-btn:active {
  transform: scale(0.9);
}

/* ========== Daily Personalized Insight Card ========== */
.daily-insight-card {
  position: relative;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fdf6ec 0%, #fef0e0 50%, #fce8d5 100%);
  border: 1px solid rgba(200, 164, 78, 0.2);
  border-radius: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(200, 164, 78, 0.08);
}
.daily-insight-card:active {
  transform: scale(0.98);
}
.daily-insight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.daily-insight-badge {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(135deg, #c8a44e, #e0b85c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 20px;
}
.daily-insight-card .share-insight-btn {
  position: static;
  flex-shrink: 0;
}
.daily-insight-text {
  font-size: 15px;
  font-weight: 600;
  color: #3d2e1a;
  line-height: 1.5;
}

/* Dark mode overrides for daily insight card */
@media (prefers-color-scheme: dark) {
  .daily-insight-card {
    background: linear-gradient(135deg, #2a2218 0%, #302820 50%, #352d22 100%);
    border-color: rgba(200, 164, 78, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }
  .daily-insight-text {
    color: #f0e6d2;
  }
  .daily-insight-badge {
    background: linear-gradient(135deg, #a08040, #c8a44e);
  }
}

/* ========== Milestone Toast (fixed overlay) ========== */
.milestone-toast {
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  animation: milestoneSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.milestone-toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffd54f 0%, #ce93d8 50%, #b388ff 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(124,77,255,0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.milestone-toast-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  animation: milestoneShimmer 2s ease-in-out infinite;
}
@keyframes milestoneSlideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes milestoneShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.milestone-emoji {
  font-size: 30px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: milestoneBounce 1s ease-in-out infinite alternate;
}
@keyframes milestoneBounce {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.milestone-details {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.milestone-title {
  font-size: 14px;
  font-weight: 700;
  color: #2d2d3a;
  margin-bottom: 2px;
}
.milestone-subtitle {
  font-size: 12px;
  color: rgba(45, 45, 58, 0.7);
  line-height: 1.3;
}
.milestone-dismiss {
  background: none;
  border: none;
  color: rgba(45, 45, 58, 0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
}

/* ========== Thinking of You Card ========== */
.thinking-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.15) 0%, rgba(179, 136, 255, 0.12) 100%);
  border: 1px solid rgba(100, 181, 246, 0.2);
  border-radius: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  animation: thinkingFadeIn 0.8s ease-out;
  box-shadow: 0 2px 16px rgba(100, 181, 246, 0.1), inset 0 0 20px rgba(179, 136, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.thinking-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(100, 181, 246, 0.06) 0%, transparent 70%);
  animation: thinkingGlow 4s ease-in-out infinite;
}
@keyframes thinkingFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes thinkingGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}
.thinking-emoji {
  font-size: 30px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.thinking-details {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.thinking-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.4;
}
.thinking-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== Journey Card ========== */
.journey-card {
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.1) 0%, rgba(206, 147, 216, 0.08) 50%, rgba(124, 77, 255, 0.06) 100%);
  border: 1px solid rgba(255, 183, 77, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.journey-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}
.journey-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.journey-stat {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid rgba(124, 77, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.15s;
}
.journey-stat:active {
  transform: scale(0.97);
}
.journey-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
  line-height: 1.2;
}
.journey-stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ========== Daily Letter from Aura ========== */
.daily-letter {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.95), rgba(255, 248, 240, 0.9));
  border: 1px solid rgba(255, 200, 150, 0.2);
  border-radius: 16px;
  margin-bottom: 16px;
}
.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.letter-from {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.letter-date {
  font-size: 11px;
  color: var(--text-muted);
}
.refresh-reading-btn-minimal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 0 0 0 8px;
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 1;
}
.refresh-reading-btn-minimal:active { opacity: 1; }
.letter-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0em;
}
.letter-action {
  margin-top: 14px;
}
.letter-ask-btn {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}
.letter-ask-btn:active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== Upcoming Changes - Horizontal Dot Timeline ========== */
.upcoming-timeline {
  margin-bottom: 14px;
  padding: 0 4px;
}
.timeline-track {
  position: relative;
  background: linear-gradient(to right, var(--accent) 0%, var(--border) 100%);
  border-radius: 4px;
  height: 3px;
  margin: 30px 0 20px;
}
.timeline-now {
  position: absolute;
  left: 0;
  top: -20px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.timeline-dot-marker {
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  text-align: center;
}
.dot-icon {
  width: 14px;
  height: 14px;
  background: var(--bg-white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.dot-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
}

/* ========== Dasha Timeline - Horizontal Bar Charts ========== */
.dasha-bar-level {
  margin-bottom: 12px;
}
.dasha-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.bar-level-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bar-current-info {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.dasha-bar-track {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
}
.dasha-bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  cursor: pointer;
  transition: all 0.15s;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.dasha-bar-segment:last-child { border-right: none; }
.dasha-bar-segment.past {
  background: rgba(200, 200, 210, 0.4);
}
.dasha-bar-segment.current {
  background: var(--accent);
}
.dasha-bar-segment.future {
  background: rgba(124, 77, 255, 0.15);
}
.dasha-bar-segment:active {
  opacity: 0.7;
  transform: scaleY(1.1);
}
.bar-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.dasha-bar-segment.current .bar-label {
  color: white;
}
.dasha-text-level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

/* ========== Aura Status Banner ========== */
.aura-status-banner {
  background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aura-status-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.aura-status-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* ========== Yesterday's Review Card ========== */
.yesterday-review-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(212, 176, 255, 0.3);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.yesterday-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.yesterday-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a78bfa;
}
.yesterday-date {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.yesterday-text {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 14px;
}
.yesterday-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rating-prompt {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-right: auto;
}
.rating-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rating-btn:active {
  transform: scale(0.92);
}
.rating-btn.selected {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.2);
  transform: scale(1.1);
}
.yesterday-rated {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 8px 0 0;
}

/* ========== Accuracy + Streak Bar ========== */
.accuracy-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(167, 139, 250, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  overflow: hidden;
}
.accuracy-stat, .streak-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  gap: 2px;
  text-align: center;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #7c5cbf !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #5b21b6 !important;
  line-height: 1.1;
}
.stat-sub {
  font-size: 11px;
  color: #9d78d8 !important;
}
.accuracy-bar-divider {
  width: 1px;
  height: 36px;
  background: rgba(167, 139, 250, 0.35);
  align-self: center;
}

/* ========== Streak Credits Label ========== */
.streak-credits-label {
  color: #a78bfa;
  font-size: 12px;
  font-weight: 600;
}

/* ========== Streak Conversion Teaser (in chat) ========== */
.streak-conversion-teaser {
  padding: 0;
}
.streak-teaser-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(255, 152, 0, 0.06));
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: 14px;
  padding: 16px;
  margin: 8px 0 4px;
}
.streak-teaser-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.streak-teaser-body {
  flex: 1;
}
.streak-teaser-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent, #7c4dff);
  margin-bottom: 6px;
}
.streak-teaser-text {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.5;
  margin-bottom: 12px;
}
.streak-teaser-text strong {
  color: var(--accent, #7c4dff);
}
.streak-teaser-btn {
  display: inline-block;
  background: linear-gradient(135deg, #7c4dff, #ff9800);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.streak-teaser-btn:hover {
  opacity: 0.9;
}

/* ========== Retry Question Button ========== */
.retry-question-btn {
  display: inline-block;
  background: var(--accent, #7c4dff);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 4px;
}
.retry-question-btn:hover:not(:disabled) {
  opacity: 0.85;
}
.retry-question-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}
