:root {
  --ink: #16302d;
  --muted: #62736f;
  --paper: #f7f4ed;
  --panel: rgba(255, 253, 248, 0.82);
  --line: rgba(22, 48, 45, 0.12);
  --accent: #0f8f79;
  --accent-2: #e86142;
  --accent-3: #2d67b1;
  --accent-4: #d79b22;
  --accent-5: #7c57a8;
  --accent-6: #c2446d;
  --gold: #b38a38;
  --glass: rgba(255, 255, 255, 0.62);
  --shadow: 0 24px 70px rgba(18, 45, 42, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
    min-height: 100dvh;
  }

  .home-controls {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .top-search input {
    font-size: 0.96rem;
  }

  .map-stage,
  .map-wrap,
  #australiaMap {
    min-height: 100dvh;
    padding: 0;
  }

  .topbar,
  .map-caption {
    display: none;
  }

  .bottom-sheet {
    width: calc(100vw - 16px);
    max-height: 68dvh;
    bottom: max(8px, env(safe-area-inset-bottom));
    border-radius: 22px;
    padding: 10px 14px 16px;
  }

  .eligibility-row,
  .work-type-row {
    grid-template-columns: 1fr;
  }

  .filter-sheet {
    justify-items: center;
    padding: max(72px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .filter-sheet-card {
    width: min(100%, 390px);
    max-height: calc(100dvh - 92px);
  }
}

@supports not (height: 100dvh) {
  @media (max-width: 820px) {
    .app-shell,
    .map-stage,
    .map-wrap,
    #australiaMap {
      min-height: 100vh;
    }

    .bottom-sheet {
      max-height: 58vh;
    }

    .filter-sheet-card,
    .app-menu,
    .saved-postcodes-shell {
      max-height: calc(100vh - 92px);
    }
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 143, 121, 0.11), transparent 36%),
    linear-gradient(220deg, rgba(179, 138, 56, 0.11), transparent 42%),
    #edf3ef;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(18, 161, 137, 0.16), transparent 38%),
    linear-gradient(220deg, rgba(179, 138, 56, 0.14), transparent 44%),
    #edf3ef;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.loading-screen.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loading-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(82vw, 280px);
  border: 1px solid rgba(22, 48, 45, 0.14);
  border-radius: 26px;
  padding: 28px 24px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 28px 80px rgba(18, 45, 42, 0.18);
  backdrop-filter: blur(24px) saturate(1.08);
  text-align: center;
}

.loading-card img {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(18, 45, 42, 0.18);
}

.loading-card strong {
  display: block;
  font-size: 1.32rem;
  font-weight: 950;
}

.loading-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(20, 55, 51, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loadingSpin 0.85s linear infinite;
}

@keyframes loadingSpin {
  to {
    transform: rotate(360deg);
  }
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr minmax(320px, 410px);
  min-height: 100vh;
}

.sidebar,
.details-panel {
  background: var(--panel);
  border-color: var(--line);
  border-style: solid;
  backdrop-filter: blur(18px);
  padding: 24px;
  overflow-y: auto;
}

.sidebar {
  border-width: 0 1px 0 0;
}

.sidebar-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.details-panel {
  border-width: 0 0 0 1px;
}

.brand-row,
.details-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  color: #fffdf6;
  background: #143733;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.82;
  box-shadow: 0 12px 24px rgba(20, 55, 51, 0.22);
}

.brand-mark span {
  font-size: 0.68rem;
  opacity: 0.78;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.1;
  font-weight: 920;
}

h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 900;
}

h3 {
  font-weight: 900;
}

.language-card,
.filter-panel,
.status-panel,
.legal-footer,
.postcode-summary,
.eligibility-card {
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(18, 45, 42, 0.06);
}

.language-card {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 14px;
}

.language-card p,
.postcode-summary p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.language-option,
#resetFilters,
.filter-chip,
.search-box button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf7;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.language-option {
  min-height: 34px;
  font-size: 0.8rem;
  font-weight: 800;
}

.language-option.active,
.filter-chip.active {
  color: #fffdf6;
  background: var(--ink);
  border-color: var(--ink);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffdf7;
  font-size: 1.05rem;
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 143, 121, 0.15);
}

.search-box button {
  display: grid;
  place-items: center;
  min-height: 46px;
  font-size: 1.35rem;
}

