/* ═══════════════════════════════════════════════════════════════════════
   Sovereign Messenger — Design System
   Glass-dark aesthetic with neon accents
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a28;
  --bg-hover: #22223a;
  --bg-active: #2a2a45;
  --bg-glass: rgba(18, 18, 26, 0.85);
  --bg-glass-hover: rgba(26, 26, 40, 0.9);
  --surface: #16162a;
  --surface-raised: #1e1e35;

  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-tertiary: #555577;
  --text-link: #818cf8;

  --accent: #6366f1;
  --accent-hover: #7c7ff7;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --accent-soft: rgba(99, 102, 241, 0.12);

  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.3);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.3);
  --orange: #f59e0b;
  --pink: #ec4899;

  --msg-own: #1e1b4b;
  --msg-own-hover: #252260;
  --msg-other: #1a1a2e;
  --msg-other-hover: #222240;

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(99, 102, 241, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --sidebar-w: 360px;
  --header-h: 60px;
  --input-h: 64px;

  color-scheme: dark;
}

/* ── Reset ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100dvh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}
input, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--text-link); text-decoration: none; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 3px; }
::selection { background: var(--accent); color: white; }

/* ── App Layout ─────────────────────────────────────────────────────── */

#app {
  display: flex;
  height: 100dvh;
  width: 100%;
  position: relative;
}

/* ── Auth Screen ────────────────────────────────────────────────────── */

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100dvh;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(236,72,153,0.06) 0%, transparent 50%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.auth-logo p {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-glow);
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

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

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-error {
  color: var(--red);
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

/* ── Sidebar ────────────────────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.sidebar-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-header h2 {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-box {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.search-input:focus {
  border-color: var(--accent);
  background-color: var(--bg-hover);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.chat-item:hover { background: var(--bg-hover); }
.chat-item.active { background: var(--bg-active); }
.chat-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
  position: relative;
}

.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-lg { width: 80px; height: 80px; font-size: 28px; }

.avatar .online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 2px solid var(--bg-secondary);
  border-radius: 50%;
}

.chat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-info-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.chat-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: 8px;
}

.chat-preview {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-badge {
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Chat Panel ─────────────────────────────────────────────────────── */

.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  position: relative;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

.chat-panel-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-secondary);
}

.chat-panel-empty .logo-large {
  font-size: 48px;
  opacity: 0.3;
}

.chat-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 5;
}

.chat-header-info {
  flex: 1;
  min-width: 0;
}

.chat-header-name {
  font-weight: 600;
  font-size: 16px;
}

.chat-header-status {
  font-size: 12px;
  color: var(--text-secondary);
}

.chat-header-status.online { color: var(--green); }

.header-actions {
  display: flex;
  gap: 4px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.icon-btn.active { color: var(--accent); }

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

/* ── Messages ───────────────────────────────────────────────────────── */

.messages-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scroll-behavior: smooth;
  min-height: 0; /* critical for flex overflow */
  -webkit-overflow-scrolling: touch;
}

.message-group {
  display: flex;
  gap: 8px;
  max-width: 75%;
  animation: msgIn 0.3s var(--transition-spring);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.message-group.own { align-self: flex-end; flex-direction: row-reverse; }

.message-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  position: relative;
  word-break: break-word;
  line-height: 1.5;
  font-size: 14.5px;
}

.message-group:not(.own) .message-bubble {
  background: var(--msg-other);
  border-bottom-left-radius: 4px;
}

.message-group.own .message-bubble {
  background: var(--msg-own);
  border-bottom-right-radius: 4px;
}

.message-sender {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.message-text { white-space: pre-wrap; }

.message-text a { color: var(--text-link); text-decoration: underline; }

.message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
}

.message-time {
  font-size: 11px;
  color: var(--text-secondary);
}

.message-edited {
  font-size: 10px;
  color: var(--text-secondary);
  font-style: italic;
}

.date-divider {
  text-align: center;
  padding: 16px 0 8px;
}

