:root {
  --uz-green: #00b15c;
  --uz-border: color-mix(in srgb, var(--color-text) 14%, transparent);
  --ads-ok: #22c55e;
}

.new-pc-nav a.is-active {
  color: var(--uz-green) !important;
  font-weight: 600;
}
.new-pc-nav a.is-active::after {
  width: 100%;
}
.new-pc-header {
  display: none;
  position: relative;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .new-pc-header {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--uz-border);
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
    font-family: Inter, sans-serif !important;
  }
  .new-pc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 28px;
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
  }
  .new-pc-actions {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  .new-pc-actions a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
  }
  .new-pc-add-btn {
    background: var(--uz-green);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: sans-serif !important;
  }
  .new-pc-user {
    position: relative;
    cursor: pointer;
  }
  .new-pc-user-controls{
    display:flex;
    align-items:center;
    gap:8px;
  }
  .new-pc-user-avatar{
    padding:0;
    width:42px;
    height:42px;
    border-radius:999px;
    overflow:hidden;
    border:2px solid rgba(34,197,94,.35);
    background:rgba(34,197,94,.08);
    display:grid;
    place-items:center;
    text-decoration:none;
  }
  .new-pc-user-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .new-pc-user-avatar span{
    font-weight:900;
    color:var(--uz-green,#22c55e);
  }
  .new-pc-user-menu-btn{
    width:34px;
    height:34px;
    border-radius:10px;
    border:1px solid color-mix(in srgb, var(--uz-green) 25%, transparent);
    background:color-mix(in srgb, var(--uz-green) 10%, transparent);
    color:var(--color-text);
    display:grid;
    place-items:center;
    cursor:pointer;
  }
  .new-pc-user-menu-btn:hover{
    background:color-mix(in srgb, var(--uz-green) 14%, transparent);
  }
  .new-pc-user-box {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .new-pc-user-box img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
  }
  .new-pc-dropdown {
    position: absolute;
    right: 0;
    top: 48px;
    background: var(--color-bg);
    border: 1px solid var(--uz-border);
    border-radius: 8px;
    min-width: 200px;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .new-pc-dropdown.open {
    display: block;
  }
  .new-pc-dropdown a {
    display: block;
    background: var(--color-bg) !important;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  }
  .new-pc-dropdown a:hover {
    background: var(--color-bg) !important;
    color: var(--uz-green);
    opacity: 0.9;
  }

  /* Leaflet: remove default marker shadows everywhere */
  .leaflet-marker-shadow { display: none !important; }
  .new-pc-bottom {
    border-top: 1px solid var(--uz-border);
  }
  .new-pc-nav {
    display: flex;
    justify-content: center;
    gap: 26px;
    padding: 12px 18px;
  }
  .new-pc-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    white-space: nowrap;
  }
  .new-pc-nav a:hover {
    color: var(--uz-green) !important;
  }
  .new-pc-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--uz-green);
    transition: width 0.25s ease;
  }
  .new-pc-nav a:hover::after {
    width: 100%;
  }
}

.marquee-wrapper {
  overflow: hidden;
}
.marquee {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  z-index: 10002;
}

