:root {
  --bg-main: #07090e;
  --bg-surface: #0e121d;
  --bg-surface-elevated: #151c2e;
  --bg-surface-hover: #1c263f;
  --bg-card: rgba(21, 28, 46, 0.7);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);
  --border-focus: #00f0ff;

  --accent-cyan: #00f0ff;
  --accent-teal: #00e5a3;
  --accent-purple: #9d4edd;
  --accent-danger: #ff4757;
  --accent-warning: #ffa502;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.4);
  --glow-teal: 0 0 15px rgba(0, 229, 163, 0.4);
  --glass-blur: blur(16px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* =========================================
   TOP TITLEBAR & TAB STRIP (DESKTOP)
   ========================================= */
.window-titlebar {
  display: flex;
  align-items: center;
  height: 42px;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  -webkit-app-region: drag;
  padding-left: 8px;
  position: relative;
  z-index: 100;
}

.browser-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-shadow: var(--glow-cyan);
}

.browser-brand svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tab-strip {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  gap: 4px;
  padding: 4px 6px 0 6px;
  -webkit-app-region: no-drag;
}

.tab-strip::-webkit-scrollbar {
  display: none;
}

.tab-item {
  display: flex;
  align-items: center;
  height: 34px;
  min-width: 130px;
  max-width: 220px;
  padding: 0 10px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  border-bottom: none;
  position: relative;
}

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

.tab-item.active {
  background-color: var(--bg-surface);
  color: var(--accent-cyan);
  border-color: var(--border-subtle);
  box-shadow: 0 -2px 10px rgba(0, 240, 255, 0.08);
}

.tab-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
  border-radius: 2px 2px 0 0;
}

.tab-favicon {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-favicon img {
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

.tab-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-close-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 13px;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

.tab-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-danger);
}

.new-tab-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  -webkit-app-region: no-drag;
  transition: all var(--transition-fast);
}

.new-tab-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--accent-cyan);
}

/* Window Control Buttons (Desktop) */
.window-actions {
  display: flex;
  align-items: center;
  height: 100%;
  -webkit-app-region: no-drag;
}

.win-btn {
  width: 44px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.win-btn.close:hover {
  background: var(--accent-danger);
  color: white;
}

/* =========================================
   NAVIGATION TOOLBAR
   ========================================= */
.navbar {
  height: 48px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  position: relative;
  z-index: 90;
}

.nav-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.nav-btn:hover:not(:disabled) {
  background: var(--bg-surface-elevated);
  color: var(--accent-cyan);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Omnibox / Address Bar */
.omnibox-container {
  flex: 1;
  height: 36px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.omnibox-container:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
  background-color: #05070a;
}

.security-badge {
  display: flex;
  align-items: center;
  color: var(--accent-teal);
  font-size: 12px;
  cursor: pointer;
}

.omnibox-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 13px;
  width: 100%;
}

.omnibox-input::placeholder {
  color: var(--text-dim);
}

.omnibox-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.omnibox-clear-btn:hover {
  color: var(--accent-cyan);
}

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

/* Omnibox Dynamic Suggestions Dropdown */
.omnibox-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(13, 18, 28, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 240, 255, 0.15);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  animation: omniboxFadeIn 0.12s ease-out;
}

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

.omnibox-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.12s;
  font-size: 13px;
}

.omnibox-suggestion-item:hover, .omnibox-suggestion-item.selected {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
}

.omnibox-suggestion-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

.omnibox-suggestion-icon {
  font-size: 13px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.omnibox-suggestion-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omnibox-suggestion-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  text-transform: uppercase;
  flex-shrink: 0;
}

.omnibox-suggestion-tag.tag-calc {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
}

.omnibox-suggestion-tag.tag-nav {
  background: rgba(0, 229, 163, 0.15);
  color: var(--accent-teal);
}

/* Aloha Shield Badge Button */
.shield-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 163, 0.12);
  border: 1px solid rgba(0, 229, 163, 0.3);
  color: var(--accent-teal);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shield-pill:hover {
  background: rgba(0, 229, 163, 0.22);
  box-shadow: var(--glow-teal);
}

/* Aloha VPN Pill */
.vpn-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vpn-pill:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-cyan);
  color: var(--text-main);
}

.vpn-pill.connected {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.vpn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}

.vpn-pill.connected .vpn-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

/* Media Sniffer Pill */
.media-pill {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.4);
  color: #c77dff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.media-pill.visible {
  display: flex;
  animation: bounce-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce-in {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.tool-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.tool-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
  color: var(--accent-cyan);
}

.tool-btn.vault:hover {
  color: #e0aaff;
  border-color: rgba(157, 78, 221, 0.4);
}

/* =========================================
   BROWSER WORKSPACE & VIEWPORT
   ========================================= */
.browser-viewport {
  flex: 1;
  position: relative;
  background-color: var(--bg-main);
  overflow: hidden;
}

.tab-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: #ffffff;
}

