:root {
  --navy-950: #082238;
  --navy-900: #0d2d46;
  --navy-800: #123b59;
  --navy-700: #1a4c6e;
  --navy: var(--navy-900);
  --blue-600: #176ca1;
  --gold-500: #d9aa43;
  --gold-300: #f1d693;
  --ink: #16293b;
  --muted: #687786;
  --muted-strong: #4a5d6e;
  --line: #dce4ea;
  --line-strong: #cad6df;
  --surface: #ffffff;
  --surface-soft: #f6f9fb;
  --surface-alt: #edf3f7;
  --page: #f3f6f8;
  --success: #187b5b;
  --success-soft: #e7f6ef;
  --blue-soft: #e9f3fa;
  --gold-soft: #fbf3df;
  --danger: #b54842;
  --danger-soft: #fff0ee;
  --shadow-sm: 0 8px 24px rgba(14, 42, 64, 0.07);
  --shadow-lg: 0 24px 70px rgba(7, 31, 49, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --navy: #f1f7fa;
  --ink: #ecf3f7;
  --muted: #9eafbd;
  --muted-strong: #c0ccd5;
  --line: #284357;
  --line-strong: #355368;
  --surface: #122c40;
  --surface-soft: #0e2537;
  --surface-alt: #19364a;
  --page: #091e2d;
  --success: #69d4aa;
  --success-soft: #143f37;
  --blue-soft: #143951;
  --gold-soft: #43391f;
  --danger: #ff9b94;
  --danger-soft: #482929;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

select {
  color-scheme: light;
}

select option,
select optgroup {
  background-color: #ffffff;
  color: #16293b;
}

html[data-theme="dark"] select {
  color-scheme: dark;
}

html[data-theme="dark"] select option,
html[data-theme="dark"] select optgroup {
  background-color: #0d2d46;
  color: #f7fbff;
}

html[data-theme="dark"] select option:checked {
  background-color: #176ca1;
  color: #ffffff;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(217, 170, 67, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  right: 50%;
  transform: translate(50%, -140%);
  border-radius: 10px;
  background: var(--gold-500);
  color: #172331;
  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translate(50%, 0);
}

.site-header {
  position: relative;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy-950);
  color: #fff;
}

.header-inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px 14px 14px 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent),
    var(--navy-700);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.04);
  color: var(--gold-300);
  font-size: 22px;
  font-weight: 900;
}

.brand-mark::after {
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-500);
  content: "";
}

.brand > span:last-child,
.footer-brand > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-size: 15px;
  font-weight: 850;
}

.brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.theme-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  transition: 150ms ease;
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.theme-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--gold-300);
  font-size: 16px;
}

.theme-icon.moon,
html[data-theme="dark"] .theme-icon.sun {
  display: none;
}

html[data-theme="dark"] .theme-icon.moon {
  display: inline-grid;
}

.hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(50, 121, 158, 0.34), transparent 27%),
    radial-gradient(circle at 80% 8%, rgba(217, 170, 67, 0.1), transparent 24%),
    linear-gradient(125deg, var(--navy-950), var(--navy-900) 56%, #153f5a);
  color: #fff;
}

.hero::before {
  position: absolute;
  top: -100px;
  left: -80px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(255, 255, 255, 0.025),
    0 0 0 120px rgba(255, 255, 255, 0.015);
  content: "";
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to left, #000 0, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 128px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 800;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 5px rgba(217, 170, 67, 0.13);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.hero h1 span {
  display: block;
  color: var(--gold-300);
}

.hero p {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.9;
}

.app-download-panel {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  width: min(100%, 1050px);
  max-width: 1050px;
  margin-top: 28px;
  border: 2px solid rgba(135, 240, 211, 0.5);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(20, 88, 91, 0.2));
  box-shadow: 0 22px 64px rgba(0, 12, 23, 0.28);
  padding: 22px;
  backdrop-filter: blur(13px);
}

.app-download-panel[hidden] {
  display: none;
}

.app-download-copy {
  display: flex;
  align-items: center;
  gap: 13px;
}

.app-download-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--gold-300);
  color: var(--navy-950);
  font-size: 31px;
  font-weight: 950;
}

.app-download-copy strong,
.app-download-copy b,
.app-download-copy small {
  display: block;
}

.app-download-copy strong {
  color: #fff;
  font-size: 1.18rem;
}

.app-download-copy b {
  margin-top: 7px;
  color: #fff;
  font-size: 1rem;
}

.offline-ready-badge {
  width: fit-content;
  border: 1px solid rgba(135, 240, 211, 0.72);
  border-radius: 999px;
  background: rgba(14, 119, 89, 0.76);
  padding: 6px 11px;
}

.offline-ready-badge > span {
  display: inline-block;
  margin-inline-end: 5px;
  color: #b8ffe9;
  font-size: 1.12em;
}

.app-download-copy small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.app-platform-actions {
  display: flex;
  gap: 9px;
}

.app-platform-button {
  min-width: 178px;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-950);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-platform-button:hover,
.app-platform-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 12, 23, 0.22);
}

.app-platform-button > span:first-child {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-950);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 950;
}

.android-download-button > span:first-child {
  background: #16805f;
}

.app-platform-button small,
.app-platform-button strong {
  display: block;
  line-height: 1.25;
}

.app-platform-button small {
  color: #607181;
  font-size: 0.62rem;
}

.app-platform-button strong {
  margin-top: 2px;
  font-size: 0.94rem;
}

.app-download-panel .app-download-footnote {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  line-height: 1.5;
}

