/* ============================================================
   HOT AIR — Styles
   ============================================================ */

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

:root {
  --bg: #07070f;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.09);
  --glass-hover: rgba(255,255,255,0.08);
  --blue: #4a9eff;
  --purple: #9b59ff;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --text: rgba(255,255,255,0.94);
  --text-2: rgba(255,255,255,0.55);
  --text-3: rgba(255,255,255,0.28);
  --radius-card: 20px;
  --radius-phone: 52px;
  --font: 'Inter', system-ui, sans-serif;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Aurora Background ---- */
.bg-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 12s ease-in-out infinite;
}
.a1 { width: 600px; height: 600px; background: radial-gradient(circle, #4a9eff, transparent 70%); top: -200px; left: -150px; animation-delay: 0s; }
.a2 { width: 500px; height: 500px; background: radial-gradient(circle, #9b59ff, transparent 70%); bottom: -150px; right: -100px; animation-delay: -4s; }
.a3 { width: 400px; height: 400px; background: radial-gradient(circle, #34d399, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -8s; opacity: 0.06; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ---- Screens ---- */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   SETUP SCREEN
   ============================================================ */
.setup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 400px;
  padding: 40px 20px;
}

.setup-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.setup-icon {
  width: 72px;
  height: 72px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(74,158,255,0.4)); }
  50% { filter: drop-shadow(0 0 24px rgba(155,89,255,0.6)); }
}

.setup-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 30%, #9b59ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.setup-tagline {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.setup-card {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-description {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  text-align: center;
}

.setup-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.setup-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.setup-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.12);
}

.setup-input::placeholder { color: var(--text-3); }

.setup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  border-radius: 12px;
  color: white;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}

.setup-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.setup-btn:active { transform: translateY(0); }
.setup-btn svg { width: 18px; height: 18px; }

.setup-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.6;
}

.setup-note code {
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-2);
}

.setup-row { display: flex; gap: 10px; }
.setup-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.setup-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.setup-status {
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  transition: color 0.3s;
}

.setup-status.ok { color: var(--green); }
.setup-status.err { color: var(--red); }
.setup-status.loading { color: var(--text-3); }

.setup-cors-note {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: rgba(251,191,36,0.8);
  line-height: 1.7;
}