.tab-view.active {
  display: flex !important;
  flex-direction: column;
}

.tab-view.newtab-frame {
  background: var(--bg-main);
}

webview, iframe.newtab-iframe, iframe.browser-frame {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1;
  display: flex;
}

/* =========================================
   MOBILE BOTTOM BAR (PHONE VIEW)
   ========================================= */
.mobile-bottom-bar {
  display: none; /* Hidden on laptop / desktop */
  height: 56px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mob-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mob-nav-btn:active {
  background: var(--bg-surface-elevated);
  color: var(--accent-cyan);
  transform: scale(0.92);
}

.mob-nav-btn:disabled {
  opacity: 0.3;
}

.mob-tab-box {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.mob-shield-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--accent-teal);
  color: #07090e;
  font-size: 9px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 4px;
}

/* =========================================
   MOBILE TAB SWITCHER OVERLAY
   ========================================= */
.mobile-tab-switcher-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 2000;
  flex-direction: column;
  animation: slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-tab-switcher-overlay.active {
  display: flex;
}

@keyframes slide-up {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.mob-switcher-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.mob-header-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
}

.mob-header-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-switcher-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.mob-tabs-grid {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mob-tab-card {
  height: 180px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
  cursor: pointer;
}

.mob-tab-card.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.mob-tab-card-header {
  height: 32px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 12px;
}

.mob-tab-card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  color: var(--text-main);
  font-weight: 500;
}

.mob-tab-card-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  padding: 2px 4px;
  cursor: pointer;
}

.mob-tab-card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  color: var(--text-dim);
  font-size: 11px;
}

/* =========================================
   MODALS & BOTTOM SHEETS
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: var(--glass-blur);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.aloha-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .aloha-modal {
  transform: scale(1);
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* VPN / Shield Cards */
.vpn-status-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vpn-toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

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

.switch-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #242f48;
  transition: 0.3s;
  border-radius: 28px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

input:checked + .switch-slider:before {
  transform: translateX(24px);
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.server-item:hover {
  border-color: var(--border-focus);
  background: var(--bg-surface-hover);
}

.server-item.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.server-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-flag {
  font-size: 20px;
}

.server-ping {
  font-size: 11px;
  color: var(--accent-teal);
  font-weight: 600;
  background: rgba(0, 229, 163, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.shield-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.metric-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.metric-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-teal);
  margin-top: 4px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Vault PIN Keypad */
.pin-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.pin-dot.filled {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 260px;
  margin: 0 auto;
}

.keypad-btn {
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.keypad-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
}

.quick-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-btn.active, .quick-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* =========================================
   RESPONSIVE LAYOUT RULES: MOBILE / PHONE (<768px)
   ========================================= */
@media (max-width: 768px) {
  /* Hide Desktop Titlebar & Top Tab Strip */
  .window-titlebar {
    display: none !important;
  }

  /* Desktop-only items hide */
  .desktop-only {
    display: none !important;
  }

  /* Compact Navbar */
  .navbar {
    height: 50px;
    padding: 0 8px;
    gap: 6px;
  }

  .omnibox-container {
    height: 38px;
    padding: 0 10px;
  }

  .vpn-pill {
    padding: 4px 8px;
    font-size: 11px;
  }

  #vpn-pill-text {
    display: inline;
  }

  /* Viewport leaves room for bottom navigation bar */
  .browser-viewport {
    padding-bottom: 56px;
  }

  /* Show Mobile Bottom Bar */
  .mobile-bottom-bar {
    display: flex;
  }

  /* Transform Modals into Mobile Bottom Sheets */
  .modal-overlay {
    align-items: flex-end;
  }

  .aloha-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .modal-overlay.active .aloha-modal {
    transform: translateY(0);
  }

  .shield-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   ALOHA SYNC & USER PROFILE STYLES
   ========================================= */
.user-avatar-pill {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.sync-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  border: 1.5px solid var(--bg-surface);
  box-shadow: 0 0 4px var(--accent-teal);
}

.sync-status-dot.offline {
  background: var(--text-dim);
  box-shadow: none;
}

.remote-tab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.remote-tab-item:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
}

.remote-tab-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.remote-tab-texts {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.remote-tab-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.remote-tab-meta {
  font-size: 11px;
  color: var(--text-dim);
}

.sync-device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* ==========================================
   SETTINGS MODAL & DEFAULT SEARCH ENGINE STYLES
   ========================================== */
.settings-engine-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.settings-engine-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.settings-engine-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.settings-engine-card .engine-card-icon {
  font-size: 22px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-engine-card .engine-card-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
}

.settings-engine-card .engine-card-desc {
  font-size: 10.5px;
  color: var(--text-dim);
  line-height: 1.3;
}

.settings-engine-card .engine-default-pill {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--accent-cyan);
  color: #07090e;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  display: none;
  letter-spacing: 0.5px;
}

.settings-engine-card.active .engine-default-pill {
  display: block;
}


