/* ============================================================
   News Portal Horoscope (NPH) — scoped
   ============================================================ */
.nph{
  --yellow:#F2E14B;
  --black:#111;
  --text:#1a1a1a;
  --muted:#666;
  --line:#e8e8e8;
  --soft:#fafafa;
  --shadow: 0 14px 36px rgba(0,0,0,.12);
  --radius: 16px;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 16px;
}

.nph__container{
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Header strip */
.nph__top{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(90deg, var(--yellow), #fff 70%);
  border-bottom: 1px solid var(--line);
  align-items: flex-end;
}

.nph__kicker{
  display:inline-flex;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  background: rgba(17,17,17,.92);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
}

.nph__title{
  margin: 8px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 1000;
  color: var(--black);
  line-height: 1.1;
}

.nph__stamp{
  display:inline-flex;
  font-size: 12px;
  font-weight: 800;
  color: var(--black);
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.08);
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Body layout */
.nph__body{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: 16px;
  padding: 16px;
  background: #fff;
}

.nph__panel{
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 14px;
  padding: 14px;
}

.nph__label{
  display:block;
  font-weight: 900;
  font-size: 13px;
  color: var(--black);
  margin-bottom: 8px;
}

.nph__row{
  display:flex;
  gap: 10px;
  align-items:center;
}

.nph__input{
  flex: 1;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.nph__input:focus{
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 0 0 4px rgba(242,225,75,.35);
}

.nph__btn{
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 1000;
  letter-spacing: .2px;
  color: var(--black);
  background: var(--yellow);
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
  white-space: nowrap;
  transition: transform .08s ease;
}
.nph__btn:active{ transform: translateY(1px); }

.nph__hint{
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Tabs */
.nph__tabs{
  display:flex;
  gap: 10px;
  margin: 14px 0 12px;
}

.nph__tab{
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  color: var(--black);
  transition: background .12s ease, border-color .12s ease;
}
.nph__tab.is-active{
  background: var(--yellow);
  border-color: rgba(0,0,0,.12);
}

/* Result */
.nph__result{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}

.nph__resultHead{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items:flex-start;
  margin-bottom: 10px;
}

.nph__identity{
  display:flex;
  gap: 12px;
  align-items:center;
}

.nph__emojiBox{
  width: 46px;
  height: 46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 22px;
}

.nph__sign{
  font-size: 18px;
  font-weight: 1000;
  color: var(--black);
  line-height: 1.1;
}

.nph__range{
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.nph__meterWrap{
  min-width: 170px;
}

.nph__meterLabel{
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
  text-align: right;
}

.nph__meter{
  width: 100%;
  height: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.nph__meter span{
  display:block;
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #111, #666);
  border-radius: 999px;
  transition: width .25s ease;
}

.nph__meterValue{
  margin-top: 6px;
  text-align:right;
  font-size: 13px;
  font-weight: 900;
  color: var(--black);
}

.nph__text{
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  font-size: 14.5px;
}

.nph__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.nph__ghost{
  flex: 1;
  min-width: 110px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--black);
  font-weight: 900;
  cursor: pointer;
}

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

/* Signs */
.nph__signTop{ margin-bottom: 12px; }
.nph__signTitle{
  margin: 0;
  font-size: 16px;
  font-weight: 1000;
  color: var(--black);
}
.nph__signDesc{
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

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

.nph__signBtn{
  display:grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items:center;
  text-align:left;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: transform .08s ease, border-color .12s ease, box-shadow .12s ease;
}
.nph__signBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}
.nph__signBtn.is-active{
  background: linear-gradient(180deg, rgba(242,225,75,.55), #fff 70%);
  border-color: rgba(0,0,0,.18);
}

.nph__sEmoji{
  width: 42px;
  height: 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 20px;
  grid-row: 1 / span 2;
}

.nph__sName{
  font-weight: 1000;
  color: var(--black);
  font-size: 14px;
  line-height: 1.1;
}
.nph__sRange{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

/* Responsive */
@media (max-width: 980px){
  .nph__body{
    grid-template-columns: 1fr;
  }
  .nph__meterLabel, .nph__meterValue{
    text-align:left;
  }
}

@media (max-width: 520px){
  .nph{ padding: 10px; }
  .nph__body{ padding: 12px; }
  .nph__row{ flex-direction: column; align-items: stretch; }
  .nph__btn{ width: 100%; }
  .nph__actions{ flex-direction: column; }
  .nph__signGrid{ grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .nph__signBtn, .nph__meter span, .nph__btn{
    transition:none !important;
  }
}
