/**
 * ShriGanesh Kundli – Full Astro App UI v2
 * Mobile-first · Dark cosmos · Gold accents
 * HELIOXEN TECHNOLOGIES
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

.hsgk-wrapper {
  --hsgk-primary: #7B1E3C;
  --hsgk-accent: #F5A623;
  --hsgk-bg: #0B0614;
  --hsgk-surface: #140C22;
  --hsgk-card: #1C1230;
  --hsgk-border: rgba(245, 166, 35, 0.22);
  --hsgk-text: #F8F2FF;
  --hsgk-muted: #A99BB8;
  --hsgk-gold: #F5D76E;
  --hsgk-success: #2ECC71;
  --hsgk-radius: 18px;
  --hsgk-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);

  font-family: 'Poppins', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: var(--hsgk-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(123, 30, 60, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 70%, rgba(80, 40, 140, 0.25) 0%, transparent 50%);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  color: var(--hsgk-text);
  position: relative;
  border: none;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  .hsgk-wrapper {
    max-width: 560px !important;
    margin: 12px auto 32px !important;
    border-radius: 24px;
    border: 1px solid var(--hsgk-border);
    box-shadow: var(--hsgk-shadow);
    overflow: hidden;
  }
}

.hsgk-wrapper *,
.hsgk-wrapper *::before,
.hsgk-wrapper *::after { box-sizing: border-box; }

/* ===== APP HEADER ===== */
.hsgk-header {
  text-align: center;
  padding: 20px 16px 12px;
  position: relative;
}

.hsgk-header::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.45), transparent);
}

.hsgk-logo-wrap {
  margin: 0 auto 8px;
  width: 64px;
  height: 64px;
}
.hsgk-logo {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(245, 166, 35, 0.18),
    0 8px 24px rgba(245, 166, 35, 0.35);
  animation: hsgkPulse 3s ease-in-out infinite;
}
.hsgk-footer-logo {
  display: block;
  margin: 0 auto 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  opacity: 0.95;
}
.hsgk-om {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #F5A623, #C0392B 45%, #6B1B3A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(245, 166, 35, 0.15),
    0 8px 24px rgba(245, 166, 35, 0.35);
  line-height: 1;
  animation: hsgkPulse 3s ease-in-out infinite;
}

@keyframes hsgkPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245,166,35,0.15), 0 8px 24px rgba(245,166,35,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(245,166,35,0.08), 0 8px 28px rgba(245,166,35,0.45); }
}

.hsgk-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  background: linear-gradient(100deg, #FFF6C8, #F5A623, #FF8A65);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

.hsgk-subtitle {
  font-size: 11px;
  color: var(--hsgk-muted);
  margin: 0;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hsgk-ganesh-mini {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 16px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 24px;
  font-size: 12px;
  color: var(--hsgk-gold);
  font-weight: 500;
}

/* ===== SCROLL TABS ===== */
.hsgk-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  margin: 0;
  background: rgba(11, 6, 20, 0.94);
  border-radius: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: none;
  border-bottom: 1px solid rgba(245, 166, 35, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.hsgk-tabs::-webkit-scrollbar { display: none; }

/* Back bar under tabs on sub-screens */
.hsgk-back-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 0;
}
.hsgk-back-bar.show { display: flex; }
.hsgk-back-btn {
  border: 1px solid rgba(245, 166, 35, 0.4);
  background: rgba(245, 166, 35, 0.12);
  color: var(--hsgk-gold);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hsgk-back-btn:active { transform: scale(0.97); }
.hsgk-back-label {
  font-size: 13px;
  color: var(--hsgk-muted);
  font-weight: 500;
}

.hsgk-tab {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--hsgk-muted);
  padding: 11px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.hsgk-tab:hover {
  color: var(--hsgk-text);
  background: rgba(255, 255, 255, 0.06);
}

.hsgk-tab.active {
  background: linear-gradient(135deg, #F5A623, #E67E22);
  color: #1A0A10;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
}

/* ===== PANELS ===== */
.hsgk-panel {
  display: none;
  padding: 12px 14px 36px;
  animation: hsgkFade 0.28s ease;
  max-width: 640px;
  margin: 0 auto;
}
.hsgk-panel.active { display: block; }

@keyframes hsgkFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hsgk-panel-title {
  margin: 4px 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--hsgk-gold);
  text-align: center;
}
.hsgk-panel-desc {
  text-align: center;
  font-size: 12px;
  color: var(--hsgk-muted);
  margin: 0 0 16px;
  line-height: 1.45;
}

/* ===== FORM CARD ===== */
.hsgk-form-card {
  background: var(--hsgk-card);
  border: 1px solid var(--hsgk-border);
  border-radius: var(--hsgk-radius);
  padding: 18px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hsgk-form-row { margin-bottom: 14px; }
.hsgk-two-col, .hsgk-three-col {
  display: grid;
  gap: 10px;
}
.hsgk-two-col { grid-template-columns: 1fr 1fr; }
.hsgk-three-col { grid-template-columns: 1fr; }

@media (min-width: 400px) {
  .hsgk-three-col { grid-template-columns: 1fr 1fr 1fr; }
}

.hsgk-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--hsgk-gold);
  margin-bottom: 7px;
  letter-spacing: 0.4px;
}
.hsgk-field .req { color: #FF6B8A; }

/* Inputs – native controls readable on Android */
.hsgk-field input[type="text"],
.hsgk-field input[type="number"],
.hsgk-field input[type="date"],
.hsgk-field input[type="time"],
.hsgk-field input[type="url"],
.hsgk-field select,
.hsgk-time-sel,
.hsgk-dob-sel,
.hsgk-milan-box input,
.hsgk-milan-box select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #0E0A18 !important;
  color: #F8F2FF !important;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
}

.hsgk-field select,
.hsgk-time-sel,
.hsgk-dob-sel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23F5A623' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
}

.hsgk-field input:focus,
.hsgk-field select:focus,
.hsgk-time-sel:focus,
.hsgk-dob-sel:focus,
.hsgk-milan-box input:focus {
  border-color: var(--hsgk-accent) !important;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.22);
}