.install-dialog {
  width: min(610px, calc(100% - 20px));
}

.install-dialog-body {
  padding: 18px 22px 24px;
}

.install-dialog-lead {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.install-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 10px;
}

.install-steps li > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.install-steps p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

.apple-help-link {
  display: inline-flex;
  margin-top: 15px;
  color: var(--teal);
  font-weight: 850;
  text-decoration: none;
}

.apple-help-link:hover {
  text-decoration: underline;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 27px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.hero-stats strong {
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.hero-stats .visit-counter {
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
}

.visit-counter-icon {
  color: var(--gold-300);
  font-size: 12px;
}

.visit-counter[data-state="loading"] {
  opacity: 0.72;
}

.visit-counter[data-state="error"] {
  color: rgba(255, 255, 255, 0.55);
}

.search-wrap,
.results-section,
.source-note {
  width: min(1180px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.search-wrap {
  position: relative;
  z-index: 3;
  margin-top: -78px;
}

.public-disclaimer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  margin: 0 0 24px;
  border: 1px solid rgba(185, 124, 28, 0.28);
  border-radius: 16px;
  background: #fff8e8;
  padding: 16px 18px;
}

.public-disclaimer-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #f1b84a;
  color: #3c2a05;
  font-size: 19px;
  font-weight: 950;
}

.public-disclaimer h3 {
  margin: 0 0 4px;
  color: #3c2a05;
  font-size: 14px;
  font-weight: 900;
}

.public-disclaimer p {
  margin: 0;
  color: #6b5325;
  font-size: 11px;
  line-height: 1.9;
}

html[data-theme="dark"] .public-disclaimer {
  border-color: rgba(241, 184, 74, 0.3);
  background: rgba(78, 57, 17, 0.48);
}

html[data-theme="dark"] .public-disclaimer h3 {
  color: #ffe4a2;
}

html[data-theme="dark"] .public-disclaimer p {
  color: #e9d8ad;
}

.search-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3.2vw, 38px);
}

.search-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 850;
}

html[data-theme="dark"] .section-kicker {
  color: #79bfe7;
}

.search-card-head h2,
.results-toolbar h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.search-card-head p:last-child,
.results-toolbar > div > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.results-toolbar > div > p:last-child {
  color: var(--muted-strong);
}

.verified-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--success) 20%, transparent);
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 750;
}

.verified-badge span {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: var(--surface);
  font-size: 10px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  display: flex;
  min-height: 21px;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
}

.field-label em {
  border-radius: 999px;
  background: var(--gold-soft);
  color: #8a6414;
  padding: 2px 7px;
  font-size: 9px;
  font-style: normal;
}

html[data-theme="dark"] .field-label em {
  color: var(--gold-300);
}

.field small {
  color: var(--muted);
  font-size: 10px;
}

.input-shell {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  transition: 150ms ease;
}

.input-shell:focus-within {
  border-color: #3d86ae;
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(35, 112, 154, 0.11);
}

.input-shell input,
.input-shell select {
  width: 100%;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 650;
}

.input-shell input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.input-shell select {
  appearance: none;
  padding-left: 36px;
}

.input-shell select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.select-shell::after {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.average-shell {
  border-color: color-mix(in srgb, var(--blue-600) 42%, var(--line-strong));
  background: var(--blue-soft);
}

.average-shell input {
  direction: ltr;
  padding-left: 48px;
  text-align: right;
  font-size: 17px;
  font-weight: 850;
}

.input-suffix {
  position: absolute;
  left: 14px;
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 850;
}

.search-shell input {
  padding-right: 42px;
}

.search-symbol {
  position: absolute;
  right: 15px;
  color: var(--muted);
  font-size: 19px;
  transform: rotate(-18deg);
}

.field-error .input-shell {
  border-color: var(--danger);
  background: var(--danger-soft);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 11%, transparent);
}

.field-error small {
  color: var(--danger);
  font-weight: 700;
}

.advanced-filters {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.advanced-filters summary {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  padding: 17px 2px 8px;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.advanced-filters summary::-webkit-details-marker {
  display: none;
}

.advanced-filters summary > span:first-child::before {
  display: inline-block;
  width: 20px;
  color: var(--blue-600);
  content: "＋";
  font-size: 16px;
}

.advanced-filters[open] summary > span:first-child::before {
  content: "−";
}

.summary-hint {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.advanced-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
  padding: 12px 0 4px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.primary-button {
  display: inline-flex;
  min-width: 160px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  box-shadow: 0 9px 22px rgba(14, 60, 89, 0.2);
  color: #fff;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 850;
  transition: 150ms ease;
}

.primary-button:hover {
  box-shadow: 0 12px 28px rgba(14, 60, 89, 0.28);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.primary-button span {
  font-size: 19px;
  transform: rotate(-18deg);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  padding: 10px 2px;
  font-size: 12px;
  font-weight: 750;
}

.form-note {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.results-section {
  margin-top: 38px;
  scroll-margin-top: 20px;
}

.initial-state,
.loading-state,
.error-state {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  padding: 34px;
}

.initial-visual {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 26px 26px 26px 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--blue-600);
  font-size: 28px;
  font-weight: 900;
}

.initial-visual i {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 25px;
  height: 25px;
  border: 5px solid var(--page);
  border-radius: 50%;
  background: var(--gold-500);
}

.initial-state h2,
.error-state h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.initial-state p,
.error-state p,
.loading-state p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.loading-state {
  flex-direction: column;
  text-align: center;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

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

.error-state > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 25px;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

.results-content {
  padding-top: 12px;
}

.eligibility-notice {
  margin: -6px 0 18px;
  border: 1px solid color-mix(in srgb, var(--gold-500) 38%, var(--line));
  border-radius: 13px;
  background: var(--gold-soft);
  color: var(--muted-strong);
  padding: 11px 14px;
  font-size: 11px;
  line-height: 1.8;
}

.eligibility-notice strong {
  color: var(--ink);
}

.results-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.results-toolbar h2 strong {
  color: var(--blue-600);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 10px;
  white-space: nowrap;
}

.sort-control select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-bottom: 18px;
}

.summary-grid article {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 15px;
}

.summary-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 850;
}

.summary-icon.blue {
  background: var(--blue-soft);
  color: var(--blue-600);
}

.summary-icon.gold {
  background: var(--gold-soft);
  color: #99701a;
}

.summary-icon.green {
  background: var(--success-soft);
  color: var(--success);
}

.summary-grid article div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-grid small,
.cutoff-block small,
.margin-block small {
  color: var(--muted);
  font-size: 10px;
}

.summary-grid strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
}

.filter-chip button {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 0;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 135px 130px;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 21px 22px;
  transition: 150ms ease;
}

.result-card::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue-600);
  content: "";
  opacity: 0.72;
}

