/* iSanctum — Apple HIG Design System */
:root {
  --ios-bg-base: #000000;
  --ios-bg-secondary: #1c1c1e;
  --ios-bg-tertiary: #2c2c2e;
  --ios-card-glass: rgba(28, 28, 30, 0.72);
  --ios-border-glass: rgba(255, 255, 255, 0.08);
  --ios-separator: rgba(84, 84, 88, 0.45);
  
  --ios-label: #ffffff;
  --ios-label-secondary: #8e8e93;
  --ios-label-tertiary: #48484a;

  --ios-tint: #30d158; /* Apple Emerald Green */
  --ios-tint-glow: rgba(48, 209, 88, 0.25);
  --ios-blue: #0a84ff;
  --ios-purple: #bf5af2;
  --ios-destructive: #ff453a;

  --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --ios-radius-lg: 24px;
  --ios-radius-md: 16px;
  --ios-radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--ios-bg-base);
  color: var(--ios-label);
  font-family: var(--ios-font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

/* Translucent iOS Navigation Bar with Safe Area Protection */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-bottom: 0.5px solid var(--ios-border-glass);
  padding: calc(14px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) 14px calc(20px + env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Standalone PWA / Android Notch / iOS Home Screen Mode */
@media all and (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  header {
    padding-top: max(54px, calc(14px + env(safe-area-inset-top, 0px)));
  }
}

.is-standalone header,
html.is-standalone header {
  padding-top: max(54px, calc(14px + env(safe-area-inset-top, 0px))) !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ios-label);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8.5px;
  background: linear-gradient(135deg, #27272a 0%, #09090b 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.brand-title .i-prefix {
  color: var(--ios-tint);
  font-weight: 800;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vault-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ios-tint);
  background: rgba(48, 209, 88, 0.12);
  border: 0.5px solid rgba(48, 209, 88, 0.35);
  padding: 3px 9px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vault-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ios-tint);
  box-shadow: 0 0 6px var(--ios-tint);
}

.btn-icon {
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  color: var(--ios-label-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-icon:active {
  transform: scale(0.92);
  background: var(--ios-bg-tertiary);
  color: var(--ios-label);
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
}

.tab-pane {
  display: none;
  animation: iosFade 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
}

@keyframes iosFade {
  from { opacity: 0; transform: scale(0.985) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* iOS Dynamic Capture Island */
.capture-card {
  background: var(--ios-card-glass);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-lg);
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.capture-card::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 160px;
  background: radial-gradient(ellipse, var(--ios-tint-glow) 0%, transparent 70%);
  pointer-events: none;
}

.capture-headline {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}

.capture-sub {
  font-size: 0.88rem;
  color: var(--ios-label-secondary);
  line-height: 1.4;
  margin-bottom: 24px;
  max-width: 380px;
}

.visualizer-wrapper {
  width: 100%;
  height: 72px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#waveformCanvas {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.timer-display {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ios-label);
  margin-bottom: 26px;
}

/* Apple Record Button */
.record-btn-wrapper {
  position: relative;
  margin-bottom: 22px;
}

.record-pulse-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: var(--ios-tint-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.is-recording .record-pulse-ring {
  opacity: 1;
  animation: iosPulse 1.6s infinite ease-out;
}

@keyframes iosPulse {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.btn-record {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(5, 150, 105, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.btn-record:active {
  transform: scale(0.92);
  filter: brightness(0.9);
}

.btn-record svg {
  width: 36px;
  height: 36px;
  fill: #ffffff;
}

.record-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.btn-secondary {
  flex: 1;
  padding: 13px 18px;
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  color: var(--ios-label);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-secondary:active {
  transform: scale(0.96);
  background: var(--ios-bg-tertiary);
}

.btn-primary {
  flex: 1;
  padding: 13px 18px;
  background: var(--ios-tint);
  border: none;
  color: #000000;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(48, 209, 88, 0.35);
  transition: transform 0.15s ease;
}

.btn-primary:active {
  transform: scale(0.96);
}

.audio-upload-box {
  margin-top: 20px;
  width: 100%;
  padding: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--ios-radius-md);
  text-align: center;
  font-size: 0.84rem;
  color: var(--ios-label-secondary);
  cursor: pointer;
  transition: border-color 0.2s;
}

.audio-upload-box:hover {
  border-color: var(--ios-tint);
}

/* iOS Search Bar */
.search-bar-wrapper {
  margin-bottom: 14px;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: 100px;
  padding: 11px 18px 11px 40px;
  color: var(--ios-label);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ios-label-secondary);
  pointer-events: none;
}

/* iOS Segmented Filter Pills */
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  padding: 6px 14px;
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ios-label-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill.active {
  background: var(--ios-label);
  color: #000000;
  font-weight: 700;
  border-color: var(--ios-label);
}

/* iOS Memory Feed Cards */
.memories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.memory-card {
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.memory-card:active {
  transform: scale(0.985);
  background-color: var(--ios-bg-tertiary);
}

.memory-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.memory-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ios-label-secondary);
}

.memory-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: rgba(48, 209, 88, 0.12);
  color: var(--ios-tint);
}

.memory-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ios-label);
  line-height: 1.35;
}

.memory-summary {
  font-size: 0.9rem;
  color: var(--ios-label-secondary);
  line-height: 1.45;
}

/* Audio Player Bar */
.audio-player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-md);
  padding: 8px 12px;
}