.date-divider span {
  display: inline-block;
  padding: 4px 14px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.typing-indicator {
  padding: 4px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  min-height: 24px;
  flex-shrink: 0;
}

/* ── Input Area ─────────────────────────────────────────────────────── */

.input-area {
  padding: 12px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 8px;
}

.input-wrapper {
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
  transition: var(--transition);
}

.input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.message-input {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 12px;
  font-size: 15px;
  resize: none;
  outline: none;
  max-height: 150px;
  min-height: 24px;
  line-height: 1.4;
  overflow-y: auto;
}

.message-input::placeholder { color: var(--text-tertiary); }

.input-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
}

.send-btn {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.send-btn:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }
.send-btn:active { transform: scale(0.92); }

.send-btn svg { width: 20px; height: 20px; }

/* ── Call UI ────────────────────────────────────────────────────────── */

.call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.call-info {
  text-align: center;
}

.call-name {
  font-size: 28px;
  font-weight: 700;
  margin-top: 16px;
}

.call-status {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.call-timer {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--green);
  font-weight: 600;
}

.call-video {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.call-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-video .local-video {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 180px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
}

.call-actions {
  display: flex;
  gap: 16px;
}

.call-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.call-btn svg { width: 24px; height: 24px; }
.call-btn-mute { background: var(--bg-hover); color: white; }
.call-btn-mute:hover { background: var(--bg-active); }
.call-btn-mute.active { background: var(--red); }
.call-btn-hangup { background: var(--red); color: white; width: 64px; height: 64px; }
.call-btn-hangup:hover { background: #dc2626; box-shadow: 0 0 20px var(--red-glow); }
.call-btn-accept { background: var(--green); color: white; width: 64px; height: 64px; }
.call-btn-accept:hover { background: #059669; box-shadow: 0 0 20px var(--green-glow); }
.call-btn-video { background: var(--bg-hover); color: white; }

/* ── Search results / User list ─────────────────────────────────────── */

.search-results {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  max-height: 300px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: var(--shadow-md);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-result-item:hover { background: var(--bg-hover); }

/* ── Connection status ──────────────────────────────────────────────── */

.connection-bar {
  padding: 6px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.connection-bar.connecting { background: var(--orange); color: #000; }
.connection-bar.disconnected { background: var(--red); color: white; }
.connection-bar.connected { display: none; }

/* ── File preview ───────────────────────────────────────────────────── */

.file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.file-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
}

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

.file-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ── Emoji ──────────────────────────────────────────────────────────── */

.message-bubble .emoji-large {
  font-size: 48px;
  line-height: 1.2;
}

/* ── Voice message ──────────────────────────────────────────────────── */

.voice-message {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.voice-waveform {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.voice-waveform .bar {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.1s ease;
}

.voice-duration {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ── Mobile responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root { --sidebar-w: 100%; }

  #app { position: relative; overflow: hidden; }

  .sidebar {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 20;
    height: 100dvh;
  }
  .sidebar.hidden { transform: translateX(-100%); }

  .chat-panel {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .chat-panel.hidden { transform: translateX(100%); }

  .sidebar, .chat-panel {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-back-btn { display: flex !important; }

  .message-group { max-width: 88%; }
}

@media (min-width: 769px) {
  .mobile-back-btn { display: none !important; }
}

/* ── Context menu ───────────────────────────────────────────────────── */

.context-menu {
  position: fixed;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  min-width: 180px;
  z-index: 50;
  animation: scaleIn 0.15s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  text-align: left;
}

.context-menu-item:hover { background: var(--bg-hover); }
.context-menu-item.danger { color: var(--red); }
.context-menu-item svg { width: 18px; height: 18px; opacity: 0.7; }

/* ── Toast notifications ────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  animation: slideIn 0.3s ease;
  max-width: 360px;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* ── Loading ────────────────────────────────────────────────────────── */

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ── Pulse animation for ringing ────────────────────────────────────── */

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

.pulsing { animation: pulse 1.5s ease infinite; }

/* Animated dots "..." */
.dots-anim::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ── Image in message ───────────────────────────────────────────────── */

.message-image {
  max-width: 300px;
  max-height: 300px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.message-image:hover { opacity: 0.9; }

/* ── PWA install prompt ─────────────────────────────────────────────── */

.install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-raised);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 90;
  animation: slideUp 0.4s var(--transition-spring);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.install-prompt .btn-install {
  padding: 8px 20px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.install-prompt .btn-dismiss {
  color: var(--text-secondary);
  font-size: 14px;
}