.result-card:hover {
  border-color: color-mix(in srgb, var(--blue-600) 30%, var(--line));
  box-shadow: 0 15px 34px rgba(9, 45, 70, 0.1);
  transform: translateY(-1px);
}

.result-main {
  min-width: 0;
}

.result-university {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 7px;
}

.result-identity {
  min-width: 0;
  flex: 1;
}

.rank-badge {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 850;
}

.result-university h3,
.result-university-name {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
}

.result-college-name {
  margin: 4px 0 0;
  color: var(--blue-700);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
}

.result-department-name {
  margin: 3px 0 0;
  color: var(--muted-strong);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
}

.result-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 850;
}

.channel-free {
  border: 1px solid color-mix(in srgb, var(--success) 28%, transparent);
  background: var(--success-soft);
  color: var(--success);
}

.channel-parallel {
  border: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent);
  background: var(--gold-soft);
  color: #8a6414;
}

html[data-theme="dark"] .channel-parallel {
  color: var(--gold-300);
}

.channel-evening {
  border: 1px solid color-mix(in srgb, var(--blue-600) 32%, transparent);
  background: var(--blue-soft);
  color: var(--blue-600);
}

.channel-private {
  border: 1px solid color-mix(in srgb, #7e57c2 32%, transparent);
  background: color-mix(in srgb, #7e57c2 13%, var(--surface));
  color: #6741ad;
}

.channel-competitive {
  border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent);
  background: var(--danger-soft);
  color: var(--danger);
}

.channel-special {
  border: 1px solid color-mix(in srgb, var(--gold-500) 46%, var(--line));
  background: var(--gold-soft);
  color: #765300;
}

.channel-suspended {
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  background: var(--danger-soft);
  color: var(--danger);
}

.channel-new-program {
  border: 1px solid color-mix(in srgb, var(--success) 34%, transparent);
  background: var(--success-soft);
  color: var(--success);
}

.informational-card {
  border-color: color-mix(in srgb, var(--gold-500) 44%, var(--line));
}

.suspended-card {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
}

.suspended-admission-note {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
  background: var(--danger-soft);
}

.special-admission-note {
  margin: 10px 0 0;
  border: 1px solid color-mix(in srgb, var(--gold-500) 34%, var(--line));
  border-radius: 11px;
  background: var(--gold-soft);
  color: var(--ink);
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.75;
}

html[data-theme="dark"] .channel-private {
  color: #c8afff;
}

html[data-theme="dark"] .channel-special {
  color: var(--gold-300);
}

html[data-theme="dark"] .channel-evening {
  color: #8acced;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.result-tags span {
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
}

.result-tags .source-page {
  border: 1px solid var(--line);
  background: transparent;
}

.result-tags .parallel-rule {
  background: var(--gold-soft);
  color: #8a6414;
}

html[data-theme="dark"] .result-tags .parallel-rule {
  color: var(--gold-300);
}

.result-tags .evening-rule {
  background: var(--blue-soft);
  color: var(--blue-600);
}

.result-tags .evening-reduction,
.result-tags .evening-gender {
  background: var(--danger-soft);
  color: var(--danger);
}

html[data-theme="dark"] .result-tags .evening-rule {
  color: #8acced;
}

.cutoff-block,
.margin-block,
.fee-block {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  text-align: center;
}

.private-card {
  grid-template-columns: minmax(0, 1fr) 185px 185px;
}

.private-card.has-fee-details {
  grid-template-columns: minmax(0, 1fr) minmax(325px, 345px) 170px;
}

.private-card.has-two-fee-details {
  grid-template-columns: minmax(0, 1fr) minmax(255px, 300px) minmax(255px, 300px);
}

.government-fee-card {
  grid-template-columns: minmax(0, 1fr) 125px 120px 180px;
  gap: 14px;
}

.government-informational-card {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 235px);
}

.new-program-block {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid var(--line);
  padding: 12px;
  text-align: center;
}

.new-program-block small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.new-program-block strong {
  color: var(--navy-700);
  font-size: 16px;
  font-weight: 950;
}

.official-source-link {
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="dark"] .channel-new-program,
html[data-theme="dark"] .official-source-link {
  color: #8acced;
}

html[data-theme="dark"] .new-program-block strong {
  color: #8acced;
}

