/* ═══════════════════════════════════════════════════════════════════════════════
   MASTER PERSONAL ASSISTANT (MPA) — DESIGN SYSTEM & STYLES
   Executive Dark Glass Theme • Neon Sky & Amber Accents • Mobile PWA Optimized
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-dark: #070913;
  --bg-card: rgba(13, 17, 34, 0.75);
  --bg-card-hover: rgba(22, 28, 54, 0.85);
  --glass-border: rgba(56, 189, 248, 0.18);
  --glass-border-hover: rgba(56, 189, 248, 0.4);
  --sky-blue: #38bdf8;
  --sky-blue-rgb: 56, 189, 248;
  --sky-glow: rgba(56, 189, 248, 0.28);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --emerald: #10b981;
  --rose: #f43f5e;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  user-select: none;
  -webkit-user-select: none;
}

/* ─── AMBIENT STARFIELD & GLOW BACKGROUND ────────────────────────────────── */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-top {
  position: absolute;
  top: -10vw;
  left: 10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(56, 189, 248, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.glow-orb-bottom {
  position: absolute;
  bottom: -10vw;
  right: 5vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(20px) scale(1.08); }
}

/* ─── APP SHELL CONTAINER ────────────────────────────────────────────────── */
.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

/* ─── TOP BAR / HEADER ───────────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  gap: 10px;
  flex-shrink: 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 0 16px var(--sky-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title .badge-core {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--sky-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 700;
}

.brand-status {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Prominent Update Button (Boss Marell Directive) */
.btn-update {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9999px;
  color: var(--sky-blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

.btn-update:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--sky-blue);
  transform: translateY(-1px);
  box-shadow: 0 0 16px var(--sky-glow);
}

.btn-update:active {
  transform: translateY(0) scale(0.97);
}

.btn-update .update-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.6s ease;
}

.btn-update.updating .update-icon {
  animation: spin 0.8s linear infinite;
}

.btn-update.has-update {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
  color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
  animation: pulse-update 2s infinite ease-in-out;
}

@keyframes pulse-update {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
  50% { transform: scale(1.04); box-shadow: 0 0 18px rgba(245, 158, 11, 0.5); }
}

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

.btn-update .version-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.85;
}

/* Prominent Install App Button (Download/PWA) */
.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px var(--sky-glow);
}

.btn-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.5);
}

.btn-install:active {
  transform: scale(0.96);
}

.btn-icon-round {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-round:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: var(--sky-blue);
}

/* ─── MAIN CONTENT VIEWPORT ──────────────────────────────────────────────── */
.main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.2) transparent;
}

.main-viewport::-webkit-scrollbar {
  width: 5px;
}
.main-viewport::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 4px;
}

/* ─── AGENT SELECTION TABS ───────────────────────────────────────────────── */
.agent-tabs-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px;
  background: rgba(13, 17, 34, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.agent-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agent-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.agent-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.15);
}

.agent-tab .agent-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* ─── CENTRAL VOICE ORB STAGE ────────────────────────────────────────────── */
.orb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0 16px 0;
  gap: 16px;
  position: relative;
}

.orb-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Outer Pulsing Aura */
.orb-ring-outer {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%);
  animation: orbPulse 3s infinite ease-in-out;
  pointer-events: none;
}

/* Middle Audio Reactive Ring */
.orb-ring-mid {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  animation: orbRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes orbRotate {
  100% { transform: rotate(360deg); }
}

/* The Core Sphere */
.orb-core {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #0284c7 45%, #0f172a 100%);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.45), inset 0 0 20px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-wrapper:hover .orb-core {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(56, 189, 248, 0.65), inset 0 0 25px rgba(255, 255, 255, 0.4);
}

.orb-wrapper:active .orb-core {
  transform: scale(0.95);
}

/* Orb States */
.orb-wrapper.listening .orb-core {
  background: radial-gradient(circle at 35% 35%, #f59e0b 0%, #d97706 45%, #0f172a 100%);
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.6);
  animation: listeningBeats 1.2s infinite;
}

.orb-wrapper.listening .orb-ring-outer {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0) 70%);
}

.orb-wrapper.speaking .orb-core {
  background: radial-gradient(circle at 35% 35%, #10b981 0%, #059669 45%, #0f172a 100%);
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.6);
  animation: speakingRipple 0.8s infinite alternate;
}

@keyframes listeningBeats {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes speakingRipple {
  0% { transform: scale(0.98); }
  100% { transform: scale(1.07); }
}

.orb-icon {
  width: 44px;
  height: 44px;
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  pointer-events: none;
}

/* Soundwave Visualizer Bars */
.soundwave-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  width: 100%;
}

.wave-bar {
  width: 4px;
  height: 6px;
  background: var(--sky-blue);
  border-radius: 9999px;
  opacity: 0.6;
  transition: height 0.1s ease, background 0.2s ease;
}

