/* Universal iOS Dock Logic */
.popup::after {
  content: "";
  display: block;
  height: 110px;
  flex-shrink: 0;
}

#dynamic-tab::after {
  content: "";
  display: block;
  height: 110px;
  flex-shrink: 0;
}

#mobileBottomNav {
  display: flex !important;
  justify-content: space-around;
  align-items: center;
  position: fixed !important;
  bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 400px !important;
  height: 65px;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  z-index: 2147483647 !important;
  padding-bottom: 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #777;
  cursor: pointer;
  width: 25%;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
  transform: scale(0.88);
}

.nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke-width 0.3s ease, filter 0.3s ease;
}

.nav-item span {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.3s ease, font-weight 0.3s ease;
}

.nav-item.active {
  color: #fff;
}

.nav-item.active svg {
  transform: translateY(-2px) scale(1.15);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.nav-item.active span {
  opacity: 1;
  font-weight: 600;
}

/* Shared Page Styles for Search & User fragments */
.page-container {
  padding: 24px 16px;
  min-height: 100vh;
  animation: tabFadeIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.page-header {
  margin-bottom: 24px;
  padding-top: 16px;
}

.page-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.page-header p {
  color: #aaa;
  font-size: 14px;
  margin: 0;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  /* ios 26 style blur */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-box-large {
  display: flex;
  align-items: center;
  padding: 4px 8px;
}

.search-box-large input {
  background: transparent;
  border: none;
  color: #fff;
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}

.search-box-large input::placeholder {
  color: #888;
}

.glass-chip {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 8px 16px;
  color: #eee;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.glass-chip:hover,
.glass-chip:active {
  background: rgba(255, 255, 255, 0.15);
}

.user-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
}

.avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.user-info h3 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 4px 0;
}

.user-info p {
  font-size: 14px;
  color: #aaa;
  margin: 0 0 16px 0;
}

.primary-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 0px !important;
  transition: background 0.2s;
}

.setting-item:active {
  background: rgba(255, 255, 255, 0.08);
}

.icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.setting-text {
  flex: 1;
}

.setting-text h4 {
  color: #fff;
  margin: 0 0 2px 0;
  font-size: 16px;
  font-weight: 500;
}

.setting-text p {
  color: #888;
  margin: 0;
  font-size: 13px;
}

.chevron {
  color: #666;
}

.loader {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}