:root{
  --bg0:#0A0A0B;
  --bg1:#0A0A0B;
  --panel:#111113;
  --panel2:#0D0D0F;
  --border:rgba(255,255,255,.10);
  --text:#F7F7F7;
  --muted:#C8C8C8;
  --muted2:#9C9C9C;
  --accent:#FFFFFF;
  --accent2:#FFFFFF;
  --good:#22C55E;
  --warn:#F59E0B;
  --bad:#EF4444;
  --shadow: 0 14px 50px rgba(0,0,0,.65);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background: var(--bg0);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  letter-spacing: .1px;
}

.bg{
  position:fixed;
  inset:-40vh -10vw auto -10vw;
  height:70vh;
  background: radial-gradient(60% 70% at 25% 30%, rgba(255,255,255,.06), transparent 60%);
  filter: blur(10px);
  opacity: .7;
  pointer-events:none;
  z-index:-1;
}

.header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(14px);
  background: rgba(7,10,16,.55);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand__mark{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.45);
  border: 1px solid rgba(0,0,0,.35);
}
.brand__title{
  font-weight: 650;
  font-size: 14px;
  line-height: 1.2;
}
.brand__subtitle{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.actions{ display:flex; gap:10px; }
.btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}
.btn:active{ transform: translateY(1px); }
.btn--ghost{
  background: rgba(255,255,255,.04);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
}

.panel{
  background: rgba(17,17,19,.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 14px;
}
.panel__row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  align-items:end;
  justify-content:space-between;
}

.field{
  display:flex;
  flex-direction:column;
  gap: 7px;
  min-width: 220px;
}
.field__label{
  font-size: 12px;
  color: var(--muted);
}
.input,.select{
  width: 100%;
  background: rgba(13,13,15,.95);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: var(--text);
  padding: 10px 12px;
  outline:none;
  font-size: 13px;
}
.input:focus,.select:focus{
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 4px rgba(255,255,255,.07);
}
.stats{
  margin-left:auto;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  padding-bottom: 2px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
}
.pill b{
  color: var(--text);
  font-weight: 650;
}

.hint{
  margin-top: 10px;
  color: var(--muted2);
  font-size: 12px;
}
.updated{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
code{
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand{ min-width: unset; }
}
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
  .actions{ width:100%; justify-content:flex-end; }
}

.card{
  background: rgba(17,17,19,.86);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
  min-height: 210px;
}
.card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.rank{
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.rank__badge{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 700;
}
.title{
  font-weight: 700;
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.3;
}
.meta{
  margin-top: 8px;
  display:flex;
  flex-direction:column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.row{
  display:flex;
  gap: 8px;
  align-items:flex-start;
}
.row__label{
  min-width: 62px;
  color: var(--muted2);
}
.why{
  margin-top: 10px;
  color: rgba(230,234,242,.88);
  font-size: 12.5px;
  line-height: 1.45;
  flex: 1;
}

.badges{
  margin-top: 12px;
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  align-items:center;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  color: var(--muted);
}
.badge b{ color: var(--text); font-weight: 650; }
.badge--accent{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}
.badge--good{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.22);
}
.badge--warn{
  background: rgba(245,158,11,.10);
  border-color: rgba(245,158,11,.22);
}
.badge--bad{
  background: rgba(239,68,68,.09);
  border-color: rgba(239,68,68,.22);
}

.card__footer{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.apply{
  text-decoration:none;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}
.apply:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
}
.apply--applied{
  color: #052e14;
  border-color: rgba(34,197,94,.55);
  background: linear-gradient(180deg, rgba(74,222,128,.95), rgba(34,197,94,.88));
  box-shadow: 0 0 0 1px rgba(34,197,94,.25), 0 8px 24px rgba(34,197,94,.18);
}
.apply--applied:hover{
  border-color: rgba(34,197,94,.75);
  background: linear-gradient(180deg, rgba(134,239,172,.98), rgba(34,197,94,.92));
}

.card--applied{
  border-color: rgba(34,197,94,.35);
  background: linear-gradient(165deg, rgba(34,197,94,.12), rgba(17,17,19,.86) 42%);
  box-shadow: 0 10px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(34,197,94,.12);
}

.footer{
  margin-top: 28px;
  border-top: 1px solid var(--border);
  background: rgba(7,10,16,.45);
  backdrop-filter: blur(14px);
}
.footer__inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  display:inline-block;
  background: rgba(124,58,237,.9);
  box-shadow: 0 0 0 5px rgba(124,58,237,.12);
  margin-right: 8px;
}
.link{
  color: var(--muted);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.link:hover{
  color: var(--text);
  border-bottom-color: rgba(124,58,237,.55);
}

.empty, .error{
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15,22,36,.55);
  padding: 18px;
}
.empty__title, .error__title{
  font-weight: 750;
  margin-bottom: 6px;
}
.empty__subtitle, .error__subtitle{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.error__code{
  margin-top: 10px;
  display:inline-block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.pager{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  flex-wrap:wrap;
}
.pager__info{
  color: var(--muted);
  font-size: 13px;
  min-width: 120px;
  text-align:center;
}
