/* ============================================================
   MINSNAP — THE OBSIDIAN FIELD DECK (DESIGN SYSTEM & STYLES)
   Tactical Darkroom Workspace & Personal Knowledge Engine
   ============================================================ */

:root {
  /* Obsidian Basalt Dark Palette (Default) */
  --bg-base: #090A0D;
  --bg-surface: #101217;
  --bg-surface-elevated: #161921;
  --bg-surface-hover: #1E232E;
  --bg-surface-active: #252B38;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: #E5A93C;
  
  --text-primary: #F0F2F6;
  --text-secondary: #9BA3B2;
  --text-muted: #646C7D;
  
  /* Tactical Accents */
  --accent-gold: #E5A93C;
  --accent-gold-hover: #F2BA55;
  --accent-gold-dim: rgba(229, 169, 60, 0.14);
  --accent-gold-glow: rgba(229, 169, 60, 0.28);
  
  --signal-green: #38C172;
  --signal-green-dim: rgba(56, 193, 114, 0.14);
  --signal-red: #E3342F;
  --signal-red-dim: rgba(227, 52, 47, 0.14);
  --signal-blue: #3490DC;
  --signal-blue-dim: rgba(52, 144, 220, 0.14);
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Metrics */
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 20px rgba(229, 169, 60, 0.2);
  
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-light {
  /* Titanium Slate Light Palette */
  --bg-base: #F4F5F8;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #ECEEF2;
  --bg-surface-hover: #E3E6ED;
  --bg-surface-active: #D8DCE5;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.16);
  --border-focus: #C68925;
  
  --text-primary: #12141A;
  --text-secondary: #4A5160;
  --text-muted: #7E8799;
  
  --accent-gold: #C68925;
  --accent-gold-hover: #D8972E;
  --accent-gold-dim: rgba(198, 137, 37, 0.12);
  --accent-gold-glow: rgba(198, 137, 37, 0.2);
  
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 0 18px rgba(198, 137, 37, 0.15);
}

/* ============================================================
   BASE RESET & GLOBAL TYPOGRAPHY
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================================
   MAIN APPLICATION CONTAINER
   ============================================================ */
.obsidian-app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
}

/* ============================================================
   TOP HORIZON BAR (TACTICAL COMMAND CENTER)
   ============================================================ */
.horizon-top-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-medium);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.brand-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.brand-sub-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 169, 60, 0.3);
}

/* Center Section: Navigation Tabs */
.horizon-nav-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface-elevated);
  padding: 3px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
}

.nav-tab-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-tab-pill:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.nav-tab-pill.active {
  background: var(--bg-surface);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 169, 60, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-tab-pill .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background var(--transition-fast);
}

.nav-tab-pill.active .tab-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

/* Universal Quick Capture Bar */
.universal-capture-form {
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  position: relative;
}

.capture-input-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 5px 12px 5px 14px;
  gap: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.capture-input-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-gold);
  background: var(--bg-surface);
}

.capture-icon {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.capture-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12.5px;
  color: var(--text-primary);
}

.capture-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.capture-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
  font-size: 12px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.capture-action-btn:hover {
  color: var(--accent-gold);
  background: var(--bg-surface-active);
}

.capture-submit-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  padding: 2px 5px;
  border-radius: 4px;
}

/* Right Section: Status Cues & Tools */
.horizon-tools-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.status-metric-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-metric-chip.streak {
  color: var(--accent-gold);
  border-color: rgba(229, 169, 60, 0.25);
}

.tool-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.tool-icon-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.profile-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.profile-circle-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent-gold);
}

.profile-circle-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================================
   MAIN STAGE LAYOUT
   ============================================================ */
.obsidian-main-stage {
  flex: 1;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 20px 24px 60px 24px;
  display: flex;
  flex-direction: column;
}

/* Tab Panes */
.tab-content-panel {
  display: none;
  width: 100%;
  animation: fadeInPanel 0.2s ease-out;
}

.tab-content-panel.active {
  display: flex;
  flex-direction: column;
}

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

/* ============================================================
   VIEW 1: THE FIELD DECK (CONTACT-SHEET & STUDY WORKBENCH)
   ============================================================ */

/* 1. Contact Sheet Filmstrip Bar */
.filmstrip-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.filmstrip-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filmstrip-title {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.filmstrip-counter-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--accent-gold);
}

