/* ===== Footer: ijtimoiy tarmoqlar ===== */
.site-footer {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-social { display: flex; justify-content: center; gap: 14px; }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.footer-social a:hover { transform: translateY(-2px); }
.footer-social svg { width: 22px; height: 22px; }
.soc-tg { background: #27a7e7; }
.soc-ig { background: linear-gradient(45deg, #f9a03f, #e1306c, #833ab4); }
.soc-yt { background: #ff0000; }
.site-footer p { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ===== Rukunlar sahifasi ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.cat-card {
  display: block;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.cat-card:hover { border-color: var(--accent); }

/* ===== Pastki panel va oyna (panel faqat telefonda ko'rinadi) ===== */
.bottom-nav { display: none; }

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
}
.sheet-overlay[hidden] { display: none; }
.sheet {
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.sheet-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}
.sheet-search { display: flex; gap: 8px; }
.sheet-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
}
.sheet-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.sheet-row span { flex: 1; }
.sheet-row svg { width: 22px; height: 22px; flex-shrink: 0; }
.sheet-row svg:last-child { width: 18px; height: 18px; color: var(--text-muted); }
.sheet-opts { display: flex; gap: 8px; margin: -2px 0 12px; }
.sheet-opt {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sheet-opt.active { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 768px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
  }
  .bn-item svg { width: 24px; height: 24px; }
  .bn-item.active { color: var(--accent); }
}