.fee-block {
  gap: 3px;
}

.fee-block small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.fee-block strong {
  color: var(--navy-700);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.6;
}

html[data-theme="dark"] .fee-block strong {
  color: #8acced;
}

.private-cutoff {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  line-height: 1.45;
}

.private-cutoff small {
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 800;
}

.private-cutoff b {
  color: var(--success);
  font-size: 13px;
  font-weight: 950;
}

html[data-theme="dark"] .private-cutoff b {
  color: #71d8b2;
}

.fee-tier-list {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  color: #000;
  font-size: clamp(9.5px, 2.8vw, 12.5px);
  font-style: normal;
  font-weight: 950;
  line-height: 1.45;
}

.fee-tier {
  display: flex;
  width: 100%;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #d8dee5;
  border-radius: 10px;
  background: #f7f9fb;
  padding: 6px 8px;
  color: #000;
  direction: rtl;
  unicode-bidi: isolate;
  white-space: nowrap;
}

html[dir="ltr"] .fee-tier {
  direction: ltr;
}

.fee-tier-range,
.fee-tier-amount {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #000;
  direction: rtl;
  font-weight: 950;
  unicode-bidi: isolate;
}

.fee-tier bdi {
  color: #000;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.fee-tier-discount,
.fee-tier-discount-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #000;
  direction: rtl;
  unicode-bidi: isolate;
}

.fee-rule-list {
  display: flex;
  width: 100%;
  max-width: 360px;
  flex-direction: column;
  gap: 5px;
  margin-top: 7px;
  color: #111;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.65;
}

.fee-rule-line {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  unicode-bidi: plaintext;
}

.fee-rule-line bdi {
  color: #000;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.fee-tier-separator {
  color: #4b5563;
}

html[data-theme="dark"] .fee-tier-list,
html[data-theme="dark"] .fee-tier,
html[data-theme="dark"] .fee-tier bdi,
html[data-theme="dark"] .fee-tier-range,
html[data-theme="dark"] .fee-tier-amount,
html[data-theme="dark"] .fee-tier-discount,
html[data-theme="dark"] .fee-tier-discount-wrap,
html[data-theme="dark"] .fee-rule-list,
html[data-theme="dark"] .fee-rule-line bdi {
  color: #fff;
}

html[data-theme="dark"] .fee-tier {
  border-color: #526171;
  background: #162433;
}

html[data-theme="dark"] .fee-tier-separator {
  color: #cbd5e1;
}

.cutoff-block strong {
  margin-top: 3px;
  color: var(--navy-700);
  font-size: 20px;
  font-weight: 950;
}

.cutoff-block > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

html[data-theme="dark"] .cutoff-block strong {
  color: #8acced;
}

.margin-block strong {
  margin-top: 3px;
  color: var(--success);
  font-size: 15px;
  font-weight: 900;
}

.margin-block span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.load-more {
  display: flex;
  min-width: 220px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 22px auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 800;
}

.load-more span {
  color: var(--muted);
  font-size: 9px;
}

.empty-results {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  padding: 44px 20px;
  text-align: center;
}

.empty-results > div {
  color: var(--muted);
  font-size: 38px;
  transform: rotate(-18deg);
}

.empty-results h3 {
  margin: 12px 0 5px;
}

.empty-results p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-results button {
  margin-top: 15px;
  border: 0;
  background: transparent;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
}

.source-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 38px;
  margin-bottom: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 20px 22px;
}

.source-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-600);
  font-family: Georgia, serif;
  font-weight: 900;
}

.source-note h2 {
  margin: 0 0 5px;
  font-size: 13px;
}

.source-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.source-note a {
  color: var(--blue-600);
  font-weight: 800;
  text-underline-offset: 3px;
}

html[data-theme="dark"] .source-note a {
  color: #8acced;
}

.contact-section {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 34px;
  overflow: hidden;
  margin: 0 auto 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 20%, rgba(63, 141, 180, 0.3), transparent 34%),
    linear-gradient(125deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow-lg);
  color: #fff;
  padding: clamp(24px, 4vw, 42px);
}

.contact-section::after {
  position: absolute;
  bottom: -95px;
  left: -70px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.018);
  content: "";
  pointer-events: none;
}

.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-copy .section-kicker {
  color: var(--gold-300);
}

.contact-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.contact-copy > p:last-child {
  max-width: 540px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.9;
}

.social-links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.social-link {
  display: grid;
  min-height: 86px;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 14px;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

.social-mark {
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 13px;
}

.social-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-link > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.social-link small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
}

.social-link strong {
  color: #fff;
  font-size: 13px;
}

.social-arrow {
  color: var(--gold-300);
  font-size: 15px;
  transition: transform 150ms ease;
}

.social-link:hover .social-arrow {
  transform: translate(-2px, -2px);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--navy-950);
  color: #fff;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer-inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 118px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 12px 12px 12px 4px;
  font-size: 18px;
}

.footer-brand strong {
  font-size: 12px;
}

.footer-brand span:last-child,
.footer-notes p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
}

