/* orientation-v2/public/assets/styles.css */
:root {
  --bg: #070A12;
  --card: #0D1224;
  --text: #EAF0FF;
  --muted: #9AA6C0;
  --line: rgba(255, 255, 255, .10);
  --primary: #FF6A2B;
  --primary2: #FF8A3D;
  --radius: 22px;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(255, 106, 43, .20), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(700px 400px at 50% 100%, rgba(34, 197, 94, .10), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0
}

.brand {
  font-weight: 800;
  letter-spacing: .2px
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

.hero {
  padding: 28px
}

h1 {
  font-size: 34px;
  margin: 0 0 10px
}

h2 {
  font-size: 22px;
  margin: 0 0 12px
}

h3 {
  font-size: 16px;
  margin: 0 0 10px
}

p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 10px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  transition: .2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .22)
}

.btn.primary {
  background: linear-gradient(180deg, var(--primary2), var(--primary));
  border-color: rgba(255, 106, 43, .45);
}

.btn.big {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px
}

.input,
.textarea {
  width: 100%;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 16px;
  outline: none;
  margin: 8px 0 14px;
}

.muted {
  color: var(--muted)
}

.small {
  font-size: 13px
}

.hidden {
  display: none !important
}

.oz-hidden {
  display: none !important
}

.option {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  margin: 12px 0;
  cursor: pointer;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
  user-select: none;
}

.option:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .26);
  transform: translateY(-1px);
}

.option:focus-visible {
  outline: 3px solid rgba(255, 106, 43, .55);
  outline-offset: 2px;
}

.option.selected {
  border-color: rgba(255, 106, 43, .95);
  background: linear-gradient(135deg, rgba(255, 106, 43, .22), rgba(255, 138, 61, .10));
  box-shadow: 0 0 0 3px rgba(255, 106, 43, .18);
  color: #fff;
}

.option.selected::after {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary2);
  font-weight: 900;
  font-size: 16px;
}

.select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92);
  padding: 14px 46px 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease, background .2s ease;
  cursor: pointer;
}

.select:hover {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .06);
  transform: translateY(-1px);
}

.select:focus {
  outline: none;
  border-color: rgba(255, 106, 43, .85);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, .18);
}

.select-wrap {
  position: relative;
  margin: 8px 0 14px;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, .75);
  border-bottom: 2px solid rgba(255, 255, 255, .75);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  opacity: .9;
}

select option {
  background: #0D1224;
  color: #EAF0FF;
}

.progress {
  height: 10px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px
}

.progress-bar {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--primary), rgba(59, 130, 246, .75))
}

.nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 14px
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

@media (max-width:800px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

.panel {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  border-radius: 18px;
  padding: 14px;
}

.panel h2 {
  color: #fff;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .16);
  border: 1px solid rgba(59, 130, 246, .28);
  font-weight: 800;
  margin-top: 6px;
}

.school-card {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  border-radius: 18px;
  padding: 14px;
  margin: 10px 0;
}

.school-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start
}

.school-name {
  font-weight: 800
}

.score {
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .25);
}

.cta {
  margin-top: 18px
}

.chips{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 12px}
.chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-weight:800;
}
.chip button{
  border:0;background:transparent;color:rgba(255,255,255,.75);
  cursor:pointer;font-weight:900;font-size:14px;line-height:1;
}
.chip button:hover{color:#fff}

.chips-selectable {
  gap: 12px;
}

.chip-option {
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.chip-option:hover:not(:disabled) {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-1px);
}

.chip-option.selected {
  border-color: rgba(255, 106, 43, .95);
  background: linear-gradient(135deg, rgba(255, 106, 43, .22), rgba(255, 138, 61, .10));
  box-shadow: 0 0 0 3px rgba(255, 106, 43, .18);
  color: #fff;
}

.chip-option:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.add-row{display:flex;gap:10px;align-items:center;margin:8px 0 14px}
.btn.small{padding:10px 12px;border-radius:14px;font-size:13px}

.helper{color:var(--muted);font-size:13px;margin-top:6px}

.panel.info {
  border-left: 4px solid #ff8c42;
  background: rgba(255,140,66,0.08);
}

.cta-floating {
  position: fixed;
  top: 155px;
  right: 1px;
  z-index: 9999;
  background: linear-gradient(135deg, #ff8a3d, #ff6a00);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: ctaPulse 2.5s infinite;
}

.cta-floating:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 40px rgba(255, 106, 0, 0.45);
}

@media (max-width: 600px) {
  .cta-floating {
    top: auto;
    bottom: 16px;
    right: 16px;
    left: auto;
    width: auto;
    border-radius: 16px;
    padding: 16px 20px;
  }
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.45);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(255, 106, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
  }
}

.btn-neutral {
  background: transparent;
  color: #d1d5db;
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-neutral:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #6b7280;
  color: #ffffff;
}

.result-layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items:start;
}

@media (max-width: 900px){
  .result-layout{
    grid-template-columns: 1fr;
  }
  .cta-card{
    position: static;
    margin-top: 12px;
  }
}

.cta-card{
  position: sticky;
  top: 22px;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

.cta-card h3{
  margin: 0 0 8px;
}

.cta-card p{
  margin: 0 0 14px;
}

.oz-modal.oz-hidden{ display:none !important; }

.oz-modal{
  position:fixed;
  inset:0;
  z-index:99999;
}

.oz-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.oz-modal-card{
  position:relative;
  width:min(920px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow:auto;
  margin: 12px auto;
  top: 50%;
  transform: translateY(-50%);
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}

.oz-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px 16px 10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.oz-modal-title{
  font-weight:900;
  font-size:18px;
}

.oz-modal-subtitle{
  margin-top:4px;
}

.oz-modal-close{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight:900;
}

.oz-modal-body{
  padding: 14px 16px 6px;
}

.oz-modal-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

@media (max-width: 780px){
  .oz-modal-grid{ grid-template-columns: 1fr; }
}

.oz-modal-row{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 12px;
}

.oz-modal-k{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 800;
  letter-spacing: .2px;
}

.oz-modal-v{
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  line-height: 1.5;
  white-space: pre-wrap;
}

.oz-modal-media{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 12px 0 4px;
}

.oz-modal-media img{
  width:64px;
  height:64px;
  border-radius: 16px;
  object-fit: cover;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}

.oz-modal-footer{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  padding: 12px 16px 16px;
  border-top:1px solid rgba(255,255,255,.10);
}

.oz-modal-section{
  margin: 14px 0;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  border-radius: 18px;
  overflow:hidden;
}

.oz-modal-section-title{
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: .2px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.oz-modal-section-body{
  padding: 12px 14px;
}

.oz-modal-list{
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  line-height: 1.6;
}

.sector-block{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 12px;
  margin: 10px 0;
}

.sector-title{
  font-weight: 900;
  margin-bottom: 6px;
  color: #fff;
}

#schools{
  display:block;
}

@media (min-width: 992px) {
  #schoolsByOption,
  #schoolsByMbti {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }
}

.school-card{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  transition: transform .12s ease, border-color .12s ease;
}

.school-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.20);
}

.school-head{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.school-name{
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