.hsgk-field input::placeholder {
  color: rgba(169, 155, 184, 0.7);
}

/* Dropdown option colors (where supported) */
.hsgk-field select option,
.hsgk-time-sel option,
.hsgk-dob-sel option {
  background: #1C1230;
  color: #F8F2FF;
}

.hsgk-field small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--hsgk-muted);
}

.hsgk-dob-wrap, .hsgk-time-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hsgk-dob-sel, .hsgk-time-sel {
  flex: 1;
  min-width: 0;
  padding-left: 8px !important;
  padding-right: 28px !important;
  text-align: center;
  font-size: 14px !important;
}
.hsgk-time-sep {
  font-weight: 700;
  color: var(--hsgk-accent);
  font-size: 18px;
}

/* City autocomplete */
.hsgk-place-field { position: relative; z-index: 5; }
.hsgk-city-list {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 2px);
  z-index: 50;
  background: #241A38;
  border: 1px solid var(--hsgk-accent);
  border-radius: 14px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}
.hsgk-city-item {
  padding: 13px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--hsgk-text);
}
.hsgk-city-item:last-child { border-bottom: none; }
.hsgk-city-item:active,
.hsgk-city-item:hover {
  background: rgba(245, 166, 35, 0.18);
  color: var(--hsgk-gold);
}