.filmstrip-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filmstrip-nav-arrow {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.filmstrip-nav-arrow:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* Filmstrip Track */
.contact-sheet-filmstrip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.contact-card-thumbnail {
  flex: 0 0 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
}

.contact-card-thumbnail:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.contact-card-thumbnail.active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 16px var(--accent-gold-glow);
  background: var(--bg-surface-elevated);
}

.thumbnail-media-box {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  margin-bottom: 8px;
}

.thumbnail-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.contact-card-thumbnail:hover .thumbnail-media-box img {
  transform: scale(1.04);
}

.media-tag-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(4px);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.duration-tag-overlay {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.85);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  color: #fff;
}

.thumb-delete-pill {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(4px);
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition-fast);
  z-index: 2;
}

.thumb-delete-pill:hover {
  opacity: 1;
  background: var(--signal-red);
  color: #fff;
  border-color: var(--signal-red);
  transform: scale(1.15);
}

.thumbnail-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.thumbnail-category {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.thumbnail-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 2. Deep Study Workbench (Split-Screen on Desktop) */
.study-workbench {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  align-items: stretch;
}

/* Left Pane: Preview Media Stage */
.preview-media-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.media-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-category-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 169, 60, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stage-source-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stage-actions-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-icon-pill {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.action-icon-pill:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.action-icon-pill.danger {
  color: var(--signal-red);
  border-color: rgba(227, 52, 47, 0.25);
}

.action-icon-pill.danger:hover {
  background: rgba(227, 52, 47, 0.12);
  color: #ff6b6b;
  border-color: rgba(227, 52, 47, 0.5);
}

.archive-card-delete-btn {
  background: transparent;
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.archive-card-delete-btn:hover {
  background: rgba(227, 52, 47, 0.15);
  border-color: rgba(227, 52, 47, 0.3);
  color: var(--signal-red);
}

/* Big Visual Stage */
.stage-hero-visual {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
}

.stage-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(16, 18, 23, 0.8);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.stage-hero-visual:hover .stage-play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 20px var(--accent-gold-glow);
}

.stage-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.stage-summary-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.stage-footer-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.link-out-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.link-out-btn:hover {
  color: var(--accent-gold);
}

.tactile-flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-gold);
  transition: all var(--transition-fast);
}

.tactile-flip-btn:hover {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-base);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* Right Pane: Takeaways, Marginalia & Inline Recall */
.digest-takeaways-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.pane-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pane-label-title {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.digest-tag-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Structured Takeaways List */
.takeaways-card-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.structured-takeaways-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.structured-takeaways-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-primary);
}

.structured-takeaways-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 9px;
  color: var(--accent-gold);
}

/* Marginalia / Personal User Notes */
.marginalia-box {
  margin-bottom: 16px;
}

.marginalia-label {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.marginalia-textarea {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast);
}

.marginalia-textarea:focus {
  border-color: var(--border-focus);
}

/* INLINE RECALL SCHEDULER (ZERO MODALS) */
.inline-recall-strip {
  margin-top: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.recall-strip-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.active-recall-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-gold);
  background: var(--accent-gold-dim);
  padding: 2px 8px;
  border-radius: 4px;
}

.recall-preset-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.recall-chip-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.recall-chip-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.recall-chip-btn.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  font-weight: 800;
}

.recall-chip-btn.custom {
  border-style: dashed;
}

/* ============================================================
   VIEW 2: SYNAPSES ARCHIVE & SEARCH
   ============================================================ */
.archive-controls-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.archive-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.archive-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  gap: 10px;
  transition: border-color var(--transition-fast);
}

.archive-search-box:focus-within {
  border-color: var(--border-focus);
}

.archive-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: var(--text-primary);
}

.clear-search-icon {
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
}

/* Category & Media Filters Row */
.filter-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.category-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-filter-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cat-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.cat-filter-btn.active {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  font-weight: 700;
}

.media-type-segment {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.media-seg-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.media-seg-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-weight: 700;
}

/* Synapses Grid */
.synapses-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.archive-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
}

.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card);
}

.archive-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.archive-card-image {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
}

