:root {
  --primary: #6d3df2;
  --dark: #111832;
  --muted: #667085;
  --border: #e8eaf4;
  --soft: #f4efff;
  --card: #fff;
  --bg: #fbfbff;
  --pink: #ec4899;
  --orange: #f59e0b;
  --green: #16a34a;
  --shadow: 0 14px 35px rgba(16, 24, 40, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.45;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.page {
  max-width: 1440px;
  margin: auto;
  background: radial-gradient(circle at 75% 10%, rgba(109, 61, 242, 0.12), transparent 28%), linear-gradient(#fff, #fbfbff);
  overflow-x: clip;
}

.ai-horoscope-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.ai-horoscope-page .top {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 42px;
  background: #fff;
}

.ai-horoscope-page .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  min-width: 0;
}

.ai-horoscope-page .logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
}

.ai-horoscope-page .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.ai-horoscope-page .brand-text strong {
  font-size: 17px;
  letter-spacing: -0.4px;
  color: var(--dark);
}

.ai-horoscope-page .brand-text strong span {
  color: var(--primary);
}

.ai-horoscope-page .brand-text em {
  font-style: normal;
  font-size: 17px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.4px;
}

.ai-horoscope-page .brand-text small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
}

.ai-horoscope-page .searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 118px;
  gap: 10px;
  min-width: 0;
}

.ai-horoscope-page .field {
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
  min-width: 0;
}

.ai-horoscope-page .field-ico {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}

.ai-horoscope-page .field input,
.ai-horoscope-page .field select {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  color: #344054;
}

.ai-horoscope-page .field select {
  cursor: pointer;
  text-overflow: ellipsis;
}

.ai-horoscope-page .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.ai-horoscope-page .login-btn {
  border: 0;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.ai-horoscope-page .btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #4f28cf);
  color: white;
  font-weight: 900;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(109, 61, 242, 0.22);
  font-size: 13px;
  white-space: nowrap;
}

.ai-horoscope-page .nav-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #fff;
  border-top: 1px solid var(--border);
}

.ai-horoscope-page .nav-wrap::-webkit-scrollbar {
  display: none;
}

.ai-horoscope-page .nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  min-height: 52px;
  padding: 0 38px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  width: max-content;
  min-width: 100%;
  background: transparent;
  border-bottom: 0;
}

.ai-horoscope-page .nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 12px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}

.ai-horoscope-page .nav a:hover {
  color: var(--primary);
}

.ai-horoscope-page .nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.ai-horoscope-page .nav .nav-ico {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.ai-horoscope-page .nav .nav-label {
  line-height: 1.1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 520px;
  padding: 40px 32px 32px;
  overflow: visible;
}

.hero-copy {
  max-width: 440px;
  width: 100%;
}

.tag {
  display: inline-flex;
  background: var(--soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 3.8vw, 58px);
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 440px;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 16px;
  color: #4b5563;
  max-width: 420px;
  margin-bottom: 22px;
  line-height: 1.5;
}

.hero-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 440px;
  margin-bottom: 20px;
}

.hero-form select[data-horoscope-type] {
  grid-column: 1 / -1;
}

.hero-form select,
.hero-form input {
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  outline: 0;
  font-size: 13px;
}

.hero-form button {
  grid-column: 1 / -1;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 900;
  cursor: pointer;
  font-size: 14px;
}

.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 440px;
}

.trust div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  min-width: 0;
}

.trust p {
  margin: 0;
  min-width: 0;
}

.trust b {
  display: block;
  font-size: 13px;
}

.trust p span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}

.visual {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 8px 96px;
  overflow: visible;
}

.visual-stage {
  position: relative;
  width: 360px;
  max-width: 100%;
  min-height: 480px;
  margin: 0 auto;
  overflow: visible;
}

.hero-illustration {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 520px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 24px;
  border: 3px solid var(--primary);
  outline: 4px solid rgba(109, 61, 242, 0.18);
  outline-offset: 5px;
  box-shadow: 0 20px 40px rgba(109, 61, 242, 0.12);
  position: relative;
  z-index: 1;
}

.float {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 186px;
  min-width: 186px;
  transition: 0.2s;
}