/* ===== BUTTONS ===== */
.hsgk-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  position: sticky;
  bottom: 0;
  padding-top: 4px;
}
.hsgk-btn {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s;
  min-height: 50px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hsgk-btn:active { transform: scale(0.97); }

.hsgk-btn-primary {
  background: linear-gradient(135deg, #F5C842 0%, #F5A623 40%, #E67E22 100%);
  color: #1A0A10 !important;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}
.hsgk-btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--hsgk-muted) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0.45;
}
.hsgk-btn-pdf {
  background: linear-gradient(135deg, #6C7CFF, #3D4FDB);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(91, 108, 255, 0.35);
  width: 100%;
  flex: none;
}
.hsgk-btn-share {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
  width: 100%;
  flex: none;
}
.hsgk-btn-call {
  background: linear-gradient(135deg, #2ECC71, #27AE60);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(46, 204, 113, 0.3);
}
.hsgk-btn-buy {
  display: flex !important;
  width: 100%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* Loading */
.hsgk-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--hsgk-gold);
}
.hsgk-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border: 3px solid rgba(245, 166, 35, 0.2);
  border-top-color: var(--hsgk-accent);
  border-radius: 50%;
  animation: hsgkSpin 0.75s linear infinite;
}
@keyframes hsgkSpin { to { transform: rotate(360deg); } }

/* ===== RESULTS ===== */
.hsgk-results { margin-top: 16px; }
.hsgk-result-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.hsgk-pdf-hint {
  font-size: 12px;
  color: var(--hsgk-gold);
  text-align: center;
  margin: 4px 0 0;
  min-height: 16px;
}

.hsgk-traditional-sheet,
.hsgk-print-area {
  background: var(--hsgk-card);
  border: 1px solid var(--hsgk-border);
  border-radius: var(--hsgk-radius);
  padding: 16px 12px;
}

.hsgk-print-ornament {
  text-align: center;
  font-size: 13px;
  color: var(--hsgk-gold);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.hsgk-result-header h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--hsgk-gold);
  text-align: center;
  line-height: 1.35;
}
.hsgk-result-meta {
  text-align: center;
  font-size: 12px;
  color: var(--hsgk-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.hsgk-key-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.hsgk-key-box {
  background: linear-gradient(160deg, rgba(245,166,35,0.14), rgba(123,30,60,0.28));
  border: 1px solid rgba(245,166,35,0.28);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
}
.hsgk-key-label {
  display: block;
  font-size: 10px;
  color: var(--hsgk-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.hsgk-key-box strong {
  display: block;
  font-size: 13px;
  color: var(--hsgk-gold);
  font-weight: 700;
  line-height: 1.3;
}
.hsgk-key-box small {
  font-size: 10px;
  color: var(--hsgk-muted);
}

.hsgk-rashi-hint,
.hsgk-stone-suggest {
  font-size: 12px;
  background: rgba(245, 166, 35, 0.08);
  border-left: 3px solid var(--hsgk-accent);
  padding: 11px 12px;
  margin: 0 0 14px;
  color: var(--hsgk-muted);
  border-radius: 0 12px 12px 0;
  line-height: 1.45;
}

.hsgk-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hsgk-accent);
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 166, 35, 0.2);
}

.hsgk-chart-box {
  text-align: center;
  background: #FFF8F0;
  border-radius: 16px;
  padding: 14px 10px;
  margin-bottom: 8px;
}
.hsgk-chart-box svg { max-width: 100%; height: auto; }
.hsgk-chart-legend {
  font-size: 10px;
  color: #666;
  margin-top: 8px;
  line-height: 1.4;
}

.hsgk-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-overflow-scrolling: touch;
}
.hsgk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 320px;
}
.hsgk-table th {
  background: rgba(245, 166, 35, 0.18);
  color: var(--hsgk-gold);
  padding: 11px 8px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  font-size: 11px;
}
.hsgk-table td {
  padding: 10px 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--hsgk-text);
}
.hsgk-table tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.18);
}
.hsgk-rashi { color: var(--hsgk-gold) !important; font-weight: 600; }

.hsgk-dasha-list, .hsgk-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hsgk-dasha-list li, .hsgk-notes-list li {
  padding: 12px 14px;
  margin-bottom: 8px;
  background: rgba(0,0,0,0.28);
  border-radius: 12px;
  font-size: 13px;
  border-left: 3px solid rgba(245, 166, 35, 0.4);
  line-height: 1.45;
}
.hsgk-dasha-list li.current {
  border-left-color: var(--hsgk-success);
  background: rgba(46, 204, 113, 0.12);
  color: #B8F5D0;
}

.hsgk-upay-box {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.28);
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
}
.hsgk-upay-note {
  font-size: 11px;
  color: var(--hsgk-muted);
  margin: 8px 0 0;
}

.hsgk-print-footer {
  text-align: center;
  font-size: 10px;
  color: var(--hsgk-muted);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 166, 35, 0.2);
  line-height: 1.5;
}

/* Milan */
.hsgk-milan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (min-width: 400px) {
  .hsgk-milan-grid { grid-template-columns: 1fr 1fr; }
}
.hsgk-milan-box {
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--hsgk-border);
  border-radius: 16px;
  padding: 14px;
}
.hsgk-milan-box h4 {
  margin: 0 0 10px;
  text-align: center;
  color: var(--hsgk-gold);
  font-size: 14px;
}
.hsgk-milan-box label {
  display: block;
  font-size: 10px;
  color: var(--hsgk-muted);
  margin: 8px 0 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.hsgk-milan-score {
  text-align: center;
  padding: 22px 16px;
  background: linear-gradient(160deg, rgba(245,166,35,0.16), rgba(123,30,60,0.3));
  border-radius: 18px;
  border: 1px solid rgba(245,166,35,0.3);
  margin-bottom: 14px;
}
.hsgk-score-big {
  font-size: 44px;
  font-weight: 700;
  color: var(--hsgk-gold);
  line-height: 1.1;
}
.hsgk-score-bar {
  height: 8px;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
  overflow: hidden;
  margin: 14px auto;
  max-width: 200px;
}
.hsgk-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ECC71, #F5A623);
  border-radius: 4px;
}
.hsgk-verdict {
  font-size: 14px;
  font-weight: 600;
  color: var(--hsgk-text);
  margin: 8px 0 0;
}