.filter-panel {
  margin-top: 22px;
  padding: 14px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#resetFilters {
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-chip {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  text-align: left;
}

.filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.filter-count {
  color: inherit;
  opacity: 0.74;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}

.guide-button,
.logout-button {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid rgba(20, 55, 51, 0.18);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 252, 245, 0.72);
  font-weight: 800;
}

.guide-button {
  color: #fffdf6;
  background: var(--ink);
}

.logout-button:hover {
  border-color: rgba(20, 55, 51, 0.34);
  background: #fffdf6;
}

.guide-button:hover {
  border-color: var(--ink);
  background: #0f2a27;
}

.metric span {
  display: block;
  font-size: 1.55rem;
  font-weight: 850;
}

.metric small {
  color: var(--muted);
  font-size: 0.75rem;
}

.legal-footer {
  margin-top: 16px;
  padding: 14px;
}

.legal-footer p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.legal-footer p:first-child {
  color: var(--ink);
  font-weight: 800;
}

.legal-footer a {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.map-stage {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.topbar-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.menu-button,
.icon-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.78);
  font-weight: 850;
}

.menu-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.25rem;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.2rem;
}

.menu-button:hover,
.icon-button:hover {
  border-color: rgba(22, 48, 45, 0.3);
  background: #fffdf6;
}

.topbar h2 {
  max-width: 760px;
  font-size: clamp(1.4rem, 2vw, 2.15rem);
  line-height: 1.05;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 430px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.map-wrap {
  position: relative;
  display: grid;
  min-height: 0;
  border: 1px solid rgba(22, 48, 45, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(227, 239, 235, 0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
}

#australiaMap {
  width: 100%;
  height: 100%;
  min-height: 560px;
}

.state {
  stroke: rgba(22, 48, 45, 0.22);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  fill: rgba(255, 253, 246, 0.82);
}

.state-wa { fill: rgba(243, 209, 142, 0.74); }
.state-nt { fill: rgba(228, 189, 135, 0.72); }
.state-qld { fill: rgba(160, 214, 193, 0.76); }
.state-sa { fill: rgba(219, 213, 160, 0.72); }
.state-nsw { fill: rgba(147, 194, 224, 0.76); }
.state-vic { fill: rgba(182, 177, 220, 0.78); }
.state-tas { fill: rgba(177, 211, 168, 0.78); }
.state-act { fill: rgba(255, 253, 246, 0.95); }

.state-labels text {
  fill: rgba(22, 48, 45, 0.32);
  font-size: 22px;
  font-weight: 900;
  pointer-events: none;
}

.postcode-marker {
  stroke: rgba(255, 255, 255, 0.84);
  stroke-width: 1.2;
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.postcode-marker:hover,
.postcode-marker.active {
  opacity: 1;
  stroke: #173530;
  stroke-width: 2.2;
}

.postcode-marker.active {
  filter: drop-shadow(0 8px 10px rgba(22, 48, 45, 0.25));
}

.postcode-marker.saved {
  stroke: var(--gold);
  stroke-width: 2.4;
  opacity: 1;
}

.map-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  max-width: 820px;
  border: 1px solid rgba(22, 48, 45, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.8);
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.details-header {
  align-items: flex-start;
  justify-content: space-between;
}

#postcodeTitle {
  font-size: 2.25rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 18px 0 14px;
  border-radius: 999px;
  padding: 0 12px;
  color: #fffdf6;
  background: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
}

.result-badge.neutral {
  background: #66736f;
}

.postcode-summary {
  padding: 14px;
}

.postcode-summary p {
  margin-bottom: 0;
}

.location-block {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.location-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  border-top: 1px solid rgba(22, 48, 45, 0.09);
  padding-top: 8px;
}

.location-row span,
.location-row small {
  color: var(--muted);
}

.location-row small {
  grid-column: 1 / -1;
  line-height: 1.35;
}

.eligibility-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.eligibility-card {
  padding: 14px;
}

.eligibility-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.eligibility-card p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.eligibility-card .job-examples {
  margin-top: 10px;
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(22, 48, 45, 0.07);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 750;
}

.cta-strip {
  margin-top: 16px;
}

.cta-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border-radius: 8px;
  color: #fffdf6;
  background: var(--ink);
  text-decoration: none;
  font-weight: 850;
}

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 28, 25, 0.44);
  backdrop-filter: blur(10px);
}

.guide-overlay.hidden {
  display: none;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  justify-items: end;
  padding: 18px;
  background: rgba(9, 28, 25, 0.24);
  backdrop-filter: blur(8px);
}

.menu-overlay.hidden {
  display: none;
}