.float-l1,
.float-l2,
.float-l3 {
  left: -98px;
}

.float-r1,
.float-r2,
.float-r3 {
  right: -98px;
}

.float-l1,
.float-r1 {
  top: 62px;
}

.float-l2,
.float-r2 {
  top: calc(50% - 30px);
}

.float-l3,
.float-r3 {
  bottom: 62px;
}

.float p {
  margin: 0;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.float .mini {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.float strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
}

.float span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

a.float {
  color: inherit;
}

.section,
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.section {
  margin: 0 38px 24px;
  padding: 30px;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.head h2 {
  font-size: 24px;
}

.head .view {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

.zodiac {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.zcard {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 8px;
  background: #fff;
  transition: 0.2s;
  cursor: pointer;
}

.zcard:hover,
.reading:hover,
.guide:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.zcard.selected {
  border-color: var(--primary);
  background: var(--soft);
  box-shadow: 0 8px 20px rgba(109, 61, 242, 0.15);
}

.sign {
  display: block;
  font-size: 40px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.zcard strong {
  display: block;
  font-size: 13px;
}

.zcard span {
  font-size: 11px;
  color: var(--muted);
}

.head-with-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.section-subtext {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.perspective-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--soft, #f4f0ff);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(109, 61, 242, 0.15);
}

.perspective-tab {
  border: none;
  background: transparent;
  color: #4b5563;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.perspective-tab:hover {
  color: var(--primary);
}

.perspective-tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 61, 242, 0.35);
}

.perspective-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.perspective-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.perspective-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 61, 242, 0.4);
  box-shadow: 0 12px 28px rgba(109, 61, 242, 0.12);
}

.perspective-card.selected {
  border-color: var(--primary);
  background: #fbf9ff;
  box-shadow: 0 10px 24px rgba(109, 61, 242, 0.18);
}

.perspective-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.perspective-card-sign {
  display: flex;
  align-items: center;
  gap: 10px;
}

.perspective-symbol {
  font-size: 26px;
  line-height: 1;
  color: var(--primary);
  background: var(--soft, #f4f0ff);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.perspective-sign-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.perspective-date-range {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.perspective-badge {
  display: inline-block;
  background: rgba(109, 61, 242, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.perspective-card-headline {
  font-size: 15px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.35;
  margin: 0;
}

.perspective-card-text {
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0;
  flex-grow: 1;
}

.perspective-card-meta {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.perspective-meta-label {
  color: var(--muted);
  font-weight: 700;
}

.perspective-meta-value {
  color: var(--primary);
  font-weight: 800;
}

.perspective-read-btn {
  border: none;
  background: var(--soft, #f4f0ff);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.2s ease;
  font-family: inherit;
}

.perspective-card:hover .perspective-read-btn {
  background: var(--primary);
  color: #fff;
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "readings readings"
    "why guides";
  gap: 20px;
  margin: 0 38px 24px;
  align-items: stretch;
}

.panel-readings {
  grid-area: readings;
}

.panel-why,
.panel-guides {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-why {
  grid-area: why;
}

.panel-guides {
  grid-area: guides;
}

.panel {
  padding: 24px 28px;
}

.panel-why h2,
.panel-guides .head h2 {
  font-size: 22px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.panel-why .why {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 14px;
  gap: 0;
}

.panel-guides .head {
  flex-shrink: 0;
}

.panel-guides .guides {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 14px;
  gap: 0;
}

.readings {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.reading {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.rimg {
  height: 96px;
  display: grid;
  place-items: center;
  font-size: 38px;
  line-height: 1;
  background: linear-gradient(135deg, #fbf7ff, #fff4fb);
  flex-shrink: 0;
}

.rbody {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 108px;
}

.rbody h3 {
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.rbody p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 12px;
  flex: 1;
  min-height: 34px;
}

.price {
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
  margin-top: auto;
}

.why {
  list-style: none;
  font-weight: 700;
  color: #344054;
}

.why li:before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  margin-right: 10px;
  font-size: 12px;
}

.guides {
  display: flex;
  flex-direction: column;
}

.guide {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  flex: 1;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--soft), #fff);
  font-size: 24px;
}

.guide strong {
  display: block;
  font-size: 13px;
}

.guide span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.rating {
  color: var(--orange);
  font-weight: 900;
  font-size: 12px;
}

.how {
  text-align: center;
  padding: 32px 38px;
}

.how h2 {
  font-size: 26px;
  margin-bottom: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1050px;
  margin: auto;
}

.step {
  position: relative;
}

.step-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--primary);
  font-size: 34px;
  margin: 0 auto 12px;
}

.step-no {
  position: absolute;
  top: -4px;
  left: calc(50% - 38px);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.step p {
  font-size: 13px;
  color: var(--muted);
  max-width: 180px;
  margin: 6px auto 0;
}

.lower {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 24px;
  margin: 0 38px 24px;
  align-items: stretch;
}

.lower .panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lower .head {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.match-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.highlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lower .match-row,
.lower .highlight {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.lower .match-row {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.match,
.hl {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
}

.lower .match {
  min-height: 0;
  padding: 18px 16px;
  gap: 2px;
}

.match span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.match strong {
  display: block;
  color: var(--green);
  font-size: 22px;
  margin-top: 6px;
  line-height: 1;
}

.insight {
  flex: 1;
  min-height: 200px;
  border-radius: 18px;
  padding: 28px;
  color: white;
  background:
    linear-gradient(135deg, rgba(31, 41, 85, 0.9), rgba(109, 61, 242, 0.88)),
    radial-gradient(circle at 76% 22%, #fbbf24, transparent 15%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.insight h3 {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.insight p {
  margin: 0;
  line-height: 1.5;
  opacity: 0.95;
}

.lower .head h2 {
  font-size: 20px;
  line-height: 1.25;
  min-width: 0;
}

.browse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 38px 24px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.chip.active {
  border-color: var(--primary);
  background: var(--soft);
  color: var(--primary);
}

.cta {
  margin: 0 38px 32px;
  padding: 34px 44px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.25), transparent 26%),
    linear-gradient(135deg, #4f28cf, #6d3df2);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(109, 61, 242, 0.28);
}

.cta h2 {
  font-size: 32px;
}

.cta button {
  border: 0;
  background: white;
  color: var(--primary);
  padding: 16px 26px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

footer {
  padding: 0 38px 34px;
}

.ai-horoscope-page footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-horoscope-page footer .logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
}

.ai-horoscope-page footer .brand strong {
  font-size: 18px;
  color: var(--dark);
}

.ai-horoscope-page footer .brand strong span {
  color: var(--primary);
}

.ai-horoscope-page footer .brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.foot {
  border-top: 1px solid var(--border);
  background: #fff;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr;
  gap: 34px;
}

.foot h3 {
  font-size: 15px;
  margin-bottom: 14px;
}

.foot p,
.foot a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 9px;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.social a:hover {
  background: var(--primary);
  color: #fff;
}

.news {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 48px;
  margin-top: 12px;
}

.news input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
}

.news button {
  border: 0;
  background: var(--primary);
  color: white;
  font-weight: 900;
  padding: 0 18px;
  cursor: pointer;
}

.copy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.copy-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-links a {
  color: var(--muted);
  text-decoration: none;
}

.copy-links a:hover {
  color: var(--primary);
}

.reading-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.reading-modal[hidden] {
  display: none;
}

.reading-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 50, 0.55);
}

.reading-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.reading-modal-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--primary);
}

.reading-modal-card .meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.reading-modal-card .text {
  font-size: 15px;
  line-height: 1.6;
  color: #344054;
  margin-bottom: 18px;
}

.reading-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.reading-highlights div {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 13px;
}

.reading-highlights b {
  display: block;
  color: var(--primary);
  margin-top: 4px;
}

.reading-modal-close {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  padding: 14px;
  cursor: pointer;
}

.reading-loading {
  text-align: center;
  padding: 30px 0;
  color: var(--muted);
}

.section-hero {
  padding: 48px 54px 32px;
}

.section-hero .tag {
  margin-bottom: 14px;
}

.section-hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.section-hero h1 span {
  color: var(--primary);
}

.section-hero p {
  font-size: 18px;
  color: #4b5563;
  max-width: 640px;
}

.section-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}

.section-lower {
  margin: 0 38px 24px;
  grid-template-columns: 1.3fr 1fr;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hub-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  background: #fff;
  transition: 0.2s;
  text-align: center;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
  border-color: var(--primary);
}

.hub-icon {
  display: block;
  font-size: 36px;
  margin-bottom: 10px;
}

.hub-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.hub-card span {
  font-size: 12px;
  color: var(--muted);
}

a.float {
  color: inherit;
  transition: 0.2s;
}

a.float:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

a.reading {
  display: flex;
  flex-direction: column;
  color: inherit;
  height: 100%;
}

.resource-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 720px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  background: #fff;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: 0.2s;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
  border-color: var(--primary);
}

.blog-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card strong {
  font-size: 17px;
  line-height: 1.3;
}

.blog-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.blog-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}

.guide-steps {
  display: grid;
  gap: 16px;
}

.guide-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px;
  background: #fff;
}

.guide-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
}

.guide-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.guide-step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.transit-list {
  display: grid;
  gap: 14px;
}

.transit-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px;
  background: #fff;
}

