/* ===== ZIP PAGE ===== */
.zip-page {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.zip-page.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ZIP Status Bar */
.zip-page .status-bar .time { color: #000; }
.zip-page .cellular .bar { background: #000; }
.zip-page .battery-body { border: 1.5px solid #000; }
.zip-page .battery-body::after { background: #000; }
.zip-page .battery-fill { background: #000; }

/* ZIP Search Bar */
.zip-search-bar {
  position: relative;
  height: 60px;
  margin-top: -2px;
}
.zip-search-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 88%);
}
.zip-back-btn {
  position: absolute;
  right: 14px;
  top: 4px;
  width: 52px;
  height: 52px;
  cursor: pointer;
  z-index: 5;
}
.zip-back-btn img {
  width: 100%;
  height: 100%;
}

/* ZIP Suggestions */
.zip-suggestions {
  padding: 0 8px;
}
.zip-suggestion {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  position: relative;
}
.zip-suggestion:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 0;
  bottom: 0;
  height: 0.5px;
  background: rgba(0,0,0,0.06);
}
.zip-suggestion-icon {
  width: 24px;
  height: 37px;
  margin-right: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zip-suggestion-icon img {
  width: 24px;
  height: 37px;
}
.zip-suggestion-text {
  flex: 1;
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(0,0,0,0.86);
  letter-spacing: -0.016em;
  line-height: 1.333em;
}
.zip-suggestion-arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  opacity: 0.4;
}
.zip-suggestion-arrow img {
  width: 100%;
  height: 100%;
}

/* ZIP Top Sites */
.zip-top-sites {
  padding: 4px 0 0 16px;
}
.zip-top-sites-row {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 16px;
  width: fit-content;
}
.zip-top-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 66px;
  height: 84px;
  position: relative;
}
.zip-top-site img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #F0F0F0;
  margin: 0 auto;
}
.zip-top-site span {
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #242424;
  text-align: center;
  line-height: 1.333em;
  margin-top: 4px;
  width: 66px;
}

/* ZIP Spacer to push content above keyboard */
.zip-middle {
  flex: 1;
}

/* ZIP Composer */
.zip-composer {
  padding: 0 8px;
  margin-top: 4px;
  margin-bottom: 8px;
}
.zip-composer-outer {
  background: rgba(255,255,255,0.95);
  border: 1px solid #fff;
  border-radius: 32px;
  padding: 6px;
  box-shadow: 0 4px 24px rgba(224,224,224,0.65);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  position: relative;
  overflow: hidden;
}
.zip-composer-gradient {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);
  opacity: 0.5;
  pointer-events: none;
}
.zip-composer-inner {
  background: rgba(255,255,255,0.85);
  border-radius: 26px;
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  position: relative;
  z-index: 1;
}
.zip-input-area {
  padding: 10px 8px;
}
.zip-input-text {
  padding: 4px 8px;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 28px;
  overflow: hidden;
  position: relative;
}
.zip-input-text span {
  font-size: 17px;
  font-weight: 400;
  color: rgba(0,0,0,0.45);
  letter-spacing: -0.025em;
  line-height: 1.294em;
  white-space: nowrap;
  flex-shrink: 0;
}
.zip-input-text.has-input span {
  visibility: hidden;
}
.zip-input-text.has-input .zip-input-cursor {
  display: none;
}
.zip-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  color: transparent;
  letter-spacing: -0.025em;
  line-height: 1.294em;
  background: transparent;
  border: none;
  outline: none;
  padding: 4px 8px;
  caret-color: transparent;
}
.zip-hidden-input.active {
  color: rgba(0,0,0,0.86);
  caret-color: #007AFF;
}
.zip-hidden-input.active.no-caret {
  caret-color: transparent;
}
.zip-hidden-input::selection {
  background: rgba(0,120,215,0.2);
}
.zip-input-cursor {
  width: 2px;
  height: 20px;
  background: #007AFF;
  border-radius: 1px;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.zip-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 8px 12px;
}
.zip-controls-left {
  display: flex;
  align-items: center;
  gap: 4px;
}
.zip-plus-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.zip-plus-btn svg {
  width: 20px;
  height: 20px;
}
.zip-copilot-icon {
  width: 18px;
  height: 18px;
}
.zip-ask-copilot {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 3px 12px;
  height: 36px;
}
.zip-ask-copilot span {
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(0,0,0,0.86);
  line-height: 18px;
  letter-spacing: -0.006em;
}
.zip-controls-right {
  display: flex;
  align-items: center;
}
.zip-ctrl-group {
  height: 36px;
  width: auto;
}

/* ZIP Keyboard */
.zip-keyboard {
}
.zip-keyboard img {
  width: 100%;
  height: auto;
  display: block;
}

/* ZIP Home Indicator */
.zip-page .home-indicator-bar { background: #1a1a1a; }

/* Hidden input for keyboard capture */