.app-menu {
  width: min(92vw, 360px);
  max-height: min(680px, calc(100dvh - 36px));
  border: 1px solid rgba(255, 253, 246, 0.5);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 252, 245, 0.97);
  box-shadow: 0 28px 80px rgba(9, 28, 25, 0.28);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-header,
.visa-guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.menu-header {
  margin-bottom: 14px;
}

.menu-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
}

.menu-item + .menu-item {
  margin-top: 10px;
}

.menu-item:hover {
  border-color: rgba(15, 143, 121, 0.34);
  background: #fffdf6;
}

.menu-item span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fffdf6;
  background: var(--ink);
  font-size: 1rem;
}

.menu-item strong {
  font-size: 0.98rem;
}

.menu-item small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.guide-card {
  width: min(92vw, 460px);
  border: 1px solid rgba(255, 253, 246, 0.48);
  border-radius: 14px;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 28px 80px rgba(9, 28, 25, 0.32);
}

.guide-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.guide-progress span {
  height: 5px;
  border-radius: 999px;
  background: rgba(22, 48, 45, 0.14);
}

.guide-progress span.active {
  background: var(--accent);
}

.guide-card h2 {
  margin-bottom: 10px;
  font-size: 1.42rem;
  line-height: 1.12;
}

.guide-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.guide-actions,
.guide-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-actions {
  justify-content: space-between;
  margin-top: 24px;
}

.guide-actions button {
  min-height: 40px;
  border-radius: 9px;
  padding: 0 14px;
  font-weight: 850;
}

.guide-secondary {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fffdf7;
}

.guide-primary {
  border: 1px solid var(--ink);
  color: #fffdf6;
  background: var(--ink);
}

.visa-guide {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(238, 243, 239, 0.82);
  backdrop-filter: blur(14px);
}

.visa-guide.hidden {
  display: none;
}

.premium-panel {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(237, 243, 239, 0.72);
  backdrop-filter: blur(22px) saturate(1.1);
}

.premium-panel.hidden {
  display: none;
}

.days-tracker {
  position: fixed;
  inset: 0;
  z-index: 43;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(237, 243, 239, 0.76);
  backdrop-filter: blur(22px) saturate(1.1);
}

.days-tracker.hidden {
  display: none;
}

.saved-postcodes {
  position: fixed;
  inset: 0;
  z-index: 44;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(237, 243, 239, 0.76);
  backdrop-filter: blur(22px) saturate(1.1);
}

.saved-postcodes.hidden {
  display: none;
}

.visa-guide-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(1040px, 96vw);
  max-height: 92vh;
  border: 1px solid rgba(255, 253, 246, 0.62);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.98);
  box-shadow: 0 32px 90px rgba(9, 28, 25, 0.26);
  overflow: hidden;
}

.premium-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(840px, 96vw);
  max-height: 92vh;
  border: 1px solid rgba(255, 253, 246, 0.72);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 34px 90px rgba(9, 28, 25, 0.2);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.days-tracker-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(980px, 96vw);
  max-height: 92vh;
  border: 1px solid rgba(255, 253, 246, 0.72);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 34px 90px rgba(9, 28, 25, 0.22);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.saved-postcodes-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(760px, 96vw);
  max-height: 92vh;
  border: 1px solid rgba(255, 253, 246, 0.72);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 34px 90px rgba(9, 28, 25, 0.22);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.visa-guide-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.premium-header,
.days-tracker-header,
.saved-postcodes-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.premium-header h2,
.days-tracker-header h2,
.saved-postcodes-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
}

.visa-guide-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
}

.visa-guide-content {
  overflow-y: auto;
  padding: 24px;
}

.premium-content {
  display: grid;
  gap: 24px;
  overflow-y: auto;
  padding: 28px;
}

.days-tracker-content {
  display: grid;
  gap: 24px;
  overflow-y: auto;
  padding: 28px;
}

.saved-postcodes-content {
  display: grid;
  gap: 18px;
  overflow-y: auto;
  padding: 28px;
}

.premium-hero,
.premium-preview,
.premium-compare article {
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(18, 45, 42, 0.07);
}

.premium-hero {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(145deg, rgba(20, 55, 51, 0.1), rgba(255, 255, 255, 0.78)),
    linear-gradient(45deg, rgba(179, 138, 56, 0.1), transparent 48%);
}

.premium-hero p,
.premium-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.premium-hero small,
.premium-preview small {
  color: var(--muted);
  font-weight: 850;
}

