/* ============================================================
   hoangdao.css — Cung Hoàng Đạo (nền kem, tông tím chiêm tinh)
   ============================================================ */
:root {
  --font-heading: 'Be Vietnam Pro', sans-serif;
  --font-body:    'Be Vietnam Pro', sans-serif;
  --bg:        #fbf3e4;
  --bg-2:      #f1eafb;
  --surface:   #ffffff;
  --text:      #2a1b3d;
  --sub:       #5b4a70;
  --muted:     #9a8bb0;
  --border:    rgba(124, 58, 237, 0.14);
  --shadow:    0 6px 22px rgba(70, 40, 120, 0.09);
  --shadow-h:  0 16px 44px rgba(70, 40, 120, 0.16);
  --violet:    #7c3aed;
  --violet-d:  #6d28d9;
  --violet-dim:rgba(124, 58, 237, 0.08);
  --gold:      #d98a0a;
  --bg-glass:  rgba(124, 58, 237, 0.05);
  --text-secondary: #5b4a70;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select, a { touch-action: manipulation; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 90% 60% at 50% -10%, var(--bg-2) 0%, transparent 70%);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 110px;
}
a { color: var(--violet-d); }
.gemini-glow-1, .gemini-glow-2, .gemini-glow-3 { display: none !important; }

.hd-wrapper { max-width: 620px; margin: 0 auto; padding: 0 16px 32px; }

.hd-hero-top { text-align: center; padding: 26px 0 10px; }
.hd-hero-top .l-brand-icon {
  width: 74px; height: 74px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; border-radius: 22px;
  background: linear-gradient(135deg, #fff, #f1eafb);
  border: 1.5px solid rgba(124, 58, 237, 0.4); box-shadow: 0 10px 28px rgba(70, 40, 120, 0.1);
}
.hd-hero-top .l-brand-icon img { width: 46px; }
.hd-title {
  font-family: var(--font-heading); font-size: clamp(32px, 8.5vw, 46px); font-weight: 900;
  background: linear-gradient(135deg, var(--text) 20%, var(--violet) 70%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 6px 0 8px;
}
.hd-subtitle { font-size: 13px; color: var(--muted); letter-spacing: 0.3px; }
.seo-app-intro {
  font-size: 13.5px; color: var(--sub); max-width: 480px; margin: 12px auto 0;
  line-height: 1.6; text-align: center; border-top: 1px dashed var(--border); padding-top: 12px;
}

#hd-root { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.hd-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 20px; box-shadow: var(--shadow); position: relative;
}
.hd-card::after { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(124,58,237,0.12); border-radius: 17px; pointer-events: none; }

/* Picker */
.hd-picker-title { font-size: 18px; font-weight: 800; } .hd-picker-title i { color: var(--violet); }
.hd-picker-sub { font-size: 12.5px; color: var(--sub); margin: 4px 0 14px; }
.hd-form { display: flex; gap: 8px; margin-bottom: 16px; position: relative; z-index: 1; }
.hd-select {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--text);
}
.hd-select:focus { outline: none; border-color: var(--violet); }
.hd-btn, .hd-ask {
  background: linear-gradient(135deg, #9560f0, var(--violet-d)); color: #fff; border: none;
  border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 800; font-family: inherit;
  cursor: pointer; box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3); position: relative; z-index: 1;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hd-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(124, 58, 237, 0.4); }
.hd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; z-index: 1; }
.hd-sign-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px 6px;
  cursor: pointer; font-family: inherit; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hd-sign-chip:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--shadow); }
.hd-chip-sym { font-size: 26px; color: var(--violet); line-height: 1; }
.hd-chip-name { font-size: 12.5px; font-weight: 800; color: var(--text); }
.hd-chip-range { font-size: 9.5px; color: var(--muted); }

/* Hero sign */
.hd-hero { text-align: center; }
.hd-hero-sym { font-size: 68px; line-height: 1; color: var(--violet); }
.hd-hero-name { font-size: 24px; font-weight: 900; margin-top: 4px; }
.hd-hero-en { font-size: 15px; font-weight: 600; color: var(--muted); }
.hd-hero-range { font-size: 13px; color: var(--sub); margin-top: 2px; }
.hd-hero-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 12px; }
.hd-hero-chips span {
  font-size: 11.5px; font-weight: 700; color: var(--sub); background: var(--bg-glass);
  border: 1px solid var(--border); border-radius: 99px; padding: 5px 11px;
  display: inline-flex; align-items: center; gap: 5px;
}
.hd-hero-chips i { color: var(--violet); }

.hd-sec-head {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 12px;
}
.hd-sec-head i { color: var(--violet); font-size: 14px; }
.hd-body { font-size: 13.5px; color: var(--sub); line-height: 1.7; }