.audio-play-btn {
  background: var(--ios-tint);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.audio-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--ios-tint);
  border-radius: 2px;
}

/* Extracted Task Items */
.extracted-tasks-box {
  background: rgba(0, 0, 0, 0.35);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-md);
  padding: 10px 14px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.88rem;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

.task-item:last-child {
  border-bottom: none;
}

.task-checkbox {
  appearance: none;
  width: 19px;
  height: 19px;
  border: 2px solid var(--ios-label-secondary);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.task-checkbox:checked {
  background: var(--ios-tint);
  border-color: var(--ios-tint);
}

.task-checkbox:checked::before {
  content: "✓";
  color: #000;
  font-size: 12px;
  font-weight: 900;
}

.task-text.completed {
  text-decoration: line-through;
  color: var(--ios-label-tertiary);
}

/* Apple Single Item Detail Modal Sheet */
.ios-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}

.ios-modal-backdrop.active {
  display: flex;
}

.ios-modal-sheet {
  background: var(--ios-bg-secondary);
  border-top: 0.5px solid var(--ios-border-glass);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 12px 20px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: iosSheetUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8);
}

@keyframes iosSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.grabber-handle {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  align-self: center;
  margin-bottom: 8px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sheet-close-btn {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ios-tint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

/* Apple Action Sheet */
.ios-action-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 110;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
}

.ios-action-backdrop.active {
  display: flex;
}

.ios-action-menu {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: iosSheetUp 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.action-group {
  background: rgba(30, 30, 32, 0.88);
  backdrop-filter: blur(25px);
  border-radius: 14px;
  overflow: hidden;
}

.action-btn {
  width: 100%;
  padding: 16px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ios-blue);
  background: none;
  border: none;
  border-bottom: 0.5px solid var(--ios-separator);
  cursor: pointer;
}

.action-btn:last-child {
  border-bottom: none;
}

.action-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.action-btn.destructive {
  color: var(--ios-destructive);
  font-weight: 500;
}

.action-btn.cancel {
  background: rgba(30, 30, 32, 0.95);
  border-radius: 14px;
  font-weight: 600;
  color: var(--ios-blue);
}

/* Chat Tab (Ask My Memory) */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 0;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  gap: 4px;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg.assistant {
  align-self: flex-start;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.chat-msg.user .msg-bubble {
  background: var(--ios-tint);
  color: #000000;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.chat-msg.assistant .msg-bubble {
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  color: var(--ios-label);
  border-bottom-left-radius: 4px;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: 100px;
  padding: 6px 6px 6px 18px;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ios-label);
  font-size: 0.92rem;
  font-family: inherit;
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ios-tint);
  border: none;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Translucent iOS Bottom Tab Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-top: 0.5px solid var(--ios-border-glass);
  display: flex;
  justify-content: space-around;
  padding: 8px calc(12px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
  max-width: 620px;
  margin: 0 auto;
}

@media all and (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  .bottom-nav {
    padding-bottom: max(16px, calc(8px + env(safe-area-inset-bottom, 0px)));
  }
}

.is-standalone .bottom-nav,
html.is-standalone .bottom-nav {
  padding-bottom: max(16px, calc(8px + env(safe-area-inset-bottom, 0px))) !important;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ios-label-secondary);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 4px 12px;
  transition: color 0.15s ease, transform 0.1s ease;
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-item.active {
  color: var(--ios-tint);
  font-weight: 600;
}

.nav-item svg {
  width: 23px;
  height: 23px;
}

/* Spinner Overlay */
.processing-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  z-index: 120;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.processing-modal.active {
  display: flex;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--ios-tint);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.code-block {
  background: #000;
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-sm);
  padding: 12px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--ios-label-secondary);
  overflow-x: auto;
}

/* ============================================================
   Co-founder Execution Studio & Persona Selector (Alippo AI Superpower)
   ============================================================ */
