:root {
  --navy: #11143d;
  --navy-2: #252966;
  --ink: #16183e;
  --muted: #69708d;
  --purple: #6366e8;
  --purple-dark: #4d50c9;
  --lavender: #f0f0ff;
  --lavender-2: #e8e9ff;
  --orange: #ff7b05;
  --orange-soft: #fff0df;
  --line: #e2e4f1;
  --white: #fff;
  font-family: "Poppins", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8f9ff;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f8f9ff; }
.shell { max-width: 1280px; margin: 0 auto; padding: 16px 28px 72px; }
.announcement { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 31px; margin: 0 -28px 14px; padding: 7px 16px; color: #e3e5ff; background: var(--navy); font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.announcement-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #ff7b0524; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 38px; padding: 10px 13px 10px 10px; border: 1px solid #ffffff26; border-radius: 18px; background: linear-gradient(100deg, var(--navy), var(--navy-2)); box-shadow: 0 16px 38px #11143d26; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--white); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--white); color: var(--purple-dark); font-size: 12px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 5px 12px #00000020; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.03em; }
.brand small { display: block; color: #b9bce7; font-size: 10px; }
.mode-pill, .step { border: 1px solid #ffffff30; background: #ffffff14; border-radius: 999px; padding: 8px 13px; color: #eef0ff; font-size: 11px; }
.step { border-color: #dfe1ff; background: var(--lavender); color: var(--purple-dark); font-weight: 800; }
.hero { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: end; margin: 0 -28px 38px; padding: 52px 56px 48px; overflow: hidden; background: linear-gradient(118deg, var(--navy) 0%, #20245e 62%, #4f52c9 100%); }
.hero:after { content: ""; position: absolute; width: 360px; height: 360px; right: 10%; top: -220px; border: 1px solid #ffffff25; border-radius: 50%; box-shadow: 0 0 0 34px #ffffff0c, 0 0 0 68px #ffffff08; }
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 9px; color: #7779f0; font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #ffb05e; }
.hero h1 { max-width: 730px; margin: 0; color: var(--white); font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: -.065em; }
.hero-copy { max-width: 700px; margin: 20px 0 0; color: #d4d7f4; font-size: 15px; }
.trust-card { padding: 23px; border: 1px solid #ffffff50; border-radius: 20px; background: #ffffffee; box-shadow: 0 18px 45px #080a2a35; }
.trust-card span { display: block; color: var(--purple-dark); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.trust-card strong { display: block; margin: 9px 0; color: var(--ink); font-size: 18px; line-height: 1.32; }
.trust-card small { color: var(--muted); font-size: 11px; }
.workspace { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 15px 40px #25296610; }
.intake-panel { border-top: 4px solid var(--orange); }
.preview-panel { border-top: 4px solid var(--purple); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 25px; }
.profile-actions { display: flex; align-items: center; gap: 9px; }
.profile-edit { padding: 7px 10px; border: 1px solid #d8d9f3; border-radius: 8px; color: var(--purple-dark); background: #f5f5ff; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.profile-edit:hover:not(:disabled) { border-color: var(--purple); background: var(--lavender); }
.profile-edit:disabled { cursor: not-allowed; opacity: .45; }
.panel h2 { margin: 0; color: var(--ink); font-size: 22px; letter-spacing: -.045em; }
.panel label { display: block; margin-bottom: 9px; color: #3d416a; font-size: 12px; font-weight: 750; }
.panel textarea { width: 100%; height: 172px; resize: vertical; padding: 15px; border: 1px solid #d9dcef; border-radius: 13px; outline: none; color: var(--ink); font: inherit; font-size: 13px; background: #fcfcff; }
.panel textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px #6366e81a; }
.hint-row { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 21px; }
.hint-row span { padding: 6px 9px; border-radius: 999px; color: #626887; background: var(--lavender); font-size: 10px; }
.dropzone { min-height: 164px; border: 1.5px dashed #bcc1df; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; cursor: pointer; background: linear-gradient(135deg, #fbfbff, #f2f3ff); transition: .2s; }
.dropzone:hover, .dropzone.dragging { border-color: var(--purple); background: #f0f0ff; box-shadow: inset 0 0 0 1px #6366e833; }
.dropzone input { display: none; }
.drop-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 10px; color: var(--orange); background: var(--orange-soft); font-size: 24px; line-height: 1; }
.dropzone strong { color: var(--ink); font-size: 13px; }
.dropzone span { max-width: 330px; margin: 5px 0 12px; color: #858aa3; font-size: 10px; }
.secondary, .primary { border: 0; border-radius: 10px; padding: 10px 14px; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.secondary { color: var(--purple-dark); background: var(--lavender-2); }
.primary { color: var(--white); background: var(--purple); box-shadow: 0 8px 18px #6366e840; }
.primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.full { width: 100%; display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.privacy-note { margin: 12px 2px 0; color: #9297ad; font-size: 9px; }
.file-list { display: grid; gap: 7px; margin-top: 12px; }
.file-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: 10px; color: #59627e; background: #f5f6fc; font-size: 11px; }
.file-item button { border: 0; color: #aa6070; background: none; cursor: pointer; }
.empty-state { height: 365px; border: 1px solid #ececf7; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px; background: linear-gradient(145deg, #fbfbff, #f5f5ff); text-align: center; }
.empty-number { color: #d9daf4; font-size: 46px; font-weight: 900; letter-spacing: -.08em; }
.empty-state h3 { margin: 12px 0 5px; color: var(--ink); font-size: 16px; }
.empty-state p { max-width: 280px; margin: 0; color: #8790a9; font-size: 12px; }
.hidden { display: none !important; }
.confidence { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 11px; color: #656d8a; background: var(--lavender); font-size: 11px; }
.confidence strong { color: var(--purple-dark); }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.profile-field { padding: 12px; border: 1px solid #e9eaf5; border-radius: 11px; background: #fff; }
.profile-field span { display: block; color: #8990a9; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.profile-field strong { display: block; margin-top: 4px; color: #30365d; font-size: 12px; }
.profile-field-edit { display: grid; gap: 6px; }
.profile-field-edit input { width: 100%; padding: 6px 8px; border: 1px solid #cfd1ea; border-radius: 7px; outline: none; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }
.profile-field-edit input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px #6366e81a; }
.missing-box { margin-top: 14px; padding: 14px; border: 1px solid #ffd9af; border-radius: 11px; color: #895a25; background: #fff8ef; font-size: 11px; }
.results-section { margin: 42px -28px 0; padding: 34px 28px 38px; background: var(--lavender); border-top: 1px solid #e0e1fb; }
.results-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 17px; }
.results-header h2 { margin: 0; color: var(--ink); font-size: 27px; letter-spacing: -.045em; }
.results-header p:not(.eyebrow) { margin: 5px 0 0; color: #707894; font-size: 12px; }
.result-count { display: grid; place-items: center; min-width: 54px; height: 54px; border-radius: 16px; color: var(--white); background: var(--purple); font-size: 20px; font-weight: 850; box-shadow: 0 8px 18px #6366e83b; }
.results-grid { display: block; }
.empty-results { display: flex; align-items: center; gap: 20px; padding: 25px; border: 1px solid #e1e2f2; border-radius: 18px; background: rgba(255,255,255,.8); box-shadow: 0 10px 28px #2529660a; }
.empty-results-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; color: var(--purple-dark); background: var(--lavender-2); font-size: 28px; font-weight: 300; }
.empty-results h3 { margin: 0 0 5px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.035em; }
.empty-results p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.empty-results-points { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.empty-results-points span { padding: 6px 9px; border-radius: 999px; color: var(--purple-dark); background: var(--lavender); font-size: 9px; font-weight: 700; }

.result-card.selected { border-color: var(--purple); box-shadow: 0 0 0 3px #6366e81a, 0 10px 25px #25296614; }
.select-course { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 0 7px !important; color: var(--purple-dark) !important; font-size: 10px !important; font-weight: 800 !important; cursor: pointer; }
.select-course input { width: 15px; height: 15px; accent-color: var(--purple); cursor: pointer; }
.selection-bar { position: sticky; bottom: 20px; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 22px 0 -12px; padding: 14px 18px; border: 1px solid #d8d9f3; border-radius: 16px; background: #fff; box-shadow: 0 14px 35px #25296622; }
.selection-bar > div { display: grid; gap: 2px; }
.selection-bar strong { color: var(--ink); font-size: 13px; }
.selection-bar > div > span { color: var(--muted); font-size: 10px; }
.export-modal { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 22px; }
.export-modal.hidden { display: none !important; }
.export-dialog { position: relative; display: flex; flex-direction: column; width: min(980px, 100%); max-height: min(90vh, 920px); overflow: hidden; border: 1px solid #dfe1f2; border-radius: 24px; background: #f8f9ff; box-shadow: 0 30px 90px #11143d35; }
.export-header { display: flex; justify-content: space-between; align-items: start; padding: 24px 28px 18px; background: #fff; border-bottom: 1px solid #e8e9f4; }
.export-header h2 { margin: 0; color: var(--ink); font-size: 24px; letter-spacing: -.045em; }
.export-header p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.export-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 28px; background: #fff; }
.export-controls label { display: grid; gap: 6px; color: #59617d; font-size: 10px; font-weight: 800; }
.export-controls input { padding: 10px 11px; border: 1px solid #d8d9eb; border-radius: 9px; outline: none; color: var(--ink); background: #fcfcff; font: inherit; font-size: 11px; }
.export-controls input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px #6366e81a; }
.export-preview { overflow: auto; padding: 24px 28px; }
.export-cover { display: flex; align-items: center; gap: 17px; margin-bottom: 22px; padding: 22px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, var(--navy), var(--purple-dark)); }
.export-cover-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; color: var(--purple-dark); background: #fff; font-size: 13px; font-weight: 900; }
.export-cover .eyebrow { margin-bottom: 5px; color: #ffb05e; }
.export-cover h3 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.export-cover p:not(.eyebrow) { margin: 4px 0 0; color: #d6d8f3; font-size: 10px; }
.export-country { margin-bottom: 20px; }
.export-country-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.export-country-heading h4 { margin: 0; color: var(--ink); font-size: 15px; }
.export-country-heading span { padding: 5px 8px; border-radius: 999px; color: var(--purple-dark); background: #e5e6ff; font-size: 9px; font-weight: 800; }
.export-course { display: grid; grid-template-columns: 1fr auto; gap: 15px; margin-bottom: 9px; padding: 15px; border: 1px solid #e2e4f1; border-radius: 13px; background: #fff; }
.export-course strong { color: var(--purple-dark); font-size: 10px; }
.export-course h4 { margin: 4px 0; color: var(--ink); font-size: 13px; }
.export-course p { margin: 0; color: var(--muted); font-size: 10px; }
.export-course-finance { display: flex; align-items: start; gap: 14px; text-align: right; }
.export-course-finance span { color: #8a91aa; font-size: 9px; }
.export-course-finance b { color: var(--ink); font-size: 11px; }
.export-course-finance a { color: var(--purple-dark); font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.export-cautions { grid-column: 1 / -1; display: grid; gap: 3px; padding: 8px 10px; border-radius: 8px; color: #8a642f; background: #fff8ed; font-size: 9px; }
.export-cautions b { color: #a15d10; text-transform: uppercase; letter-spacing: .06em; }
.export-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 28px; border-top: 1px solid #e8e9f4; background: #fff; }

.result-card.exact { border-top: 3px solid var(--orange); }
.match-label { color: var(--purple-dark); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.result-card h3 { margin: 7px 0 3px; color: var(--ink); font-size: 15px; }
.result-card .course { min-height: 34px; color: #68718d; font-size: 11px; }
.caution-block { display: grid; gap: 5px; margin: 11px 0 12px; padding: 10px 11px; border: 1px solid #f3d6a9; border-radius: 10px; color: #8a642f; background: #fff8ed; font-size: 10px; }
.caution-block strong { color: #a15d10; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.caution-block span { line-height: 1.4; }
.detail-cautions { margin-top: 0; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.result-meta span { padding: 5px 8px; border-radius: 7px; color: #67718d; background: #f1f2fa; font-size: 9px; }
.result-card a { color: var(--purple-dark); font-size: 11px; font-weight: 800; text-decoration: none; }
.unlock-section { margin-top: 30px; border: 1px solid #f0d5b3; border-radius: 18px; background: #fffaf3; overflow: hidden; }
.unlock-toggle { display: flex; align-items: center; width: 100%; gap: 10px; padding: 18px 22px; border: 0; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.unlock-toggle:hover { background: #fff6e9; }
.unlock-toggle-kicker { color: #a66b29; font-size: 11px; font-weight: 800; }
.unlock-toggle strong { color: var(--purple-dark); font-size: 16px; }
.unlock-toggle-icon { display: grid; place-items: center; width: 25px; height: 25px; margin-left: auto; border-radius: 50%; color: #fff; background: var(--orange); font-size: 19px; line-height: 1; transition: transform .2s; }
.unlock-toggle.open .unlock-toggle-icon { transform: rotate(45deg); }
.unlock-panel { padding: 0 22px 22px; }
.unlock-intro { margin: 0 0 15px; color: #8b7b61; font-size: 11px; }
.guidance-country { margin-top: 14px; }
.guidance-country-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; color: var(--ink); font-size: 12px; }
.guidance-country-heading span { padding: 4px 8px; border-radius: 999px; color: #8b7b61; background: #ffefd9; font-size: 9px; font-weight: 700; }
.unlock-list { display: grid; gap: 8px; }
.unlock-item { padding: 12px 14px; border: 1px solid #f2e3cb; border-radius: 10px; color: #756544; background: #fff; font-size: 11px; }
.country-group { margin-top: 30px; }
.country-group:first-child { margin-top: 0; }
.country-heading { display: flex; justify-content: space-between; align-items: end; width: 100%; margin-bottom: 12px; padding: 0 2px; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.country-heading:hover h3 { color: var(--purple-dark); }
.country-heading .eyebrow { margin-bottom: 3px; }
.country-heading h3 { margin: 0; color: var(--ink); font-size: 19px; letter-spacing: -.035em; }
.country-heading > span:last-child { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: var(--purple-dark); background: #e5e6ff; font-size: 10px; font-weight: 800; }
.country-heading > span:last-child b { font-size: 14px; line-height: 1; }
.country-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.university-group { grid-column: 1 / -1; overflow: hidden; border: 1px solid #dfe1f2; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px #2529660b; }
.university-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 18px; border: 0; color: var(--ink); background: #f8f8ff; font: inherit; text-align: left; cursor: pointer; }
.university-toggle:hover { background: #f1f1ff; }
.university-toggle > span:first-child { display: grid; gap: 2px; }
.university-toggle small { color: var(--purple-dark); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.university-toggle strong { font-size: 16px; }
.university-count { display: flex; align-items: center; gap: 8px; color: #68718d; font-size: 10px; font-weight: 800; }
.university-count b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--purple-dark); background: #e5e6ff; font-size: 15px; }
.university-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px; border-top: 1px solid #ececf7; background: #fcfcff; }
.university-courses.hidden { display: none; }
.details-button { width: 100%; margin-top: 2px; padding: 10px 12px; border: 1px solid #d8d9f3; border-radius: 9px; color: var(--purple-dark); background: #f5f5ff; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.details-button:hover { border-color: var(--purple); background: var(--lavender); }
.loading-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 22px; background: #f8f9ffdd; backdrop-filter: blur(12px); }
.loading-overlay.hidden { display: none !important; }
.loading-card { width: min(390px, 100%); padding: 38px 34px 30px; border: 1px solid #e0e2f3; border-radius: 26px; background: #fff; box-shadow: 0 28px 80px #25296622; text-align: center; }
.loading-orbit { position: relative; width: 92px; height: 92px; margin: 0 auto 24px; }
.loading-orbit span { position: absolute; inset: 0; border: 1px solid #8c8ff533; border-radius: 50%; animation: loading-spin 2.8s linear infinite; }
.loading-orbit span:nth-child(2) { inset: 9px -5px; border-color: #ff9b3c66; animation-duration: 2.1s; animation-direction: reverse; transform: rotate(55deg); }
.loading-orbit span:nth-child(3) { inset: -5px 9px; border-color: #6366e866; animation-duration: 3.5s; transform: rotate(125deg); }
.loading-core { position: absolute; inset: 25px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); box-shadow: 0 10px 24px #6366e84a; font-size: 12px; font-weight: 900; letter-spacing: .05em; }
.loading-card .eyebrow { margin-bottom: 8px; }
.loading-card h2 { margin: 0; color: var(--ink); font-size: 22px; letter-spacing: -.045em; }
.loading-card p:not(.eyebrow) { margin: 8px 0 22px; color: var(--muted); font-size: 11px; }
.loading-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #ececff; }
.loading-progress span { display: block; width: 18%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--purple)); animation: loading-progress 5s ease-in-out infinite; }
.loading-steps { display: flex; justify-content: space-between; margin-top: 14px; color: #a1a5bd; font-size: 9px; font-weight: 700; }
.loading-steps .active { color: var(--purple-dark); }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes loading-progress { 0% { width: 14%; } 45% { width: 56%; } 80% { width: 78%; } 100% { width: 91%; } }
.details-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; }
.details-modal.hidden { display: none !important; }
.modal-backdrop { position: absolute; inset: 0; background: #11143dcc; backdrop-filter: blur(5px); }
.details-dialog { position: relative; width: min(900px, 100%); max-height: min(88vh, 900px); overflow: hidden; border: 1px solid #e1e2f2; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px #11143d45; }
.details-dialog-header { display: flex; justify-content: space-between; align-items: start; padding: 24px 26px 19px; border-bottom: 1px solid #ececf6; }
.details-dialog-header h2 { margin: 0; color: var(--ink); font-size: 24px; letter-spacing: -.045em; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 10px; color: #5f6684; background: #f2f3fb; font-size: 24px; line-height: 1; cursor: pointer; }
.details-content { max-height: calc(min(88vh, 900px) - 100px); overflow: auto; padding: 22px 26px 30px; }
.detail-section { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #eef0f7; }
.detail-section:last-child { margin-bottom: 0; border-bottom: 0; }
.detail-section h3 { margin: 0 0 11px; color: var(--purple-dark); font-size: 13px; letter-spacing: -.01em; }
.detail-row, .detail-link-row { display: grid; grid-template-columns: minmax(155px, .35fr) 1fr; gap: 18px; padding: 8px 0; border-bottom: 1px solid #f0f1f7; font-size: 11px; }
.detail-row:last-child, .detail-link-row:last-child { border-bottom: 0; }
.detail-row > span, .detail-link-row > span { color: #7a829d; font-weight: 600; }
.detail-row strong { color: #30365d; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-link-row a, .video-link { color: var(--purple-dark); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.video-links { display: flex; flex-wrap: wrap; gap: 9px; }
.video-link { display: inline-flex; padding: 9px 12px; border-radius: 9px; color: #fff; background: var(--purple); font-size: 10px; }
.detail-muted { color: #8b91aa; font-size: 11px; }
body.modal-open { overflow: hidden; }
@media (max-width: 850px) { .country-grid, .university-courses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .country-grid { grid-template-columns: 1fr; } .details-modal { padding: 10px; } .details-dialog-header, .details-content { padding-left: 18px; padding-right: 18px; } .detail-row, .detail-link-row { grid-template-columns: 1fr; gap: 3px; } }
@media (max-width: 850px) { .shell { padding: 12px 15px 50px; } .announcement { margin-left: -15px; margin-right: -15px; font-size: 9px; } .topbar { margin-bottom: 24px; } .mode-pill { display: none; } .hero, .workspace { grid-template-columns: 1fr; gap: 18px; } .hero { margin: 0 -15px 24px; padding: 38px 22px 34px; } .trust-card { display: none; } .panel { padding: 20px; border-radius: 18px; } .results-section { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; } }
@media (max-width: 520px) { .profile-fields, .country-grid, .university-courses { grid-template-columns: 1fr; } .hero h1 { font-size: 40px; } .results-header { align-items: start; } .result-count { min-width: 44px; height: 44px; font-size: 16px; } .selection-bar { align-items: stretch; flex-direction: column; } .export-modal { padding: 10px; } .export-header, .export-controls, .export-preview, .export-footer { padding-left: 18px; padding-right: 18px; } .export-controls { grid-template-columns: 1fr; } .export-course { grid-template-columns: 1fr; } .export-course-finance { justify-content: flex-start; text-align: left; flex-wrap: wrap; } }

/* Apple editorial refinement */
:root { --navy: #1d1d1f; --navy-2: #2d2d30; --ink: #1d1d1f; --muted: rgba(29,29,31,.62); --purple: #0071e3; --purple-dark: #0066cc; --lavender: #f5f5f7; --lavender-2: #ececf0; --orange: #0071e3; --orange-soft: #e8f2ff; --line: rgba(29,29,31,.12); --white: #fff; font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; }
html { scroll-behavior: smooth; }
body { background: #f5f5f7; color: #1d1d1f; }
body:before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none; background: radial-gradient(circle at 14% 4%, rgba(0,113,227,.06), transparent 25%), radial-gradient(circle at 88% 30%, rgba(120,90,255,.045), transparent 24%); }
.shell { max-width: 1180px; padding: 28px 34px 90px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.55fr); gap: 72px; align-items: center; margin: 0 -34px 42px; padding: 76px 70px 74px; overflow: hidden; background: #f5f5f7; }
.hero:before { content: ""; position: absolute; width: 420px; height: 420px; right: 1%; top: -190px; border: 1px solid rgba(0,113,227,.08); border-radius: 50%; box-shadow: 0 0 0 38px rgba(0,113,227,.025), 0 0 0 76px rgba(0,113,227,.018); }
.hero:after { display: none; }
.hero > * { position: relative; z-index: 1; }
.eyebrow, .hero .eyebrow { color: #0066cc; font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.hero h1 { max-width: 700px; color: #1d1d1f; font-size: clamp(44px, 6vw, 76px); font-weight: 600; line-height: 1.02; letter-spacing: -.065em; }
.hero-copy { max-width: 620px; margin: 24px 0 0; color: rgba(29,29,31,.66); font-size: 17px; line-height: 1.5; letter-spacing: -.02em; }
.trust-card { padding: 25px; border: 1px solid rgba(29,29,31,.08); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 16px 45px rgba(29,29,31,.08); backdrop-filter: blur(20px); }
.trust-card span { color: #0066cc; font-size: 10px; letter-spacing: .08em; }
.trust-card strong { color: #1d1d1f; font-size: 19px; font-weight: 600; }
.trust-card small { color: rgba(29,29,31,.56); font-size: 12px; line-height: 1.5; }
.workspace { gap: 20px; }
.panel { padding: 30px; border: 1px solid rgba(29,29,31,.1); border-radius: 20px; background: rgba(255,255,255,.78); box-shadow: 0 14px 40px rgba(29,29,31,.055); backdrop-filter: blur(20px); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.panel:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(29,29,31,.09); }
.intake-panel, .preview-panel { border-top: 0; }
.panel-heading { margin-bottom: 27px; }
.panel h2 { font-size: 25px; font-weight: 600; letter-spacing: -.045em; }
.panel label { color: rgba(29,29,31,.7); font-weight: 600; }
.panel textarea { height: 190px; border: 1px solid rgba(29,29,31,.12); border-radius: 14px; color: #1d1d1f; background: rgba(245,245,247,.66); transition: border-color .25s, box-shadow .25s, background .25s; }
.panel textarea:focus { border-color: #0071e3; background: #fff; box-shadow: 0 0 0 4px rgba(0,113,227,.12); }
.hint-row span { color: rgba(29,29,31,.5); background: #f5f5f7; }
.dropzone { border: 1px dashed rgba(29,29,31,.22); border-radius: 14px; background: rgba(245,245,247,.55); transition: border-color .25s, background .25s, transform .25s; }
.dropzone:hover, .dropzone.dragging { border-color: #0071e3; background: #f1f7ff; transform: translateY(-2px); }
.drop-icon { color: #0071e3; background: #e8f2ff; }
.primary { border: 0; border-radius: 10px; color: #fff; background: #0071e3; box-shadow: 0 6px 16px rgba(0,113,227,.22); transition: transform .25s, background .25s, box-shadow .25s; }
.primary:hover { background: #0077ed; box-shadow: 0 10px 24px rgba(0,113,227,.28); transform: translateY(-1px); }
.primary:active { transform: scale(.98); }
.secondary, .details-button { border-color: rgba(29,29,31,.12); color: #0066cc; background: rgba(255,255,255,.72); transition: background .25s, border-color .25s, transform .25s; }
.secondary:hover, .details-button:hover { border-color: rgba(0,113,227,.35); color: #0066cc; background: #f1f7ff; transform: translateY(-1px); }
.preview-panel { background: rgba(255,255,255,.86); }
.empty-state { border: 0; background: #f5f5f7; }
.empty-number { color: #0071e3; background: #e8f2ff; }
.confidence strong { color: #0071e3; }
.profile-field { border: 1px solid rgba(29,29,31,.08); background: rgba(245,245,247,.62); transition: background .25s, transform .25s; }
.profile-field:hover { background: #fff; transform: translateY(-1px); }
.profile-field strong { color: #1d1d1f; font-weight: 600; }
.results-section { margin-top: 52px; padding: 42px 34px 50px; border-top: 0; background: rgba(245,245,247,.82); }
.results-header h2 { color: #1d1d1f; font-size: 31px; font-weight: 600; letter-spacing: -.055em; }
.result-count { color: #fff; background: #1d1d1f; box-shadow: none; }
.result-card { border: 1px solid rgba(29,29,31,.1); border-top: 0; border-radius: 16px; background: rgba(255,255,255,.86); box-shadow: 0 10px 28px rgba(29,29,31,.055); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.result-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(29,29,31,.1); }
.result-card.exact { border-top: 0; }
.match-label { color: #0066cc; font-weight: 650; letter-spacing: .08em; }
.result-card h3 { color: #1d1d1f; font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.result-card .course { color: rgba(29,29,31,.6); line-height: 1.45; }
.result-meta span { color: rgba(29,29,31,.58); background: #f5f5f7; }
.country-heading { margin-bottom: 14px; }
.country-heading h3 { color: #1d1d1f; font-size: 21px; font-weight: 600; }
.country-heading > span:last-child { color: #0066cc; background: #e8f2ff; }
.university-group { border: 1px solid rgba(29,29,31,.1); background: rgba(255,255,255,.82); box-shadow: 0 10px 28px rgba(29,29,31,.05); }
.university-toggle { background: rgba(245,245,247,.72); }
.university-toggle:hover { background: #fff; }
.university-toggle small { color: #0066cc; }
.university-toggle strong { color: #1d1d1f; font-weight: 600; }
.university-count b { color: #0066cc; background: #e8f2ff; }
.university-courses { background: rgba(250,250,252,.72); }
.selection-bar { border-color: rgba(29,29,31,.1); background: rgba(255,255,255,.88); backdrop-filter: blur(20px); }
.export-dialog { border-radius: 20px; background: #f5f5f7; }
.export-header, .export-controls, .export-footer { background: rgba(255,255,255,.92); }
.export-cover { background: #1d1d1f; }
.export-cover-mark { color: #0071e3; }
.export-course { border-color: rgba(29,29,31,.1); box-shadow: 0 5px 15px rgba(29,29,31,.035); }
.details-button { border-radius: 9px; }
.loading-card { border-color: rgba(29,29,31,.1); box-shadow: 0 24px 70px rgba(29,29,31,.15); }
.premium-reveal { opacity: 1; transform: translateY(12px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.premium-reveal.is-visible { opacity: 1; transform: translateY(0); }
.panel, .result-card { transform: translate3d(var(--pointer-x, 0px), var(--pointer-y, 0px), 0); }
.panel:hover, .result-card:hover { transform: translate3d(var(--pointer-x, 0px), calc(var(--pointer-y, 0px) - 4px), 0); }
@media (max-width: 850px) { .hero { margin-left: -15px; margin-right: -15px; padding-left: 22px; padding-right: 22px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } .premium-reveal { opacity: 1; transform: none; } }

@media (max-width: 520px) { .empty-results { align-items: start; flex-direction: column; gap: 13px; padding: 20px; } }

:root { --navy: #11143d; --navy-2: #252966; --ink: #16183e; --muted: #69708d; --purple: #6366e8; --purple-dark: #4d50c9; --lavender: #f0f0ff; --lavender-2: #e8e9ff; --orange: #ff7b05; --orange-soft: #fff0df; --line: #e2e4f1; --white: #fff; }
body { background: #f8f9ff; }
body:before { display: none; }
.hero { background: linear-gradient(118deg, var(--navy) 0%, #20245e 62%, #4f52c9 100%); }
.hero:before { border-color: #ffffff25; box-shadow: 0 0 0 38px #ffffff0c, 0 0 0 76px #ffffff08; }
.hero .eyebrow { color: #ffb05e; }
.hero h1 { color: #fff; }
.hero-copy { color: #d4d7f4; }
.trust-card { border-color: #ffffff50; background: #ffffffee; box-shadow: 0 18px 45px #080a2a35; }
.trust-card span { color: var(--purple-dark); }
.trust-card strong { color: var(--ink); }
.trust-card small { color: var(--muted); }
.eyebrow { color: #7779f0; }
.primary { color: var(--white); background: var(--purple); box-shadow: 0 8px 18px #6366e840; }
.primary:hover { background: var(--purple-dark); box-shadow: 0 10px 24px #6366e84a; }
.secondary, .details-button { color: var(--purple-dark); background: var(--lavender-2); }
.secondary:hover, .details-button:hover { border-color: #d8d9f3; color: var(--purple-dark); background: var(--lavender); }
.drop-icon { color: var(--orange); background: var(--orange-soft); }
.dropzone:hover, .dropzone.dragging { border-color: var(--purple); background: var(--lavender); }
.confidence strong, .match-label, .select-course { color: var(--purple-dark) !important; }
.results-section { background: var(--lavender); border-top: 1px solid #e0e1fb; }
.results-header h2, .result-card h3, .country-heading h3 { color: var(--ink); }
.result-count { color: var(--white); background: var(--purple); box-shadow: 0 8px 18px #6366e83b; }
.country-heading > span:last-child { color: var(--purple-dark); background: #e5e6ff; }
.university-toggle small { color: var(--purple-dark); }
.university-count b { color: var(--purple-dark); background: #e5e6ff; }
.export-cover { background: linear-gradient(120deg, var(--navy), var(--purple-dark)); }
.export-cover-mark { color: var(--purple-dark); }
.loading-core { background: linear-gradient(135deg, var(--purple), var(--purple-dark)); }

/* Mobile-first finishing pass */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 58px 42px 48px; }
  .hero h1 { max-width: 720px; font-size: clamp(42px, 7vw, 62px); }
  .hero-copy { max-width: 650px; }
  .trust-card { max-width: 420px; }
}
@media (max-width: 850px) {
  .shell { width: 100%; max-width: 100%; padding: 12px 15px 54px; overflow-x: hidden; }
  .hero { display: block; margin: 0 -15px 26px; padding: 48px 22px 36px; }
  .hero h1 { max-width: 620px; font-size: clamp(40px, 10vw, 58px); line-height: 1.04; }
  .hero-copy { max-width: 600px; margin-top: 17px; font-size: 15px; line-height: 1.48; }
  .trust-card { display: block; max-width: 360px; margin-top: 28px; padding: 20px; }
  .workspace { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .panel { min-width: 0; padding: 21px; border-radius: 18px; }
  .panel-heading { align-items: center; margin-bottom: 20px; }
  .panel h2 { font-size: 21px; }
  .panel textarea { height: 155px; font-size: 12px; }
  .dropzone { min-height: 145px; padding: 17px; }
  .primary.full { min-height: 46px; margin-top: 15px; }
  .results-section { margin: 34px -15px 0; padding: 29px 15px 38px; }
  .results-header { align-items: center; gap: 15px; }
  .results-header h2 { font-size: 26px; }
  .results-header p:not(.eyebrow) { max-width: 275px; font-size: 11px; }
  .country-grid, .university-courses { grid-template-columns: 1fr; }
  .country-heading { align-items: center; min-height: 48px; margin-bottom: 10px; padding: 0 2px; }
  .country-heading h3 { font-size: 18px; }
  .country-heading > span:last-child { padding: 6px 8px; font-size: 9px; }
  .university-toggle { min-height: 58px; padding: 13px 14px; }
  .university-toggle strong { max-width: 205px; font-size: 14px; line-height: 1.25; }
  .university-count { font-size: 9px; white-space: nowrap; }
  .university-courses { gap: 10px; padding: 10px; }
  .result-card { padding: 15px; }
  .result-card h3 { font-size: 16px; }
  .course-card .course { min-height: 0; }
  .selection-bar { align-items: stretch; flex-direction: column; gap: 12px; margin: 18px 0 -5px; padding: 14px; }
  .selection-bar .primary { width: 100%; min-height: 43px; }
  .empty-results { align-items: flex-start; flex-direction: column; gap: 13px; padding: 19px; }
  .empty-results p:not(.eyebrow) { font-size: 11px; }
  .empty-results-points { gap: 5px; }
  .empty-results-points span { font-size: 8px; }
  .unlock-toggle { min-height: 58px; padding: 16px; }
  .unlock-panel { padding: 0 16px 17px; }
  .guidance-country-heading { gap: 9px; }
  .guidance-country-heading strong { font-size: 11px; }
  .unlock-item { font-size: 10px; line-height: 1.45; }
  .details-modal, .export-modal { padding: 9px; }
  .details-dialog, .export-dialog { max-height: 94vh; border-radius: 18px; }
  .details-dialog-header, .details-content, .export-header, .export-controls, .export-preview, .export-footer { padding-left: 17px; padding-right: 17px; }
  .details-dialog-header { padding-top: 19px; padding-bottom: 15px; }
  .details-dialog-header h2, .export-header h2 { max-width: calc(100vw - 100px); font-size: 20px; }
  .export-header { gap: 10px; padding-top: 19px; }
  .export-controls { grid-template-columns: 1fr; gap: 9px; padding-top: 13px; padding-bottom: 13px; }
  .export-preview { padding-top: 17px; padding-bottom: 17px; }
  .export-cover { align-items: flex-start; gap: 12px; margin-bottom: 17px; padding: 17px; }
  .export-cover h3 { font-size: 18px; }
  .export-course { grid-template-columns: 1fr; gap: 10px; padding: 13px; }
  .export-course-finance { justify-content: flex-start; flex-wrap: wrap; gap: 10px; text-align: left; }
  .export-course-finance a { white-space: normal; }
  .export-footer { flex-direction: column-reverse; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .export-footer button { width: 100%; min-height: 43px; }
}
@media (max-width: 390px) {
  .shell { padding-left: 11px; padding-right: 11px; }
  .hero { margin-left: -11px; margin-right: -11px; padding-left: 17px; padding-right: 17px; }
  .results-section { margin-left: -11px; margin-right: -11px; padding-left: 11px; padding-right: 11px; }
  .hero h1 { font-size: 37px; }
  .trust-card { padding: 17px; }
  .panel { padding: 17px; }
  .profile-actions { gap: 5px; }
  .profile-edit { padding: 6px 8px; font-size: 9px; }
  .step { padding: 7px 9px; }
  .country-heading > span:last-child { max-width: 92px; text-align: right; }
}