.archive-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.archive-card-summary {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.archive-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ============================================================
   VIEW 3: FIELD NOTES (SNAPS & VOICE TYPEWRITER)
   ============================================================ */
.field-notes-layout {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 600px;
  box-shadow: var(--shadow-card);
}

.field-notes-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.field-notes-title {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  outline: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  padding: 6px 0 12px 0;
  margin-bottom: 14px;
}

.field-notes-title::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

/* Attached Media Gallery Tray */
.notes-media-tray {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 14px 0;
}

.media-thumbnail-item {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  flex-shrink: 0;
}

.media-thumbnail-item img,
.media-thumbnail-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-media-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Expansive Typewriter Canvas */
.field-notes-canvas {
  flex: 1;
  width: 100%;
  min-height: 280px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.75;
  resize: none;
}

.field-notes-canvas::placeholder {
  color: var(--text-muted);
}

/* Bottom Control Toolbar & Audio Waveform Visualizer */
.field-notes-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  gap: 12px;
  flex-wrap: wrap;
}

.notes-controls-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tactical-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 7px 13px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tactical-tool-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.tactical-tool-btn.recording {
  background: var(--signal-red-dim);
  border-color: var(--signal-red);
  color: var(--signal-red);
  animation: pulseRecording 1.4s infinite;
}

@keyframes pulseRecording {
  0% { box-shadow: 0 0 0 0 rgba(227, 52, 47, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(227, 52, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 52, 47, 0); }
}

/* Audio Waveform Canvas / Bars */
.voice-waveform-strip {
  display: none;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 8px;
}

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

.tactical-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gold);
  color: #000;
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tactical-save-btn:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

/* ============================================================
   VIEW 4: SETTINGS & COMPLIANCE
   ============================================================ */
.settings-workbench-layout {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-group-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
}

.settings-card-title {
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

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

.settings-row-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-row-icon {
  font-size: 16px;
  color: var(--accent-gold);
}

.settings-segmented-pill {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.theme-pill-btn {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-pill-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Switch Control */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

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

.slider-knob {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-surface-hover);
  border: 1px solid var(--border-medium);
  transition: 0.25s;
  border-radius: 24px;
}

.slider-knob:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-primary);
  transition: 0.25s;
  border-radius: 50%;
}