.premium-cta {
  min-height: 44px;
  width: fit-content;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #fffdf6;
  background: linear-gradient(135deg, #143733, #0f4a42);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(20, 55, 51, 0.18);
}

.premium-cta.disabled,
.premium-cta:disabled {
  cursor: not-allowed;
  color: rgba(255, 253, 246, 0.78);
  background: rgba(20, 55, 51, 0.58);
  box-shadow: none;
}

.premium-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.premium-compare h3 {
  margin: 0 0 14px;
  font-size: 1.12rem;
  font-weight: 950;
}

.premium-compare ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.premium-featured {
  border-color: rgba(15, 143, 121, 0.34);
  background: rgba(15, 143, 121, 0.08);
}

.premium-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.premium-signals span {
  border-radius: 999px;
  padding: 8px 10px;
  color: #fffdf6;
  background: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.guide-section {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.guide-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-section-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fffdf6;
  background: var(--ink);
  font-size: 0.95rem;
}

.guide-section h3 {
  margin: 0;
  font-size: 1.26rem;
  font-weight: 950;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-card-small,
.mistake-card,
.tip-card,
.source-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.guide-card-small strong,
.mistake-card strong,
.tip-card strong,
.source-card strong {
  display: block;
  margin-bottom: 6px;
}

.guide-card-small p,
.mistake-card p,
.tip-card p,
.source-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.guide-callout {
  border: 1px solid rgba(15, 143, 121, 0.22);
  border-radius: 14px;
  padding: 16px;
  background: rgba(15, 143, 121, 0.08);
}

.guide-callout p {
  margin-bottom: 0;
  color: var(--ink);
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  padding: 14px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 850;
}

.faq-question span {
  flex: 1;
}

.faq-question small {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #fffdf6;
  background: var(--ink);
  font-size: 1rem;
}

.faq-answer {
  display: none;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.faq-item.open .faq-answer {
  display: block;
}

.source-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.before-work-intro {
  border: 1px solid rgba(15, 143, 121, 0.22);
  border-radius: 14px;
  padding: 14px;
  color: var(--ink);
  background: rgba(15, 143, 121, 0.07);
  line-height: 1.48;
}

.before-work-groups {
  display: grid;
  gap: 14px;
}

.before-work-group {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(22, 48, 45, 0.14);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 38px rgba(18, 45, 42, 0.06);
}

.before-work-group h4 {
  margin: 0 0 5px;
  font-size: 1.05rem;
  font-weight: 950;
}

.before-work-group p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.before-work-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.before-work-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(22, 48, 45, 0.14);
  border-radius: 14px;
  padding: 13px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.before-work-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(18, 45, 42, 0.08);
}

.before-work-link span {
  display: grid;
  gap: 4px;
}

.before-work-link strong {
  margin: 0;
  line-height: 1.2;
}

.before-work-link small {
  color: var(--muted);
  line-height: 1.34;
}

.before-work-link em {
  border-radius: 999px;
  padding: 7px 9px;
  color: #fffdf6;
  background: var(--ink);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.save-postcode-button,
.saved-postcode-actions button {
  min-height: 42px;
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  font-weight: 950;
}

.save-postcode-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  box-shadow: 0 12px 28px rgba(18, 45, 42, 0.055);
}

.save-postcode-button span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #fffdf6;
  background: var(--accent);
  font-size: 0.86rem;
  line-height: 1;
}

.save-postcode-button.saved {
  border-color: rgba(179, 138, 56, 0.36);
  color: var(--ink);
  background: rgba(179, 138, 56, 0.12);
}

.saved-menu-item {
  border-color: rgba(179, 138, 56, 0.32);
  background: linear-gradient(135deg, rgba(179, 138, 56, 0.12), rgba(255, 255, 255, 0.78));
}

.saved-menu-item span {
  background: linear-gradient(135deg, #b38a38, #143733);
  font-size: 1rem;
  font-weight: 950;
}

.saved-postcodes-hero,
.saved-postcode-card,
.saved-postcodes-empty {
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(18, 45, 42, 0.07);
}

.saved-postcodes-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.saved-postcodes-hero p,
.saved-postcodes-empty,
.saved-postcode-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.saved-postcodes-hero strong {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: #fffdf6;
  background: var(--ink);
  font-size: 1.3rem;
  font-weight: 950;
}

.saved-postcode-list {
  display: grid;
  gap: 12px;
}

.saved-postcode-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.saved-postcode-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.saved-postcode-card strong {
  display: block;
  margin: 3px 0 6px;
  font-size: 1.12rem;
  font-weight: 950;
}

.saved-postcode-actions {
  display: grid;
  gap: 8px;
}

.saved-postcode-actions button:first-child {
  color: #fffdf6;
  background: var(--ink);
}

.saved-postcodes-empty {
  padding: 18px;
}

.tracker-menu-item {
  border-color: rgba(15, 143, 121, 0.34);
  background: linear-gradient(135deg, rgba(15, 143, 121, 0.12), rgba(255, 255, 255, 0.78));
}

.tracker-menu-item span {
  background: linear-gradient(135deg, #0f8f79, #143733);
  font-size: 0.82rem;
  font-weight: 950;
}

.tracker-guide-callout {
  display: grid;
  gap: 14px;
}

.guide-open-tracker,
.tracker-form button,
.tracker-entries-header button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  color: #fffdf6;
  background: linear-gradient(135deg, #143733, #0f4a42);
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(20, 55, 51, 0.14);
}

.guide-open-tracker {
  width: fit-content;
}

.tracker-hero,
.tracker-help-card,
.tracker-goal-card,
.tracker-total-card,
.tracker-progress-card,
.tracker-form,
.tracker-proof,
.tracker-entries {
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(18, 45, 42, 0.07);
}

.tracker-hero {
  display: grid;
  gap: 8px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(15, 143, 121, 0.1), rgba(255, 255, 255, 0.78)),
    linear-gradient(45deg, rgba(179, 138, 56, 0.1), transparent 48%);
}

.tracker-help-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-color: rgba(15, 143, 121, 0.3);
  background:
    linear-gradient(145deg, rgba(15, 143, 121, 0.12), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.86);
}

.tracker-help-card small {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-help-card h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.28rem;
}

.tracker-help-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.tracker-help-card button,
.tracker-help-open {
  min-height: 40px;
  width: fit-content;
  border: 1px solid rgba(20, 55, 51, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  font-weight: 900;
}

.tracker-goal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.tracker-goal-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tracker-goal-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 320px);
}

.tracker-goal-options button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  font-weight: 950;
}