/* Ank */
.hsgk-ank-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.hsgk-ank-card {
  background: linear-gradient(160deg, rgba(245,166,35,0.12), rgba(0,0,0,0.3));
  border: 1px solid rgba(245,166,35,0.28);
  border-radius: 18px;
  padding: 20px 12px;
  text-align: center;
}
.hsgk-ank-num {
  font-size: 44px;
  font-weight: 700;
  color: var(--hsgk-gold);
  line-height: 1;
}
.hsgk-ank-label {
  font-size: 12px;
  color: var(--hsgk-muted);
  margin: 8px 0;
  font-weight: 600;
}
.hsgk-ank-card p { font-size: 11px; color: var(--hsgk-muted); margin: 0; line-height: 1.4; }

/* Rashifal */
.hsgk-panchang-strip {
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--hsgk-muted);
  line-height: 1.5;
  text-align: center;
}
.hsgk-panchang-strip strong { color: var(--hsgk-gold); }

.hsgk-rashi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.hsgk-rashi-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 4px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(0,0,0,0.32);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  color: var(--hsgk-text);
  min-height: 78px;
}
.hsgk-rashi-btn:active,
.hsgk-rashi-btn.active {
  border-color: var(--hsgk-accent);
  background: rgba(245, 166, 35, 0.16);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.2);
}
.hsgk-rashi-emoji { font-size: 22px; }
.hsgk-rashi-hi { font-size: 12px; font-weight: 700; color: var(--hsgk-gold); }
.hsgk-rashi-en { font-size: 9px; color: var(--hsgk-muted); }

.hsgk-rashifal-body {
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--hsgk-border);
  border-radius: 16px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.65;
}
.hsgk-lucky {
  margin-top: 12px;
  font-size: 12px;
  color: var(--hsgk-gold);
  font-weight: 600;
}

/* Vastu */
.hsgk-vastu-item {
  background: rgba(0,0,0,0.28);
  border-left: 3px solid var(--hsgk-accent);
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 0 14px 14px 0;
}
.hsgk-vastu-item h4 {
  margin: 0 0 4px;
  color: var(--hsgk-gold);
  font-size: 13px;
}
.hsgk-vastu-item p {
  margin: 0;
  font-size: 12px;
  color: var(--hsgk-muted);
  line-height: 1.5;
}

/* Stones */
.hsgk-stones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.hsgk-stones-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 340px) {
  .hsgk-stones-grid { grid-template-columns: 1fr; }
}
.hsgk-stone-card {
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
}
.hsgk-stone-img {
  width: 68px;
  height: 68px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(245,166,35,0.35), rgba(123,30,60,0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(245,166,35,0.4);
}
.hsgk-stone-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hsgk-stone-emoji { font-size: 30px; }
.hsgk-stone-name {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--hsgk-gold);
  font-weight: 700;
  line-height: 1.3;
}
.hsgk-stone-rashi {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--hsgk-accent);
}
.hsgk-stone-desc {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--hsgk-muted);
  line-height: 1.4;
  min-height: 32px;
}
.hsgk-stone-price {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #2ECC71;
}
.hsgk-stone-disclaimer {
  font-size: 10px;
  color: var(--hsgk-muted);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.45;
}

/* Pandit */
.hsgk-pandit-section {
  padding: 20px 12px 12px;
  border-top: 1px solid rgba(245, 166, 35, 0.12);
}
.hsgk-pandit-section-title {
  text-align: center;
  font-size: 16px;
  color: var(--hsgk-gold);
  margin: 0 0 4px;
}
.hsgk-pandit-section-sub {
  text-align: center;
  font-size: 12px;
  color: var(--hsgk-muted);
  margin: 0 0 14px;
}
.hsgk-pandit-grid { display: grid; gap: 12px; }
.hsgk-pandit-card {
  background: var(--hsgk-card);
  border: 1px solid var(--hsgk-border);
  border-radius: 18px;
  padding: 16px;
}
.hsgk-pandit-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.hsgk-pandit-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #F5A623, #6B1B3A);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--hsgk-accent);
}
.hsgk-pandit-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hsgk-pandit-emoji { font-size: 28px; }
.hsgk-pandit-name {
  margin: 0;
  font-size: 15px;
  color: var(--hsgk-text);
  font-weight: 700;
}
.hsgk-pandit-title {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--hsgk-muted);
}
.hsgk-pandit-desc {
  font-size: 12px;
  color: var(--hsgk-muted);
  margin: 0 0 12px;
  line-height: 1.45;
}
.hsgk-pandit-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.hsgk-phone-link {
  text-align: center;
  color: var(--hsgk-gold);
  text-decoration: none;
  font-size: 13px;
}
.hsgk-phone-link small {
  display: block;
  font-size: 10px;
  color: var(--hsgk-muted);
}
.hsgk-rating-box { text-align: center; margin-top: 8px; }
.hsgk-rating-label { font-size: 11px; color: var(--hsgk-muted); margin: 0 0 4px; }
.hsgk-stars { display: flex; justify-content: center; gap: 6px; }
.hsgk-star {
  font-size: 24px;
  color: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
}
.hsgk-star:hover, .hsgk-star.hover, .hsgk-star.active {
  color: #F5A623;
  transform: scale(1.12);
}
.hsgk-rating-msg, .hsgk-avg-rating {
  font-size: 11px;
  color: var(--hsgk-muted);
  margin: 6px 0 0;
}
.hsgk-payment-box {
  margin-top: 10px;
  padding: 10px;
  background: rgba(0,0,0,0.28);
  border-radius: 10px;
  text-align: center;
}
.hsgk-payment-note {
  margin: 0;
  font-size: 11px;
  color: var(--hsgk-muted);
}

