:root {
    --hks-cream: #fff9f2;
    --hks-mint: #bfede4;
    --hks-aqua: #92d9e9;
    --hks-coral: #ff8fa3;
    --hks-ink: #25324a;
    --hks-lavender: #cab8f5;
    --hks-focus: #1f6574;
    --hks-label: #56616f;
    --hks-white: #fff;
    --hks-shadow: 0 18px 50px rgba(37, 50, 74, 0.1);
}

.hks-panel,
.hks-fortune,
.hks-tarot {
    box-sizing: border-box;
    color: var(--hks-ink);
    background: var(--hks-white);
    border: 1px solid rgba(37, 50, 74, 0.08);
    border-radius: 32px;
    box-shadow: var(--hks-shadow);
    margin: 28px auto;
    max-width: 960px;
    padding: clamp(24px, 5vw, 52px);
}

.hks-section-heading { max-width: 640px; margin-bottom: 30px; }
.hks-section-heading h2,
.hks-fortune h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.25; margin: 6px 0 12px; }
.hks-section-heading p,
.hks-fortune p { line-height: 1.8; }
.hks-eyebrow { color: var(--hks-label); font-size: .74rem; font-weight: 800; letter-spacing: .16em; }

.hks-form-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hks-field { display: grid; gap: 9px; font-weight: 700; }
.hks-field input,
.hks-field select { appearance: none; background: var(--hks-cream); border: 1px solid rgba(37, 50, 74, .16); border-radius: 16px; color: var(--hks-ink); font: inherit; min-height: 52px; padding: 0 16px; }
.hks-field input:focus-visible,
.hks-field select:focus-visible { border-color: var(--hks-focus); box-shadow: 0 0 0 4px rgba(31, 101, 116, .2); outline: 2px solid var(--hks-focus); outline-offset: 2px; }
.hks-consent { align-items: flex-start; display: flex; gap: 10px; line-height: 1.6; margin: 22px 0; }
.hks-consent input { accent-color: #579aac; height: 19px; margin-top: 3px; width: 19px; }

.hks-button { background: var(--hks-ink); border: 0; border-radius: 999px; color: #fff !important; cursor: pointer; display: inline-flex; font-weight: 800; justify-content: center; line-height: 1; padding: 17px 26px; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.hks-button:hover { box-shadow: 0 10px 24px rgba(37, 50, 74, .2); transform: translateY(-2px); }
.hks-button:focus-visible { box-shadow: 0 0 0 5px rgba(31, 101, 116, .2); outline: 3px solid var(--hks-focus); outline-offset: 3px; }
.hks-button--secondary { background: var(--hks-lavender); color: var(--hks-ink) !important; }
.hks-text-link { color: var(--hks-ink); font-weight: 700; text-underline-offset: 5px; }

.hks-notice { border-radius: 16px; margin: 0 0 22px; padding: 14px 18px; }
.hks-notice--success { background: rgba(191, 237, 228, .72); }
.hks-notice--error { background: rgba(255, 143, 163, .2); }
.hks-disclaimer { color: #6c7280; font-size: .78rem; margin: 24px 0 0; }
.hks-empty { text-align: center; }
.hks-empty-icon { align-items: center; background: var(--hks-cream); border-radius: 50%; display: inline-flex; font-size: 2rem; height: 76px; justify-content: center; width: 76px; }

.hks-fortune { background: linear-gradient(150deg, #fff 0%, var(--hks-cream) 100%); }
.hks-fortune-hero { align-items: center; display: grid; gap: 28px; grid-template-columns: 1fr auto; }
.hks-score-orb { align-items: baseline; background: linear-gradient(145deg, var(--hks-aqua), var(--hks-lavender)); border: 8px solid rgba(255,255,255,.7); border-radius: 50%; display: flex; height: 138px; justify-content: center; width: 138px; }
.hks-score-orb strong { font-size: 2.6rem; }
.hks-score-orb span { font-size: .78rem; }
.hks-score-grid { background: rgba(255,255,255,.74); border-radius: 24px; display: grid; gap: 14px; margin: 30px 0; padding: 24px; }
.hks-score-row { align-items: center; display: grid; gap: 14px; grid-template-columns: 68px 1fr 34px; }
.hks-score-row span { font-size: .85rem; font-weight: 700; }
.hks-meter { background: #e8ecf0; border-radius: 99px; height: 9px; overflow: hidden; }
.hks-meter i { background: linear-gradient(90deg, var(--hks-aqua), var(--hks-coral)); border-radius: inherit; display: block; height: 100%; }
.hks-score-row strong { font-size: .85rem; text-align: right; }

.hks-week-chart { background: #fff; border-radius: 24px; margin-bottom: 24px; padding: 22px; }
.hks-chart-title { align-items: end; display: flex; gap: 16px; justify-content: space-between; }
.hks-chart-title h3 { margin: 0; }
.hks-chart-title span { color: var(--hks-label); font-size: .78rem; }
.hks-week-chart svg { height: auto; margin-top: 12px; overflow: visible; width: 100%; }
.hks-chart-grid { fill: none; stroke: #e8edf0; stroke-width: 1; }
.hks-chart-line { fill: none; stroke: url(#hksChartGradient); stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.hks-week-chart circle { fill: #fff; stroke: var(--hks-coral); stroke-width: 3; }
.hks-week-chart text { fill: var(--hks-ink); font-size: 10px; font-weight: 700; }

.hks-lucky-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hks-lucky-card { align-items: center; background: #fff; border-radius: 24px; display: flex; gap: 18px; padding: 22px; }
.hks-lucky-card small { color: var(--hks-label); font-weight: 800; letter-spacing: .12em; }
.hks-lucky-card h3 { margin: 4px 0; }
.hks-lucky-card p { font-size: .85rem; margin: 0; }
.hks-lucky-dot { background: var(--hks-lucky-color); border: 6px solid var(--hks-cream); border-radius: 50%; box-shadow: 0 8px 18px rgba(37,50,74,.12); flex: 0 0 auto; height: 66px; width: 66px; }
.hks-stone-gem { color: #7ebfd0; font-size: 4rem; line-height: 1; text-shadow: 3px 3px 0 var(--hks-mint); }
.hks-actions { align-items: center; display: flex; gap: 22px; margin-top: 26px; }
.hks-recommendations { background: rgba(255,255,255,.78); border-radius: 24px; margin-top: 24px; padding: 24px; }
.hks-recommendations .hks-section-heading { margin-bottom: 20px; }
.hks-recommendations .hks-section-heading h3 { font-size: 1.5rem; margin: 6px 0; }
.hks-product-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hks-product-card { background: #fff; border: 1px solid rgba(37,50,74,.08); border-radius: 20px; overflow: hidden; }
.hks-product-card__image { display: block; }
.hks-product-card__image img { aspect-ratio: 1 / 1; display: block; height: auto; object-fit: cover; width: 100%; }
.hks-product-card__body { padding: 18px; }
.hks-product-card h4 { margin: 0 0 8px; }
.hks-product-card h4 a { color: var(--hks-ink); }
.hks-product-card p { color: var(--hks-label); font-size: .84rem; }
.hks-product-price { font-weight: 800; margin: 14px 0; }
.hks-product-card .hks-button { padding: 13px 18px; width: 100%; }
.hks-table-scroll { overflow-x: auto; }
.hks-history-table { border-collapse: collapse; min-width: 620px; width: 100%; }
.hks-history-table th,
.hks-history-table td { border-bottom: 1px solid rgba(37,50,74,.1); padding: 13px; text-align: left; }
.hks-history-table thead th { color: var(--hks-label); font-size: .78rem; }
.hks-reading-list { display: grid; gap: 16px; }
.hks-reading-item { background: var(--hks-cream); border-radius: 20px; padding: 20px; }
.hks-reading-item header { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.hks-reading-item time { color: var(--hks-label); font-size: .84rem; }
.hks-reading-item ul { display: grid; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.hks-reading-item li { align-items: baseline; display: flex; flex-wrap: wrap; gap: 8px; }
.hks-reading-item li span,
.hks-reading-item li small { color: var(--hks-label); }

.hks-tarot { background: radial-gradient(circle at top right, rgba(202,184,245,.42), transparent 34%), var(--hks-ink); color: #fff; }
.hks-tarot .hks-eyebrow { color: var(--hks-mint); }
.hks-tarot-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hks-tarot .hks-button { background: var(--hks-coral); color: var(--hks-ink) !important; }
.hks-tarot .hks-button--secondary { background: var(--hks-mint); }
.hks-tarot-result { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
.hks-tarot-card { background: var(--hks-cream); border-radius: 22px; color: var(--hks-ink); min-height: 270px; padding: 22px; position: relative; }
.hks-tarot-card::before { border: 1px solid rgba(37,50,74,.14); border-radius: 16px; content: ''; inset: 8px; pointer-events: none; position: absolute; }
.hks-tarot-card > * { position: relative; }
.hks-tarot-card small { color: var(--hks-label); font-weight: 800; letter-spacing: .08em; }
.hks-tarot-card h3 { margin: 14px 0 4px; }
.hks-tarot-card .hks-card-symbol { color: #8c76c7; display: block; font-size: 3rem; margin: 18px 0; text-align: center; }
.hks-tarot-card p { font-size: .88rem; line-height: 1.75; }
.hks-tarot-loading { grid-column: 1 / -1; padding: 30px; text-align: center; }

.hks-dashboard-nav { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 28px auto; max-width: 960px; }
.hks-dashboard-nav a { align-items: center; background: var(--hks-cream); border-radius: 20px; color: var(--hks-ink); display: flex; font-weight: 800; gap: 14px; padding: 18px; text-decoration: none; }
.hks-dashboard-nav span { align-items: center; background: var(--hks-mint); border-radius: 50%; display: inline-flex; font-size: .7rem; height: 34px; justify-content: center; width: 34px; }

@media (max-width: 700px) {
    .hks-form-grid,
    .hks-lucky-grid,
    .hks-dashboard-nav { grid-template-columns: 1fr; }
    .hks-fortune-hero { grid-template-columns: 1fr; }
    .hks-score-orb { height: 108px; width: 108px; }
    .hks-tarot-result { grid-template-columns: 1fr; }
    .hks-product-grid { grid-template-columns: 1fr; }
    .hks-chart-title { align-items: flex-start; flex-direction: column; }
    .hks-actions { align-items: flex-start; flex-direction: column; }
}
