:root {
  --navy: #072e63;
  --navy-dark: #052552;
  --gold: #d5a62f;
  --ink: #10213a;
  --muted: #6f7c8f;
  --surface: #ffffff;
  --background: #f3f6fa;
  --line: #e5eaf1;
  --shadow: 0 8px 28px rgba(22, 47, 80, 0.1);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: 232px;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden auto;
  color: #fff;
  background:
    radial-gradient(circle at -10% 90%, rgba(36, 111, 176, 0.55), transparent 33%),
    linear-gradient(180deg, var(--navy-dark), #06366f);
  box-shadow: 4px 0 24px rgba(5, 37, 82, 0.12);
  transition: transform 0.3s ease;
}

.sidebar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48%;
  background: url("assets/batik-pattern.svg") center bottom / 100% auto no-repeat;
  content: "";
  opacity: 0.09;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 30%, rgba(0, 0, 0, 0.18) 55%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 30%, rgba(0, 0, 0, 0.18) 55%, #000 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 34px 25px 8px;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand-mark span {
  position: absolute;
  top: 19px;
  left: 19px;
  width: 22px;
  height: 10px;
  border-radius: 100% 15% 100% 15%;
  background: #ec7148;
  transform-origin: 4px 4px;
}

.brand-mark span:nth-child(1) { transform: rotate(0deg); }
.brand-mark span:nth-child(2) { transform: rotate(72deg); background: #dcad32; }
.brand-mark span:nth-child(3) { transform: rotate(144deg); background: #f08b3f; }
.brand-mark span:nth-child(4) { transform: rotate(216deg); background: #e65445; }
.brand-mark span:nth-child(5) { transform: rotate(288deg); background: #d7ad36; }

.brand-copy {
  line-height: 0.97;
}

.brand-copy strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.35px;
}

.brand-copy small {
  display: block;
  margin-top: 7px;
  color: #efc357;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.brand-tagline {
  margin: 9px 25px 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.main-nav {
  position: relative;
  z-index: 1;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 48px;
  padding: 0 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  transition: 0.2s ease;
}

.nav-item i {
  width: 20px;
  font-size: 17px;
  text-align: center;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, #dfb43e, #c99726);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.nav-item.active::before {
  position: absolute;
  left: 0;
  width: 4px;
  height: 100%;
  background: #fff4cc;
  content: "";
}

.nav-divider {
  height: 1px;
  margin: 12px 24px;
  background: rgba(255, 255, 255, 0.16);
}

.profile-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 38px 1fr 14px;
  align-items: center;
  gap: 10px;
  width: calc(100% - 28px);
  margin: auto 14px 18px;
  padding: 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.09);
  text-align: left;
}

.profile-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--navy);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #cfdeec;
}

.profile-card strong,
.profile-card small {
  display: block;
}

.profile-card strong {
  color: #f3c34a;
  font-size: 12px;
}

.profile-card small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  line-height: 1.5;
}

.profile-card > i {
  font-size: 10px;
}

.main-content {
  width: calc(100% - 232px);
  margin-left: 232px;
  padding: 0 27px 28px;
}

.topbar {
  display: flex;
  height: 78px;
  align-items: center;
  gap: 22px;
}

.icon-button,
.avatar-button,
.language-button {
  border: 0;
  background: transparent;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  font-size: 19px;
  border-radius: 10px;
}

.icon-button:hover,
.language-button:hover {
  background: #e8edf4;
}

.search-box {
  position: relative;
  display: flex;
  width: min(550px, 52vw);
  height: 44px;
  align-items: center;
  padding-left: 19px;
  border: 1px solid #e5e9ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(30, 53, 82, 0.06);
}

.search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  max-height: min(430px, 65vh);
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #dde4ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(8, 35, 69, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.18s ease;
}

.search-results.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-results a {
  display: grid;
  grid-template-columns: 34px 1fr 15px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
}

.search-results a:hover {
  background: #f0f5fa;
}

.search-results a > i:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #0b4a83;
  border-radius: 8px;
  background: #e6eff8;
}

.search-results a > i:last-child {
  color: #9aa5b2;
  font-size: 9px;
}

.search-results strong,
.search-results small {
  display: block;
}

.search-results strong {
  color: #23364e;
  font-size: 10px;
}

.search-results small {
  margin-top: 2px;
  color: #8b97a6;
  font-size: 8px;
}

.search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px 10px;
  color: #8490a0;
  font-size: 9px;
}

.search-box input {
  min-width: 0;
  height: 100%;
  flex: 1;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.search-box input::placeholder {
  color: #a3acb9;
}

.search-box button {
  width: 48px;
  height: 100%;
  color: var(--ink);
  border: 0;
  background: transparent;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.language-button {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-radius: 10px;
}

.language-button .flag {
  font-size: 21px;
}

.language-button i {
  font-size: 9px;
}

.notification {
  position: relative;
}

.notification span {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #df4242;
}

.avatar-button {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  place-items: center;
  color: #6e7888;
  border-radius: 50%;
  background: #dfe4ea;
}

.hero {
  position: relative;
  min-height: 283px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(237, 246, 252, 0.82), rgba(255, 255, 255, 0.12)),
    url("assets/banner.png") center 46% / cover;
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 45, 75, 0.24));
  content: "";
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 95%, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 62%;
  margin: 0 auto;
  padding: 35px 10px;
  text-align: center;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
}