.execution-studio-section {
  background: linear-gradient(180deg, rgba(30, 30, 32, 0.7) 0%, rgba(20, 20, 22, 0.9) 100%);
  border: 0.5px solid rgba(48, 209, 88, 0.3);
  border-radius: var(--ios-radius-md);
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.execution-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.execution-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ios-tint);
  text-transform: uppercase;
}

.execution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 380px) {
  .execution-grid {
    grid-template-columns: 1fr;
  }
}

.execution-btn {
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-sm);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--ios-label);
}

.execution-btn:hover {
  background: var(--ios-bg-tertiary);
  border-color: rgba(48, 209, 88, 0.4);
  transform: translateY(-1px);
}

.execution-btn:active {
  transform: scale(0.97);
  background: #3a3a3c;
}

.execution-btn .btn-emoji {
  font-size: 1.3rem;
  line-height: 1;
}

.execution-btn .btn-text strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ios-label);
  margin-bottom: 2px;
}

.execution-btn .btn-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--ios-label-secondary);
  line-height: 1.3;
}

/* Execution Result Box */
.execution-result-card {
  margin-top: 14px;
  background: #000000;
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-sm);
  padding: 14px;
  animation: fadeIn 0.25s ease;
}

.execution-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--ios-separator);
}

.sheet-action-pill {
  background: var(--ios-bg-tertiary);
  border: 0.5px solid var(--ios-border-glass);
  color: var(--ios-label);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.sheet-action-pill:active {
  background: var(--ios-tint);
  color: #000;
}

/* Persona Selector Bar in Chat */
.persona-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.persona-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ios-label-secondary);
  white-space: nowrap;
}

.persona-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.persona-pill {
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  color: var(--ios-label-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.persona-pill.active {
  background: rgba(48, 209, 88, 0.16);
  border-color: rgba(48, 209, 88, 0.45);
  color: var(--ios-tint);
}

/* Markdown Rendering in Chat & Execution Output */
.markdown-body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ios-label);
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 12px 0 6px 0;
}

.markdown-body h2:first-child,
.markdown-body h3:first-child,
.markdown-body h4:first-child {
  margin-top: 0;
}

.markdown-body p {
  margin-bottom: 8px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 20px;
  margin-bottom: 8px;
}

.markdown-body li {
  margin-bottom: 4px;
}

.markdown-body strong {
  color: #ffffff;
  font-weight: 600;
}

.markdown-body blockquote {
  border-left: 3px solid var(--ios-tint);
  padding-left: 10px;
  color: var(--ios-label-secondary);
  margin: 8px 0;
  font-style: italic;
}

/* ============================================================
   Superpowers: Executive Digest, Read Aloud, Pause, Note Assistant
   ============================================================ */

/* 1. Executive Digest Banner in Memories Tab */
.executive-digest-banner {
  background: linear-gradient(135deg, rgba(30, 30, 32, 0.9) 0%, rgba(20, 20, 22, 0.95) 100%);
  border: 0.5px solid rgba(48, 209, 88, 0.35);
  border-radius: var(--ios-radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.executive-digest-banner:hover {
  border-color: var(--ios-tint);
  transform: translateY(-1px);
}

.executive-digest-banner:active {
  transform: scale(0.98);
}

.digest-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(48, 209, 88, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.digest-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.digest-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ios-tint);
  text-transform: uppercase;
}

.digest-banner-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ios-label);
}

.digest-banner-text small {
  font-size: 0.74rem;
  color: var(--ios-label-secondary);
}

.digest-view-btn {
  background: var(--ios-bg-tertiary);
  border: 0.5px solid var(--ios-border-glass);
  color: var(--ios-label);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
}

/* 2. Listen Aloud Pill & Speaking Animation */
.audio-listen-pill {
  background: var(--ios-bg-tertiary);
  border: 0.5px solid var(--ios-border-glass);
  color: var(--ios-label);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.audio-listen-pill.is-speaking,
.sheet-action-pill.is-speaking {
  background: rgba(48, 209, 88, 0.2);
  border-color: var(--ios-tint);
  color: var(--ios-tint);
  animation: pulseSpeech 1.2s infinite alternate ease-in-out;
}

@keyframes pulseSpeech {
  from { box-shadow: 0 0 4px rgba(48, 209, 88, 0.2); }
  to { box-shadow: 0 0 12px rgba(48, 209, 88, 0.6); }
}

/* 3. Pause Button States */
#btnPause.is-paused {
  background: rgba(255, 159, 10, 0.2);
  border-color: #ff9f0a;
  color: #ff9f0a;
}

