/* Shared styles for the reading pages: tarot/index.html, numerology/index.html, kp/index.html, vedic/index.html, tools/index.html.
   Moved here from each page (18 Nov 2026) — edit once instead of in every page.
   Colours come from theme.css tokens. */
.start-wrap{min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 0;}
.auth-overlay{display:none; position:fixed; top:0; right:0; bottom:0; left:0; inset:0; background:rgb(var(--ink-x1e1c3c) / .55); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); z-index:1000; align-items:center; justify-content:center;}
.auth-overlay.open{display:flex;}
.auth-box input[type=email], .auth-box input[type=text]{width:100%; padding:10px 14px; border:1.5px solid var(--border); border-radius:8px; font-size:.93rem; font-family:var(--font-ui); outline:none; transition:border .2s; box-sizing:border-box;}
.auth-box input:focus{border-color:var(--violet2);}
.auth-msg{font-size:.78rem; color:var(--gold2); margin-top:8px; min-height:18px;}
.auth-close{position:absolute; top:14px; right:16px; background:none; border:none; font-size:1.3rem; cursor:pointer; color:var(--text3); line-height:1;}
.auth-back{background:none; border:none; color:var(--text3); font-size:.73rem; cursor:pointer; margin-top:8px; padding:0; font-family:var(--font-ui); display:block; width:100%; text-align:center;}
.auth-hp{position:absolute; left:-9999px;}
.auth-box{background:linear-gradient(160deg,rgb(var(--violet-50)),rgb(var(--white))); border:1px solid rgb(var(--violet-700) / .15); border-radius:16px; padding:22px 24px 18px; width:min(420px,92vw); box-shadow:0 12px 48px rgb(var(--violet-700) / .14); position:relative;}
.auth-logo{display:flex; align-items:center; justify-content:center; gap:9px; margin-bottom:16px;}
.auth-offer{background:rgb(var(--amber-700) / .07); border:1px solid rgb(var(--amber-700) / .25); border-radius:8px; padding:8px 14px; font-size:.78rem; color:rgb(var(--amber-800)); font-weight:600; text-align:center; margin-bottom:14px;}
.auth-info-box{background:rgb(var(--violet-700) / .06); border:1px solid rgb(var(--violet-700) / .15); border-radius:8px; padding:10px 14px; font-size:.75rem; color:var(--text2); line-height:1.55; margin-top:10px;}
.auth-btn{width:100%; padding:11px 16px; background:linear-gradient(135deg,rgb(var(--amber-600)),rgb(var(--amber-700))); color:rgb(var(--white)); border:none; border-radius:10px; font-size:.88rem; font-weight:600; font-family:var(--font-ui); letter-spacing:.01em; cursor:pointer; margin-top:6px; box-shadow:0 3px 14px rgb(var(--amber-700) / .28); transition:all .2s;}
.auth-btn:hover:not(:disabled){box-shadow:0 8px 28px rgb(var(--amber-700) / .45); transform:translateY(-1px);}
.auth-btn:disabled{opacity:.55; cursor:not-allowed; transform:none;}
.auth-badge{display:inline-flex; align-items:center; gap:5px; background:rgb(var(--violet-700) / .07); border:1px solid rgb(var(--violet-700) / .18); border-radius:20px; padding:4px 11px; font-size:.68rem; font-weight:600; color:rgb(var(--violet-700)); letter-spacing:.04em;}
.agent-form-wrap{display:none; padding:24px 0;}
.form-card{width:100%; max-width:800px; background:rgb(var(--white)); border:1px solid rgb(var(--ink-400) / .16); border-radius:22px; padding:1.85rem 2.1rem; box-shadow:0 8px 40px rgb(var(--ink-500) / .11),0 2px 8px rgb(var(--ink-500) / .06); margin:0 auto;}
.form-card-logo{font-family:var(--font-d); font-size:1.2rem; letter-spacing:.14em; font-weight:700; margin-bottom:.3rem; text-align:center; background:linear-gradient(135deg,rgb(var(--ink-x1c2340)),rgb(var(--yellow-xc9952a))); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;}
.form-card-sub{font-size:.82rem; color:var(--text3); text-align:center; margin-bottom:.9rem;}
.calc-btn{width:100%; padding:.75rem; border-radius:13px; background:linear-gradient(135deg,rgb(var(--violet-600)),rgb(var(--violet-700))); color:rgb(var(--white)); font-size:.92rem; font-weight:600; font-family:var(--font-d); letter-spacing:.1em; cursor:pointer; transition:all .25s; margin-top:.65rem; border:1px solid rgb(var(--violet-500) / .4); box-shadow:0 4px 20px rgb(var(--violet-700) / .32);}
.calc-btn:hover{transform:translateY(-2px); box-shadow:0 10px 30px rgb(var(--violet-700) / .42);}
#post-chart{display:none; flex-direction:column; flex:1; overflow:hidden; min-height:0;}
.tab-bar{display:flex; border-bottom:1px solid var(--border); flex-shrink:0; background:rgb(var(--white)); overflow-x:auto; align-items:center;}
.tab-btn{padding:10px 18px; background:none; border:none; border-bottom:2px solid transparent; font-size:.82rem; font-weight:500; cursor:pointer; color:var(--text3); font-family:var(--font-ui); white-space:nowrap; transition:color .15s, border-color .15s;}
.tab-btn.active{color:var(--violet2); border-bottom-color:var(--violet2); font-weight:600;}
.new-chart-btn{margin-left:auto; padding:.3rem .75rem; border-radius:6px; border:1px solid rgb(var(--ink-400) / .12); background:transparent; color:rgb(var(--ink-600) / .42); font-size:.7rem; font-weight:500; cursor:pointer; font-family:var(--font-ui); margin-right:.5rem; flex-shrink:0; transition:all .2s;}
.new-chart-btn:hover{color:rgb(var(--ink-600) / .72); border-color:rgb(var(--ink-400) / .22);}
#mpanel-chat{display:flex; flex-direction:column; flex:1; overflow:hidden; min-height:0;}
.feedback-strip{display:flex; align-items:center; gap:8px; padding:5px 14px; background:rgb(var(--gray-50)); border-top:1px solid var(--border); flex-shrink:0; min-height:34px;}
.fb-strip-btn{background:none; border:none; font-size:.72rem; color:var(--text2); cursor:pointer; padding:2px 0; font-family:var(--font-ui); text-decoration:underline; text-underline-offset:2px;}
.fb-strip-btn:hover{color:var(--text2);}
.fb-strip-input{flex:1; padding:4px 10px; border:1.5px solid rgb(var(--ink-400) / .2); border-radius:8px; font-size:.78rem; font-family:var(--font-ui); outline:none; background:rgb(var(--white));}
.fb-strip-input:focus{border-color:var(--violet2);}
.fb-strip-send{padding:4px 12px; background:var(--violet2); color:rgb(var(--white)); border:none; border-radius:8px; font-size:.75rem; font-weight:600; cursor:pointer; font-family:var(--font-ui);}
.fb-strip-cancel{background:none; border:none; font-size:.82rem; color:var(--text3); cursor:pointer; padding:2px 4px;}
.fb-strip-thanks{font-size:.72rem; color:var(--text3);}
#fb-strip-open{display:none; align-items:center; gap:6px; flex:1;}
.chat-input-bar{display:flex; align-items:flex-end; gap:8px; padding:10px 14px; border-top:1px solid var(--border); background:rgb(var(--white)); flex-shrink:0;}
#chat-input{flex:1; resize:none; border:1.5px solid var(--border); border-radius:10px; padding:9px 12px; font-size:.88rem; font-family:var(--font-ui); outline:none; max-height:120px; line-height:1.5; transition:border-color .2s;}
#chat-input:focus{border-color:var(--violet2);}
#chat-input:disabled{background:var(--surface); color:var(--text3);}
#send-btn{width:40px; height:40px; border-radius:50%; border:1px solid rgb(var(--violet-600) / .38); background:linear-gradient(135deg,var(--violet),var(--violet2)); color:rgb(var(--white)); cursor:pointer; flex-shrink:0; transition:all .25s; display:flex; align-items:center; justify-content:center; box-shadow:0 3px 16px rgb(var(--violet-600) / .45);}
#send-btn:hover{transform:scale(1.1); box-shadow:0 0 28px rgb(var(--violet-600) / .65);}
#send-btn:disabled{opacity:.3; cursor:not-allowed; transform:none; box-shadow:none;}
#q-counter{font-size:.72rem; color:var(--text3); margin-right:4px; flex-shrink:0;}
.msg{display:flex; gap:10px; align-items:flex-start;}
.msg.user{flex-direction:row-reverse;}
.avatar{width:28px; height:28px; border-radius:50%; background:var(--surface2); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.bubble{max-width:82%; padding:10px 13px; border-radius:12px; font-size:.87rem; line-height:1.6;}
.bubble.user{background:var(--violet2); color:rgb(var(--white)); border-radius:12px 2px 12px 12px;}
.bubble.agent{background:rgb(var(--white)); color:var(--text); border:1px solid var(--border); border-radius:2px 12px 12px 12px;}
.bubble strong{font-weight:700;}
.bubble em{font-style:italic;}
.bubble h2, .bubble h3{font-family:var(--font-d); font-size:.9rem; margin:8px 0 4px;}
.bubble hr{border:none; border-top:1px solid var(--border); margin:8px 0;}
.bubble code{background:var(--surface); padding:1px 5px; border-radius:4px; font-size:.82em;}
.bubble p{margin:0;}
.verdict-block{background:var(--violet-dim); border-left:3px solid var(--violet3); padding:8px 12px; border-radius:0 8px 8px 0; margin:8px 0; font-size:.84rem;}
.summary-block{background:var(--gold-dim); border-left:3px solid var(--gold3); padding:8px 12px; border-radius:0 8px 8px 0; margin:8px 0; font-size:.84rem;}
.engine-strip{font-size:.7rem; color:var(--text3); border-top:1px solid var(--border2); margin-top:6px; padding-top:5px; font-family:monospace;}
.tarot-reading-card{background:linear-gradient(135deg,rgb(var(--purple-xc9a0dc) / .08),rgb(var(--violet-700) / .05)); border:1px solid rgb(var(--purple-xc9a0dc) / .3); border-radius:12px; padding:16px; max-width:82%;}
.chips{display:flex; flex-wrap:wrap; gap:8px; padding:4px 0 4px 38px;}
.chip{padding:7px 14px; border-radius:20px; border:1.5px solid var(--border); background:rgb(var(--white)); font-size:.82rem; cursor:pointer; color:var(--text2); font-family:var(--font-ui); transition:all .15s;}
.chip:hover{border-color:var(--violet2); color:var(--violet2);}
.chip.chip-yes{border-color:var(--violet2); color:var(--violet2); background:var(--violet-dim);}
.chip.chip-no{border-color:var(--border); color:var(--text3);}
.typing{display:flex; gap:4px; align-items:center; padding:4px 2px;}
.typing span{width:6px; height:6px; background:var(--violet3); border-radius:50%; animation:typingBounce 1.2s infinite;}
.typing span:nth-child(2){animation-delay:.2s;}
.typing span:nth-child(3){animation-delay:.4s;}
#mpanel-planets, #mpanel-dasha{flex:1; overflow-y:auto; padding:16px;}
.planet-table{width:100%; border-collapse:collapse; font-size:.82rem;}
.planet-table th{text-align:left; padding:6px 10px; font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--text3); border-bottom:2px solid var(--border);}
.planet-table td{padding:7px 10px; border-bottom:1px solid var(--border2);}
.planet-table tr:last-child td{border-bottom:none;}
.house-badge{display:inline-block; padding:1px 6px; background:var(--violet-dim); color:var(--violet2); border-radius:4px; font-size:.72rem; font-weight:600;}
.dasha-md{margin-bottom:8px; border:1px solid var(--border); border-radius:10px; overflow:hidden;}
.dasha-md-hdr{display:flex; justify-content:space-between; align-items:center; padding:10px 14px; cursor:pointer; font-size:.84rem; font-weight:600; background:var(--surface);}
.dasha-md-hdr.cur{background:var(--violet-dim); color:var(--violet);}
.dasha-md-hdr.past{color:var(--text3);}
.dasha-md-dates{font-size:.72rem; font-family:monospace; font-weight:400; color:var(--text3);}
.dasha-ad-list{background:rgb(var(--white));}
.dasha-ad-wrap{border-top:1px solid var(--border2);}
.dasha-ad{display:flex; justify-content:space-between; align-items:center; padding:7px 14px 7px 22px; cursor:pointer; font-size:.78rem; color:var(--text2);}
.dasha-ad.cur{color:var(--violet2); font-weight:600;}
.dasha-pd-list{padding:0 14px 6px 36px;}
.dasha-pd{display:flex; justify-content:space-between; padding:3px 0; font-size:.71rem; color:var(--text3);}
.dasha-pd.cur{color:var(--teal); font-weight:600;}
.retry-btn{margin-top:6px; padding:6px 14px; background:none; border:1.5px solid var(--violet2); color:var(--violet2); border-radius:8px; font-size:.8rem; cursor:pointer; font-family:var(--font-ui);}
.num-err{display:none; font-size:.78rem; color:var(--gold2); margin-top:6px; line-height:1.5;}
#history-panel.open{right:0!important}
#history-panel.open~#history-overlay{display:block!important}
@media (max-width: 600px){
  .form-card{padding:1.25rem 1rem;}
}