.setup-cors-note code {
  font-family: 'Courier New', monospace;
  background: rgba(0,0,0,0.3);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

/* ============================================================
   PHONE FRAME
   ============================================================ */
.phone-frame {
  width: 393px;
  height: 880px;
  background: #0a0a14;
  border-radius: var(--radius-phone);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 40px 100px rgba(0,0,0,0.8),
    0 0 80px rgba(74,158,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ---- Dynamic Island ---- */
.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
  height: 34px;
  width: 120px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.dynamic-island.active {
  width: 240px;
  height: 44px;
}

.island-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.island-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.3s;
}

.island-pulse.active {
  opacity: 1;
  animation: island-blink 1.2s ease-in-out infinite;
}

@keyframes island-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.island-text {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}

.island-text.visible { opacity: 1; }

/* ---- Status Bar ---- */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 8px;
  flex-shrink: 0;
}

.status-time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.status-ai {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background 0.3s;
}

.status-dot.active { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.thinking { background: var(--blue); animation: island-blink 1s ease-in-out infinite; }

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

.signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.signal-bar {
  width: 3px;
  background: var(--text);
  border-radius: 1px;
}
.signal-bar:nth-child(1) { height: 4px; }
.signal-bar:nth-child(2) { height: 6px; }
.signal-bar:nth-child(3) { height: 9px; }
.signal-bar:nth-child(4) { height: 12px; }

.wifi-icon { width: 14px; height: 14px; color: var(--text); }

.battery {
  display: flex;
  align-items: center;
  gap: 1px;
}
.battery-body {
  width: 22px;
  height: 12px;
  border: 1.5px solid var(--text);
  border-radius: 3px;
  padding: 1.5px;
}
.battery-fill {
  height: 100%;
  width: 78%;
  background: var(--text);
  border-radius: 1px;
}
.battery-tip {
  width: 2px;
  height: 6px;
  background: var(--text);
  border-radius: 0 1px 1px 0;
}

/* ---- Main Canvas ---- */
.main-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---- Ambient Display ---- */
.ambient {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px 24px;
  transition: opacity 0.5s ease;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
}
.ambient::-webkit-scrollbar { display: none; }

.ambient.hidden { opacity: 0; pointer-events: none; }

.ambient-time {
  font-size: 72px;
  font-weight: 200;
  letter-spacing: -4px;
  line-height: 1;
  background: linear-gradient(180deg, #fff 60%, rgba(255,255,255,0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ambient-date {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.ambient-search-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}

.ambient-search-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 13px 18px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ambient-search-input:focus {
  border-color: rgba(74,158,255,0.5);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.08);
}
.ambient-search-input::placeholder { color: var(--text-3); font-size: 14px; }

.ambient-send-btn {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(74,158,255,0.3);
}
.ambient-send-btn:hover { opacity: 0.9; transform: scale(1.05); }
.ambient-send-btn:active { transform: scale(0.95); }
.ambient-send-btn svg { width: 18px; height: 18px; }

.ambient-hints {
  margin-top: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hint-item {
  flex: 1;
  max-width: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.hint-item:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.hint-item:active { transform: translateY(0); }

.hint-icon { font-size: 22px; }

/* ---- Ephemeral Canvas ---- */
.ephemeral-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.ephemeral-canvas::-webkit-scrollbar { display: none; }

.ephemeral-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dismiss-btn {
  position: fixed;
  bottom: 170px;
  right: calc(50% - 197px + 16px);
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 50;
}

.dismiss-btn:hover { background: rgba(255,255,255,0.18); color: var(--text); }
.dismiss-btn svg { width: 14px; height: 14px; }

/* ---- AI Bubble ---- */
.ai-bubble {
  position: absolute;
  bottom: 8px;
  left: 16px;
  right: 16px;
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  backdrop-filter: blur(12px);
  animation: slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-bubble-icon {
  font-size: 18px;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-bubble-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ---- Processing ---- */
.processing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(7,7,15,0.7);
  backdrop-filter: blur(8px);
  animation: fade-in 0.3s ease;
}

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

.processing-rings {
  position: relative;
  width: 80px;
  height: 80px;
}

.proc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  animation: spin 2s linear infinite;
}

.r1 {
  inset: 0;
  border-top-color: var(--blue);
  border-right-color: rgba(74,158,255,0.3);
  animation-duration: 1.8s;
}
.r2 {
  inset: 10px;
  border-top-color: var(--purple);
  border-left-color: rgba(155,89,255,0.3);
  animation-duration: 2.4s;
  animation-direction: reverse;
}
.r3 {
  inset: 22px;
  border: none;
  background: radial-gradient(circle, rgba(74,158,255,0.15), transparent 70%);
  animation: pulse-proc 1.5s ease-in-out infinite;
}

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

@keyframes pulse-proc {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.processing-label {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

.processing-tier {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  transition: color 0.4s;
}

.tier-node.active { color: var(--blue); }
.tier-node.active .tier-dot { background: var(--blue); box-shadow: 0 0 10px var(--blue); }

.tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background 0.4s, box-shadow 0.4s;
}

.tier-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--text-3));
  position: relative;
  overflow: hidden;
}

.tier-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, white, transparent);
  animation: scan 1.5s ease-in-out infinite;
}

@keyframes scan {
  to { left: 100%; }
}

/* ---- Input Area ---- */
.input-area {
  padding: 10px 16px 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--glass-border);
  background: rgba(7,7,15,0.6);
  backdrop-filter: blur(20px);
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-wrap {
  flex: 1;
  position: relative;
}

.user-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 13px 18px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.user-input:focus {
  border-color: rgba(74,158,255,0.5);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.08);
}

.user-input::placeholder { color: var(--text-3); font-size: 14px; }

.send-btn {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(74,158,255,0.3);
}

.send-btn:hover { opacity: 0.9; transform: scale(1.05); }
.send-btn:active { transform: scale(0.95); }
.send-btn svg { width: 18px; height: 18px; }

.quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.quick-chips::-webkit-scrollbar { height: 3px; }
.quick-chips::-webkit-scrollbar-track { background: transparent; }
.quick-chips::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
}

.chip.active {
  background: linear-gradient(135deg, rgba(74,158,255,0.18), rgba(155,89,255,0.18));
  border-color: rgba(74,158,255,0.6);
  color: var(--text);
  box-shadow: 0 0 10px rgba(74,158,255,0.2);
}

/* ============================================================
   EPHEMERAL COMPONENT STYLES
   ============================================================ */

.component-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  animation: appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
  margin-bottom: 12px;
}

