/* ===== NTP PAGE ===== */
.ntp-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}
.ntp-page.hidden {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}
.ntp-page.new-tab-enter {
  opacity: 0;
  transform: scale(0.4) translateY(60%);
  pointer-events: none;
  transition: none;
}
.ntp-page.new-tab-animate {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.35s ease-out, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Wallpaper */
.wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlays */
.overlay1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 12%);
}

.overlay2 {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 350px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.45) 100%);
}

/* Content layer */
.content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 844px;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 0 43px;
  height: 54px;
}
.status-bar .time {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ntp-page .status-bar .time,
.ntp-page .status-bar .indicators svg,
.ntp-page .cellular .bar,
.ntp-page .battery-body,
.ntp-page .battery-body::after,
.ntp-page .battery-fill { color: #1a1a1a; fill: #1a1a1a; }
.status-bar .indicators {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dynamic Island - hidden on this wallpaper */
.dynamic-island {
  display: none;
}

/* Top Row: Profile + Weather + Options */
.top-row {
  display: flex;
  align-items: center;
  padding: 12px 16px 0 12px;
  gap: 8px;
}
.profile-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.profile-icon img {
  width: 100%;
  height: 100%;
}

.weather {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(128,128,128,0.45);
  border-radius: 49px;
  padding: 6px 12px 6px 8px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow:
    0 0.15px 0.45px rgba(0,0,0,0.11),
    0 0.8px 1.8px rgba(0,0,0,0.13);
}
.weather img {
  width: 24px;
  height: 24px;
}
.weather span {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 24px;
}

.options-icon {
  margin-left: auto;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.options-icon img {
  width: 100%;
  height: 100%;
}

/* Top Sites */
.top-sites {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 557px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.top-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.top-site .logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}
.top-site .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top-site .title {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  text-align: center;
  line-height: 16px;
  transition: color 0.3s ease;
}
.top-site .title.dark-text {
  color: #242424;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  left: 0; right: 0;
  top: 666px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  height: 40px;
}
.scroll-tip {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scroll-tip img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
.scroll-tip span {
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.333em;
  letter-spacing: -0.016em;
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14);
}

/* NTP Bottom Bar */
.ntp-bottom-bar {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: background 0.3s ease;
}

/* Address Row */
.address-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 6px;
}

.omni-box {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  border-radius: 21px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10.84px 21.68px rgba(0,0,0,0.05),
    0 41.19px 41.19px rgba(0,0,0,0.04),
    0 91.05px 54.2px rgba(0,0,0,0.04),
    0 162.59px 65.04px rgba(0,0,0,0.03);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.omni-box:active {
  transform: scale(0.98);
}
.omni-left {
  display: flex;
  align-items: center;
  padding-left: 0px;
  flex-shrink: 0;
}
.omni-left img {
  height: 24px;
}

.omni-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.omni-center span {
  font-size: 17px;
  font-weight: 400;
  color: rgba(0,0,0,0.74);
  letter-spacing: -0.025em;
}

.omni-right {
  display: flex;
  align-items: center;
  padding-right: 0px;
  flex-shrink: 0;
}
.omni-right img {
  height: 24px;
}

/* Navigation */
.navi {
  display: flex;
  justify-content: stretch;
}
.nav-btn {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-btn img {
  height: 44px;
  width: auto;
}

/* Home Indicator */
.home-indicator {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
  height: 34px;
}
.home-indicator-bar {
  width: 134px;
  height: 5px;
  border-radius: 3px;
  opacity: 0.4;
}
.ntp-page .home-indicator-bar { background: #1a1a1a; }

/* Cellular icon */
.cellular {
  display: flex;
  align-items: flex-end;
  gap: 1.6px;
  height: 12px;
}
.cellular .bar {
  width: 3.2px;
  border-radius: 0.5px;
}
.ntp-page .cellular .bar { background: #1a1a1a; }
.cellular .bar:nth-child(1) { height: 4.6px; }
.cellular .bar:nth-child(2) { height: 7px; }
.cellular .bar:nth-child(3) { height: 9.6px; }
.cellular .bar:nth-child(4) { height: 12px; }

/* WiFi icon */
.wifi-icon svg { width: 17px; height: 12px; }

/* Battery icon */
.battery {
  display: flex;
  align-items: center;
  gap: 1px;
}
.battery-body {
  width: 25px;
  height: 13px;
  border-radius: 3px;
  padding: 2px;
  position: relative;
}
.ntp-page .battery-body { border: 1.5px solid #1a1a1a; }
.battery-body::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.33px;
  height: 4px;
  border-radius: 0 1px 1px 0;
}
.ntp-page .battery-body::after { background: #1a1a1a; }
.battery-fill {
  width: 100%;
  height: 100%;
  border-radius: 1px;
}
.ntp-page .battery-fill { background: #1a1a1a; }

/* ===== NTP SCROLL CONTAINER ===== */
.ntp-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  pointer-events: none;
  transition: background 0.3s ease;
}
.ntp-status-bar.feed-colors {
  background: #F3F3F3;
}
.ntp-status-bar.feed-colors .status-bar .time,
.ntp-status-bar.feed-colors .status-bar .indicators svg,
.ntp-status-bar.feed-colors .cellular .bar,
.ntp-status-bar.feed-colors .battery-body,
.ntp-status-bar.feed-colors .battery-body::after,
.ntp-status-bar.feed-colors .battery-fill { color: #000; fill: #000; }
.ntp-status-bar.feed-colors .cellular .bar { background: #000; }
.ntp-status-bar.feed-colors .battery-body { border-color: #000; }
.ntp-status-bar.feed-colors .battery-body::after { background: #000; }
.ntp-status-bar.feed-colors .battery-fill { background: #000; }
.ntp-status-bar.feed-colors .wifi-icon path[stroke] { stroke: #000; }

/* White overlay for wallpaper→feed transition */
.overlay-for-feed {
  position: absolute;
  inset: 0;
  background: #F3F3F3;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