html.dark .bottom-nav{
  background: rgba(15, 23, 42, 0.92);
  border-top-color: rgba(148, 163, 184, 0.18);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20%;
  color: var(--color-text);
  transition: all 0.3s ease;
}
.nav-item span {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}
.nav-item.center {
  position: relative;
}
.center-icon {
  width: 60px;
  height: 60px;
  background: var(--line-greyblue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  transform: translateY(-10px);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 101;
}
.center-icon:hover {
  transform: translateY(-14px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}
.center-icon:active {
  transform: translateY(-8px) scale(0.95);
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1001;
  background-color: rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-container {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  width: 85%;
  max-width: 400px;
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9500;
  overflow: hidden;
}
.menu-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}
.menu-tabs {
  display: flex;
  gap: 6px;
  padding: 6px 12px 0;
}
.menu-tab {
  flex: 1;
  border: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  color: var(--color-text);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.menu-tab.is-active {
  background: var(--line-greyblue);
  color: var(--color-bg);
  border-color: var(--line-greyblue);
}
.menu-tab-panel {
  display: none;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-tab-panel.is-active {
  display: block;
}
.menu-tab-panel::-webkit-scrollbar {
  width: 6px;
}
.menu-tab-panel::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-text) 20%, transparent);
  border-radius: 8px;
}
.menu-tab-panel::-webkit-scrollbar-track {
  background: transparent;
}
.menu-tab-panel.is-active .menu-grid {
  margin-top: 8px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.menu-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.menu-item:hover {
  background: color-mix(in srgb, var(--color-text) 5%, transparent);
}
.menu-item-icon {
  width: 50px;
  height: 50px;
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: all 0.3s ease;
}
.menu-item-icon svg,
.menu-item-icon img {
  display: block;
}
.menu-item:hover .menu-item-icon {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.menu-item-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
}
.latest-news-banner.menu-item-full-width {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 60px;
  max-height: 80px;
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 8px;
  transform: translateY(-20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.latest-news-banner.menu-item-full-width.visible {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}
.latest-news-banner.menu-item-full-width a.latest-news-link {
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
.latest-news-banner.menu-item-full-width .news-banner-image-container {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 10px;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--color-text) 6%, transparent);
}
.latest-news-banner.menu-item-full-width .news-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.latest-news-banner.menu-item-full-width .news-banner-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  flex-grow: 1;
}
.latest-news-banner.menu-item-full-width .news-label {
  font-size: 10px;
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 75%, #e53935);
  margin-bottom: 1px;
  text-transform: uppercase;
}
.latest-news-banner.menu-item-full-width .news-title-text {
  font-size: 13px;
  font-weight: 500;
  color: #212121;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.latest-news-banner.menu-item-full-width img.news-banner-image[src=""],
.latest-news-banner.menu-item-full-width img.news-banner-image:not([src]) {
  display: none !important;
}
.logo-dark {
  display: none;
}
.logo-white {
  display: block;
}
html.dark .logo-dark {
  display: block !important;
}
html.dark .logo-white {
  display: none !important;
}

@media (min-width: 768px) {
  .ads-mobile-nav{
    display: none!important;
  }
  .bottom-nav,
  .menu-container,
  .menu-overlay {
    display: none !important;
  }
}

/* Theme variables */
:root {
  --color-bg: #ffffff;
  --color-text: #0f172a;
  --grey-eee: #f1f5f9;
  --gray-500: #64748b;
  --border: #cbd5e1;
  --primary-color: #651fff;
  --accent-color: #00c853;
  --accent-hover: #00b34a;
  --favorite-color: #facc15;
  --line-greyblue: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}
html {
  color-scheme: light;
}
html.dark {
  --color-bg: #0f172a;
  --color-text: #e2e8f0;
  --grey-eee: #1e293b;
  --gray-500: #cbd5e1;
  --border: #334155;
  color-scheme: dark;
}

/* Google translate */
body {
  top: 0 !important;
}
.skiptranslate iframe,
.skiptranslate {
  display: none !important;
}

/* Language picker + theme toggle */
.custom-lang-picker {
  position: fixed;
  bottom: 8em;
  left: 15px;
  z-index: 100000;
  font-family: system-ui, -apple-system, sans-serif;
}
@media (max-width: 768px) {
  .custom-lang-picker {
    position: fixed;
    bottom: 5.2em !important;
    left: 15px !important;
    right: auto !important;
    z-index: 100000;
  }
  #themeToggle {
    bottom: 5.2em;
    right: 15px;
    left: auto;
    background: var(--color-bg) !important;
  }
  .lang-dropdown {
    left: 0 !important;
    right: auto !important;
  }
}
.lang-item.active {
  color: var(--color-text);
  font-weight: bold;
  background: var(--color-bg);
}
.lang-trigger {
  width: 4rem;
  height: 2rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--color-bg);
  transition: transform 0.2s ease;
  color: var(--color-text);
}
.lang-trigger:hover {
  transform: scale(1.1);
}
.lang-trigger i {
  font-size: 22px;
}
.lang-dropdown {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 220px;
  max-height: 350px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent);
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: none;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-text) 28%, transparent) transparent;
}
.lang-dropdown.active {
  display: block;
  animation: fadeUp 0.2s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lang-item {
  padding: 12px 16px;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang-item:hover {
  opacity: 0.8;
}
.lang-dropdown::-webkit-scrollbar {
  width: 6px;
}
.lang-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.lang-dropdown::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-text) 28%, transparent);
  border-radius: 10px;
}

#themeToggle {
  position: fixed;
  bottom: 5em;
  left: 15px;

  z-index: 100000;
  width: 4rem;
  height: 2rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent);
  border-radius: 9999px;
  background: var(--color-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3px;
}
#themeToggle .toggle-slider {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  position: relative;
  font-size: 12px;
}
#themeToggle .sun-icon,
#themeToggle .moon-icon {
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#themeToggle .sun-icon {
  opacity: 1;
}
html.dark #themeToggle .toggle-slider {
  transform: translateX(2rem);
}
html.dark #themeToggle .sun-icon {
  opacity: 0;
}
html.dark #themeToggle .moon-icon {
  opacity: 1;
}