.soundwave-visualizer.active .wave-bar {
  opacity: 1;
  animation: waveAnim 0.6s infinite ease-in-out alternate;
}

@keyframes waveAnim {
  0% { height: 6px; }
  100% { height: 26px; }
}

/* Stagger wave animations */
.soundwave-visualizer .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.soundwave-visualizer .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.soundwave-visualizer .wave-bar:nth-child(4) { animation-delay: 0.15s; }
.soundwave-visualizer .wave-bar:nth-child(5) { animation-delay: 0.25s; }
.soundwave-visualizer .wave-bar:nth-child(6) { animation-delay: 0.05s; }
.soundwave-visualizer .wave-bar:nth-child(7) { animation-delay: 0.3s; }
.soundwave-visualizer .wave-bar:nth-child(8) { animation-delay: 0.18s; }

/* Status Text below Orb */
.orb-status-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  text-align: center;
}

.orb-status-text .highlight {
  color: var(--sky-blue);
}

/* ─── QUICK ACTION SUGGESTION CHIPS ──────────────────────────────────────── */
.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--sky-blue);
  color: var(--sky-blue);
  transform: translateY(-1px);
}

.quick-chip:active {
  transform: scale(0.96);
}

/* ─── CONVERSATION FEED / TRANSCRIPT ─────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}

.message-bubble {
  display: flex;
  gap: 12px;
  max-width: 88%;
  animation: fadeInMsg 0.25s ease-out;
}

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

.message-bubble.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.message-bubble.assistant .msg-avatar {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  box-shadow: 0 0 10px var(--sky-glow);
}

.message-bubble.user .msg-avatar {
  background: #334155;
  color: #fff;
}

.msg-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-bubble.user .msg-content-wrapper {
  align-items: flex-end;
}

.msg-author-time {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
}

.msg-bubble-box {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  word-break: break-word;
}

.message-bubble.assistant .msg-bubble-box {
  border-top-left-radius: 4px;
}

.message-bubble.user .msg-bubble-box {
  border-top-right-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

/* ─── BOTTOM DUAL INPUT BAR ──────────────────────────────────────────────── */
.input-dock {
  padding: 12px 18px;
  background: rgba(7, 9, 19, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.input-field-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.chat-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(13, 17, 34, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.chat-input:focus {
  border-color: var(--sky-blue);
  box-shadow: 0 0 16px var(--sky-glow);
  background: rgba(13, 17, 34, 0.95);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.btn-send {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--sky-glow);
}

.btn-send:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

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

.btn-mic-dock {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--sky-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-mic-dock:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--sky-blue);
}

.btn-mic-dock.recording {
  background: var(--amber);
  color: #070913;
  border-color: var(--amber);
  box-shadow: 0 0 16px var(--amber-glow);
  animation: pulseMic 1s infinite;
}

@keyframes pulseMic {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ─── PWA INSTALLATION FLOATING BANNER (CELULAR / MOBILE) ────────────────── */
.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: calc(var(--safe-bottom) + 76px);
  left: 16px;
  right: 16px;
  max-width: 500px;
  margin: 0 auto;
  padding: 14px 18px;
  background: rgba(13, 17, 34, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--sky-blue);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--sky-glow);
  z-index: 100;
  animation: slideUpBanner 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--sky-glow);
}

.banner-text-group {
  flex: 1;
}

.banner-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
}

.banner-subtext {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.3;
}

.banner-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
}

.banner-btn-install {
  padding: 8px 16px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 12px var(--sky-glow);
}

.banner-btn-dismiss {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

/* ─── MODAL (SETTINGS & IOS INSTALL GUIDE) ────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: rgba(13, 17, 34, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--sky-glow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Step list for iOS install guide */
.ios-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ios-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ios-step-number {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--sky-blue);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-step-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-dim);
}

.ios-step-text strong {
  color: #ffffff;
}

.btn-modal-primary {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 16px var(--sky-glow);
  transition: all 0.2s;
}

.btn-modal-primary:hover {
  transform: translateY(-1px);
}

/* ─── TOAST NOTIFICATIONS ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: calc(var(--safe-top) + 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 18px;
  border-radius: 9999px;
  background: rgba(13, 17, 34, 0.95);
  border: 1px solid var(--sky-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px var(--sky-glow);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── RESPONSIVE RULES ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .top-bar {
    padding: 10px 14px;
  }
  .brand-title {
    font-size: 14px;
  }
  .orb-wrapper {
    width: 145px;
    height: 145px;
  }
  .orb-core {
    width: 115px;
    height: 115px;
  }
  .orb-icon {
    width: 38px;
    height: 38px;
  }
  .btn-install span {
    display: none;
  }
  .btn-install {
    padding: 7px 10px;
  }
  .btn-update {
    padding: 6px 10px;
    gap: 5px;
    font-size: 11px;
  }
  .btn-update .version-tag {
    display: none;
  }
  .btn-update .btn-update-text {
    display: inline !important;
  }
}