/* 4. Inline Note Assistant Section */
.note-assistant-section {
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.6) 0%, rgba(18, 18, 20, 0.8) 100%);
  border: 0.5px solid rgba(10, 132, 255, 0.35);
  border-radius: var(--ios-radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assistant-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.assistant-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ios-blue);
  text-transform: uppercase;
}

.note-assistant-input-row {
  display: flex;
  gap: 8px;
}

.note-assistant-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-sm);
  padding: 10px 14px;
  color: var(--ios-label);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.note-assistant-input:focus {
  border-color: var(--ios-blue);
}

.note-assistant-send-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--ios-radius-sm);
  background: var(--ios-blue);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.note-assistant-send-btn:active {
  opacity: 0.8;
}

.note-assistant-bubble {
  background: #000;
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-sm);
  padding: 12px;
  animation: fadeIn 0.2s ease;
}

.assistant-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 0.5px solid var(--ios-separator);
}




/* --- Apple HIG Login Gate & Multi-User Profile --- */
.login-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 15%, #18181f 0%, #000000 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-gate-card {
  background: var(--ios-card-glass);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-lg);
  padding: 36px 26px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-brand-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #27272a 0%, #09090b 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(48, 209, 88, 0.2);
}

.login-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--ios-label-secondary);
  text-align: center;
  margin-bottom: 22px;
}

.login-tabs {
  display: flex;
  background: var(--ios-bg-secondary);
  padding: 3px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 0.5px solid var(--ios-border-glass);
}

.login-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--ios-label-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-tab.active {
  background: #3a3a3c;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.login-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ios-label-secondary);
}

.login-input {
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  color: var(--ios-label);
  border-radius: var(--ios-radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.login-input:focus {
  border-color: var(--ios-tint);
}

.login-error-msg {
  color: var(--ios-destructive);
  font-size: 0.82rem;
  min-height: 18px;
  margin-bottom: 6px;
  text-align: center;
  font-weight: 500;
}

/* User Profile Mini Chip in Header */
.user-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.8rem;
}

.user-avatar-mini {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ios-tint);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
}

.user-name-mini {
  color: var(--ios-label);
  font-weight: 600;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* --- Usage Guide Modal & WhatsApp Support Button --- */
.guide-modal-sheet {
  max-height: 85vh;
  overflow-y: auto;
}

.guide-cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-border-glass);
  border-radius: var(--ios-radius-md);
  padding: 14px 16px;
}

.guide-icon {
  font-size: 1.5rem;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}

.guide-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--ios-label);
}

.guide-text p {
  font-size: 0.82rem;
  color: var(--ios-label-secondary);
  line-height: 1.45;
}

.btn-whatsapp {
  background: #25d366;
  color: #000000;
  border: none;
  border-radius: var(--ios-radius-md);
  padding: 13px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  text-decoration: none;
}

.btn-whatsapp:active {
  transform: scale(0.97);
  background: #20bd5a;
}

/* Password Input Wrapper & Visibility Toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .login-input,
.password-input-wrapper .search-input,
.password-input-wrapper .form-input {
  width: 100%;
  padding-right: 42px !important;
  box-sizing: border-box;
}

.btn-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--ios-label-secondary);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease, opacity 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}

.btn-password-toggle:hover {
  color: var(--ios-label);
}

.btn-password-toggle:active {
  opacity: 0.7;
}

/* Remember Me Checkbox & Row */
.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 12px;
}

.login-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ios-label-secondary);
  cursor: pointer;
  user-select: none;
}

.login-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: var(--ios-bg-secondary);
  cursor: pointer;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  outline: none;
  margin: 0;
}

.login-checkbox:checked {
  background: var(--ios-tint);
  border-color: var(--ios-tint);
}

.login-checkbox:checked::before {
  content: "✓";
  color: #000;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.login-checkbox:focus-visible {
  box-shadow: 0 0 0 2px var(--ios-tint);
}


/* ==========================================================================
   ✨ iOS 27 SPATIAL LIQUID GLASS & GLASS BUTTON OVERHAUL
   Inspired by Apple VisionOS & iOS 27 Spatial Design System
   ========================================================================== */

/* Ambient Spatial Mesh Background */
body {
  background: 
    radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.09) 0%, transparent 35%),
    radial-gradient(circle at 88% 18%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 75%, rgba(14, 165, 233, 0.06) 0%, transparent 45%),
    #050608 !important;
  background-attachment: fixed !important;
}

