/* ===== BROWSER PAGE (iframe) ===== */
.browser-page {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.browser-page.visible {
  opacity: 1;
  pointer-events: auto;
}
.browser-iframe-wrap {
  flex: 1;
  position: relative;
}
.browser-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.browser-bottom-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 6px;
  background: rgba(230,230,230,0.85);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}
.browser-bottom-bar .address-row {
  padding: 0 12px 4px;
}
.browser-bottom-bar .omni-box {
  overflow: visible;
}
.browser-bottom-bar .omni-left {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 0;
}
.browser-bottom-bar .omni-left svg {
  width: 24px;
  height: 24px;
}
.browser-bottom-bar .omni-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
}
.browser-bottom-bar .omni-center .lock-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 2px;
}
.browser-bottom-bar .omni-center span {
  font-family: 'Segoe Sans', 'Segoe UI Variable', -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 450;
  color: #242424;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-bottom-bar .omni-right {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-right: 0;
}
.browser-bottom-bar .omni-right svg {
  width: 24px;
  height: 24px;
}
.browser-bottom-bar .navi {
  width: 390px;
}
.browser-bottom-bar .nav-btn {
  height: 44px;
}
.browser-bottom-bar .nav-btn img {
  display: none;
}
.browser-bottom-bar .nav-btn svg {
  width: 100%;
  height: 44px;
}
.browser-bottom-bar #browserTabBtn svg {
  width: 24px;
  height: 24px;
}
.browser-bottom-bar #browserTabBtn .tab-count {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.browser-bottom-bar .home-indicator-bar {
  background: #1a1a1a;
}
.browser-bottom-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: rgba(0,0,0,0.06);
}
.nav-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.nav-btn .tab-count {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  font-family: 'Segoe UI Variable', -apple-system, sans-serif;
  color: white;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.nav-btn .tab-count + img,
.nav-btn img:has(+ .tab-count) {
  /* handled by order */
}
.browser-bottom-bar .nav-btn .tab-count {
  color: rgba(0,0,0,0.86);
}

/* QF mode: input text turns dark when user is typing */
.zip-input-text .qf-typed {
  color: rgba(0,0,0,0.86);
}
.zip-input-text .qf-selected {
  color: rgba(0,0,0,0.86);
  background: rgba(0,120,215,0.15);
  border-radius: 3px;
  padding: 2px 0;
}
.zip-input-text .qf-placeholder {
  color: rgba(0,0,0,0.74);
}

/* Top sites clickable */
.top-site[data-url], .zip-top-site[data-url] {
  cursor: pointer;
}
.top-site[data-url]:active, .zip-top-site[data-url]:active {
  opacity: 0.6;
}

/* QF mode: hide top sites */
.zip-page.qf-mode #zipTopSites {
  display: none;
}