/* Daily */
.hd-daily { background: linear-gradient(165deg, #ffffff 0%, #f6f0fe 100%); }
.hd-stars { font-size: 22px; color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.hd-daily-main { font-size: 14px; color: var(--text); line-height: 1.65; font-weight: 600; }
.hd-daily-grid { display: grid; gap: 10px; margin: 14px 0; }
.hd-daily-grid > div { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.hd-daily-label { font-size: 11.5px; font-weight: 800; color: var(--violet-d); display: inline-flex; align-items: center; gap: 5px; }
.hd-daily-grid p { font-size: 12.5px; color: var(--sub); line-height: 1.55; margin-top: 4px; }
.hd-daily-lucky { font-size: 12.5px; color: var(--sub); text-align: center; }
.hd-daily-lucky b { color: var(--violet-d); }
.hd-daily-advice { font-size: 12.5px; color: var(--text); background: var(--violet-dim); border-radius: 10px; padding: 10px 12px; margin-top: 10px; line-height: 1.55; }
.hd-daily-advice i { color: var(--gold); }

/* Strengths / weaknesses */
.hd-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.hd-sw-title { font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.hd-strong .hd-sw-title { color: #0d9668; } .hd-weak .hd-sw-title { color: #dc2626; }
.hd-sw ul { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.hd-sw li { font-size: 12.5px; color: var(--sub); line-height: 1.4; padding-left: 14px; position: relative; }
.hd-sw li::before { content: '·'; position: absolute; left: 4px; font-weight: 900; }
.hd-strong li::before { color: #0d9668; } .hd-weak li::before { color: #dc2626; }

.hd-aspect { margin-bottom: 12px; }
.hd-aspect-label { font-size: 13px; font-weight: 800; color: var(--text); }
.hd-aspect p { font-size: 13px; color: var(--sub); line-height: 1.6; margin-top: 3px; }

/* Compatibility */
.hd-match-hint { font-size: 12.5px; color: var(--sub); margin-bottom: 10px; }
.hd-match #hd-match-sel { width: 100%; }
.hd-match-score {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px;
  border-radius: 14px; border: 1px solid var(--border);
}
.hd-match-score.hd-good { background: rgba(13,150,104,0.08); }
.hd-match-score.hd-mid { background: var(--violet-dim); }
.hd-match-score.hd-low { background: rgba(220,38,38,0.06); }
.hd-match-pct { font-size: 34px; font-weight: 900; color: var(--violet-d); }
.hd-good .hd-match-pct { color: #0d9668; } .hd-low .hd-match-pct { color: #dc2626; }
.hd-match-verdict { font-size: 13.5px; font-weight: 700; color: var(--text); }
.hd-match-quick { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 12px; }
.hd-hop { color: #0d9668; } .hd-khac { color: #b45309; }
.hd-match-quick i { margin-right: 4px; }

/* AI chat */
.hd-chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.hd-loading { font-size: 12.5px; color: var(--muted); font-style: italic; padding: 6px 0; }
.hd-loading.hidden { display: none; }
.hd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hd-qchip {
  border: 1px solid rgba(124,58,237,0.35); background: var(--violet-dim); color: var(--violet-d);
  border-radius: 99px; padding: 7px 13px; font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.hd-qchip:hover { background: var(--violet); color: #fff; }
.hd-chat-row { display: flex; gap: 8px; }
.hd-chat-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--text);
}
.hd-chat-input:focus { outline: none; border-color: var(--violet); }
.hd-ask { padding: 12px 16px; }
/* bong bóng chat (dùng class chung của chat.js nếu có) */
.hd-chat .chat-bubble { font-size: 13.5px; line-height: 1.6; padding: 11px 14px; border-radius: 14px; max-width: 92%; }
.hd-chat .chat-ai { background: var(--bg); color: var(--text); align-self: flex-start; }
.hd-chat .chat-user { background: linear-gradient(135deg, #9560f0, var(--violet-d)); color: #fff; align-self: flex-end; }

.hd-actions { display: flex; gap: 10px; }
.hd-actions .hd-btn { flex: 1.3; justify-content: center; display: inline-flex; align-items: center; gap: 6px; }
.hd-btn-sub {
  flex: 1; background: #fff; border: 1.5px solid var(--violet); color: var(--violet-d);
  border-radius: 12px; padding: 12px 10px; font-size: 13px; font-weight: 800; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.hd-btn-sub:hover { background: var(--violet-dim); }
.hd-disclaimer { text-align: center; font-size: 11px; color: var(--muted); line-height: 1.6; }

@media (min-width: 768px) {
  .hd-daily-grid { grid-template-columns: repeat(3, 1fr); }
  .hd-grid { grid-template-columns: repeat(4, 1fr); }
}
