.location-picker {
  width: 285px;
  flex-shrink: 0;
}
.location-picker .location {
  width: 100%;
  min-height: 50px;
}
.location-picker input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: white;
  outline: none;
  font-size: 13px;
}
.geo-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
}
.geo-row button {
  font-size: 10px;
  padding: 0;
  text-decoration: underline;
}
.geo-row select {
  max-width: 90px;
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.geo-status {
  font-size: 10px;
  line-height: 1.5;
  max-width: 285px;
  color: var(--muted);
  margin: 7px 0 0;
}
.selection-search {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  margin: 7px 0;
  font-size: 12px;
  background: #f7faf9;
}
.subcategory-browser {
  padding: 15px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.subcategory-browser a {
  font-size: 11px;
  padding: 9px 12px;
  border-radius: 20px;
  background: #edf5f2;
  border: 1px solid var(--line);
}
.managed-banners {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}
.managed-banner {
  display: flex;
  align-items: center;
  border-radius: 9px;
  background: #f3eedf;
  overflow: hidden;
  min-height: 200px;
}
.managed-banner > img {
  width: 30%;
  height: 230px;
  object-fit: cover;
}
.managed-banner > div {
  padding: 30px 36px;
}
.managed-banner h2 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.managed-banner p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.managed-banner .primary {
  margin-top: 7px;
}
.notification-link {
  white-space: nowrap;
  font-size: 19px;
}
.notification-count {
  font-size: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--yellow);
  border-radius: 50%;
  min-width: 19px;
  height: 19px;
}
.notification-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.notification-card.unread {
  background: #edf8f4;
  border-left: 4px solid var(--teal);
}
.notification-card b {
  font-size: 14px;
}
.notification-card p {
  font-size: 13px;
  line-height: 1.7;
}
.notification-card small {
  text-align: left;
}
.notification-card > div:last-child {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.notification-card a {
  font-size: 12px;
  font-weight: 700;
}
.notification-card .badge {
  margin-left: 12px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  max-width: 1600px;
  margin: auto;
}
.admin-sidebar {
  background: var(--ink);
  color: white;
  padding: 28px 16px;
  min-height: calc(100vh - 82px);
  position: sticky;
  top: 0;
  align-self: start;
}
.admin-sidebar > p {
  font-size: 10px;
  letter-spacing: 1.4px;
  margin: 0 13px 20px;
  color: #b6d4d3;
}
.admin-sidebar .tabs {
  display: flex;
  flex-direction: column;
  border: 0;
  margin: 0;
  gap: 5px;
  overflow: visible;
}
.admin-sidebar .tabs button {
  text-align: left;
  color: #e1f0ed;
  border: 0;
  border-radius: 5px;
  padding: 13px 16px;
  font-size: 12px;
}
.admin-sidebar .tabs button.active {
  background: var(--teal);
  color: var(--ink);
}
.admin-layout .dashboard {
  width: 100%;
  min-width: 0;
  padding: 32px !important;
}
.admin-layout .stats {
  gap: 12px;
}
.admin-layout .stat {
  padding: 18px;
}
.admin-layout .stat strong {
  font-size: 27px;
}
.table-search {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 16px 0;
}
.bulk-tools {
  margin: 15px 0;
}
.promotion-ad-label {
  display: block;
  font-size: 13px;
  max-width: 500px;
  margin: 20px 0;
}
.promotion-ad-label select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 10px;
}
.banner-admin-preview {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
}
.card-title-link {
  display: block;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 22px;
  font-size: 12px;
}
.location-admin-table {
  max-height: 500px;
  overflow: auto;
}
.category-grid {
  grid-template-columns: repeat(7, 1fr);
  row-gap: 24px;
}
.category-item {
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}
.tree-category {
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .admin-layout {
    grid-template-columns: 190px 1fr;
  }
  .admin-layout .dashboard {
    padding: 24px !important;
  }
  .admin-layout .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-sidebar {
    padding: 25px 10px;
  }
  .location-picker {
    width: 240px;
  }
}
@media (max-width: 700px) {
  .admin-layout {
    display: block;
  }
  .admin-sidebar {
    position: static;
    min-height: 0;
    padding: 12px 16px;
  }
  .admin-sidebar > p {
    display: none;
  }
  .admin-sidebar .tabs {
    display: flex;
    flex-direction: row;
    overflow: auto;
    gap: 3px;
  }
  .admin-sidebar .tabs button {
    padding: 11px 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .admin-layout .dashboard {
    padding: 23px 16px !important;
  }
  .location-picker {
    width: 150px;
  }
  .location-picker .location {
    min-height: 43px;
  }
  .location-picker input {
    font-size: 10px;
  }
  .geo-row {
    flex-wrap: wrap;
    gap: 4px;
  }
  .geo-row button {
    font-size: 9px;
  }
  .geo-status {
    font-size: 8px;
  }
  .managed-banner {
    align-items: stretch;
    min-height: 185px;
  }
  .managed-banner > img {
    width: 32%;
    height: auto;
    object-fit: cover;
  }
  .managed-banner > div {
    padding: 22px;
  }
  .managed-banner h2 {
    font-size: 20px;
  }
  .managed-banner p {
    font-size: 11px;
  }
  .managed-banner .eyebrow {
    font-size: 7px;
  }
  .managed-banner .primary {
    font-size: 11px;
    padding: 11px 14px;
  }
  .notification-card {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }
  .notification-card .badge {
    font-size: 8px;
  }
  .category-grid {
    display: flex;
    gap: 17px;
  }
  .geo-row select {
    font-size: 9px;
  }
  .selection-search {
    font-size: 11px;
  }
  .topbar {
    gap: 12px;
  }
  .topbar .notification-link {
    font-size: 16px;
  }
}

/* --- Mobile footer navigation: professional pill buttons (desktop keeps the plain links) --- */
@media (max-width: 760px) {
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 9px;
    padding: 20px 16px 14px;
  }
  .footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 92px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #d9e3e2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: 0 1px 3px #0f172a14;
    transition: transform 0.18s ease, border-color 0.18s ease;
  }
  .footer-links a:active {
    transform: scale(0.96);
    border-color: #b9c9c8;
  }
}

/* Footer attribution row on mobile: centered, breathing room, no side gaps. */
@media (max-width: 760px) {
  .footer-bottom .wrap {
    text-align: center;
    align-items: center;
  }
}