/* Footer */
.hsgk-footer {
  text-align: center;
  padding: 18px 16px 24px;
  font-size: 11px;
  color: var(--hsgk-muted);
}
.hsgk-footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.4), transparent);
  margin-bottom: 14px;
}
.hsgk-footer strong { color: var(--hsgk-gold); }
.hsgk-version { margin: 4px 0 0; opacity: 0.65; }

@media (min-width: 520px) {
  .hsgk-wrapper { max-width: 560px !important; }
  .hsgk-key-summary { grid-template-columns: repeat(4, 1fr); }
  .hsgk-rashi-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Print light */
@media print {
  .hsgk-tabs, .hsgk-form-card, .hsgk-actions, .hsgk-loading,
  .hsgk-pandit-section, .hsgk-footer, .no-print, .hsgk-result-toolbar {
    display: none !important;
  }
  .hsgk-panel { display: block !important; }
  .hsgk-wrapper {
    background: #fff !important;
    color: #222 !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
  }
  .hsgk-traditional-sheet, .hsgk-print-area, .hsgk-results {
    display: block !important;
    background: #fff !important;
    color: #222 !important;
    border: 3px double #8B0000 !important;
  }
  .hsgk-result-header h3, .hsgk-section-title, .hsgk-key-box strong {
    color: #8B0000 !important;
  }
}

/* FAB WhatsApp */
.hsgk-fab {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 99999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #25D366, #128C7E);
  color: #fff !important;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  border: 2px solid rgba(255,255,255,0.3);
}
.hsgk-fab:active { transform: scale(0.95); }

.hsgk-saved-box {
  margin-bottom: 12px;
}
.hsgk-saved-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 14px;
  font-size: 12px;
  color: var(--hsgk-muted, #A99BB8);
}
.hsgk-saved-btn {
  border: none;
  background: linear-gradient(135deg, #F5A623, #E67E22);
  color: #1A0A10;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

.hsgk-muhurat-strip {
  font-size: 12px;
  color: var(--hsgk-muted, #A99BB8);
  background: rgba(0,0,0,0.28);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.45;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.hsgk-muhurat-strip strong { color: var(--hsgk-gold, #F5D76E); }

.hsgk-dosha-box {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.hsgk-warn { color: #FF8A80; font-weight: 600; }

.hsgk-link-btn {
  border: none;
  background: transparent;
  color: var(--hsgk-accent, #F5A623);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  text-decoration: underline;
  padding: 0 4px;
}

.hsgk-stone-match {
  border-color: #2ECC71 !important;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.35);
  position: relative;
}
.hsgk-stone-match::after {
  content: '✓ आपकी राशि';
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #2ECC71;
  font-weight: 700;
}

.hsgk-faq {
  margin: 8px 14px 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 14px;
}
.hsgk-faq-title {
  text-align: center;
  color: var(--hsgk-gold, #F5D76E);
  font-size: 15px;
  margin: 0 0 12px;
}
.hsgk-faq-item {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.hsgk-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--hsgk-text, #F8F2FF);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
}
.hsgk-faq-q::after {
  content: '+';
  float: right;
  color: var(--hsgk-accent, #F5A623);
}
.hsgk-faq-item.open .hsgk-faq-q::after { content: '−'; }
.hsgk-faq-a {
  display: none;
  padding: 0 14px 12px;
  font-size: 12px;
  color: var(--hsgk-muted, #A99BB8);
  line-height: 1.5;
}
.hsgk-faq-item.open .hsgk-faq-a { display: block; }