.footer-notes {
  display: flex;
  max-width: 560px;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.footer-notes p {
  margin: 0;
  line-height: 1.8;
  text-align: left;
}

.footer-notes .copyright {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.privacy-link {
  color: var(--gold-300);
  font-size: 11px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.footer-inner > p {
  max-width: 480px;
  margin: 0;
  text-align: left;
  line-height: 1.8;
}

.noscript-message {
  position: fixed;
  z-index: 99;
  right: 20px;
  bottom: 20px;
  left: 20px;
  border-radius: 12px;
  background: var(--danger);
  color: #fff;
  padding: 14px;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 980px) {
  .filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advanced-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .form-note {
    display: none;
  }

  .result-card {
    grid-template-columns: minmax(0, 1fr) 110px 105px;
    gap: 12px;
  }

  .private-card {
    grid-template-columns: minmax(0, 1fr) 145px 145px;
  }

  .private-card.has-fee-details {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 325px) 145px;
  }

  .private-card.has-two-fee-details {
    grid-template-columns: minmax(0, 1fr) minmax(235px, 270px) minmax(235px, 270px);
  }

  .government-fee-card {
    grid-template-columns: minmax(0, 1fr) 100px 95px 145px;
    gap: 10px;
  }

  .government-informational-card {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 205px);
  }
}

@media (max-width: 720px) {
  .header-inner,
  .hero-content,
  .search-wrap,
  .results-section,
  .source-note,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small,
  #themeLabel {
    display: none;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .hero {
    min-height: 355px;
  }

  .hero-content {
    padding: 48px 0 114px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .hero p {
    margin-top: 16px;
    font-size: 14px;
  }

  .hero-stats {
    gap: 8px 18px;
  }

  .app-download-panel {
    grid-template-columns: 1fr;
    margin-top: 19px;
    padding: 18px;
  }

  .app-platform-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .app-platform-button {
    min-width: 0;
    width: 100%;
  }

  .hero-stats span:last-child {
    display: none;
  }

  .search-wrap {
    margin-top: -68px;
  }

  .search-card {
    border-radius: 20px;
    padding: 22px 17px;
  }

  .search-card-head {
    margin-bottom: 22px;
  }

  .verified-badge {
    display: none;
  }

  .filters-grid,
  .advanced-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .primary-button {
    width: 100%;
  }

  .initial-state,
  .loading-state,
  .error-state {
    min-height: 220px;
    flex-direction: column;
    padding: 30px 22px;
    text-align: center;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .sort-control {
    width: 100%;
    justify-content: space-between;
  }

  .sort-control select {
    flex: 1;
  }

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

  .summary-grid article {
    min-height: 68px;
  }

  .result-card {
    grid-template-columns: 1fr 1fr;
    gap: 13px 0;
    padding: 17px 17px 15px;
  }

  .private-card.has-fee-details,
  .private-card.has-two-fee-details {
    grid-template-columns: 1fr;
  }

  .private-card.has-fee-details .fee-block {
    grid-column: 1 / -1;
  }

  .fee-tier-list {
    font-size: 13px;
  }

  .fee-rule-list {
    max-width: 520px;
    font-size: 12px;
  }

  .government-fee-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


  .government-informational-card {
    grid-template-columns: 1fr;
  }

  .result-main {
    grid-column: 1 / -1;
  }

  .result-university h3 {
    font-size: 20px;
  }

  .result-college-name {
    font-size: 17px;
  }

  .result-department-name {
    font-size: 15px;
  }

  .cutoff-block,
  .margin-block,
  .fee-block {
    min-height: 55px;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding-top: 11px;
  }

  .new-program-block {
    grid-column: 1 / -1;
    min-height: 72px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .margin-block {
    border-right: 1px solid var(--line);
  }

  .fee-block:last-child {
    border-right: 1px solid var(--line);
  }

  .source-note {
    margin-top: 30px;
    margin-bottom: 24px;
  }

  .contact-section {
    width: min(100% - 28px, 1180px);
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 36px;
    padding: 26px 20px;
  }

  .contact-copy h2 {
    font-size: 23px;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .social-link {
    min-height: 74px;
  }

  .footer-inner {
    min-height: 135px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .footer-notes {
    align-items: flex-start;
  }

  .footer-notes p {
    text-align: right;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    font-size: 10px;
  }

  .hero-stats strong {
    font-size: 15px;
  }

  .app-download-copy {
    align-items: flex-start;
  }

  .app-download-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .app-platform-actions {
    grid-template-columns: 1fr;
  }

  .app-platform-button {
    min-height: 58px;
  }

  .install-dialog-body {
    padding-inline: 14px;
  }
}

/* V39 planning, special admission channels, vocational filters and department guide */
.saved-nav-button{min-height:42px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--navy);display:inline-flex;align-items:center;gap:7px;padding:7px 10px;font:inherit;font-size:.84rem;font-weight:800;cursor:pointer}.saved-nav-button>span:first-child{color:#d83f67;font-size:1.25rem;line-height:1}.flow-nav-button>span:first-child{color:var(--teal)}.saved-nav-button b{min-width:22px;min-height:22px;border-radius:999px;background:color-mix(in srgb,var(--teal) 12%,transparent);display:grid;place-items:center;font-size:.72rem}.data-update-note{margin:18px 0 0;padding:13px 15px;border:1px solid #c9e5dc;border-inline-start:4px solid #158467;border-radius:12px;background:#f0faf6;color:#24564a;line-height:1.8;font-size:.88rem}[data-theme=dark] .data-update-note{background:#12372f;border-color:#2f6e5e;color:#c8efe3}.vocational-specialty-field:not([hidden]){animation:v38FieldReveal 180ms ease-out}@keyframes v38FieldReveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.result-card-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid var(--line)}.result-card-actions button{min-height:36px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 11px;font:inherit;font-size:.78rem;font-weight:800;cursor:pointer}.result-card-actions button:hover{border-color:var(--teal);color:var(--teal)}.favorite-button>span:first-child{color:#d83f67;font-size:1rem}.favorite-button.is-saved{border-color:#efb0c0;background:#fff4f7;color:#b92750}.flow-add-button.is-saved{border-color:#91d0c0;background:#effaf7;color:#116950}[data-theme=dark] .favorite-button.is-saved{background:#481e2c;color:#ffc2d2}[data-theme=dark] .flow-add-button.is-saved{background:#123c32;color:#a9ead9}.updated-cutoff-tag{background:#eaf7f1!important;color:#117154!important;border-color:#9fd6c6!important;text-decoration:none;font-weight:800}
.planning-strip{width:min(1180px,calc(100% - 32px));margin:26px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.planning-strip article{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-sm)}.planning-strip article>span{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--teal) 12%,transparent);color:var(--teal);font-weight:900;font-size:1.12rem}.planning-strip strong{color:var(--navy)}.planning-strip p{margin:5px 0 0;color:var(--muted);font-size:.82rem;line-height:1.7}
.saved-dialog,.department-dialog{width:min(760px,calc(100% - 24px));max-height:min(86vh,860px);border:0;border-radius:22px;padding:0;background:var(--surface);color:var(--text);box-shadow:0 24px 80px rgb(4 30 45/30%);overflow:auto}.department-dialog{width:min(900px,calc(100% - 24px))}.saved-dialog::backdrop,.department-dialog::backdrop{background:rgb(3 24 38/68%);backdrop-filter:blur(3px)}.dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 14px;background:color-mix(in srgb,var(--surface) 94%,transparent);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.dialog-head h2{margin:2px 0 0;color:var(--navy);font-size:1.2rem}.dialog-close{width:38px;height:38px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:1.45rem;cursor:pointer}.dialog-intro{margin:0;padding:16px 22px 8px;color:var(--muted);line-height:1.75}.saved-list{display:grid;gap:9px;padding:10px 22px 22px}.saved-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft)}.saved-item strong{display:block;color:var(--navy);font-size:.88rem;line-height:1.6}.saved-item small{display:block;margin-top:3px;color:var(--muted)}.saved-item button{border:0;background:transparent;color:var(--muted);cursor:pointer;font:inherit;font-weight:900}.saved-rank{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;background:var(--navy);color:#fff;font-size:.75rem;font-weight:900}.dialog-empty{margin:0 22px 22px;padding:24px;border:1px dashed var(--line);border-radius:13px;text-align:center;color:var(--muted)}.flow-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 22px}.flow-progress span{padding:10px;border-radius:11px;background:var(--surface-soft);text-align:center;color:var(--muted);font-size:.78rem}.flow-progress b{color:var(--navy);font-size:1rem}.flow-progress .complete{background:#e8f7f1;color:#12684f}.drag-handle{color:var(--muted);cursor:grab}.flow-item{grid-template-columns:auto auto minmax(0,1fr) auto}.move-actions{display:flex;align-items:center;gap:3px}.move-actions button{width:29px;height:29px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.flow-actions{position:sticky;bottom:0;display:flex;justify-content:space-between;gap:10px;padding:14px 22px 20px;background:var(--surface);border-top:1px solid var(--line)}.secondary-button{border:1px solid var(--teal);border-radius:11px;background:var(--teal);color:#fff;padding:9px 14px;font:inherit;font-weight:800;cursor:pointer}.danger-text-button{border:0;background:transparent;color:#bd2c49;font:inherit;font-weight:800;cursor:pointer}
.flow-actions{flex-wrap:wrap}.saved-export-actions{justify-content:flex-start}.pdf-export-button{border-color:var(--navy);background:var(--navy)}.secondary-button:disabled{cursor:not-allowed;opacity:.5}.pdf-export-button::before{content:"PDF";display:inline-grid;min-width:27px;min-height:20px;margin-inline-end:7px;place-items:center;border-radius:5px;background:rgb(255 255 255/18%);font-size:.62rem;font-weight:950;letter-spacing:.03em}.flow-actions .danger-text-button{margin-inline-start:auto}
#departmentProfile{padding:18px 22px 26px}.profile-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:13px 15px;border-radius:13px;background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 13%,var(--surface)),var(--surface-soft));color:var(--navy)}.profile-summary span{color:var(--teal);font-weight:800}.profile-section{margin-top:18px}.profile-section h3{margin:0 0 8px;color:var(--navy);font-size:1rem}.profile-section p{margin:0;color:var(--muted);line-height:1.9}.profile-section ul{margin:0;padding-inline-start:20px;color:var(--muted);line-height:1.9}.profile-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.salary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.salary-grid article{padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.salary-grid strong{color:var(--teal)}.salary-grid p{margin-top:6px;font-size:.84rem}.profile-note{margin-top:18px;padding:11px 13px;border-radius:10px;background:#fff8e7;color:#745510;font-size:.82rem;line-height:1.8}[data-theme=dark] .profile-note{background:#3c3218;color:#f5d98b}.profile-sources{padding-top:15px;border-top:1px solid var(--line)}.profile-sources a{display:block;width:fit-content;margin-top:7px;color:var(--teal);font-size:.82rem;font-weight:800;text-decoration:none}.profile-sources a:hover{text-decoration:underline}
.parallel-guide{grid-column:1/-1;padding:15px;border:1px solid #e7c36d;border-inline-start:5px solid #d69c20;border-radius:15px;background:#fff9e9;color:#604b19}.parallel-guide[hidden]{display:none}.parallel-guide-head{display:flex;align-items:flex-start;gap:11px}.parallel-guide-head>span{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:#e6a928;color:#fff;font-weight:950}.parallel-guide-head strong{display:block;color:#49370d}.parallel-guide-head small{display:block;margin-top:3px;line-height:1.7}.parallel-rule-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}.parallel-rule-grid span{padding:10px;border:1px solid #ead9ac;border-radius:10px;background:rgb(255 255 255/68%);font-size:.78rem;line-height:1.7}.parallel-rule-grid b{display:block;color:#b25c13;font-size:.9rem}.parallel-guide>a{display:block;width:fit-content;margin-top:10px;color:#9c560e;font-size:.78rem;font-weight:850;text-decoration:none}.parallel-guide>a:hover{text-decoration:underline}[data-theme=dark] .parallel-guide{background:#3d3218;border-color:#806a34;color:#f2dfaa}[data-theme=dark] .parallel-guide-head strong{color:#fff0c8}[data-theme=dark] .parallel-rule-grid span{background:rgb(0 0 0/14%);border-color:#705d2c}[data-theme=dark] .parallel-rule-grid b,[data-theme=dark] .parallel-guide>a{color:#f3c15e}
.channel-guide{grid-column:1/-1;padding:15px;border:1px solid #a9d8ce;border-inline-start:5px solid var(--teal);border-radius:15px;background:#f2fbf8;color:#24564a}.channel-guide[hidden]{display:none}.channel-guide-head{display:flex;align-items:flex-start;gap:11px}.channel-guide-head>span{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:10px;background:var(--teal);color:#fff}.channel-guide-head strong{display:block;color:var(--navy)}.channel-guide-head small{display:block;margin-top:3px;line-height:1.75}.channel-guide-head small>span,.channel-caution>span{display:block}.channel-guide-head small>span+span,.channel-caution>span+span{margin-top:5px}.channel-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.channel-rule-grid section{padding:11px 13px;border:1px solid #c9e5dc;border-radius:11px;background:rgb(255 255 255/72%)}.channel-rule-grid strong{color:var(--teal)}.channel-rule-grid ul{margin:6px 0 0;padding-inline-start:19px;font-size:.8rem;line-height:1.8}.channel-caution{margin:10px 0 0;padding:9px 11px;border-radius:9px;background:#fff8e7;color:#745510;font-size:.78rem;line-height:1.75}.channel-guide>a{display:block;width:fit-content;margin-top:9px;color:var(--teal);font-size:.78rem;font-weight:850;text-decoration:none}.channel-guide>a:hover{text-decoration:underline}.channel-benefit-panel{margin-top:10px;padding:10px 12px;border:1px solid #a9d8ce;border-radius:11px;background:#f2fbf8;color:#24564a;font-size:.78rem;line-height:1.7}.channel-benefit-panel strong{display:block;color:var(--teal);margin-bottom:2px}.result-tags .announcement-note{flex-basis:100%;border-color:#a9d8ce;background:#f2fbf8;color:#24564a;white-space:normal;line-height:1.7}.eligibility-notice hr{border:0;border-top:1px solid currentColor;opacity:.18;margin:10px 0}.channel-private+.channel-special{margin-inline-start:2px}[data-theme=dark] .channel-guide,[data-theme=dark] .channel-benefit-panel{background:#12372f;border-color:#2f6e5e;color:#c8efe3}[data-theme=dark] .channel-rule-grid section{background:rgb(0 0 0/14%);border-color:#2f6e5e}[data-theme=dark] .channel-caution{background:#3c3218;color:#f5d98b}[data-theme=dark] .result-tags .announcement-note{background:#12372f;border-color:#2f6e5e;color:#c8efe3}
.salary-range-label{display:block;margin-top:9px;color:var(--muted);font-size:.72rem;font-weight:750}.salary-range{display:flex;flex-wrap:wrap;align-items:center;gap:.25em;margin-top:3px;color:var(--navy);font-size:1.05rem;line-height:1.55}.salary-range bdi{unicode-bidi:isolate;font-variant-numeric:tabular-nums}.salary-confidence{margin:10px 0 0;padding:9px 11px;border-radius:9px;background:var(--gold-soft);color:var(--muted-strong);font-size:.78rem;line-height:1.75}.salary-grid article p+p{padding-top:7px;border-top:1px dashed var(--line)}
.base-fee-note{margin:8px 0 0;padding:7px 8px;border-radius:8px;background:var(--gold-soft);color:var(--muted-strong);font-size:.7rem;line-height:1.55}
.first-graduate-confirmation{grid-column:1/-1;display:flex;align-items:flex-start;gap:12px;padding:15px 17px;border:2px solid #6dbda9;border-radius:15px;background:#eefaf6;color:#24564a;cursor:pointer}.first-graduate-confirmation[hidden]{display:none}.first-graduate-confirmation input{width:22px;height:22px;flex:0 0 22px;margin-top:2px;accent-color:var(--teal)}.first-graduate-confirmation strong{display:block;color:var(--navy);font-size:.94rem}.first-graduate-confirmation small{display:block;margin-top:5px;line-height:1.75}.first-graduate-confirmation.is-invalid{border-color:#d84d68;background:#fff1f4}.first-graduate-confirmation.is-invalid strong{color:#a32642}[data-theme=dark] .first-graduate-confirmation{background:#12372f;border-color:#438f7c;color:#c8efe3}[data-theme=dark] .first-graduate-confirmation.is-invalid{background:#481e2c;border-color:#d8647b}
.vocational-first-card{border-inline-start:5px solid #16805f}.vocational-first-card .result-main{grid-column:1/-1}.vocational-first-card .result-university-name{font-size:1.06rem}.vocational-first-card .first-route-identity{display:grid;gap:4px}.vocational-first-card .first-route-identity small{color:var(--muted);font-weight:750}.first-route-cutoff{grid-column:span 1;min-width:170px}.first-route-cutoff strong{color:#13735a}.first-route-quota{display:inline-flex;align-items:center;width:fit-content;margin-top:7px;padding:5px 9px;border-radius:999px;background:#e7f7f1;color:#12684f;font-size:.72rem;font-weight:850}.vocational-first-card .special-admission-note{border-color:#9fd6c6;background:#effaf7;color:#24564a}[data-theme=dark] .vocational-first-card .special-admission-note{background:#12372f;border-color:#2f6e5e;color:#c8efe3}[data-theme=dark] .first-route-quota{background:#123c32;color:#a9ead9}
@media(max-width:980px){.parallel-rule-grid{grid-template-columns:1fr 1fr}.channel-rule-grid{grid-template-columns:1fr}}
@media(max-width:820px){.planning-strip{grid-template-columns:1fr}.header-actions{gap:6px}.saved-nav-button{padding:7px 8px}.saved-nav-button>span:nth-child(2){display:none}.profile-two-columns,.salary-grid{grid-template-columns:1fr;gap:0}}@media(max-width:560px){.parallel-rule-grid{grid-template-columns:1fr}.flow-progress{grid-template-columns:1fr}.dialog-head,.dialog-intro,.saved-list,#departmentProfile{padding-inline:15px}.flow-dialog{width:calc(100% - 12px)}.flow-item{grid-template-columns:auto minmax(0,1fr) auto;gap:7px;padding:9px 7px}.flow-item .drag-handle{display:none}.flow-item .saved-rank{display:grid}.flow-item strong{font-size:.8rem}.flow-item small{font-size:.7rem}.move-actions{gap:1px}.move-actions button{width:27px;height:31px}.result-card-actions button{flex:1 1 calc(33.333% - 6px);padding-inline:6px}.planning-strip{width:min(100% - 20px,1180px)}.flow-actions{padding-inline:15px}.flow-actions .secondary-button{flex:1 1 calc(50% - 6px)}.flow-actions .danger-text-button{flex:1 1 100%;margin-inline-start:0;padding:8px}}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .hero,
  .search-wrap,
  .theme-toggle,
  .load-more,
  footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .results-section {
    width: 100%;
    margin: 0;
  }

  .result-card {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* Qabole trilingual brand system */
.header-inner {
  min-height: 78px;
}

.brand-logo-frame,
.footer-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(2, 20, 34, 0.18);
  padding: 3px 7px;
}

.brand-logo {
  display: block;
  width: 140px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.footer-logo {
  display: block;
  width: 118px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  transition: 150ms ease;
}

.language-toggle:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.language-icon {
  display: inline-grid;
  min-width: 24px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  background: rgba(241, 214, 147, 0.15);
  color: var(--gold-300);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.04em;
}

html[dir="ltr"] body {
  font-family: "Segoe UI", Inter, Arial, sans-serif;
}

html[dir="ltr"] .hero-grid {
  mask-image: linear-gradient(to right, #000 0, transparent 75%);
}

html[dir="ltr"] .hero::before {
  right: -80px;
  left: auto;
}

html[dir="ltr"] .input-shell select {
  padding-right: 36px;
  padding-left: 14px;
}

html[dir="ltr"] .select-shell::after {
  right: 14px;
  left: auto;
}

html[dir="ltr"] .average-shell input {
  padding-right: 48px;
  padding-left: 14px;
  text-align: left;
}

html[dir="ltr"] .input-suffix {
  right: 14px;
  left: auto;
}

html[dir="ltr"] .search-shell input {
  padding-right: 14px;
  padding-left: 42px;
}

html[dir="ltr"] .search-symbol {
  right: auto;
  left: 15px;
}

html[dir="ltr"] .form-note {
  margin-right: 0;
  margin-left: auto;
}

html[dir="ltr"] .result-card::before {
  right: auto;
  left: 0;
}

html[dir="ltr"] .cutoff-block,
html[dir="ltr"] .margin-block,
html[dir="ltr"] .fee-block {
  border-right: 0;
  border-left: 1px solid var(--line);
}

html[dir="ltr"] .result-university h3,
html[dir="ltr"] .result-college-name,
html[dir="ltr"] .result-department-name {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .footer-notes {
  align-items: flex-start;
}

html[dir="ltr"] .footer-notes p {
  text-align: right;
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-logo-frame {
    border-radius: 11px;
    padding: 3px 6px;
  }

  .brand-logo {
    width: 110px;
    max-height: 38px;
  }

  #languageLabel {
    display: none;
  }

  .language-toggle {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  html[dir="ltr"] .margin-block,
  html[dir="ltr"] .fee-block:last-child {
    border-right: 0;
    border-left: 1px solid var(--line);
  }

  html[dir="ltr"] .footer-notes p {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 94px;
  }

  .header-actions {
    gap: 5px;
  }

  .fee-tier-list {
    font-size: clamp(9.5px, 2.8vw, 11px);
  }

  .fee-tier {
    min-height: 29px;
    gap: 2px;
    padding: 5px 4px;
  }

  .fee-tier-range,
  .fee-tier-amount {
    gap: 2px;
  }

  .fee-rule-list {
    font-size: 11px;
  }
}