/* Translucent Spatial Header with Ambient Specular Rim */
header {
  background: rgba(8, 9, 13, 0.75) !important;
  backdrop-filter: blur(32px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(210%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}

/* Universal iOS 27 Spatial Glass Button Base */
.btn-icon,
.btn-secondary,
.btn-primary,
.btn-record,
.btn-login,
.btn-whatsapp,
.filter-chip,
.note-action-btn,
.note-assistant-send-btn,
.chat-send-btn,
.shortcut-btn {
  position: relative !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Glass Secondary Buttons */
.btn-secondary,
.btn-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25),
    0 8px 24px -4px rgba(0, 0, 0, 0.45) !important;
  color: #ffffff !important;
}

.btn-secondary:hover,
.btn-icon:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25),
    0 12px 30px -4px rgba(0, 0, 0, 0.55) !important;
}

.btn-secondary:active,
.btn-icon:active {
  transform: scale(0.94) translateY(1px) !important;
  filter: brightness(1.15) !important;
  box-shadow: 
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

/* Glass Primary Buttons (Emerald / Vision Cyan Glow) */
.btn-primary,
.btn-login {
  background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 
    0 0 28px rgba(16, 185, 129, 0.45),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.35),
    0 10px 24px -4px rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.btn-primary:hover,
.btn-login:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%) !important;
  box-shadow: 
    0 0 38px rgba(52, 211, 153, 0.6),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.85),
    0 14px 30px -4px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-1px) !important;
}

.btn-primary:active,
.btn-login:active {
  transform: scale(0.95) translateY(1px) !important;
  filter: brightness(1.12) !important;
  box-shadow: 
    0 0 16px rgba(16, 185, 129, 0.5),
    inset 0 2px 3px 0 rgba(255, 255, 255, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

/* WhatsApp Liquid Glass Button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 
    0 0 24px rgba(37, 211, 102, 0.4),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.6),
    0 8px 20px -2px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
}

.btn-whatsapp:active {
  transform: scale(0.95) !important;
  filter: brightness(1.15) !important;
}

/* iOS 27 Spatial Orb Record Button */
.btn-record {
  background: radial-gradient(circle at 35% 30%, #34d399 0%, #10b981 45%, #047857 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 
    0 0 45px rgba(16, 185, 129, 0.55),
    inset 0 3px 4px 0 rgba(255, 255, 255, 0.75),
    inset 0 -3px 4px 0 rgba(0, 0, 0, 0.4),
    0 16px 36px -6px rgba(0, 0, 0, 0.7) !important;
}

.btn-record:active {
  transform: scale(0.93) !important;
  box-shadow: 
    0 0 60px rgba(52, 211, 153, 0.75),
    inset 0 3px 5px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(0, 0, 0, 0.8) !important;
}

.record-pulse-ring {
  border: 1.5px solid rgba(52, 211, 153, 0.4) !important;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.3) !important;
}

/* Glass Filter Pills & Segmented Controls */
.filter-chip {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25) !important;
  color: var(--ios-label-secondary) !important;
  border-radius: 100px !important;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: var(--ios-label) !important;
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.18) 100%) !important;
  border-color: rgba(52, 211, 153, 0.55) !important;
  color: #34d399 !important;
  box-shadow: 
    0 0 16px rgba(16, 185, 129, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Spatial Glass Cards & Memory Containers */
.memory-card,
.action-card,
.login-card,
.guide-card,
.note-assistant-container,
.stat-card,
.settings-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 
    0 16px 36px -10px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25) !important;
  border-radius: 24px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.memory-card:hover,
.action-card:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 
    0 22px 46px -10px rgba(0, 0, 0, 0.75),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* Floating iOS 27 Liquid Glass Bottom Dock / Tab Bar */
nav.tab-bar {
  margin: 0 16px calc(14px + env(safe-area-inset-bottom, 0px)) 16px !important;
  border-radius: 36px !important;
  background: rgba(14, 15, 20, 0.78) !important;
  backdrop-filter: blur(32px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(220%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.8),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.32) !important;
  padding: 8px 12px !important;
  gap: 6px !important;
}

.tab-item {
  border-radius: 24px !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tab-item.active {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 
    0 0 18px rgba(16, 185, 129, 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #34d399 !important;
}

.tab-item:active {
  transform: scale(0.92) !important;
}

/* Refractive Glass Search & Form Inputs */
.search-input,
.login-input,
.form-input,
.filter-search-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
}

.search-input:focus,
.login-input:focus,
.form-input:focus,
.filter-search-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(52, 211, 153, 0.65) !important;
  box-shadow: 
    0 0 20px rgba(52, 211, 153, 0.35),
    inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Glass Status Pills */
.vault-pill {
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Audio Player Glass Elevation */
.audio-player-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  border-radius: 20px !important;
}