.tracker-goal-options button.active {
  border-color: rgba(15, 143, 121, 0.4);
  color: #fffdf6;
  background: linear-gradient(135deg, #0f8f79, #143733);
  box-shadow: 0 12px 24px rgba(20, 55, 51, 0.14);
}

.tracker-hero p,
.tracker-hero small,
.tracker-form label small,
.tracker-proof p,
.tracker-empty,
.tracker-copy-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tracker-summary {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 14px;
}

.tracker-total-card,
.tracker-progress-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.tracker-total-card small,
.tracker-progress-card small,
.tracker-form label,
.tracker-proof h3,
.tracker-form h3,
.tracker-entries h3 {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tracker-total-card strong {
  color: var(--accent);
  font-size: 2.35rem;
  line-height: 0.95;
}

.tracker-progress-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.42rem;
}

.tracker-progress-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tracker-progress-card.active {
  border-color: rgba(15, 143, 121, 0.38);
  background: rgba(15, 143, 121, 0.08);
}

.tracker-progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 48, 45, 0.12);
}

.tracker-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f8f79, #55c79e);
}

.tracker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.tracker-form,
.tracker-proof,
.tracker-entries {
  padding: 20px;
}

.tracker-form {
  display: grid;
  gap: 13px;
}

.tracker-form h3,
.tracker-proof h3,
.tracker-entries h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.tracker-form label {
  display: grid;
  gap: 7px;
}

.tracker-form input,
.tracker-form select,
.tracker-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  font: inherit;
}

.tracker-form textarea {
  resize: vertical;
}

.tracker-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tracker-proof {
  display: grid;
  gap: 16px;
  align-content: start;
}

.tracker-proof-list {
  display: grid;
  gap: 10px;
}

.tracker-proof-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.76);
  font-weight: 850;
}

.tracker-proof-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.tracker-entries {
  display: grid;
  gap: 14px;
}

.tracker-entries-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tracker-entry-list {
  display: grid;
  gap: 12px;
}

.tracker-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.76);
}

.tracker-entry strong,
.tracker-entry span,
.tracker-entry small {
  display: block;
}

.tracker-entry span,
.tracker-entry small,
.tracker-entry p {
  color: var(--muted);
}

.tracker-entry p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.45;
}

.tracker-entry > div:last-of-type {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.tracker-entry > div:last-of-type strong {
  color: var(--accent);
  font-size: 1.4rem;
}

.tracker-entry button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: #fffdf7;
  font-weight: 850;
}