.transit-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.transit-head strong {
  font-size: 17px;
}

.transit-head span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.transit-card p {
  color: #374151;
  line-height: 1.6;
  margin: 0 0 8px;
}

.transit-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.resource-cta {
  margin-top: 24px;
}

.btn-resource {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
}

.btn-resource:hover {
  opacity: 0.92;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.help-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  background: #fff;
  color: inherit;
  transition: 0.2s;
}

.help-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
  border-color: var(--primary);
}

.help-icon {
  display: block;
  font-size: 32px;
  margin-bottom: 10px;
}

.help-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.help-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.help-action {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.topic-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  background: #fff;
}

.topic-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.topic-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1200px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section-hero {
    padding: 32px 20px 24px;
  }

  .hub-grid,
  .blog-grid,
  .help-grid,
  .topic-list {
    grid-template-columns: 1fr;
  }

  .guide-step {
    grid-template-columns: 40px 1fr;
  }

  .guide-num {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  .ai-horoscope-page .top {
    grid-template-columns: 1fr;
    padding: 14px 20px;
  }

  .ai-horoscope-page .searchbar {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ai-horoscope-page .actions {
    justify-content: flex-end;
  }

  .ai-horoscope-page .nav {
    padding: 0 16px;
  }

  .searchbar,
  .hero,
  .grid3,
  .lower,
  .browse {
    grid-template-columns: 1fr;
  }

  .zodiac {
    grid-template-columns: repeat(6, 1fr);
  }

  .grid3 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "readings"
      "why"
      "guides";
  }

  .readings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .foot {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-stage {
    width: min(100%, 360px);
    min-height: auto;
    padding-bottom: 12px;
  }

  .visual {
    padding: 8px 0;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-illustration {
    width: min(100%, 360px);
    max-height: 520px;
  }
}

@media (max-width: 900px) {
  .ai-horoscope-page .searchbar {
    grid-template-columns: 1fr;
  }

  .ai-horoscope-page .login-label {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-form,
  .trust,
  .steps,
  .match-row,
  .highlight,
  .cta {
    grid-template-columns: 1fr;
  }

  .section,
  .grid3,
  .lower,
  .browse,
  .cta {
    margin-left: 14px;
    margin-right: 14px;
  }

  .zodiac,
  .readings,
  .foot {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-stage {
    width: 100%;
    max-width: 360px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 12px 16px;
  }

  .hero-illustration {
    max-width: 280px;
    margin-bottom: 4px;
  }

  .float {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .float-l1,
  .float-l2,
  .float-l3,
  .float-r1,
  .float-r2,
  .float-r3 {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .float strong,
  .float span {
    white-space: normal;
  }

  .visual {
    padding: 10px 0 20px;
  }

  .perspective-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .perspective-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px;
  }

  .perspective-tabs::-webkit-scrollbar {
    display: none;
  }

  .perspective-tab {
    flex-shrink: 0;
    padding: 6px 12px;
  }
}
