/* Gemstone finder, navagraha grid and intent cards on the home page. */
/* ============ finder ============ */
.finder { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.finder-card { border-radius: 28px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; transition: all .2s; }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.finder-panel { padding: 32px; }
.finder-form { display: grid; grid-template-columns: 190px 190px 1fr auto; gap: 20px; align-items: end; }
.finder-form .field-intents { grid-column: 1 / -1; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--gold); }
.range-row output { font-weight: 700; min-width: 90px; text-align: right; }

.results { margin-top: 28px; display: grid; gap: 16px; }
.signal-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signal { padding: 8px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.signal b { color: var(--gold); }
.signal-lead { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent); }
.signal-ask { text-align: left; border: 1px dashed var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s; }
.signal-ask:hover { border-color: var(--gold); color: var(--text); }
.pick { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); position: relative; overflow: hidden; animation: rise .5s var(--ease) both; }
.pick:nth-child(2) { animation-delay: .08s; } .pick:nth-child(3) { animation-delay: .16s; }
.pick::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 0% 50%, var(--pc), transparent 70%); opacity: .16; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.pick-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pick h3 { font-size: 30px; }
.pick-match { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--ok); }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 8px 0 12px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--ok)); border-radius: inherit; transform-origin: left; animation: grow 1s var(--ease) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }
.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.reasons li::before { content: '✦'; color: var(--gold); margin-right: 8px; font-size: 11px; }
.wear { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.mini-products { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.mini-product { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; transition: border-color .2s; }
.mini-product:hover { border-color: var(--gold); }
.mini-product svg { width: 30px; height: 30px; }
.disclaimer { font-size: 12.5px; color: var(--faint); }

.purpose-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.purpose { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); text-align: left; transition: all .25s var(--ease); }
.purpose:hover { border-color: var(--gold); transform: translateY(-3px); }
.purpose .emoji { font-size: 22px; }
.purpose b { display: block; margin-top: 10px; }
.purpose span { font-size: 13px; color: var(--muted); }

/* ============ navagraha grid ============ */
.graha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.graha-card {
  --c: #d9b46c; position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center;
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform .35s var(--ease), border-color .35s;
}
.graha-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(300px 180px at 15% 50%, var(--c), transparent 70%); opacity: .0; transition: opacity .4s; }
.graha-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.graha-card:hover::before { opacity: .18; }
.graha-card .gem-svg { width: 96px; height: 96px; transition: transform .6s var(--ease); position: relative; }
.graha-card:hover .gem-svg { transform: rotate(-8deg) scale(1.08); }
.graha-card .planet { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); position: relative; }
.graha-card h3 { font-size: 26px; position: relative; }
.graha-card h3 small { font-size: 16px; color: var(--muted); font-style: italic; font-weight: 500; }
.graha-card p { font-size: 13.5px; color: var(--muted); margin-top: 4px; position: relative; }
.graha-card .from { font-size: 12.5px; margin-top: 8px; color: var(--gold); font-weight: 600; position: relative; }

/* ============ intents ============ */
.intent-scroller { display: grid; grid-template-columns: repeat(8, minmax(140px, 1fr)); gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.intent-card { position: relative; padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; transition: all .3s var(--ease); min-height: 150px; }
.intent-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.intent-card .swatches { display: flex; }
.intent-card .swatches i { width: 22px; height: 22px; border-radius: 50%; margin-right: -6px; border: 2px solid var(--surface); box-shadow: inset -2px -2px 4px rgba(0,0,0,.3); }
.intent-card b { font-size: 15px; }
.intent-card span { font-size: 12.5px; color: var(--muted); }