input:checked + .slider-knob {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

input:checked + .slider-knob:before {
  transform: translateX(18px);
  background-color: #000;
}

/* ============================================================
   MODALS & OVERLAYS
   ============================================================ */
.modal-overlay-scrim {
  position: fixed;
  inset: 0;
  background: rgba(9, 10, 13, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-overlay-scrim.active {
  display: flex;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.tactical-modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tactical-modal-card.wide {
  max-width: 760px;
}

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

.modal-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  color: var(--text-muted);
  font-size: 18px;
  padding: 2px 6px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-field-group label {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-field-group input,
.modal-field-group select,
.modal-field-group textarea {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.modal-field-group input:focus,
.modal-field-group select:focus,
.modal-field-group textarea:focus {
  border-color: var(--border-focus);
}

.modal-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  gap: 10px;
  background: var(--bg-surface-elevated);
}

.btn-secondary {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.btn-primary {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  color: #000;
  border: none;
  font-size: 12.5px;
  font-weight: 800;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  box-shadow: 0 2px 10px var(--accent-gold-glow);
}

/* ============================================================
   HEADS-UP ALERT BANNER (RECALL DUE NOTIFICATION)
   ============================================================ */
.heads-up-alert-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  padding: 16px;
  z-index: 1100;
  display: none;
  flex-direction: column;
  gap: 8px;
  animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.heads-up-alert-banner.active {
  display: flex;
}

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

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

.alert-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.alert-banner-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.alert-banner-cue {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.alert-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* Toast Message */
.tactical-toast {
  position: fixed;
  top: 76px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition-smooth);
}

.tactical-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION DOCK (RESPONSIVE ONLY)
   ============================================================ */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: space-around;
  z-index: 90;
  padding: 0 12px;
}

.dock-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 12px;
  transition: color var(--transition-fast);
}

.dock-tab-item.active {
  color: var(--accent-gold);
}

.dock-tab-item .dock-icon {
  font-size: 16px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .study-workbench {
    grid-template-columns: 1fr;
  }
  .universal-capture-form {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .horizon-top-bar {
    padding: 0 14px;
  }
  .horizon-nav-group {
    display: none;
  }
  .status-metric-chip.streak {
    display: none;
  }
  .mobile-bottom-dock {
    display: flex;
  }
  .obsidian-main-stage {
    padding: 14px 14px 76px 14px;
  }
}

/* ============================================================
   GOOGLE DRIVE SYNC STYLES
   ============================================================ */
.sync-badge-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.sync-badge-pill.connected {
  background: var(--signal-green-dim);
  color: var(--signal-green);
  border: 1px solid rgba(56, 193, 114, 0.3);
}

.sync-badge-pill.disconnected {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.sync-badge-pill.syncing {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 169, 60, 0.3);
}

.spin-animation {
  animation: spinSlow 0.9s linear infinite;
  display: inline-block;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Compact Mobile Responsiveness (<=480px & <=360px) */
@media (max-width: 480px) {
  .horizon-top-bar {
    padding: 0 10px;
    height: 52px;
  }
  .universal-capture-form {
    max-width: 140px;
  }
  .capture-input {
    font-size: 11px;
    padding-left: 24px;
  }
  .obsidian-main-stage {
    padding: 10px 10px 72px 10px;
  }
  .tactical-modal-card {
    margin: 12px;
    padding: 18px;
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 360px) {
  .universal-capture-form {
    display: none;
  }
  .horizon-top-bar {
    justify-content: space-between;
  }
}

/* ============================================================
   MINSNAP PRO & REFERRAL STYLES
   ============================================================ */

/* 1. Horizon Bar Pro Button */
.pro-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: var(--accent-gold);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 10px rgba(229, 169, 60, 0.1);
  flex-shrink: 0;
}

.pro-pill-btn:hover {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.28), rgba(168, 85, 247, 0.28));
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(229, 169, 60, 0.25);
}

.pro-pill-btn.active-pro {
  background: linear-gradient(135deg, rgba(56, 193, 114, 0.15), rgba(229, 169, 60, 0.15));
  border-color: var(--signal-green);
  color: var(--signal-green);
}

.pro-sparkle {
  font-size: 12px;
}

/* 2. Settings Pro & Referral Banners */
.pro-banner-card {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.08) 0%, rgba(16, 18, 23, 0.98) 100%);
  border: 1px solid rgba(229, 169, 60, 0.35);
  box-shadow: 0 4px 20px rgba(229, 169, 60, 0.08);
}

.referral-banner-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(16, 18, 23, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.08);
}

.pro-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pro-banner-content {
  flex: 1;
}

.pro-banner-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pro-badge-glow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(229, 169, 60, 0.18);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 169, 60, 0.4);
}

.pro-active-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(56, 193, 114, 0.18);
  color: var(--signal-green);
  border: 1px solid rgba(56, 193, 114, 0.4);
}

.referral-badge-glow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.pro-banner-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pro-banner-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.btn-pro-action {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
}

/* 3. Pro Paywall Modal */
.pro-modal-card {
  max-width: 540px;
}

.pro-modal-ribbon {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-gold);
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
}

.pro-region-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0;
}

.pro-region-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.pro-region-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pro-region-btn.active {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.pro-modal-pricing-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pro-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pro-price-val {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-sans);
  color: var(--text-primary);
  letter-spacing: -0.8px;
}

.pro-price-cycle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pro-price-annual {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 700;
}

.pro-price-trial-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pro-modal-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0;
}

.pro-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
}

.pro-perk-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pro-perk-item strong {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pro-perk-item p {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.pro-modal-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pro-disclaimer-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.pro-divider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.pro-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.pro-divider-text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.pro-referral-container {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
}

.pro-referral-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pro-referral-form {
  display: flex;
  gap: 8px;
}

.pro-referral-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  outline: none;
}

.pro-referral-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(229, 169, 60, 0.2);
}

.pro-referral-status {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
}

.pro-referral-status.success {
  background: rgba(56, 193, 114, 0.15);
  border: 1px solid rgba(56, 193, 114, 0.35);
  color: var(--signal-green);
}

.pro-referral-status.error {
  background: rgba(227, 52, 47, 0.15);
  border: 1px solid rgba(227, 52, 47, 0.35);
  color: var(--signal-red);
}

.pro-share-code-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

@media (max-width: 600px) {
  .pro-modal-perks {
    grid-template-columns: 1fr;
  }
  .pro-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-pro-action {
    width: 100%;
    justify-content: center;
  }
.share-mode-pill:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.share-mode-pill:active {
  transform: translateY(0);
}



