/* ===== TAB CENTER PAGE ===== */
.tab-center-page {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.tab-center-page.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Tab Center status bar: white text, floating */
.tab-center-page .status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.tab-center-page .status-bar .time { color: #fff; }
.tab-center-page .cellular .bar { background: #fff; }
.tab-center-page .battery-body { border: 1.5px solid #fff; }
.tab-center-page .battery-body::after { background: #fff; }
.tab-center-page .battery-fill { background: #fff; }
.tab-center-page .wifi-icon { fill: #fff; }
.tab-center-page .wifi-icon path[stroke] { stroke: #fff; }

/* Tab Center top bar — floating overlay */
.tc-top-bar {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  height: 55px;
  display: flex;
  align-items: center;
  background: none;
  z-index: 10;
}
.tc-search-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 0.5px 1px rgba(0,0,0,0.15), inset 0 0.5px 0 rgba(255,255,255,0.08);
}
.tc-search-btn svg {
  width: 24px;
  height: 24px;
}

/* Mode switcher pill — iOS 26 liquid glass */
.tc-mode-switcher {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  width: 233px;
  height: 45px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 9999px;
  padding: 2px 0;
  border: 0.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 0.5px 1px rgba(0,0,0,0.15), inset 0 0.5px 0 rgba(255,255,255,0.08);
}
.tc-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 36px;
  padding: 6px 16px;
  gap: 4px;
  border-radius: 24px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 600;
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
}
.tc-mode-btn.active {
  background: #235cce;
  color: #fff;
  height: 41px;
  border-radius: 9999px;
}
.tc-mode-btn svg {
  width: 24px;
  height: 24px;
}
.tc-mode-btn.active svg {
  width: 20px;
  height: 20px;
}
.tc-mode-btn[data-mode="normal"] {
  position: relative;
}
.tc-mode-btn[data-mode="normal"] .tc-tab-count {
  position: relative;
  z-index: 1;
}
.tc-mode-btn[data-mode="normal"] .tc-tab-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.3);
}
.tc-mode-btn[data-mode="normal"] .tc-tab-icon-wrap .tc-tab-count {
  position: absolute;
  top: 1px;
}

/* Tab grid — full-page scroll, content padded for floating bars */
.tc-grid-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 115px 24px 100px;
}
.tc-grid-scroll::-webkit-scrollbar { display: none; }

.tc-grid {
  display: grid;
  grid-template-columns: 160px 160px;
  gap: 20px 23px;
  justify-content: center;
}

/* Tab card */
.tc-card {
  width: 160px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
  box-shadow: 0 0 2px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.14);
}
.tc-card:active { transform: scale(0.97); }
.tc-card.active-tab {
  outline: 4px solid #2169eb;
  outline-offset: 0px;
  border-radius: 18px;
}
.tc-card-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  display: flex;
  align-items: center;
  z-index: 2;
  background: #F3F3F3;
}
.tc-card-favicon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}
.tc-card-favicon img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}
.tc-card-title {
  flex: 1;
  font-size: 12px;
  font-weight: 400;
  color: #242424;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 16px;
  margin-left: 6px;
}
.tc-card-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.tc-card-close:hover { background: rgba(0,0,0,0.08); }
.tc-card-close svg {
  width: 14px;
  height: 14px;
}
.tc-card-preview {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

/* Empty state */
.tc-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
}
.tc-empty-state.visible {
  display: flex;
}
.tc-empty-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.tc-empty-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* Groups placeholder */
.tc-groups-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
}
.tc-groups-placeholder.visible {
  display: flex;
}

/* Tab Center bottom bar — floating overlay */
.tc-bottom-bar {
  position: absolute;
  bottom: 23px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: none;
  z-index: 10;
}
.tc-bottom-btn {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 0.5px 1px rgba(0,0,0,0.15), inset 0 0.5px 0 rgba(255,255,255,0.08);
  cursor: pointer;
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-add-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #235cce;
  border: 0.5px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 8px rgba(35,92,206,0.4), inset 0 0.5px 0 rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.tc-add-btn:active { transform: scale(0.92); }
.tc-add-btn svg {
  width: 24px;
  height: 24px;
}

.tab-center-page .home-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: none;
}
.tab-center-page .home-indicator-bar { background: #fff; }