.eyebrow {
  margin: 0 0 6px;
  color: #5c7183;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #071b37;
  font-size: clamp(29px, 3.2vw, 48px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.18;
}

.hero-country {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 5px auto 2px;
  color: #a8751a;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 7px;
}

.hero-country span {
  width: 48px;
  height: 1px;
  background: #c7942c;
}

.hero-script {
  margin: 1px 0 2px;
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-style: italic;
}

.hero-content small {
  font-size: 11px;
  font-weight: 500;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 13px;
  left: 50%;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dots span.active {
  width: 16px;
  border-radius: 5px;
  background: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  margin-top: 24px;
}

.section-block {
  margin-bottom: 25px;
}

.section-heading {
  display: flex;
  min-height: 45px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-heading h2,
.side-card h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 16px;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.section-heading > a {
  padding: 8px 0;
  color: #214c7f;
  font-size: 10px;
  font-weight: 700;
}

.section-heading > a i {
  margin-left: 4px;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.state-card {
  overflow: hidden;
  border: 1px solid #e2e7ed;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(31, 51, 77, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.state-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(31, 51, 77, 0.15);
}

.state-title {
  height: 52px;
  padding: 10px 13px;
  color: #fff;
  background: var(--accent);
}

.state-title strong,
.state-title small {
  display: block;
}

.state-title strong {
  font-size: 12px;
}

.state-title small {
  margin-top: 2px;
  font-size: 8px;
  opacity: 0.78;
}

.state-card > img {
  height: 146px;
  object-fit: cover;
}

.state-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 9px 4px;
  color: #314157;
}

.state-stats span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 1px 2px;
  border-right: 1px solid #e7ebf0;
}

.state-stats span:last-child {
  border: 0;
}

.state-stats i {
  margin-bottom: 3px;
  font-size: 11px;
}

.state-stats small {
  font-size: 6px;
}

.state-stats b {
  font-size: 9px;
}

.state-card > button {
  display: flex;
  width: calc(100% - 16px);
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0 8px 8px;
  color: #fff;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  font-size: 9px;
  font-weight: 700;
}

.state-card.red { --accent: #bd2932; }
.state-card.blue { --accent: #1474bd; }
.state-card.green { --accent: #388846; }
.state-card.purple { --accent: #713da0; }

.insight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.insight-card {
  overflow: hidden;
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(31, 51, 77, 0.07);
  transition: transform 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-3px);
}

.insight-image {
  position: relative;
}

.insight-image img {
  height: 108px;
  object-fit: cover;
}

.insight-image > button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 32, 66, 0.58);
  font-size: 10px;
  backdrop-filter: blur(3px);
}

.insight-image > button.saved {
  color: #f4c149;
}

.badge {
  position: absolute;
  bottom: 6px;
  left: 7px;
  padding: 3px 6px;
  color: #fff;
  border-radius: 2px;
  font-size: 6px;
  font-weight: 700;
}

.badge.culture { background: #cf3853; }
.badge.destination { background: #1581c1; }
.badge.heritage { background: #a67828; }
.badge.nature { background: #26895c; }
.badge.food { background: #d89618; }

.insight-card > div:last-child {
  min-height: 62px;
  padding: 9px 9px 10px;
}

.insight-card h3 {
  margin: 0 0 4px;
  font-size: 10px;
  line-height: 1.25;
}

.insight-card p {
  margin: 0;
  color: #8490a0;
  font-size: 7px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-card {
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 51, 77, 0.07);
}

.scan-card {
  display: grid;
  min-height: 162px;
  grid-template-columns: 1fr 91px;
  gap: 10px;
  padding: 19px 15px 14px 19px;
  overflow: hidden;
}

.scan-card p {
  max-width: 205px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.primary-button {
  padding: 9px 16px;
  color: #fff;
  border: 0;
  border-radius: 5px;
  background: var(--navy);
  box-shadow: 0 4px 10px rgba(5, 46, 99, 0.2);
  font-size: 9px;
  font-weight: 700;
}

.primary-button:hover {
  background: #0b478d;
}

.phone-mockup {
  position: relative;
  display: grid;
  height: 132px;
  place-items: center;
  color: #131f2c;
  border: 5px solid #132b4b;
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
  background: #f7f9fb;
  box-shadow: 0 0 0 5px #eef1f4;
  font-size: 51px;
}

.phone-mockup .notch {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 32px;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: #132b4b;
  transform: translateX(-50%);
}

.quick-card {
  padding: 15px 17px 17px;
}

.section-heading.compact {
  min-height: 31px;
  margin-bottom: 10px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-grid a {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #263d5a;
  border: 1px solid #e7ebf1;
  border-radius: 6px;
  background: #fff;
  font-size: 8px;
  font-weight: 600;
  text-align: center;
  transition: 0.2s ease;
}

.quick-grid a:hover {
  color: var(--navy);
  border-color: #cbd9e9;
  background: #f4f8fc;
  transform: translateY(-2px);
}

.quick-grid i {
  color: var(--navy);
  font-size: 19px;
}

.quick-grid a:nth-child(2) i { color: #b18729; }
.quick-grid a:nth-child(3) i { color: #34877a; }
.quick-grid a:nth-child(4) i { color: #74558f; }
.quick-grid a:nth-child(5) i { color: #3571a8; }
.quick-grid a:nth-child(6) i { color: #27865b; }

.collection-card {
  display: grid;
  min-height: 153px;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 10px;
  padding: 17px 17px 14px;
  overflow: hidden;
}

.collection-copy > p {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 8px;
}

.collection-count {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.collection-count > strong {
  color: var(--navy);
  font-size: 29px;
  line-height: 1;
}

.collection-count > span {
  color: #647186;
  font-size: 12px;
  font-weight: 700;
}

.collection-count small {
  font-size: 7px;
  font-weight: 500;
}

.progress {
  width: 95px;
  height: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: #e3e8ee;
}

.progress span {
  display: block;
  width: 75%;
  height: 100%;
  background: var(--gold);
}

.collection-card .primary-button {
  width: 142px;
}

.card-stack {
  position: relative;
  height: 100px;
}

.mini-card {
  position: absolute;
  top: 10px;
  left: 43px;
  width: 54px;
  height: 78px;
  border: 3px solid #fff;
  border-radius: 5px;
  background: linear-gradient(155deg, #138ca2 0 42%, #efd064 43% 57%, #22734e 58%);
  box-shadow: 0 5px 10px rgba(12, 42, 70, 0.22);
  transform: rotate(13deg);
}

.mini-card::after {
  position: absolute;
  right: 7px;
  bottom: 9px;
  width: 23px;
  height: 23px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  content: "";
}

.mini-card.card-one {
  left: 8px;
  background: linear-gradient(150deg, #49a3bc 0 45%, #88c86d 46% 70%, #147084 71%);
  transform: rotate(-12deg);
}

.mini-card.card-two {
  left: 28px;
  background: linear-gradient(150deg, #1e63a7 0 44%, #efb84f 45% 65%, #9d3b3d 66%);
  transform: rotate(0);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  padding: 12px 18px;
  color: #fff;
  border-radius: 8px;
  background: #142d4e;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s ease;
}

.modal.open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 18, 39, 0.62);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(380px, calc(100% - 34px));
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.modal-icon {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 55px;
}

.modal-panel h2 {
  margin: 0 0 9px;
}

.modal-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #6f7b8a;
  border: 0;
  border-radius: 50%;
  background: #f0f3f6;
}

.hidden-by-search {
  display: none;
}

@media (max-width: 1260px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .right-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .collection-card {
    grid-template-columns: 1fr 95px;
  }
}

@media (max-width: 1000px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    width: 100%;
    margin-left: 0;
  }

  .state-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insight-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .main-content {
    padding: 0 15px 20px;
  }

  .topbar {
    height: 66px;
    gap: 8px;
  }

  .search-box {
    width: auto;
    flex: 1;
  }

  .language-button,
  .notification {
    display: none;
  }

  .hero {
    min-height: 240px;
  }

  .hero-content {
    width: 94%;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(24px, 7vw, 35px);
  }

  .hero-country {
    font-size: 16px;
  }

  .right-column {
    grid-template-columns: 1fr;
  }

  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .state-grid {
    grid-template-columns: 1fr;
  }

  .state-card > img {
    height: 185px;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .insight-image img {
    height: 170px;
  }

  .section-kicker,
  .eyebrow {
    display: none;
  }

  .section-heading {
    min-height: 34px;
  }
}

/* Shared inner pages */
.page-main { padding-bottom: 50px; }
.page-titlebar { display: flex; flex-direction: column; line-height: 1.2; }
.page-titlebar span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.page-titlebar strong { font-size: 15px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; margin: -3px 0 15px; color: #8290a1; font-size: 10px; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs i { font-size: 7px; }
.breadcrumbs span { color: #35465d; font-weight: 600; }
.section-kicker.light { color: #f1c85c; }
.content-section { margin-top: 25px; }
.result-count { color: var(--muted); font-size: 10px; }

.page-hero, .library-banner, .collection-summary {
  position: relative; overflow: hidden; min-height: 260px; padding: 43px 48px; color: #fff;
  border-radius: 15px; box-shadow: var(--shadow);
}
.page-hero h1, .library-banner h1, .collection-summary h1 { margin: 6px 0 10px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.page-hero p, .library-banner p, .collection-summary p { max-width: 570px; margin: 0; color: rgba(255,255,255,.82); line-height: 1.6; }
.destination-hero {
  display: flex; align-items: end; justify-content: space-between;
  background: linear-gradient(90deg, rgba(3,31,68,.96) 0%, rgba(5,45,87,.68) 55%, rgba(5,45,87,.18)),
  url("https://images.unsplash.com/photo-1536599018102-9f803c140fc1?auto=format&fit=crop&w=1700&q=85") center 58% / cover;
}
.hero-stat-row { display: flex; align-items: center; gap: 28px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(3,28,59,.5); backdrop-filter: blur(8px); }
.hero-stat-row span { color: rgba(255,255,255,.7); font-size: 8px; text-transform: uppercase; }
.hero-stat-row strong { display: block; color: #fff; font-size: 21px; }

.filter-panel { display: flex; align-items: center; gap: 18px; margin-top: 19px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(22,47,80,.06); }
.filter-search, .small-search { display: flex; min-width: 280px; height: 38px; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; color: #8995a5; }
.filter-search input, .small-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }
.filter-chips { display: flex; gap: 6px; overflow-x: auto; }
.filter-chips button, .tab-buttons button { white-space: nowrap; padding: 8px 13px; color: #687689; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 9px; font-weight: 600; }
.filter-chips button:hover, .filter-chips button.active { color: var(--navy); border-color: #d9e2ed; background: #eef4fa; }

.destination-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 245px; gap: 15px; }
.destination-tile { position: relative; overflow: hidden; border-radius: 11px; color: #fff; box-shadow: 0 7px 20px rgba(19,40,67,.12); }
.destination-tile.featured { grid-column: span 2; }
.destination-tile img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.destination-tile:hover img { transform: scale(1.045); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(3,22,46,.88)); }
.tile-copy { position: absolute; inset: auto 0 0; padding: 22px; }
.tile-copy span { color: #f0c655; font-size: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.tile-copy h3 { margin: 4px 0 3px; font-size: 23px; }
.tile-copy p { margin: 0; color: rgba(255,255,255,.78); font-size: 9px; }
.tile-copy b { display: inline-block; margin-top: 12px; font-size: 9px; }

/* Detail pages */
.detail-hero { position: relative; height: 410px; overflow: hidden; border-radius: 15px; box-shadow: var(--shadow); }
.detail-hero > img { height: 100%; object-fit: cover; }
.detail-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,25,55,.88), rgba(3,25,55,.12)), linear-gradient(transparent 55%, rgba(3,25,55,.65)); }
.detail-hero-copy { position: absolute; left: 48px; bottom: 42px; max-width: 650px; color: #fff; }
.detail-hero-copy > span { color: #efc75b; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.detail-hero-copy h1 { margin: 7px 0 5px; font-size: 52px; line-height: 1; }
.detail-hero-copy p { margin: 0 0 18px; color: rgba(255,255,255,.8); font-size: 14px; }
.detail-hero-copy > div { display: flex; align-items: center; gap: 20px; }
.detail-hero-copy > div b { color: #f4c653; }.detail-hero-copy > div small { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.3); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 25px; margin-top: 22px; }
.article-panel { padding: 0 35px 35px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.anchor-nav { position: sticky; z-index: 4; top: 0; display: flex; gap: 25px; margin: 0 -35px 32px; padding: 0 35px; border-bottom: 1px solid var(--line); background: #fff; }
.anchor-nav a { padding: 18px 1px 13px; color: #718096; border-bottom: 2px solid transparent; font-size: 10px; }
.anchor-nav a.active, .anchor-nav a:hover { color: var(--navy); border-color: var(--gold); }
.prose-section h2, .article-panel section > .section-heading h2 { margin: 6px 0 14px; font-size: 25px; text-transform: none; }
.prose-section p { color: #59687b; line-height: 1.8; }.prose-section .lead { color: #24364e; font-size: 15px; }
.highlight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 34px; }
.highlight-grid > div { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }
.highlight-grid i { display: grid; width: 38px; height: 38px; margin-bottom: 13px; place-items: center; color: var(--navy); border-radius: 8px; background: #e6eef7; }
.highlight-grid strong { display: block; font-size: 11px; }.highlight-grid p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2,130px); gap: 9px; margin-bottom: 32px; }
.gallery-grid img { height: 100%; object-fit: cover; border-radius: 8px; }.gallery-grid .wide { grid-row: span 2; }
.learning-box { display: grid; grid-template-columns: 55px 1fr; gap: 17px; padding: 24px; border: 1px solid #e5d9b9; border-radius: 10px; background: #fffaf0; }
.learning-icon { display: grid; width: 48px; height: 48px; place-items: center; color: #9d7419; border-radius: 50%; background: #f4e7bd; font-size: 19px; }
.learning-box h2 { margin: 3px 0 6px; font-size: 17px; }.learning-box p { margin: 0 0 11px; color: #697585; line-height: 1.6; }.learning-box a { color: var(--navy); font-size: 9px; font-weight: 700; }
.detail-sidebar { display: flex; flex-direction: column; gap: 15px; }
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 5px 18px rgba(31,51,77,.06); }
.info-card h3 { margin: 4px 0 15px; }.info-card dl { margin: 0 0 18px; }.info-card dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 9px; }.info-card dt { color: var(--muted); }.info-card dd { margin: 0; font-weight: 600; }.info-card .primary-button { width: 100%; }
.map-placeholder { display: flex; align-items: center; flex-direction: column; text-align: center; background: radial-gradient(circle at 50% 40%, #f4f7fa, #e8eef4); }.map-placeholder > i { margin-bottom: 10px; color: var(--navy); font-size: 38px; }.map-placeholder span { margin: 4px 0 12px; color: var(--muted); font-size: 8px; }.map-placeholder a { color: var(--navy); font-size: 9px; font-weight: 700; }

/* Insight library and article */
.library-banner { display: flex; align-items: center; justify-content: space-between; background: radial-gradient(circle at 80% 35%, #185e92, transparent 33%), linear-gradient(120deg,#062b5b,#074477); }
.banner-orbit { position: relative; width: 230px; height: 155px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; transform: rotate(-12deg); }
.banner-orbit span { position: absolute; display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(5px); font-size: 20px; transform: rotate(12deg); }
.banner-orbit span:nth-child(1){left:15px;top:48px}.banner-orbit span:nth-child(2){right:25px;top:2px}.banner-orbit span:nth-child(3){right:5px;bottom:0}
.library-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.library-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 5px 17px rgba(24,47,76,.07); transition: .25s ease; }
.library-card:hover { transform: translateY(-3px); box-shadow: 0 11px 25px rgba(24,47,76,.12); }
.library-image { position: relative; display: block; height: 180px; overflow: hidden; }
.library-image img { height: 100%; object-fit: cover; transition: transform .4s; }.library-card:hover .library-image img { transform: scale(1.04); }
.library-image .badge { bottom: auto; top: 12px; }.read-time { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; color: #fff; border-radius: 20px; background: rgba(4,26,53,.65); font-size: 8px; backdrop-filter: blur(4px); }
.library-card > div { padding: 17px; }.card-location { color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.library-card h3 { min-height: 38px; margin: 5px 0 8px; font-size: 14px; line-height: 1.35; }.library-card p { min-height: 42px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.library-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 10px; color: #8994a3; border-top: 1px solid var(--line); font-size: 8px; }
.library-card footer button { width: 27px; height: 27px; color: #748196; border: 0; border-radius: 50%; background: #f1f4f7; }.library-card footer button.saved { color: var(--gold); }
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 25px; }.pagination button { width: 32px; height: 32px; color: #6b7889; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 9px; }.pagination button.active { color: #fff; background: var(--navy); }
.reading-layout { max-width: 1100px; margin: 0 auto; }.article-header { max-width: 790px; margin: 25px auto 28px; text-align: center; }.article-header .badge { position: static; display: inline-block; margin-right: 8px; }.article-location { color: var(--muted); font-size: 9px; }.article-header h1 { margin: 15px 0 12px; font-size: clamp(34px,4vw,52px); line-height: 1.08; }.article-header > p { max-width: 680px; margin: 0 auto 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 15px; color: #7c8999; font-size: 8px; }.author-avatar { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; border-radius: 50%; background: var(--navy); }.article-meta > span:nth-child(2) { text-align: left; }.article-meta b,.article-meta small { display: block; }.article-meta b { color: var(--ink); font-size: 9px; }
.article-cover { height: 470px; object-fit: cover; border-radius: 13px; box-shadow: var(--shadow); }.reading-columns { display: grid; grid-template-columns: 70px minmax(0,690px) 150px; justify-content: center; gap: 30px; margin-top: 35px; }
.article-tools { display: flex; flex-direction: column; gap: 9px; }.article-tools button { display: flex; width: 52px; height: 52px; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: #667486; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 7px; }.article-tools i { font-size: 13px; }
.article-body { color: #4f5e71; font-size: 13px; line-height: 1.85; }.article-body .lead { color: #1e3048; font-size: 17px; line-height: 1.65; }.article-body h2 { margin: 30px 0 7px; color: var(--ink); font-size: 23px; }.article-body blockquote { position: relative; margin: 28px 0; padding: 24px 28px 24px 55px; color: #243a57; border-left: 3px solid var(--gold); background: #f7f3e8; font-family: "Playfair Display",serif; font-size: 16px; }.article-body blockquote i { position: absolute; top: 25px; left: 22px; color: #c59a38; }.article-body blockquote p { margin: 0; }
.key-points { margin: 27px 0; padding: 24px; border: 1px solid #d9e4ef; border-radius: 10px; background: #f5f9fd; }.key-points > div { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }.key-points i { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 50%; background: #358261; font-size: 8px; }.key-points p { margin: 0; font-size: 11px; }.article-tags { display: flex; gap: 7px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }.article-tags span { padding: 6px 10px; border-radius: 20px; background: #edf2f7; font-size: 8px; }
.article-progress { position: sticky; top: 20px; height: fit-content; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.article-progress > span { font-size: 7px; font-weight: 700; letter-spacing: 1px; }.article-progress > div { height: 4px; margin: 9px 0 5px; border-radius: 4px; background: #e4e9ee; }.article-progress > div i { display: block; width: 75%; height: 100%; border-radius: inherit; background: var(--gold); }.article-progress b { color: var(--muted); font-size: 7px; }.article-progress a { display: block; margin-top: 14px; padding-top: 12px; color: var(--navy); border-top: 1px solid var(--line); font-size: 8px; font-weight: 700; }
.related-strip { margin-top: 50px; }.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }.related-grid a { padding-bottom: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.related-grid img { height: 130px; object-fit: cover; }.related-grid span,.related-grid h3 { display: block; margin-left: 13px; }.related-grid span { margin-top: 11px; color: var(--gold); font-size: 7px; }.related-grid h3 { margin-top: 4px; margin-bottom: 0; font-size: 11px; }

/* Collection and auth */
.collection-summary { display: grid; grid-template-columns: minmax(300px,1fr) 170px; align-items: center; padding-bottom: 92px; background: radial-gradient(circle at 75% 25%,#1a6290,transparent 28%),linear-gradient(125deg,#05295a,#064676); }
.progress-ring { display: flex; width: 130px; height: 130px; align-items: center; justify-content: center; flex-direction: column; border: 9px solid rgba(255,255,255,.18); border-top-color: #f0c65c; border-right-color: #f0c65c; border-bottom-color: #f0c65c; border-radius: 50%; transform: rotate(45deg); }.progress-ring span,.progress-ring small { transform: rotate(-45deg); }.progress-ring span { font-size: 14px; }.progress-ring strong { font-size: 31px; }.progress-ring small { margin-top: -8px; color: rgba(255,255,255,.65); font-size: 7px; }
.summary-stats { position: absolute; right: 48px; bottom: 20px; left: 48px; display: grid; grid-template-columns: repeat(3,1fr); padding: 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: rgba(1,28,60,.45); }.summary-stats span { display: grid; grid-template-columns: 30px 1fr; align-items: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,.15); }.summary-stats span:last-child { border: 0; }.summary-stats i { grid-row: span 2; color: #efc459; font-size: 17px; }.summary-stats b { font-size: 12px; }.summary-stats small { color: rgba(255,255,255,.6); font-size: 7px; }
.collection-toolbar { display: flex; justify-content: space-between; margin-bottom: 17px; border-bottom: 1px solid var(--line); }.tab-buttons { display: flex; gap: 5px; }.tab-buttons button { padding: 12px; border-radius: 0; border-bottom: 2px solid transparent; }.tab-buttons button.active { color: var(--navy); border-bottom-color: var(--gold); }.tab-buttons span { padding: 2px 5px; border-radius: 8px; background: #e9eef4; font-size: 7px; }
.small-search { min-width: 205px; margin-bottom: 7px; }.collection-content { display: grid; grid-template-columns: 1fr 240px; gap: 20px; }.compact-grid { grid-template-columns: repeat(2,1fr); }.complete-mark { position: absolute; right: 11px; bottom: 10px; display: grid; width: 24px; height: 24px; place-items: center; color: #fff; border-radius: 50%; background: #2d8b64; font-size: 9px; }.card-progress,.achievement-progress { height: 4px; overflow: hidden; border-radius: 5px; background: #e4e9ee; }.card-progress span,.achievement-progress span { display: block; height: 100%; background: var(--gold); }
.achievement-panel { height: fit-content; padding: 25px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: center; box-shadow: 0 5px 17px rgba(24,47,76,.07); }.achievement-badge { display: grid; width: 88px; height: 88px; margin: 18px auto 13px; place-items: center; color: #d2a63a; border: 8px double #d9b75f; border-radius: 50%; background: #fff8df; font-size: 31px; }.achievement-panel h3 { margin: 0; }.achievement-panel p { color: var(--muted); font-size: 9px; line-height: 1.5; }.achievement-panel small { display: block; margin: 7px 0 16px; color: var(--muted); }.achievement-panel .primary-button { display: block; }
.auth-body { background: #fff; }.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(400px,48%) 1fr; }.auth-visual { position: relative; display: flex; overflow: hidden; flex-direction: column; padding: 45px 55px; color: #fff; background: #062d60; }.auth-visual-bg { position: absolute; inset: 0; background: linear-gradient(rgba(3,31,65,.25),rgba(3,27,58,.8)),url("https://images.unsplash.com/photo-1596422846543-75c6fc197f07?auto=format&fit=crop&w=1200&q=90") center/cover; }.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }.auth-brand .brand-copy small { color: #f0c159; }.auth-quote { position: relative; z-index: 1; max-width: 560px; margin: auto 0; }.auth-quote > span { color: #f0c159; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }.auth-quote h1 { margin: 12px 0; font-size: clamp(36px,4vw,57px); line-height: 1.04; }.auth-quote p { color: rgba(255,255,255,.72); }.auth-destination { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }.auth-destination i { color: #f0c159; }.auth-destination small,.auth-destination b { display: block; }.auth-destination small { color: rgba(255,255,255,.6); font-size: 8px; }.auth-form-side { position: relative; display: flex; flex-direction: column; padding: 42px 8vw 25px; }.back-link { color: #637084; font-size: 10px; }.back-link i { margin-right: 7px; }.auth-form-wrap { width: min(440px,100%); margin: auto; }.auth-form-wrap h2 { margin: 5px 0 8px; font-size: 30px; }.auth-form-wrap > p { color: var(--muted); line-height: 1.6; }
.auth-form { margin-top: 25px; }.auth-form > label { display: block; margin-bottom: 15px; font-size: 10px; font-weight: 700; }.auth-form > label > span { display: flex; height: 47px; align-items: center; gap: 10px; margin-top: 7px; padding: 0 13px; color: #8b96a5; border: 1px solid #dce2e9; border-radius: 7px; }.auth-form input { flex: 1; border: 0; outline: 0; }.auth-form label button { border: 0; background: transparent; }.form-options { display: flex; justify-content: space-between; margin: -2px 0 18px; color: #687589; font-size: 9px; }.form-options a { color: var(--navy); font-weight: 700; }.auth-submit { display: flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 14px; color: #fff; border: 0; border-radius: 7px; background: var(--navy); font-weight: 700; }.auth-divider { position: relative; margin: 24px 0; color: #929ca9; border-top: 1px solid var(--line); text-align: center; }.auth-divider span { position: relative; top: -8px; padding: 0 12px; background: #fff; font-size: 8px; }.social-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.social-buttons button { height: 43px; color: #47566a; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 10px; }.signup-prompt,.admin-login-link { display: block; margin-top: 22px; font-size: 9px; text-align: center; }.signup-prompt a,.admin-login-link { color: var(--navy); font-weight: 700; }.auth-form-side footer { color: #9aa3af; font-size: 8px; text-align: center; }

/* Admin CMS */
.admin-body { color: #26374d; background: #f5f7fa; }
.admin-shell { min-height: 100vh; }.admin-sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; width: 245px; flex-direction: column; color: #c6d1df; background: #092d5c; transition: transform .3s; }
.admin-brand { display: flex; height: 76px; align-items: center; gap: 11px; padding: 0 22px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }.admin-logo { display: grid; width: 38px; height: 38px; place-items: center; color: #092d5c; border-radius: 9px; background: #d9ad40; }.admin-brand b,.admin-brand small { display: block; }.admin-brand b { font-size: 13px; }.admin-brand small { color: #9eb1c8; font-size: 7px; letter-spacing: .5px; }
.admin-sidebar nav { padding: 17px 11px; }.admin-nav-label { display: block; padding: 13px 12px 7px; color: #6f8bab; font-size: 7px; font-weight: 700; letter-spacing: 1.3px; }.admin-sidebar nav a { display: flex; height: 42px; align-items: center; gap: 12px; padding: 0 13px; border-radius: 7px; font-size: 10px; }.admin-sidebar nav a:hover,.admin-sidebar nav a.active { color: #fff; background: #164477; }.admin-sidebar nav a.active { box-shadow: inset 3px 0 #e0b341; }.admin-sidebar nav a i { width: 17px; font-size: 13px; text-align: center; }.admin-sidebar nav a b { margin-left: auto; padding: 2px 6px; border-radius: 8px; background: rgba(255,255,255,.1); font-size: 7px; }
.admin-help { display: flex; align-items: center; gap: 10px; margin: auto 15px 10px; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.05); }.admin-help b,.admin-help small { display: block; }.admin-help b { color: #fff; font-size: 9px; }.admin-help small { color: #879eb9; font-size: 7px; }.admin-user { display: grid; height: 68px; grid-template-columns: 34px 1fr 12px; align-items: center; gap: 9px; padding: 0 17px; border-top: 1px solid rgba(255,255,255,.1); }.admin-user > span,.table-author { display: inline-grid; width: 31px; height: 31px; place-items: center; color: #fff; border-radius: 50%; background: #35699d; font-size: 8px; }.admin-user b,.admin-user small { display: block; }.admin-user b { color: #fff; font-size: 9px; }.admin-user small { color: #879eb9; font-size: 7px; }
.admin-main { min-height: 100vh; margin-left: 245px; }.admin-topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 66px; align-items: center; gap: 18px; padding: 0 28px; border-bottom: 1px solid #e2e7ed; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }.admin-menu { display: none; border: 0; background: none; }.admin-topbar > label { display: flex; width: 365px; height: 38px; align-items: center; gap: 9px; padding: 0 12px; color: #8995a5; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }.admin-topbar input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 9px; }.admin-topbar kbd { padding: 3px 6px; border: 1px solid #d8dee6; border-radius: 4px; background: #fff; font-size: 7px; }.admin-topbar > div { display: flex; align-items: center; gap: 12px; margin-left: auto; }.admin-topbar > div > button { position: relative; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.admin-topbar > div > a { padding-left: 13px; color: #43536a; border-left: 1px solid var(--line); font-size: 9px; font-weight: 600; }.admin-topbar > div > a i { margin-right: 6px; }
.admin-content { padding: 30px; }.admin-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }.admin-page-head span { color: #8793a3; font-size: 7px; font-weight: 700; letter-spacing: 1.3px; }.admin-page-head h1 { margin: 3px 0; font-size: 26px; }.admin-page-head p { margin: 0; color: #8290a1; font-size: 10px; }.admin-primary { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; color: #fff!important; border: 0!important; border-radius: 6px!important; background: #0b3d75!important; font-size: 9px; font-weight: 700; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-bottom: 18px; }.admin-stats article { display: flex; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(20,42,68,.04); }.stat-icon { display: grid; width: 43px; height: 43px; place-items: center; color: #2167a4; border-radius: 9px; background: #e8f1fa; }.stat-icon.green{color:#278660;background:#e7f4ee}.stat-icon.gold{color:#a77b1b;background:#fbf3df}.stat-icon.purple{color:#775497;background:#f1eafa}.admin-stats small,.admin-stats strong,.admin-stats em { display: block; }.admin-stats small { color: #8491a1; font-size: 8px; }.admin-stats strong { margin: 2px 0; font-size: 22px; }.admin-stats em { color: #4a9a70; font-size: 7px; font-style: normal; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(240px,1fr); gap: 16px; }.admin-panel,.admin-list-panel,.media-panel,.editor-panel { border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(20,42,68,.04); }.admin-panel > header,.editor-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; border-bottom: 1px solid var(--line); }.admin-panel h2,.editor-panel h2,.quick-actions h2 { margin: 0; font-size: 13px; }.admin-panel header p,.editor-panel header p { margin: 3px 0 0; color: #8a96a5; font-size: 8px; }.admin-panel header a { color: #20568e; font-size: 8px; font-weight: 700; }
.recent-content-list > a { display: grid; grid-template-columns: 48px 1fr 68px 62px 15px; align-items: center; gap: 11px; padding: 12px 18px; border-bottom: 1px solid var(--line); }.recent-content-list img { width: 48px; height: 39px; object-fit: cover; border-radius: 5px; }.recent-content-list b,.recent-content-list span { display: block; }.recent-content-list b { font-size: 9px; }.recent-content-list span { margin-top: 3px; color: #8995a4; font-size: 7px; }.recent-content-list small { color: #8591a0; font-size: 7px; }.status { display: inline-block; width: fit-content; padding: 4px 7px; border-radius: 12px; font-size: 7px; font-style: normal; font-weight: 700; }.status.published{color:#277357;background:#e6f4ed}.status.draft{color:#6c7785;background:#edf0f3}.status.review{color:#9b6d12;background:#fbf1d9}
.activity-list { padding: 7px 18px; }.activity-list > div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }.activity-list span { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; border-radius: 50%; background: #35699d; font-size: 7px; }.activity-list span.orange,.table-author.orange{background:#c98737}.activity-list span.green,.table-author.green{background:#388666}.activity-list p { margin: 0; color: #687587; font-size: 8px; line-height: 1.4; }.activity-list b,.activity-list small { display: block; color: #2c3d54; }.activity-list small { margin-top: 3px; color: #98a2af; }.activity-link { display: block; padding: 13px; color: #20568e; font-size: 8px; font-weight: 700; text-align: center; }
.quick-actions { margin-top: 20px; }.quick-actions > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 10px; }.quick-actions a { display: grid; grid-template-columns: 37px 1fr 10px; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.quick-actions a > i:first-child { display: grid; width: 37px; height: 37px; place-items: center; color: #205f99; border-radius: 7px; background: #ebf2f9; }.quick-actions b,.quick-actions small { display: block; }.quick-actions b { font-size: 9px; }.quick-actions small { color: #8995a4; font-size: 7px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); }.admin-tabs { display: flex; gap: 4px; }.admin-tabs button { padding: 7px 10px; color: #758295; border: 0; border-radius: 5px; background: transparent; font-size: 8px; }.admin-tabs button.active { color: #174f87; background: #eaf2f9; font-weight: 700; }.admin-tabs span { margin-left: 3px; }.list-tools { display: flex; gap: 7px; }.list-tools label { display: flex; height: 33px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; }.list-tools input { border: 0; outline: 0; font-size: 8px; }.list-tools button,.list-tools select { padding: 0 10px; color: #627085; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 8px; }
.admin-table-wrap { overflow-x: auto; }.admin-table { width: 100%; border-collapse: collapse; }.admin-table th { padding: 10px 13px; color: #8a96a5; background: #f8fafc; font-size: 7px; text-align: left; text-transform: uppercase; letter-spacing: .6px; }.admin-table td { padding: 11px 13px; border-top: 1px solid var(--line); font-size: 8px; }.admin-table td > small { display: block; margin-top: 3px; color: #9aa4b1; }.page-cell { display: flex; min-width: 260px; align-items: center; gap: 10px; }.page-cell img,.page-thumb { display: grid; width: 44px; height: 36px; place-items: center; object-fit: cover; color: #174f87; border-radius: 5px; background: #e8f1fa; }.page-thumb.blue{color:#2370ab}.page-thumb.gold{color:#9e781d;background:#fbf3df}.page-thumb.purple{color:#775497;background:#f1eafa}.page-cell b,.page-cell small { display: block; }.page-cell small { margin-top: 3px; color: #929daa; font-size: 7px; }.table-author { width: 23px; height: 23px; margin-right: 5px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; color: #818d9d; font-size: 8px; }.table-footer button { min-width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 8px; }.table-footer button.active { color: #fff; background: var(--navy); }
.editor-breadcrumb { margin-left: 0!important; color: #8a96a5; font-size: 9px; }.editor-breadcrumb i { font-size: 6px; }.editor-breadcrumb b { color: #34465d; }.editor-actions span { color: #6d7b8e; font-size: 8px; }.editor-actions span i { color: #3b956c; }.editor-actions button { width: auto!important; padding: 0 12px; font-size: 8px; }.editor-content { padding-top: 23px; }.editor-head { margin-bottom: 18px; }.editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; align-items: start; gap: 16px; }.editor-main-column,.editor-side-column { display: flex; flex-direction: column; gap: 15px; }.editor-panel { overflow: hidden; }.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }.field-grid .full { grid-column: 1/-1; }.editor-panel label { position: relative; display: block; padding: 0 18px 15px; color: #45556a; font-size: 8px; font-weight: 700; }.field-grid label { padding: 0; }.editor-panel input,.editor-panel select,.editor-panel textarea,.standalone-textarea { width: 100%; margin-top: 6px; padding: 10px; color: #35465d; border: 1px solid #dce2e9; border-radius: 5px; outline: 0; background: #fff; font-size: 9px; font-weight: 400; }.editor-panel small,.field-help { color: #929daa; font-size: 7px; }.char-count { position: absolute; right: 8px; bottom: 7px; color: #9aa4b1; font-size: 7px; }.rich-toolbar { display: flex; align-items: center; gap: 3px; padding: 8px 13px; border-bottom: 1px solid var(--line); }.rich-toolbar select { width: 110px; margin: 0 8px 0 0; padding: 5px; }.rich-toolbar button { width: 28px; height: 28px; border: 0; border-radius: 4px; background: transparent; }.rich-toolbar button:hover { background: #edf1f5; }.rich-toolbar > span { height: 20px; border-left: 1px solid var(--line); }.rich-editor { min-height: 270px; padding: 20px; outline: 0; color: #546377; font-size: 10px; line-height: 1.7; }.rich-editor h2 { color: #24364d; font-size: 16px; }.standalone-textarea { width: calc(100% - 36px); margin: 18px; }.search-preview { margin: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 6px; }.search-preview small { color: #397246; }.search-preview b { display: block; margin: 4px 0; color: #2255a4; font-size: 13px; }.search-preview p { margin: 0; color: #667486; font-size: 9px; }.publish-panel label { padding-top: 15px; }.publish-panel dl { margin: 0; padding: 0 18px 15px; }.publish-panel dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 8px; }.publish-panel dt { color: #8a96a5; }.publish-panel dd { margin: 0; }.publish-panel dd button { color: #245c93; border: 0; background: none; font-size: 7px; }.publish-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 13px 18px; border-top: 1px solid var(--line); }.publish-buttons button { min-height: 35px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 8px; }.featured-picker { padding: 15px 18px 8px; }.featured-picker img { height: 125px; object-fit: cover; border-radius: 6px; }.featured-picker > div { display: flex; justify-content: space-between; margin-top: 8px; }.featured-picker button { padding: 6px 9px; color: #536276; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 8px; }.field-help { display: block; padding: 0 18px 15px; }.slug-input { display: flex; height: 36px; align-items: center; margin-top: 6px; border: 1px solid #dce2e9; border-radius: 5px; overflow: hidden; }.slug-input span { padding: 0 7px; color: #8793a3; background: #f4f6f8; font-size: 8px; }.slug-input input { height: 100%; margin: 0; padding-left: 3px; border: 0; }
.upload-zone { display: flex; align-items: center; gap: 17px; margin-bottom: 16px; padding: 20px; border: 1px dashed #b8c8d9; border-radius: 9px; background: #f9fbfd; }.upload-zone > i { display: grid; width: 46px; height: 46px; place-items: center; color: #2d6b9f; border-radius: 9px; background: #e5eff8; font-size: 17px; }.upload-zone b { font-size: 10px; }.upload-zone p { margin: 4px 0 0; color: #8b97a6; font-size: 8px; }.upload-zone button { margin-left: auto; padding: 8px 12px; color: #31587e; border: 1px solid #cdd8e3; border-radius: 5px; background: #fff; font-size: 8px; }.media-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; padding: 16px; }.media-grid article { min-width: 0; }.media-grid article > div { position: relative; height: 145px; overflow: hidden; border-radius: 7px; background: #edf1f4; }.media-grid img { height: 100%; object-fit: cover; }.media-grid label { position: absolute; top: 8px; left: 8px; }.media-grid label span { display: block; width: 17px; height: 17px; border: 2px solid #fff; border-radius: 4px; background: rgba(0,0,0,.2); }.media-grid input { display: none; }.media-grid input:checked + span { background: var(--navy); box-shadow: inset 0 0 0 3px #fff; }.media-grid b,.media-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.media-grid b { margin-top: 8px; font-size: 8px; }.media-grid small { margin-top: 3px; color: #929daa; font-size: 7px; }

@media (max-width: 1100px) {
  .destination-list-grid,.library-grid { grid-template-columns: repeat(2,1fr); }.destination-tile.featured { grid-column: span 2; }
  .hero-stat-row { display: none; }.detail-layout { grid-template-columns: 1fr; }.detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .reading-columns { grid-template-columns: 55px minmax(0,1fr); }.article-progress { display: none; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }.media-grid { grid-template-columns: repeat(3,1fr); }.editor-layout { grid-template-columns: 1fr; }.editor-side-column { display: grid; grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 800px) {
  .filter-panel { align-items: stretch; flex-direction: column; }.filter-search { min-width: 0; }.detail-hero { height: 340px; }.detail-hero-copy { left: 25px; bottom: 28px; }.detail-hero-copy h1 { font-size: 40px; }
  .highlight-grid { grid-template-columns: 1fr; }.collection-content { grid-template-columns: 1fr; }.auth-shell { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-form-side { min-height: 100vh; }
  .admin-sidebar { transform: translateX(-100%); }.admin-sidebar.open { transform: translateX(0); }.admin-main { margin-left: 0; }.admin-menu { display: block; }.admin-content { padding: 20px; }.admin-dashboard-grid { grid-template-columns: 1fr; }.editor-side-column { display: flex; }.media-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .page-hero,.library-banner,.collection-summary { min-height: 230px; padding: 28px 23px; }.banner-orbit { display: none; }.destination-list-grid,.library-grid,.compact-grid { grid-template-columns: 1fr; }.destination-tile.featured { grid-column: auto; }.destination-list-grid { grid-auto-rows: 230px; }
  .detail-sidebar { display: flex; }.article-panel { padding: 0 20px 20px; }.anchor-nav { margin: 0 -20px 25px; padding: 0 20px; overflow-x: auto; }.gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3,160px); }.gallery-grid .wide { grid-row: auto; }
  .article-cover { height: 280px; }.reading-columns { display: block; }.article-tools { flex-direction: row; margin-bottom: 20px; }.article-progress { display: none; }.article-meta { flex-wrap: wrap; }.related-grid { grid-template-columns: 1fr; }.summary-stats { right: 20px; left: 20px; }.summary-stats span { padding: 0 6px; }.collection-summary { grid-template-columns: 1fr; padding-bottom: 100px; }.progress-ring { display: none; }
  .collection-toolbar { align-items: stretch; flex-direction: column; }.small-search { min-width: 0; }.admin-page-head { align-items: flex-start; gap: 15px; flex-direction: column; }.admin-stats { grid-template-columns: 1fr; }.quick-actions > div { grid-template-columns: 1fr; }.admin-topbar > label { display: none; }.admin-topbar > div > a { font-size: 0; }.list-toolbar { align-items: stretch; gap: 10px; flex-direction: column; }.admin-tabs { overflow-x: auto; }.list-tools label { flex: 1; }.media-grid { grid-template-columns: 1fr; }.media-grid article > div { height: 210px; }.editor-actions span,.editor-actions > button:not(.admin-primary) { display: none; }.field-grid { grid-template-columns: 1fr; }.field-grid .full { grid-column: auto; }
}

/* Final device responsiveness */
@media (min-width: 1800px) {
  .main-content {
    padding-right: 48px;
    padding-left: 48px;
  }

  .hero {
    min-height: 330px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
  }
}

@media (max-width: 1000px) {
  .sidebar {
    width: min(280px, 86vw);
    box-shadow: 12px 0 40px rgba(2, 24, 52, 0.3);
  }

  .sidebar::after {
    height: 44%;
    background-size: 100% auto;
  }

  .main-content {
    min-width: 0;
  }

  body:has(.sidebar.open)::after {
    position: fixed;
    z-index: 40;
    inset: 0;
    background: rgba(2, 20, 44, 0.42);
    content: "";
    backdrop-filter: blur(2px);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  .sidebar::after {
    height: 40%;
    opacity: 0.08;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 35%, rgba(0, 0, 0, 0.2) 60%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 35%, rgba(0, 0, 0, 0.2) 60%, #000 100%);
  }

  .topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    margin: 0 -15px;
    padding: 0 15px;
    background: rgba(243, 246, 250, 0.94);
    backdrop-filter: blur(10px);
  }

  .search-box {
    min-width: 0;
  }

  .hero {
    background-position: 58% center;
  }

  .dashboard-grid {
    gap: 16px;
    margin-top: 18px;
  }

  .page-hero h1,
  .library-banner h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .destination-list-grid {
    grid-auto-rows: 230px;
  }
}

@media (max-width: 500px) {
  .sidebar {
    width: min(270px, 90vw);
  }

  .sidebar::after {
    height: 36%;
    background-size: cover;
  }

  .brand {
    padding-top: 24px;
  }

  .brand-tagline {
    margin-bottom: 18px;
  }

  .nav-item {
    min-height: 44px;
  }

  .top-actions {
    gap: 2px;
  }

  .avatar-button {
    width: 34px;
    height: 34px;
  }

  .search-box input {
    font-size: 11px;
  }

  .search-box input::placeholder {
    font-size: 0;
  }

  .hero {
    min-height: 215px;
    border-radius: 10px;
  }

  .hero-content {
    padding-top: 35px;
  }

  .hero-country {
    gap: 8px;
    letter-spacing: 4px;
  }

  .hero-country span {
    width: 28px;
  }

  .hero-script {
    font-size: 18px;
  }

  .scan-card {
    grid-template-columns: 1fr 78px;
  }

  .phone-mockup {
    height: 120px;
    font-size: 43px;
  }

  .filter-chips {
    margin: 0 -15px;
    padding: 0 15px 4px;
    scrollbar-width: none;
  }

  .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .tile-copy {
    padding: 18px;
  }

  .tile-copy h3 {
    font-size: 21px;
  }
}

@media (max-width: 360px) {
  .main-content {
    padding-right: 10px;
    padding-left: 10px;
  }

  .topbar {
    margin: 0 -10px;
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-country {
    font-size: 14px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scan-card {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    display: none;
  }
}

@media (max-height: 650px) and (min-width: 501px) {
  .brand {
    padding-top: 18px;
  }

  .brand-tagline {
    margin-bottom: 12px;
  }

  .nav-item {
    min-height: 40px;
  }

  .profile-card {
    margin-top: 12px;
  }

  .sidebar::after {
    height: 42%;
  }
}
