:root {
  --bg: #F4FAFF;
  --surface: #FFFFFF;
  --surface-subtle: #EDF6FE;
  --surface-hover: #E5F2FD;
  --border: #D5E6F5;
  --border-strong: #B6D3EE;
  --text: #12304D;
  --text-secondary: #415D78;
  --text-muted: #56708A;
  --accent: #166BBA;
  --accent-hover: #115596;
  --accent-soft: #E6F2FC;
  --accent-text: #115596;
  --mint-bg: #E3F6EE;
  --mint-text: #0F6A4C;
  --toefl-bg: #FEF3C7;
  --toefl-border: #F59E0B;
  --toefl-text: #92400E;
  --danger-bg: #FDECEF;
  --danger-text: #9F1239;
  --shadow-sm: 0 1px 2px rgba(18, 48, 77, 0.05);
  --shadow-md: 0 12px 32px -16px rgba(18, 48, 77, 0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

html[data-theme="dark"] {
  --bg: #0D1724;
  --surface: #132133;
  --surface-subtle: #192B42;
  --surface-hover: #1E334E;
  --border: #253B56;
  --border-strong: #355275;
  --text: #EDF5FC;
  --text-secondary: #B7CBE0;
  --text-muted: #8FA7C1;
  --accent: #4DA3F5;
  --accent-hover: #74B8F8;
  --accent-soft: #18324F;
  --accent-text: #93C9FA;
  --mint-bg: #11352B;
  --mint-text: #6EE7B7;
  --toefl-bg: #3D2B0D;
  --toefl-border: #D97706;
  --toefl-text: #FCD34D;
  --danger-bg: #3B1520;
  --danger-text: #FDA4AF;
  --shadow-sm: none;
  --shadow-md: 0 20px 44px -16px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a[href], button:not(:disabled), select:not(:disabled), label[for] {
  cursor: pointer;
}

button:disabled, select:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

html[data-theme="dark"] .brand-mark {
  color: #0D1724;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.nav a:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 100ms var(--ease);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

html[data-theme="dark"] .btn-primary {
  color: #0D1724;
  font-weight: 600;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-subtle);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-subtle);
}

.btn-icon {
  width: 44px;
  padding: 0;
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-icon:hover:not(:disabled) {
  background: var(--surface-subtle);
}

.btn-icon-sm {
  width: 40px;
  min-height: 40px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
}

.btn-icon-sm:hover:not(:disabled) {
  background: var(--surface-subtle);
}

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

.mobile-menu-btn {
  display: none;
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 12px;
  gap: 4px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text);
}

.mobile-nav a:hover {
  background: var(--surface-subtle);
}

.hero {
  padding: 36px 0 24px;
}

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

.hero h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-sub {
  margin-top: 8px;
  color: var(--text-secondary);
  max-width: 640px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-mono);
}

.meta-link {
  color: var(--accent-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item-accent {
  background: var(--toefl-bg);
  border-color: var(--toefl-border);
}

.stat-item-accent .stat-val,
.stat-item-accent .stat-label {
  color: var(--toefl-text);
}

.stat-item-mint {
  background: var(--mint-bg);
  border-color: var(--mint-text);
}

.stat-item-mint .stat-val,
.stat-item-mint .stat-label {
  color: var(--mint-text);
}

.stat-val {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.search-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.toefl-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}

.seg-btn:hover {
  color: var(--text);
}

.seg-btn.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.seg-btn[data-toefl="yes"].active {
  background: var(--toefl-bg);
  color: var(--toefl-text);
  border-color: var(--toefl-border);
}

.seg-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.search-main {
  position: relative;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-main input {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.search-main input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field select,
.field input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
}

.filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
}

.filter-chip button {
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 15px;
  line-height: 1;
  color: inherit;
}

.instansi-section {
  padding: 8px 0 24px;
}

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

.section-head h2 {
  font-size: 18px;
  font-weight: 600;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.instansi-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.ins-card {
  flex: 0 0 auto;
  min-width: 210px;
  max-width: 240px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.ins-card:hover {
  border-color: var(--accent);
  background: var(--surface-subtle);
}

.ins-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ins-abbr {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ins-card.active .ins-abbr {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

html[data-theme="dark"] .ins-card.active .ins-abbr {
  color: #0D1724;
}

.ins-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ins-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ins-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.ins-meta-toefl {
  color: var(--toefl-text);
  font-weight: 500;
}

.toefl-summary {
  padding: 8px 0 28px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.summary-head h2 {
  font-size: 20px;
  font-weight: 600;
}

.summary-desc {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

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

.toefl-row {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.toefl-row:hover {
  border-color: var(--accent);
  background: var(--surface-subtle);
}

.toefl-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.toefl-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.toefl-row-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  white-space: nowrap;
}

.bar-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.toefl-row-rule {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.results-section {
  padding: 8px 0 48px;
}

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.results-head h2 {
  font-size: 20px;
  font-weight: 600;
}

.results-meta {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.state-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.state-box[hidden] {
  display: none;
}

.state-error {
  border-color: var(--danger-text);
  background: var(--danger-bg);
}

.state-title {
  font-size: 17px;
  font-weight: 600;
}

.state-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 520px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 150ms var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.card-inst {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
}

.card-loc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.card-quota {
  flex: 0 0 auto;
  text-align: right;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  min-width: 82px;
}

.card-quota strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.card-quota span {
  font-size: 11px;
  color: var(--text-muted);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tag-toefl {
  background: var(--toefl-bg);
  color: var(--toefl-text);
  border-color: var(--toefl-border);
}

.tag-str {
  background: var(--mint-bg);
  color: var(--mint-text);
  border-color: transparent;
}

.tag-pengadaan {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: transparent;
}

.tag-kode {
  font-family: var(--font-mono);
}

.card-metrics {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.metric small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.metric span {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.metric-gaji span {
  color: var(--mint-text);
}

.card-jurusan {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jur-pill {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

.card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-syarat-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}

.page-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-btn:hover:not(:disabled) {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

html[data-theme="dark"] .page-btn.active {
  color: #0D1724;
}

.page-ellipsis {
  padding: 0 6px;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 600;
  font-size: 15px;
}

.footer-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 620px;
}

.footer-note a,
.footer-links a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 23, 36, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-sheet {
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.modal-inst {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-text);
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.modal-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.modal-stat small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.modal-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-loc {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.modal-jur-btn {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.modal-jur-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-line;
}

.syarat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.syarat-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.syarat-item-toefl {
  background: var(--toefl-bg);
  border-color: var(--toefl-border);
}

.syarat-no {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.syarat-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--accent-text);
}

.syarat-item-toefl .syarat-status,
.syarat-item-toefl .syarat-text {
  color: var(--toefl-text);
}

.syarat-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toefl-bars,
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta {
    align-items: flex-start;
  }

  .filter-grid,
  .modal-stats {
    grid-template-columns: 1fr;
  }

  .toefl-bar {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .seg-btn {
    justify-content: space-between;
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-sheet {
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