.tracker-entry em {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--accent);
  background: rgba(15, 143, 121, 0.1);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

/* VisaRoute decision-assistant layout */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.app-shell {
  position: relative;
  display: block;
  min-height: 100dvh;
  overflow: hidden;
}

.home-controls {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  z-index: 20;
  display: grid;
  grid-template-columns: 48px minmax(0, 520px) 48px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.home-controls > * {
  pointer-events: auto;
}

.menu-button,
.filter-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(22, 48, 45, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 12px 34px rgba(18, 45, 42, 0.14);
  backdrop-filter: blur(16px);
}

.filter-button {
  display: inline-grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 900;
}

.top-search {
  justify-self: center;
  width: min(100%, 520px);
  border: 1px solid rgba(22, 48, 45, 0.12);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 12px 34px rgba(18, 45, 42, 0.14);
  backdrop-filter: blur(16px);
}

.top-search input {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.top-search button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.download-app-button {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 17;
  min-height: 46px;
  border: 1px solid rgba(255, 253, 247, 0.46);
  border-radius: 999px;
  padding: 0 18px;
  color: #fffdf7;
  background: rgba(20, 55, 51, 0.94);
  box-shadow: 0 18px 45px rgba(18, 45, 42, 0.24);
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0;
}

.download-app-button.hidden {
  display: none;
}

.install-help {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(226, 235, 230, 0.72);
  backdrop-filter: blur(16px);
}

.install-help.hidden {
  display: none;
}

.install-help-card {
  width: min(92vw, 440px);
  border: 1px solid rgba(255, 253, 246, 0.62);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 252, 245, 0.98);
  box-shadow: 0 32px 90px rgba(9, 28, 25, 0.26);
}

.install-help-body {
  margin-top: 16px;
}

.install-help-message {
  display: grid;
  gap: 12px;
}

.install-help-message strong {
  font-size: 1.25rem;
  line-height: 1.15;
}

.install-help-message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.install-primary-button,
.guide-install-button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fffdf7;
  background: var(--ink);
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(18, 45, 42, 0.18);
}

.install-guide-callout {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.map-stage {
  display: block;
  min-height: 100dvh;
  padding: 0;
}

.map-wrap {
  width: 100vw;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#australiaMap {
  min-height: 100dvh;
}

.map-caption,
.topbar {
  display: none;
}

.postcode-marker {
  opacity: 0.76;
}

.postcode-marker.similar {
  opacity: 1;
  stroke: #f8f3e9;
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(15, 143, 121, 0.5));
}

.postcode-marker.saved {
  opacity: 1;
  stroke: var(--gold);
  stroke-width: 2.6;
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 18;
  width: min(720px, calc(100vw - 24px));
  max-height: min(58dvh, 520px);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 253, 246, 0.66);
  border-radius: 26px;
  padding: 14px 22px 22px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 28px 82px rgba(18, 45, 42, 0.2);
  overflow-y: auto;
  backdrop-filter: blur(24px) saturate(1.08);
}

.bottom-sheet.collapsed {
  transform: translate(-50%, calc(100% - 86px));
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(22, 48, 45, 0.18);
}

.details-header {
  align-items: flex-start;
  margin-bottom: 10px;
}

#postcodeTitle {
  font-size: 1.55rem;
}