.component-card.dissolving {
  animation: dissolve 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(30px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dissolve {
  to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--glass-border);
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.badge-edge { background: rgba(52,211,153,0.12); color: var(--green); }
.badge-cloud { background: rgba(74,158,255,0.12); color: var(--blue); }

/* === WEATHER === */
.weather-body {
  padding: 20px 18px;
}

.weather-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.weather-temp {
  font-size: 72px;
  font-weight: 200;
  letter-spacing: -3px;
  line-height: 1;
}

.weather-deg {
  font-size: 28px;
  font-weight: 300;
  vertical-align: super;
}

.weather-right {
  text-align: right;
}

.weather-icon { font-size: 48px; line-height: 1; }
.weather-condition { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.weather-loc { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.weather-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.weather-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.weather-stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; }
.weather-stat-value { font-size: 14px; font-weight: 600; }

.weather-hourly {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.weather-hourly::-webkit-scrollbar { display: none; }

.weather-hour {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  min-width: 52px;
}

.weather-hour-time { color: var(--text-3); }
.weather-hour-icon { font-size: 18px; }
.weather-hour-temp { font-weight: 600; }

/* === FLIGHT === */
.flight-body { padding: 18px; }

.flight-route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 14px;
}

.flight-city {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flight-code { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.flight-name { font-size: 11px; color: var(--text-3); }
.flight-city.dest { text-align: right; }

.flight-mid {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.flight-mid-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  position: relative;
}

.flight-mid-plane { font-size: 16px; }
.flight-mid-date { font-size: 11px; color: var(--text-3); }

.flight-options { display: flex; flex-direction: column; gap: 10px; }

.flight-option {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.flight-option:hover { background: rgba(255,255,255,0.08); border-color: rgba(74,158,255,0.3); }
.flight-option.selected { border-color: var(--blue); background: rgba(74,158,255,0.08); }

.flight-airline { font-size: 13px; font-weight: 600; min-width: 60px; }
.flight-times { flex: 1; }
.flight-dep-arr { font-size: 13px; font-weight: 600; }
.flight-duration { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.flight-stops { font-size: 11px; color: var(--green); }
.flight-price { font-size: 16px; font-weight: 700; color: var(--blue); text-align: right; }

.flight-book-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  border-radius: 14px;
  color: white;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.flight-book-btn:hover { opacity: 0.9; }

/* === MUSIC === */
.music-body { padding: 20px; }

.music-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.music-art-bg {
  position: absolute;
  inset: 0;
  filter: blur(0px);
  transition: filter 0.3s;
}

.music-art-emoji {
  position: relative;
  z-index: 1;
  animation: music-rotate 8s linear infinite;
  animation-play-state: paused;
}

.music-art-emoji.playing { animation-play-state: running; }

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

.music-info { text-align: center; margin-bottom: 20px; }
.music-track { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
.music-artist { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.music-album { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.music-progress-wrap { margin-bottom: 16px; }
.music-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.music-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 2px;
  transition: width 0.3s;
}

.music-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 6px;
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  padding: 8px;
}

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

.ctrl-btn svg { width: 22px; height: 22px; }

.ctrl-btn.play-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 50%;
  color: white;
  box-shadow: 0 4px 20px rgba(74,158,255,0.3);
}

.ctrl-btn.play-btn svg { width: 24px; height: 24px; }

.music-playlist { margin-top: 16px; border-top: 1px solid var(--glass-border); padding-top: 14px; }
.music-playlist-title { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
}
.playlist-item:hover { color: var(--blue); }
.playlist-item.active { color: var(--blue); }
.playlist-num { color: var(--text-3); min-width: 16px; font-size: 12px; }
.playlist-info { flex: 1; }
.playlist-track { font-weight: 500; }
.playlist-artist { font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* === MESSAGE === */
.message-body { padding: 18px; }

.message-to {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.message-contact-name { font-size: 15px; font-weight: 600; }
.message-contact-sub { font-size: 12px; color: var(--text-3); }

.message-textarea {
  width: 100%;
  min-height: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  resize: none;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}

.message-textarea:focus { border-color: rgba(74,158,255,0.4); }
.message-textarea::placeholder { color: var(--text-3); }

.message-actions { display: flex; gap: 10px; }

.msg-btn {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.msg-send {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
}

.msg-cancel {
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
}

.msg-btn:hover { opacity: 0.85; }

/* === PHONE HOME === */
.phone-home {
  display: flex;
  flex-direction: column;
  height: 420px;
}

.phone-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 16px;
  flex-shrink: 0;
}

.phone-tab {
  flex: 1;
  padding: 11px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.phone-tab.active {
  color: var(--text);
  border-bottom-color: #4a9eff;
}

.phone-panel {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.contacts-list {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  cursor: pointer;
  border-radius: 10px;
  margin: 0 6px;
  transition: background 0.15s;
}

.contact-row:hover { background: rgba(255,255,255,0.06); }
.contact-row:active { background: rgba(255,255,255,0.1); }

.contact-highlighted { background: rgba(74,158,255,0.1); }
.contact-highlighted:hover { background: rgba(74,158,255,0.15); }

.contact-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.contact-info { flex: 1; min-width: 0; }
.contact-name { font-size: 15px; font-weight: 500; }
.contact-number { font-size: 12px; color: var(--text-3); margin-top: 1px; }

.contact-call-icon { color: #4a9eff; opacity: 0.7; flex-shrink: 0; }
.contact-call-icon svg { width: 18px; height: 18px; display: block; }

/* Keypad */
.keypad-display-wrap {
  display: flex;
  align-items: center;
  padding: 10px 16px 4px;
  min-height: 44px;
}

.keypad-display {
  flex: 1;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 3px;
  text-align: center;
  color: var(--text);
  min-height: 36px;
}

.keypad-back {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 6px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.keypad-back:hover { opacity: 1; }
.keypad-back svg { width: 22px; height: 22px; display: block; }

.keypad-grid { padding: 2px 12px 0; }

.keypad-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 4px;
  justify-items: center;
}

.keypad-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.keypad-btn:hover  { background: rgba(255,255,255,0.12); }
.keypad-btn:active { background: rgba(255,255,255,0.18); }

.keypad-digit {
  font-size: 22px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}

.keypad-sub {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.keypad-call-row {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
}

.keypad-call-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.keypad-call-btn:hover  { opacity: 0.85; }
.keypad-call-btn:active { transform: scale(0.95); }
.keypad-call-btn svg { width: 26px; height: 26px; }

/* === CALL === */
.call-body {
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.call-avatar-wrap { position: relative; }

.call-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: white;
}

.call-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(74,158,255,0.4);
  animation: ring-pulse 2s ease-out infinite;
}

.call-ring-2 {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(74,158,255,0.2);
  animation: ring-pulse 2s ease-out infinite 0.5s;
}

@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.call-name { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.call-number { font-size: 14px; color: var(--text-2); }
.call-status { font-size: 13px; color: var(--text-3); }

.call-actions {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.call-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.call-action-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.call-action-circle:hover { opacity: 0.8; }
.call-action-circle svg { width: 26px; height: 26px; }
.call-action-label { font-size: 12px; color: var(--text-2); }

.call-green { background: var(--green); color: white; }
.call-red { background: var(--red); color: white; }
.call-gray { background: rgba(255,255,255,0.1); color: var(--text); }

/* === MAPS === */
.maps-body { padding: 0; }

.maps-visual {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #0d1a2e, #0a1f12, #0d1a2e);
  position: relative;
  overflow: hidden;
}

.maps-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(74,158,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,158,255,0.3) 1px, transparent 1px);
  background-size: 30px 30px;
}

.maps-route {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maps-pin-start, .maps-pin-end {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.maps-pin-start { left: 30px; bottom: 30px; }
.maps-pin-end { right: 30px; top: 30px; }

.maps-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

.maps-pin-start .maps-pin-dot { background: var(--green); }
.maps-pin-end .maps-pin-dot { background: var(--blue); }

.maps-route-line {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: rotate(-15deg);
  transform-origin: left center;
}

.maps-info { padding: 18px; }

.maps-destination { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 4px; }
.maps-address { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }

.maps-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}

.maps-stat { display: flex; flex-direction: column; gap: 2px; }
.maps-stat-value { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.maps-stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }

.maps-nav-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--green), #059669);
  border: none;
  border-radius: 14px;
  color: white;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.maps-nav-btn:hover { opacity: 0.9; }

/* === TIMER === */
.timer-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.timer-ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
}

.timer-svg { transform: rotate(-90deg); }

.timer-track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 8;
}

.timer-progress {
  fill: none;
  stroke: url(#timerGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 503;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-display {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-time {
  font-size: 36px;
  font-weight: 200;
  letter-spacing: -2px;
  line-height: 1;
}

.timer-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.timer-controls { display: flex; gap: 16px; }

.timer-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
}

.timer-btn:hover { opacity: 0.85; transform: scale(1.05); }
.timer-btn:active { transform: scale(0.95); }
.timer-btn svg { width: 20px; height: 20px; }

.timer-start { background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; }
.timer-pause { background: rgba(255,255,255,0.1); color: var(--text); }
.timer-reset { background: rgba(255,255,255,0.06); color: var(--text-2); }

/* === SHOPPING === */
.shopping-body { padding: 16px; }
.shopping-query { font-size: 12px; color: var(--text-3); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.8px; }
.shopping-items { display: flex; flex-direction: column; gap: 10px; }

.shopping-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.shopping-item:hover { background: rgba(255,255,255,0.08); }

.shopping-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.shopping-item-info { flex: 1; }
.shopping-item-name { font-size: 14px; font-weight: 600; }
.shopping-item-brand { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.shopping-item-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--yellow);
  margin-top: 3px;
}

.shopping-item-right { text-align: right; }
.shopping-item-price { font-size: 16px; font-weight: 700; color: var(--blue); }

.shopping-cart-btn {
  width: 32px;
  height: 32px;
  background: rgba(74,158,255,0.15);
  border: none;
  border-radius: 8px;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 6px;
  margin-left: auto;
  transition: background 0.2s;
}

.shopping-cart-btn:hover { background: rgba(74,158,255,0.25); }
.shopping-cart-btn svg { width: 14px; height: 14px; }

/* === REMINDER === */
.reminder-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.reminder-icon { font-size: 40px; text-align: center; }
.reminder-text { font-size: 17px; font-weight: 600; text-align: center; line-height: 1.4; letter-spacing: -0.3px; }
.reminder-time-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 12px;
  padding: 12px 16px;
}
.reminder-time { font-size: 18px; font-weight: 700; color: var(--blue); }
.reminder-date { font-size: 13px; color: var(--text-2); }
.reminder-confirm-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  border-radius: 14px;
  color: white;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.reminder-confirm-btn:hover { opacity: 0.9; }

/* === INFO === */
.info-body { padding: 18px; }
.info-title { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; line-height: 1.3; }
.info-content {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.info-content p { margin-bottom: 10px; }
.info-content p:last-child { margin-bottom: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scrollbar for phone canvas */
.ephemeral-canvas::-webkit-scrollbar { width: 4px; }
.ephemeral-canvas::-webkit-scrollbar-track { background: transparent; }
.ephemeral-canvas::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* === CALENDAR === */
.cal-body { padding: 0 0 14px; }

.cal-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
}
.cal-month-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.cal-nav {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.8;
}
.cal-nav:hover { opacity: 1; }

.cal-grid-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 10px 4px;
}
.cal-grid-labels span {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 10px;
  row-gap: 2px;
}

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.cal-cell:hover:not(.cal-today) .cal-cell-num { background: rgba(255,255,255,0.08); }

.cal-cell-num {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  border-radius: 50%;
  transition: background 0.15s;
}

.cal-cell.cal-today .cal-cell-num {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  font-weight: 700;
}

.cal-cell-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 1px;
}
.cal-cell.cal-today .cal-cell-dot { background: rgba(255,255,255,0.7); }

.cal-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 10px 18px 0;
}

.cal-agenda-header {
  padding: 10px 18px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cal-agenda { display: flex; flex-direction: column; }

.cal-agenda-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.15s;
}
.cal-agenda-row:last-child { border-bottom: none; }
.cal-agenda-row:hover { background: rgba(255,255,255,0.03); }
.cal-agenda-row.cal-done .cal-agenda-time,
.cal-agenda-row.cal-done .cal-agenda-title { opacity: 0.4; text-decoration: line-through; }

.cal-agenda-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-agenda-time {
  font-size: 11px;
  color: var(--text-3);
  min-width: 58px;
  flex-shrink: 0;
}
.cal-agenda-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-agenda-tag {
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

/* === NEWS === */
.news-body { padding: 12px 16px; }

.news-articles { display: flex; flex-direction: column; gap: 2px; }

.news-article {
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.news-article:hover { background: rgba(255,255,255,0.06); }
.news-article.news-featured {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  margin-bottom: 8px;
}

.news-article-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.news-emoji { font-size: 16px; }
.news-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue);
  background: rgba(74,158,255,0.12);
  padding: 2px 7px;
  border-radius: 5px;
}
.news-time { font-size: 11px; color: var(--text-3); margin-left: auto; }

.news-headline {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.news-source-row { display: flex; justify-content: space-between; align-items: center; }
.news-source { font-size: 11px; color: var(--text-3); }
.news-read-time { font-size: 11px; color: var(--text-3); }

/* === SMART HOME === */
.home-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.home-thermostat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 16px;
}
.home-therm-label {
  font-size: 12px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-therm-mode {
  background: rgba(74,158,255,0.12);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
}
.home-therm-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.home-therm-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.home-therm-btn:hover { background: rgba(255,255,255,0.14); }
.home-therm-display { text-align: center; }
.home-therm-current { font-size: 40px; font-weight: 200; letter-spacing: -2px; display: block; }
.home-therm-target  { font-size: 12px; color: var(--blue); font-weight: 600; }
.home-therm-sub     { text-align: center; font-size: 11px; color: var(--text-3); margin-top: 8px; }

.home-rooms { display: flex; flex-direction: column; gap: 8px; }

.home-room {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 14px;
  transition: background 0.15s;
}

.home-room-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-room-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.home-room-status.on { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.home-room-name { flex: 1; font-size: 14px; font-weight: 500; }

.home-toggle {
  min-width: 46px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-3);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.home-toggle.on {
  background: rgba(52,211,153,0.15);
  border-color: rgba(52,211,153,0.4);
  color: var(--green);
}

.home-brightness {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.home-slider {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, var(--yellow), rgba(255,255,255,0.15));
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.home-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  cursor: pointer;
}

.home-brightness-val { font-size: 12px; color: var(--yellow); font-weight: 600; min-width: 32px; text-align: right; }

/* === STOCKS === */
.stocks-body { padding: 16px; }

.stocks-portfolio-header {
  text-align: center;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 14px;
}
.stocks-total-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.stocks-total-value { font-size: 30px; font-weight: 700; letter-spacing: -1px; margin-bottom: 4px; }
.stocks-today-gain { font-size: 13px; font-weight: 600; }
.stocks-today-gain.pos { color: var(--green); }
.stocks-today-gain.neg { color: var(--red); }

.stocks-featured {
  text-align: center;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 14px;
}
.stocks-featured-ticker { font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.stocks-featured-name   { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.stocks-featured-price  { font-size: 32px; font-weight: 200; letter-spacing: -1px; margin-bottom: 4px; }
.stocks-featured-change { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.stocks-featured-change.pos { color: var(--green); }
.stocks-featured-change.neg { color: var(--red); }

.stocks-mini-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 40px;
  padding: 0 16px;
}
.stocks-bar { width: 8px; border-radius: 2px; flex-shrink: 0; }

.stocks-list-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }

.stocks-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 8px; }
.stocks-empty-icon { color: var(--text-3); opacity: 0.5; }
.stocks-empty-text { font-size: 15px; font-weight: 500; color: var(--text-2); }
.stocks-empty-sub { font-size: 13px; color: var(--text-3); }

.stocks-list { display: flex; flex-direction: column; gap: 2px; }

.stock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.stock-row:hover { background: rgba(255,255,255,0.05); }

.stock-ticker-wrap { flex: 1; }
.stock-ticker { font-size: 14px; font-weight: 700; display: block; }
.stock-name   { font-size: 11px; color: var(--text-3); }
.stock-shares { font-size: 12px; color: var(--text-3); min-width: 36px; text-align: center; }
.stock-right  { text-align: right; }
.stock-price  { font-size: 14px; font-weight: 600; }
.stock-value  { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.stock-change { font-size: 12px; font-weight: 600; margin-top: 1px; }
.stock-change.pos { color: var(--green); }
.stock-change.neg { color: var(--red); }
.stock-remove-btn { background: none; border: none; color: var(--text-3); cursor: pointer; padding: 4px; opacity: 0.5; flex-shrink: 0; display: flex; align-items: center; }
.stock-remove-btn:hover { opacity: 1; color: var(--red); }

.stocks-add-section { border-top: 1px solid rgba(255,255,255,0.07); margin-top: 12px; padding-top: 14px; }
.stocks-add-title { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.stocks-add-form { display: flex; flex-direction: column; gap: 8px; }
.stocks-add-row { display: flex; gap: 8px; }
.stocks-add-row .stocks-input { flex: 1; }
.stocks-input { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--text-1); outline: none; width: 100%; box-sizing: border-box; font-family: inherit; }
.stocks-input::placeholder { color: var(--text-3); }
.stocks-input:focus { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); }
.stocks-add-btn { background: rgba(74,158,255,0.2); border: 1px solid rgba(74,158,255,0.35); border-radius: 8px; color: #4a9eff; font-size: 13px; font-weight: 600; padding: 10px; cursor: pointer; font-family: inherit; }
.stocks-add-btn:hover { background: rgba(74,158,255,0.3); }

/* === HEALTH === */
.health-body { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 20px; }

.health-ring-wrap { position: relative; width: 140px; height: 140px; }

.health-svg { position: absolute; inset: 0; }

.health-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 10;
}
.health-prog {
  fill: none;
  stroke: url(#healthGrad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  transition: stroke-dashoffset 1s ease;
}

.health-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.health-steps-num   { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1; }
.health-steps-label { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.health-steps-pct   { font-size: 13px; font-weight: 700; color: var(--green); margin-top: 3px; }

.health-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.health-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.health-stat-icon { font-size: 18px; }
.health-stat-val  { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
.health-stat-lbl  { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }

.health-week { width: 100%; }
.health-week-title { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.health-bars { display: flex; gap: 6px; align-items: flex-end; height: 48px; }

.health-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; justify-content: flex-end; height: 100%; }

.health-bar {
  width: 100%;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  min-height: 3px;
  transition: height 0.4s ease;
}
.health-bar.today { background: linear-gradient(180deg, var(--green), #059669); }
.health-bar-label { font-size: 9px; color: var(--text-3); }
.health-bar-label.today { color: var(--green); font-weight: 700; }

/* === TRANSLATE === */
.translate-body { padding: 16px; display: flex; flex-direction: column; gap: 0; }

.translate-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px;
}
.translate-panel.source { margin-bottom: 0; border-radius: 16px 16px 8px 8px; }
.translate-panel.target { border-radius: 8px 8px 16px 16px; }

.translate-lang-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.translate-flag      { font-size: 20px; }
.translate-lang-name { font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }

.translate-text { font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -0.3px; }
.translate-text.source-text { color: var(--text-2); }
.translate-text.target-text { color: var(--text); }

.translate-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}
.translate-divider-line { flex: 1; height: 1px; background: var(--glass-border); }
.translate-divider-icon { font-size: 14px; color: var(--text-3); }

.translate-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.translate-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.translate-action-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.translate-action-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.translate-input { background: none; border: none; outline: none; color: var(--text-2); font-family: var(--font); font-size: 18px; font-weight: 500; line-height: 1.4; width: 100%; resize: none; }
.translate-input::placeholder { color: var(--text-3); }
.translate-lang-select-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; }
.translate-into-label { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.translate-lang-select { background: rgba(255,255,255,0.07); border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-1); font-family: var(--font); font-size: 13px; padding: 6px 10px; outline: none; cursor: pointer; flex: 1; }
.translate-lang-select option { background: #fff; color: #000; }
.translate-go-btn { width: 100%; background: rgba(74,158,255,0.2); border: 1px solid rgba(74,158,255,0.35); border-radius: 10px; color: #4a9eff; font-size: 14px; font-weight: 600; padding: 11px; cursor: pointer; font-family: var(--font); margin-bottom: 4px; }
.translate-go-btn:hover { background: rgba(74,158,255,0.3); }

/* === EMAIL === */
.email-body { display: flex; flex-direction: column; gap: 0; }
.email-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
.email-inbox-label { font-size: 13px; font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: 6px; }
.email-badge { background: #4a9eff; color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 6px; }
.email-compose-btn { display: flex; align-items: center; gap: 5px; background: rgba(74,158,255,0.15); border: 1px solid rgba(74,158,255,0.3); border-radius: 8px; color: #4a9eff; font-size: 12px; font-weight: 600; font-family: var(--font); padding: 5px 10px; cursor: pointer; }
.email-compose-btn:hover { background: rgba(74,158,255,0.25); }
.email-list { display: flex; flex-direction: column; }
.email-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--glass-border); cursor: pointer; transition: background 0.15s; border-radius: 8px; }
.email-row:hover { background: rgba(255,255,255,0.04); }
.email-row:last-child { border-bottom: none; }
.email-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.email-content { flex: 1; min-width: 0; }
.email-meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.email-from { font-size: 13px; font-weight: 500; color: var(--text-2); }
.email-unread .email-from { font-weight: 700; color: var(--text-1); }
.email-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.email-subject { font-size: 12px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-unread .email-subject { color: var(--text-1); font-weight: 600; }
.email-snippet { font-size: 11px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-star { background: none; border: none; color: var(--text-3); cursor: pointer; padding: 4px; flex-shrink: 0; margin-top: 2px; border-radius: 4px; }
.email-star.starred { color: #f5a623; }
.email-star:hover { color: #f5a623; }
/* Read view */
.email-read-wrap { display: flex; flex-direction: column; gap: 0; }
.email-read-header { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--glass-border); }
.email-read-meta { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.email-read-from { font-size: 13px; font-weight: 700; color: var(--text-1); }
.email-read-addr { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.email-read-body { font-size: 13px; color: var(--text-2); line-height: 1.65; padding: 14px 0; white-space: pre-wrap; border-bottom: 1px solid var(--glass-border); }
.email-read-actions { display: flex; gap: 8px; padding-top: 12px; }
.email-read-action-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-2); font-size: 12px; font-weight: 600; font-family: var(--font); padding: 9px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.email-read-action-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-1); }

/* Compose window */
.email-compose-wrap { display: flex; flex-direction: column; gap: 0; }
.email-compose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2px;
}
.email-compose-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
.email-compose-discard { background: none; border: none; color: var(--text-3); cursor: pointer; padding: 4px; border-radius: 6px; display: flex; align-items: center; }
.email-compose-discard:hover { color: var(--text-1); background: rgba(255,255,255,0.07); }
.email-send-btn { display: flex; align-items: center; gap: 5px; background: #4a9eff; border: none; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 600; font-family: var(--font); padding: 6px 12px; cursor: pointer; }
.email-send-btn:hover { background: #3a8eef; }
.email-compose-fields { display: flex; flex-direction: column; }
.email-compose-field { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--glass-border); }
.email-compose-field-subject { border-bottom: 2px solid var(--glass-border); }
.email-compose-label { font-size: 11px; font-weight: 600; color: var(--text-3); width: 42px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.email-compose-input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); font-family: var(--font); font-size: 13px; }
.email-compose-input::placeholder { color: var(--text-3); }
.email-compose-body { width: 100%; min-height: 120px; background: none; border: none; outline: none; color: var(--text-1); font-family: var(--font); font-size: 13px; line-height: 1.6; padding: 10px 0; resize: none; box-sizing: border-box; }
.email-compose-body::placeholder { color: var(--text-3); }

/* === PODCAST === */
.podcast-body { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
.podcast-art {
  height: 100px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.podcast-art-icon {
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1;
  transition: filter 0.3s;
}
.podcast-art-icon.playing { filter: drop-shadow(0 0 8px rgba(255,255,255,0.5)); }
.podcast-art-waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32px;
}
.podcast-wave { stroke-dasharray: 300; stroke-dashoffset: 0; }
.podcast-wave.animating { animation: podcastWave 3s linear infinite; }
@keyframes podcastWave {
  to { stroke-dashoffset: -300; }
}
.podcast-show { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.podcast-episode { font-size: 13px; font-weight: 600; color: var(--text-1); line-height: 1.35; margin-top: 3px; }
.podcast-publisher { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.podcast-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.podcast-skip-btn {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-family: var(--font);
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.podcast-skip-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.podcast-skip-btn svg { width: 26px; height: 26px; }

/* podcast library */
.podcast-library { display: flex; flex-direction: column; gap: 2px; }
.podcast-saved-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--glass-border); }
.podcast-saved-item:last-child { border-bottom: none; }
.podcast-play-icon-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(74,158,255,0.15); border: 1px solid rgba(74,158,255,0.3); color: #4a9eff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background 0.15s; }
.podcast-play-icon-btn:hover { background: rgba(74,158,255,0.28); }
.podcast-play-icon-btn svg { width: 16px; height: 16px; margin-left: 2px; }
.podcast-saved-info { flex: 1; min-width: 0; }
.podcast-saved-show { font-size: 13px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podcast-saved-ep { font-size: 11px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podcast-add-section { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--glass-border); margin-top: 4px; }

/* shared empty-state + back-btn used by podcast & email */
.email-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 0 20px; gap: 6px; }
.email-empty-icon { color: var(--text-3); opacity: 0.5; }
.email-empty-text { font-size: 14px; font-weight: 600; color: var(--text-2); }
.email-empty-sub { font-size: 12px; color: var(--text-3); }
.email-back-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: #4a9eff; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; padding: 2px 0 8px; }
.email-back-btn svg { width: 18px; height: 18px; }
.email-back-btn:hover { opacity: 0.8; }
.email-add-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* === SETTINGS ROW (solo centered) === */
.hint-row.hint-row-solo {
  justify-content: center;
  margin-top: 4px;
}
.hint-row.hint-row-solo .hint-item {
  max-width: 100px;
  border-color: rgba(155,89,255,0.25);
  background: rgba(155,89,255,0.06);
}
.hint-row.hint-row-solo .hint-item:hover {
  border-color: rgba(155,89,255,0.45);
  background: rgba(155,89,255,0.12);
}

/* === SETTINGS === */
.settings-body {
  padding: 4px 0 8px;
  display: flex;
  flex-direction: column;
}

.settings-section {
  padding: 12px 0 4px;
  border-top: 1px solid var(--glass-border);
}
.settings-section:first-child { border-top: none; }

.settings-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 0 18px 6px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.15s;
  gap: 12px;
}
.settings-row:hover { background: rgba(255,255,255,0.03); }

.settings-row-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  flex: 1;
}

/* pill toggle */
.settings-pill {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
}
.settings-pill.on {
  background: var(--green);
  border-color: var(--green);
}
.settings-pill-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.settings-pill.on .settings-pill-thumb {
  transform: translateX(18px);
}

/* select & info rows */
.settings-select-val {
  font-size: 13px;
  color: var(--text-2);
}
.settings-info-val {
  font-size: 13px;
  color: var(--text-3);
  text-align: right;
}
.settings-info-val.accent { color: var(--green); }

/* Shrink frame height on smaller displays — mirrors HAP2's approach */
@media (max-height: 900px) {
  .phone-frame { height: calc(100vh - 20px); }
  .ambient { padding-top: 12px; }
  .ambient-time { font-size: 60px; }
  .hint-item { padding: 8px 6px; gap: 3px; }
  .hint-row { margin-bottom: 6px; }
}

@media (max-height: 780px) {
  .ambient-time { font-size: 48px; }
}

@media (max-width: 420px) { .phone-frame { width: 100vw; border-radius: 0; } }

/* === SHARED ADD-SECTION UTILITIES === */

/* Chip row — wrapping row of removable chips */
.item-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 4px 10px 4px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.item-chip:hover { background: rgba(255,255,255,0.13); }
.item-chip span { cursor: pointer; }

.chip-remove-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.7;
}
.chip-remove-btn:hover { opacity: 1; color: var(--red); }

/* Item row — generic data list row */
.item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.item-row:last-child { border-bottom: none; }

.item-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-done .item-label { opacity: 0.45; text-decoration: line-through; }

/* Small action button (Go, Search, etc.) */
.item-action-btn {
  background: rgba(74,158,255,0.15);
  border: 1px solid rgba(74,158,255,0.3);
  border-radius: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.item-action-btn:hover { background: rgba(74,158,255,0.25); }

/* Checkbox */
.item-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* === MESSAGES: CONVERSATIONS LIST === */
.convos-list {
  display: flex;
  flex-direction: column;
}

.convo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.15s;
}
.convo-row:hover { background: rgba(255,255,255,0.04); }
.convo-row:last-child { border-bottom: none; }

.convo-info { flex: 1; min-width: 0; }
.convo-name { font-size: 14px; font-weight: 600; color: var(--text); }
.convo-preview {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.convo-time { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* Back button in message compose */
.msg-back-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 22px;
  cursor: pointer;
  padding: 0 6px 0 0;
  line-height: 1;
}

/* Reminder body scrollable list */
.reminder-list {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