.area-state {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.postcode-summary {
  display: grid;
  gap: 20px;
  border: 0;
  padding: 0;
  background: transparent;
}

.decision-signal {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #fffdf6;
  background: var(--ink);
  font-weight: 850;
}

.eligibility-row,
.work-type-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat,
.work-pill,
.premium-lock {
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(18, 45, 42, 0.055);
}

.mini-stat small,
.premium-lock small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mini-stat strong {
  font-size: 1.12rem;
  font-weight: 950;
}

.yes {
  color: var(--accent);
}

.no {
  color: #c84f3a;
}

.work-type-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-pill {
  text-align: center;
  font-size: 0.86rem;
  font-weight: 900;
}

.work-focus-source {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.work-focus-source strong {
  color: var(--ink);
}

.basic-insight {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.premium-lock {
  display: grid;
  gap: 10px;
  background: linear-gradient(145deg, rgba(20, 55, 51, 0.08), rgba(255, 255, 255, 0.74));
}

.premium-unlocked {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(179, 138, 56, 0.42);
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(247, 244, 237, 0.92)),
    linear-gradient(135deg, rgba(179, 138, 56, 0.16), transparent 42%);
  box-shadow: 0 22px 52px rgba(18, 45, 42, 0.12);
}

.premium-unlocked.easy {
  border-color: rgba(15, 143, 121, 0.28);
}

.premium-unlocked.hard {
  border-color: rgba(232, 97, 66, 0.3);
}

.premium-active-badge {
  display: grid;
  gap: 7px;
  border-radius: 16px;
  padding: 15px;
  color: #fffdf6;
  background: linear-gradient(135deg, #143733, #0f4a42);
}

.premium-active-badge span,
.premium-metric small {
  color: rgba(255, 253, 246, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.premium-active-badge strong {
  font-size: 1.1rem;
  font-weight: 950;
}

.premium-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.premium-metric {
  display: grid;
  gap: 7px;
  min-height: 88px;
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 16px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(18, 45, 42, 0.06);
}

.premium-metric small {
  color: var(--muted);
}

.premium-metric strong {
  align-self: end;
  font-size: 1.12rem;
  font-weight: 950;
}

.premium-recommendation {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.premium-recommendation strong,
.premium-stronger h3,
.premium-work-breakdown h3,
.premium-toolkit h3,
.premium-check-grid h4 {
  color: var(--ink);
}

.premium-work-breakdown,
.premium-toolkit {
  display: grid;
  gap: 14px;
}

.premium-work-breakdown h3,
.premium-toolkit h3,
.premium-check-grid h4 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 950;
}

.premium-work-list {
  display: grid;
  gap: 12px;
}

.premium-work-item {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 16px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(18, 45, 42, 0.06);
}

.premium-work-item > div:first-child {
  display: grid;
  gap: 5px;
}

.premium-work-item strong {
  line-height: 1.15;
  font-weight: 950;
}

.premium-work-item small {
  color: var(--muted);
  line-height: 1.38;
}

.premium-work-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.premium-work-stats span {
  display: grid;
  gap: 3px;
  border-radius: 12px;
  padding: 9px;
  color: #fffdf6;
  background: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.premium-work-stats small {
  color: rgba(255, 253, 246, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-work-item.easy .premium-work-stats span {
  background: #0f6f61;
}

.premium-work-item.hard .premium-work-stats span {
  background: #9c4b35;
}

.premium-toolkit {
  border-top: 1px solid rgba(22, 48, 45, 0.14);
  padding-top: 18px;
}

.premium-toolkit p {
  margin: 4px 0 0;
  color: var(--muted);
}

.premium-link-list {
  display: grid;
  gap: 12px;
}

.premium-resource-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(18, 45, 42, 0.055);
  text-decoration: none;
}

.premium-resource-link span {
  display: grid;
  gap: 3px;
}

.premium-resource-link small {
  color: var(--muted);
}

.premium-resource-link em {
  border-radius: 999px;
  padding: 7px 10px;
  color: #fffdf6;
  background: var(--ink);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.premium-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.premium-check-grid article {
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 16px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(18, 45, 42, 0.055);
}

.premium-check-grid ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.34;
}

.premium-stronger {
  display: grid;
  gap: 14px;
}

.premium-stronger h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 950;
}

.premium-stronger p {
  margin: 0;
  color: var(--muted);
}

.premium-area-list {
  display: grid;
  gap: 12px;
}

.premium-area-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(22, 48, 45, 0.16);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(18, 45, 42, 0.055);
  text-align: left;
}

.premium-area-item span {
  display: grid;
  gap: 2px;
}

.premium-area-item small {
  color: var(--muted);
  font-weight: 700;
}

.premium-area-item em {
  border-radius: 999px;
  padding: 6px 9px;
  color: #fffdf6;
  background: var(--ink);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.premium-lock button,
.similar-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fffdf6;
  background: var(--ink);
  font-weight: 850;
}

.similar-button {
  width: 100%;
}

.similar-results {
  display: grid;
  gap: 10px;
}

.similar-results h3 {
  margin: 2px 0 0;
  font-size: 0.95rem;
}

.similar-list {
  display: grid;
  gap: 8px;
}

.similar-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
}

.similar-item span,
.empty-similar {
  color: var(--muted);
  font-size: 0.86rem;
}

.eligibility-list {
  display: none;
}

.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 38;
  display: grid;
  justify-items: end;
  padding: max(76px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 14px 14px;
  background: rgba(9, 28, 25, 0.16);
  backdrop-filter: blur(8px);
}

.filter-sheet.hidden {
  display: none;
}

.filter-sheet-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(92vw, 340px);
  max-height: min(640px, calc(100dvh - 104px));
  border: 1px solid rgba(255, 253, 246, 0.55);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 252, 245, 0.97);
  box-shadow: 0 28px 80px rgba(9, 28, 25, 0.22);
  overflow: hidden;
}

.filter-chip {
  border-radius: 12px;
}

.filter-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.filter-chip span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.2;
}

.filter-group-title {
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-section {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.locked-menu-item span {
  background: var(--accent);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 330px 1fr;
  }

  .details-panel {
    grid-column: 1 / -1;
    border-width: 1px 0 0;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: flex;
    flex-direction: column;
  }

  .sidebar,
  .details-panel {
    border-width: 0 0 1px;
  }

  .sidebar,
  .details-panel,
  .map-stage {
    padding: 16px;
  }

  .brand-row {
    align-items: flex-start;
  }

  .sidebar-top {
    align-items: flex-start;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.05rem;
  }

  .language-card {
    margin: 18px 0;
  }

  .map-stage {
    min-height: 78vh;
  }

  .topbar {
    display: grid;
    gap: 12px;
  }

  .topbar h2 {
    font-size: 1.22rem;
    line-height: 1.12;
  }

  .legend {
    justify-content: flex-start;
  }

  .topbar-actions {
    justify-items: start;
  }

  #australiaMap {
    min-height: 430px;
  }

  .map-caption {
    position: static;
    margin: 0 12px 12px;
  }

  .details-panel {
    padding-bottom: 24px;
  }

  .guide-card {
    padding: 18px;
  }

  .guide-actions {
    align-items: stretch;
  }

  .guide-nav {
    flex: 1;
    justify-content: flex-end;
  }

  .menu-overlay {
    justify-items: center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .app-menu {
    width: min(100%, 390px);
    max-height: calc(100dvh - 20px);
  }

  .visa-guide {
    padding: 0;
  }

  .premium-panel {
    padding: 0;
  }

  .days-tracker {
    padding: 0;
  }

  .saved-postcodes {
    padding: 0;
  }

  .visa-guide-shell {
    width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .premium-shell {
    width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .days-tracker-shell {
    width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .saved-postcodes-shell {
    width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .visa-guide-header,
  .visa-guide-content {
    padding: 18px;
  }

  .premium-header,
  .premium-content {
    padding: 18px;
  }

  .days-tracker-header,
  .days-tracker-content {
    padding: 18px;
  }

  .saved-postcodes-header,
  .saved-postcodes-content {
    padding: 18px;
  }

  .premium-compare {
    grid-template-columns: 1fr;
  }

  .premium-metrics,
  .premium-area-item,
  .premium-work-item,
  .premium-check-grid,
  .premium-resource-link,
  .before-work-links,
  .before-work-link,
  .saved-postcode-card,
  .saved-postcodes-hero {
    grid-template-columns: 1fr;
  }

  .save-postcode-button {
    width: 100%;
    justify-content: center;
  }

  .premium-work-stats {
    grid-template-columns: 1fr;
  }

  .premium-area-item em {
    width: fit-content;
  }

  .premium-cta {
    width: 100%;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .tracker-summary,
  .tracker-layout,
  .tracker-form-row,
  .tracker-entry {
    grid-template-columns: 1fr;
  }

  .tracker-goal-card {
    align-items: stretch;
    flex-direction: column;
  }

  .tracker-goal-options {
    width: 100%;
  }

  .tracker-entries-header {
    align-items: stretch;
    flex-direction: column;
  }

  .tracker-entries-header button,
  .guide-open-tracker,
  .tracker-help-card button,
  .tracker-help-open {
    width: 100%;
  }

  .tracker-entry > div:last-of-type {
    justify-items: start;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
    min-height: 100dvh;
  }

  .home-controls {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .top-search input {
    font-size: 0.96rem;
  }

  .map-stage,
  .map-wrap,
  #australiaMap {
    min-height: 100dvh;
    padding: 0;
  }

  .topbar,
  .map-caption {
    display: none;
  }

  .bottom-sheet {
    width: calc(100vw - 16px);
    max-height: 54dvh;
    bottom: max(8px, env(safe-area-inset-bottom));
    border-radius: 22px;
    padding: 10px 14px 16px;
  }

  .eligibility-row,
  .work-type-row {
    grid-template-columns: 1fr;
  }

  .filter-sheet {
    justify-items: center;
    padding: max(72px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .filter-sheet-card {
    width: min(100%, 390px);
    max-height: calc(100dvh - 92px);
  }
}
