:root {
  --bg-deep: #0a0a1a;
  --bg-card: rgba(18, 18, 40, 0.85);
  --bg-card-hover: rgba(25, 25, 55, 0.9);
  --border: rgba(212, 175, 55, 0.25);
  --gold: #d4af37;
  --gold-light: #f0d78c;
  --gold-dim: #9a7b2c;
  --text: #e8e6f0;
  --text-muted: #9b97b0;
  --accent-purple: #7c5cbf;
  --accent-blue: #4a7eb5;
  --success: #4caf82;
  --warning: #e6a23c;
  --danger: #e05c5c;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.stars {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 92, 191, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(74, 126, 181, 0.1) 0%, transparent 50%),
    radial-gradient(1px 1px at 10% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 50%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 90%, rgba(255,255,255,0.25) 0%, transparent 100%),
    linear-gradient(180deg, #0a0a1a 0%, #12122a 50%, #0d0d20 100%);
  z-index: -1;
}

.header {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.header-inner {
  max-width: 600px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.logo-symbol {
  font-size: 2rem;
  color: var(--gold);
}

.logo h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.header-with-auth {
  max-width: 1100px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
}

.header-brand {
  flex: 1;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.header-with-auth .logo {
  justify-content: flex-start;
}

.header-with-auth .tagline {
  text-align: left;
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-top: 0.35rem;
}

.auth-user-link {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-user-link:hover {
  text-decoration: underline;
}

.auth-logout-form {
  margin: 0;
}

.auth-page .main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4rem);
  padding-top: 2rem;
}

.auth-section {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 1rem;
}

.auth-card {
  padding: 2rem;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.auth-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-remember {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-error {
  margin-bottom: 1rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--gold-light);
}

.auth-demo-box {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-demo-title {
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.auth-demo-box code {
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.account-section {
  max-width: 560px;
}

.account-main .account-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.telegram-card h2 {
  margin-bottom: 0.25rem;
}

.telegram-notice {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.telegram-notice a {
  color: var(--gold-light);
}

.telegram-notice-warn {
  color: #e8b86d;
}

.telegram-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.telegram-form .form-field > span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.telegram-form input[type="text"],
.telegram-form input[type="number"],
.telegram-form input[type="time"],
.telegram-form select {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 106, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  font-family: inherit;
}

.telegram-fieldset {
  border: 1px solid rgba(212, 175, 106, 0.2);
  border-radius: 8px;
  padding: 1rem 1rem 0.25rem;
  margin: 0 0 1rem;
}

.telegram-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.form-checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
}

.form-checkbox input {
  width: auto;
}

.form-status {
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.form-status-success {
  color: #8fd4a0;
}

.form-status-error {
  color: #f0a0a0;
}

.telegram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-details {
  margin: 1.5rem 0;
}

.account-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-row dt {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.account-row dd {
  margin: 0;
}

.account-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

@media (max-width: 700px) {
  .header-with-auth {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .header-with-auth .logo {
    justify-content: center;
  }

  .header-with-auth .tagline {
    text-align: center;
  }

  .auth-nav {
    justify-content: center;
    padding-top: 0;
  }
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-primary {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  border: none;
  border-radius: 8px;
  color: #1a1a2e;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
}

.error-msg {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(224, 92, 92, 0.15);
  border: 1px solid rgba(224, 92, 92, 0.4);
  border-radius: 8px;
  color: #f0a0a0;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.6rem 0.85rem;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.checkbox-label:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

.checkbox-label input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold);
  cursor: pointer;
  margin: 0;
}

.hint-inline {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-actions .btn-primary {
  flex: 1;
  min-width: 200px;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-danger {
  border-color: rgba(224, 92, 92, 0.4);
  color: #f0a0a0;
}

.btn-danger:hover {
  background: rgba(224, 92, 92, 0.15);
}

/* Saved kundalis */
.main-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.main-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 106, 0.25);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.main-tab:hover {
  color: var(--gold-light);
  border-color: rgba(212, 175, 106, 0.45);
}

.main-tab.active {
  background: rgba(212, 175, 106, 0.15);
  color: var(--gold-light);
  border-color: rgba(212, 175, 106, 0.5);
}

.admin-users-section {
  margin-bottom: 1.5rem;
}

.admin-users-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--gold-light);
}

.admin-users-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-users-table th,
.admin-users-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(212, 175, 106, 0.12);
}

.admin-users-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-users-table tbody tr:hover {
  background: rgba(212, 175, 106, 0.05);
}

.admin-users-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem !important;
}

.role-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.role-admin {
  background: rgba(212, 175, 106, 0.2);
  color: var(--gold-light);
}

.role-user {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.telegram-cell {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.saved-section {
  margin-bottom: 1.5rem;
}

.saved-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--gold-light);
}

.saved-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 280px;
  overflow-y: auto;
}

.saved-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.saved-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.saved-item:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.saved-item-name {
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.saved-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.saved-item-notes {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

.saved-item-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: rgba(212, 175, 55, 0.15);
}

.btn-icon-danger:hover {
  background: rgba(224, 92, 92, 0.15);
}

/* Results header actions */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.results-name {
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.save-status {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.save-status.success {
  background: rgba(76, 175, 130, 0.15);
  border: 1px solid rgba(76, 175, 130, 0.3);
  color: var(--success);
}

.save-status.error {
  background: rgba(224, 92, 92, 0.15);
  border: 1px solid rgba(224, 92, 92, 0.3);
  color: #f0a0a0;
}

.summary-item.full-width {
  grid-column: 1 / -1;
  text-align: left;
}

.notes-value {
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  font-family: 'Inter', sans-serif !important;
}


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

/* Results */
.results-section {
  animation: fadeIn 0.5s ease;
}

body.results-active .main {
  max-width: 1400px;
}

.results-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.results-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

.btn-back {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: left;
}

.btn-back:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
}

.sidebar-kundali-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  padding: 0 0.25rem;
  line-height: 1.3;
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 0.15rem;
}

.category-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, color 0.15s;
}

.category-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.category-nav-btn.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-weight: 600;
}

.category-nav-btn .nav-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-saved {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  flex-shrink: 0;
}

.sidebar-saved-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dim);
  font-weight: 600;
}

.sidebar-saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 140px;
  overflow-y: auto;
}

.sidebar-saved-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sidebar-saved-item:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
}

.sidebar-saved-item.active {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
}

.sidebar-saved-item .saved-item-name {
  font-size: 0.85rem;
}

.sidebar-saved-item .saved-item-meta {
  font-size: 0.7rem;
}

.results-main {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.results-toolbar-left h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold-light);
}

.category-panels {
  min-height: 400px;
}

.category-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.category-panel.active {
  display: block;
}

.panel-heading {
  margin-bottom: 1.25rem;
}

.panel-heading h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.panel-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.category-panel .reading-card {
  margin-bottom: 0;
}

.category-panel .reading-card.wide {
  grid-column: auto;
}

.results-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold-light);
}

.birth-summary {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.summary-item {
  text-align: center;
  padding: 0.75rem;
}

.summary-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.summary-item .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--gold-light);
  font-weight: 600;
}

.chart-container {
  margin-bottom: 1.5rem;
}

.chart-container h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  text-align: center;
}

.kundali-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.kundali-chart {
  width: 400px;
  max-width: 100%;
}

.kundali-diamond {
  display: block;
  margin: 0 auto;
}

/* Planet table */
.planet-table {
  overflow-x: auto;
}

.planet-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.planet-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: var(--gold-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.planet-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.planet-table tr:hover td {
  background: rgba(212, 175, 55, 0.05);
}

.kp-chart-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kp-section h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.kp-ruling {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.kp-ruling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.kp-ruling-grid .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kp-ruling-grid .value {
  display: block;
  font-weight: 600;
  color: var(--gold-light);
}

.kp-system-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kp-legend {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.kp-table-wrap {
  margin-bottom: 0.5rem;
}

.kp-table-wrap td strong {
  color: var(--gold-light);
}

.retro {
  color: var(--warning);
  font-size: 0.75rem;
}

.status-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-retro {
  background: rgba(230, 162, 60, 0.15);
  border-color: rgba(230, 162, 60, 0.35);
  color: #f2c98a;
}

.status-combust {
  background: rgba(224, 92, 92, 0.15);
  border-color: rgba(224, 92, 92, 0.35);
  color: #f0a0a0;
}

.status-exalted {
  background: rgba(76, 175, 130, 0.18);
  border-color: rgba(76, 175, 130, 0.4);
  color: #7ed3a7;
}

.status-debilitated {
  background: rgba(180, 60, 60, 0.18);
  border-color: rgba(180, 60, 60, 0.4);
  color: #e5a0a0;
}

.status-moolatrikona {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold-light);
}

.status-own {
  background: rgba(124, 92, 191, 0.18);
  border-color: rgba(124, 92, 191, 0.4);
  color: #bfa8e6;
}

.status-neutral {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chart-legend .legend-mark {
  font-weight: 700;
  margin-right: 0.15rem;
}

.planet-marks {
  font-size: 0.85em;
  margin-left: 1px;
}

/* Financial Astrology card */
.financial-astro-card .fa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.financial-astro-card .fa-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-top: 1rem;
}

.financial-astro-card .fa-section h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.fa-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-style: italic;
}

.fa-house-scores {
  display: grid;
  gap: 0.5rem;
}

.fa-house-score {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.fa-house-label {
  color: var(--gold-dim);
  font-weight: 600;
}

.fa-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.fa-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 4px;
  transition: width 0.4s;
}

.fa-bar-fill.bar-risk-low { background: linear-gradient(90deg, #3d6a5a, var(--success)); }
.fa-bar-fill.bar-risk-moderate { background: linear-gradient(90deg, #8a7a3a, var(--warning)); }
.fa-bar-fill.bar-risk-high { background: linear-gradient(90deg, #7a3d3d, #d06b6b); }
.fa-bar-fill.bar-risk-very-high { background: linear-gradient(90deg, #7a2b2b, var(--danger)); }

.fa-house-val {
  text-align: right;
  color: var(--gold-light);
  font-weight: 600;
}

.fa-risk-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.fa-allocation {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.fa-key-planets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.fa-key-item {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

.fa-key-label {
  font-size: 0.7rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.fa-key-value {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 1rem;
}

.fa-key-dignity {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.fa-yogas-list {
  display: grid;
  gap: 0.65rem;
}

.fa-yoga {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
}

.fa-yoga-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.fa-yoga-name {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.95rem;
}

.fa-yoga-strength {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.fa-yoga-strength.strength-very-strong { background: rgba(76, 175, 130, 0.2); color: #7ed3a7; }
.fa-yoga-strength.strength-strong { background: rgba(212, 175, 55, 0.2); color: var(--gold-light); }
.fa-yoga-strength.strength-moderate { background: rgba(124, 92, 191, 0.2); color: #bfa8e6; }

.fa-yoga-desc {
  color: var(--text);
  font-size: 0.85rem;
}

.fa-empty {
  color: var(--text-muted);
  font-style: italic;
  padding: 0.75rem;
}

.fa-debt-meter {
  margin-bottom: 0.5rem;
}

.fa-debt-label {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.fa-windfall-level {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.fa-windfall-level.level-high {
  background: rgba(76, 175, 130, 0.2);
  color: #7ed3a7;
}

.fa-windfall-level.level-moderate {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}

.fa-windfall-level.level-low {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.fa-mindset {
  border-left: 3px solid var(--accent-purple);
}

@media (max-width: 700px) {
  .financial-astro-card .fa-grid {
    grid-template-columns: 1fr;
  }
}

/* Merged finances section */
.finances-merged {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.finances-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0 1rem;
  color: var(--gold-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.finances-divider::before,
.finances-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.finances-divider span {
  padding: 0 1rem;
}

.finances-overview {
  margin-bottom: 0;
}

/* AstroStocks */
.astro-stocks-card .as-disclaimer {
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.as-today {
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.as-today.signal-bullish { background: rgba(76, 175, 130, 0.12); border-color: rgba(76, 175, 130, 0.35); }
.as-today.signal-mild-bull { background: rgba(76, 175, 130, 0.08); border-color: rgba(76, 175, 130, 0.25); }
.as-today.signal-neutral { background: rgba(255, 255, 255, 0.04); }
.as-today.signal-mild-bear { background: rgba(224, 92, 92, 0.08); border-color: rgba(224, 92, 92, 0.25); }
.as-today.signal-bearish { background: rgba(224, 92, 92, 0.12); border-color: rgba(224, 92, 92, 0.35); }

.as-today-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.as-today-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.as-today-signal {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0.25rem 0;
}

.as-today-action {
  font-size: 0.9rem;
  color: var(--text);
}

.as-today-score {
  text-align: center;
  flex-shrink: 0;
}

.as-score-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.as-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.as-today-summary {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.5rem;
}

.as-warning {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(224, 92, 92, 0.12);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #f0a0a0;
}

.as-warning-text {
  color: var(--warning);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.as-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.as-bhadra-active {
  border-color: rgba(224, 92, 92, 0.45) !important;
  background: rgba(224, 92, 92, 0.06) !important;
}

.as-karana-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.as-vol-tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: rgba(124, 92, 191, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  color: #bfa8e6;
}

.as-vedha-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.as-vedha-item {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border-left: 3px solid var(--border);
}

.as-vedha-item.vedha-malefic {
  background: rgba(224, 92, 92, 0.08);
  border-left-color: var(--danger);
}

.as-vedha-item.vedha-benefic {
  background: rgba(76, 175, 130, 0.08);
  border-left-color: var(--success);
}

.as-vedha-item.vedha-neutral {
  background: rgba(255, 255, 255, 0.03);
}

.as-transit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.as-transit-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
}

.as-transit-item .as-nak {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.as-forecast-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0.75rem 0;
}

.as-hourly-toggle {
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
}

.as-weekend-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.as-hourly-section {
  border-left: 3px solid var(--accent-blue);
}

.as-hourly-table-wrap {
  margin-top: 0.5rem;
}

.as-hourly-row td:first-child {
  color: var(--gold-light);
}

.as-forecast-controls input[type="date"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
}

.as-forecast-table-wrap {
  overflow-x: auto;
}

.as-forecast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.as-forecast-table th {
  text-align: left;
  padding: 0.5rem 0.65rem;
  color: var(--gold-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.as-forecast-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.as-forecast-row {
  cursor: pointer;
  transition: background 0.15s;
}

.as-forecast-row:hover,
.as-forecast-row.selected {
  background: rgba(212, 175, 55, 0.08);
}

.as-forecast-row.non-trading {
  opacity: 0.45;
}

.as-signal-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.as-signal-pill.signal-bullish { background: rgba(76, 175, 130, 0.2); color: #7ed3a7; }
.as-signal-pill.signal-mild-bull { background: rgba(76, 175, 130, 0.12); color: #9edfb8; }
.as-signal-pill.signal-neutral { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.as-signal-pill.signal-mild-bear { background: rgba(224, 92, 92, 0.12); color: #e5a0a0; }
.as-signal-pill.signal-bearish { background: rgba(224, 92, 92, 0.2); color: #f0a0a0; }

.as-day-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
}

.as-sector-section {
  margin-top: 0.5rem;
}

.as-ai-highlight {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  background: rgba(99, 102, 241, 0.08);
}

.as-ai-highlight.signal-bullish { border-color: rgba(76, 175, 130, 0.4); background: rgba(76, 175, 130, 0.1); }
.as-ai-highlight.signal-mild-bull { border-color: rgba(76, 175, 130, 0.3); }
.as-ai-highlight.signal-neutral { background: rgba(99, 102, 241, 0.08); }
.as-ai-highlight.signal-mild-bear { border-color: rgba(224, 92, 92, 0.3); }
.as-ai-highlight.signal-bearish { border-color: rgba(224, 92, 92, 0.4); background: rgba(224, 92, 92, 0.08); }

.as-ai-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.as-ai-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.as-ai-signal {
  font-size: 1.25rem;
  font-weight: 600;
}

.as-ai-action {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.as-sector-table td.as-sector-examples {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.as-sector-row.as-sector-ai td:first-child {
  font-weight: 600;
}

.as-stock-picks-section {
  margin-top: 0.75rem;
  border: 1px solid rgba(212, 175, 106, 0.2);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: rgba(76, 175, 130, 0.05);
}

.as-stock-picks-table .as-pick-type {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-left: 0.35rem;
}

.as-natal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.as-natal-chip {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.12);
  color: var(--gold-light);
}

.as-pick-rationale {
  margin-top: 0.75rem;
}

.as-subheading {
  font-size: 0.95rem;
  color: var(--gold-light);
  margin: 1rem 0 0.5rem;
}

.as-slot-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.as-slot-picks {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.15);
}

.as-slot-picks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.as-action-pill {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.as-action-entry {
  background: rgba(76, 175, 130, 0.15);
  color: #8fd4a0;
  border: 1px solid rgba(76, 175, 130, 0.35);
}

.as-action-exit {
  background: rgba(224, 92, 92, 0.12);
  color: #f0a0a0;
  border: 1px solid rgba(224, 92, 92, 0.35);
}

.as-action-caution {
  background: rgba(212, 175, 106, 0.12);
  color: var(--gold-light);
}

.as-timing-change,
.as-timing-reason {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.as-timing-table td.as-timing-reason {
  max-width: 240px;
}

.as-sbc-cell {
  font-size: 0.78rem;
  line-height: 1.35;
}

.as-sbc-bias {
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.as-sbc-vedhas {
  color: var(--gold-light);
  font-size: 0.72rem;
  margin-top: 0.2rem;
}

.sbc-bias-clear { color: #8fd4a0; }
.sbc-bias-supported { color: #8fd4a0; }
.sbc-bias-obstructed { color: #f0a0a0; }
.sbc-bias-mixed { color: var(--gold-light); }

.as-sbc-change {
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-top: 0.25rem;
}

.as-vedha-inline {
  margin-top: 0.5rem;
}

.as-vedha-inline .as-vedha-item {
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 700px) {
  .as-grid {
    grid-template-columns: 1fr;
  }
  .as-today-header {
    flex-direction: column;
  }
}

/* Reading cards */
.readings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.reading-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.reading-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.reading-card.wide {
  grid-column: 1 / -1;
}

.reading-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reading-icon {
  font-size: 1.2rem;
}

.score-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
}

.score-excellent { background: rgba(76, 175, 130, 0.2); color: var(--success); }
.score-good { background: rgba(74, 126, 181, 0.2); color: var(--accent-blue); }
.score-moderate { background: rgba(230, 162, 60, 0.2); color: var(--warning); }
.score-challenging { background: rgba(224, 92, 92, 0.15); color: var(--danger); }
.score-difficult { background: rgba(224, 92, 92, 0.25); color: #ff8080; }

.reading-summary {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.factors-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.factors-list li {
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}

.factors-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.5rem;
  top: 0.55rem;
}

/* Investment recommendations */
.investment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.investment-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.investment-item.suitable {
  border-color: rgba(76, 175, 130, 0.3);
}

.investment-score {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.investment-item.suitable .investment-score {
  border-color: var(--success);
  color: var(--success);
}

.investment-info h4 {
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.investment-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Market sector investments */
.sector-card .sector-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  max-height: 600px;
  overflow-y: auto;
}

.sector-item {
  display: flex;
  gap: 1rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 8px;
}

.sector-item.suitable {
  border-color: rgba(76, 175, 130, 0.3);
  background: rgba(76, 175, 130, 0.04);
}

.sector-score-col {
  text-align: center;
  flex-shrink: 0;
  width: 52px;
}

.sector-score {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.sector-item.suitable .sector-score {
  border-color: var(--success);
  color: var(--success);
}

.sector-rating {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sector-info {
  flex: 1;
  min-width: 0;
}

.sector-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.sector-header h4 {
  font-size: 0.95rem;
  color: var(--gold-light);
  margin: 0;
}

.risk-badge, .timing-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}

.risk-low { background: rgba(76, 175, 130, 0.2); color: var(--success); }
.risk-moderate { background: rgba(74, 126, 181, 0.2); color: var(--accent-blue); }
.risk-high { background: rgba(230, 162, 60, 0.2); color: var(--warning); }
.risk-very-high { background: rgba(224, 92, 92, 0.2); color: var(--danger); }

.timing-good { background: rgba(76, 175, 130, 0.2); color: var(--success); }
.timing-moderate { background: rgba(230, 162, 60, 0.15); color: var(--warning); }
.timing-wait { background: rgba(224, 92, 92, 0.15); color: #f0a0a0; }

.sector-examples {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.sector-score-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sector-factors {
  margin-top: 0.35rem;
}

.sector-favorable-now {
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.sector-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  margin: 0.15rem 0.25rem;
  background: rgba(76, 175, 130, 0.15);
  border: 1px solid rgba(76, 175, 130, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--success);
}

.sector-picks-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.sector-pick {
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.sector-pick.conservative { border-left: 3px solid var(--success); }
.sector-pick.aggressive { border-left: 3px solid var(--warning); }

.sector-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* Profession prediction */
.profession-card .tenth-house-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 0.85rem;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0.75rem 0;
}

.tenth-item {
  text-align: center;
}

.tenth-item .label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.tenth-item .value {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
}

.specific-roles {
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.role-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  margin: 0.15rem 0.25rem;
  background: rgba(74, 126, 181, 0.15);
  border: 1px solid rgba(74, 126, 181, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent-blue);
}

.work-style {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.work-style-detail {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.profession-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profession-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 8px;
}

.profession-item.primary-profession {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.profession-rank {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}

.profession-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.profession-header h4 {
  font-size: 0.95rem;
  color: var(--gold-light);
  margin: 0;
}

.profession-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Personality profile */
.personality-card .personality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.personality-section h4 {
  font-size: 0.85rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.personality-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.trait-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.trait-chip {
  padding: 0.2rem 0.55rem;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--gold-light);
}

.personality-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.positive-list li::before { color: var(--success); }
.growth-list li::before { color: var(--warning); }

.planet-effect {
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.lagna-lord-note, .moon-nak {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Detailed health */
.constitutional-box, .disease-tendency {
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 0.85rem;
  margin: 0.75rem 0;
}

.disease-tendency {
  border-left: 3px solid var(--warning);
}

.health-section {
  margin: 1rem 0;
}

.health-section h4 {
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.body-areas-list, .health-risks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.body-area-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 3px solid var(--border);
}

.body-area-item.priority-high { border-left-color: var(--danger); }
.body-area-item.priority-medium { border-left-color: var(--warning); }

.body-area-name {
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.9rem;
}

.body-area-reason {
  grid-column: 1;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.priority-tag {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(224, 92, 92, 0.15);
  color: #f0a0a0;
}

.body-area-item.priority-medium .priority-tag {
  background: rgba(230, 162, 60, 0.15);
  color: var(--warning);
}

.health-risk-item {
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 6px;
}

.risk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.risk-header strong {
  color: var(--gold-light);
  font-size: 0.85rem;
}

.likelihood-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(230, 162, 60, 0.15);
  color: var(--warning);
  border-radius: 4px;
  flex-shrink: 0;
}

.risk-source, .risk-prevention {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.suitable-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(76, 175, 130, 0.2);
  color: var(--success);
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Career comparison */
.career-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.career-bar {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.career-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.career-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.career-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.career-bar-fill.job { background: linear-gradient(90deg, var(--accent-blue), #6ba3d6); }
.career-bar-fill.business { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }

.verdict-box {
  text-align: center;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 1rem;
}

.verdict-box .verdict {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}

.verdict-box .favorability {
  font-size: 0.85rem;
  color: var(--success);
  margin-top: 0.25rem;
}

.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Period & Dasha section */
.period-section {
  margin-top: 1.5rem;
}

.period-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.period-form {
  margin-top: 1.25rem;
}

.period-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.preset-btn {
  padding: 0.4rem 0.75rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gold-light);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.preset-btn:hover {
  background: rgba(212, 175, 55, 0.2);
}

.dasha-current h4,
.period-analysis-results h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.dasha-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dasha-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.dasha-level {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.dasha-lord {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
}

.dasha-dates {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.dasha-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.period-analysis-results {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.period-overview {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.period-rating-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.period-rating-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  font-weight: 700;
}

.period-rating-score {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.score-breakdown {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.active-dasha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.active-dasha-detail {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.active-dasha-detail.nature-good { border-left: 3px solid var(--success); }
.active-dasha-detail.nature-challenging { border-left: 3px solid var(--danger); }
.active-dasha-detail.nature-mixed { border-left: 3px solid var(--warning); }

.dasha-detail-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.dasha-lord-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
}

.dasha-detail-summary {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.dasha-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.theme-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 4px;
  color: var(--gold-dim);
}

.area-scores-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.area-score-item {
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  gap: 0.75rem;
}

.area-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.area-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.area-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 3px;
}

.area-rating {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

.event-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.event-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.event-item.impact-good { border-left: 3px solid var(--success); }
.event-item.impact-bad { border-left: 3px solid var(--danger); }
.event-item.impact-significant { border-left: 3px solid var(--accent-purple); }
.event-item.impact-mixed { border-left: 3px solid var(--warning); }

.event-date {
  font-size: 0.8rem;
  color: var(--gold-dim);
  font-weight: 600;
}

.event-title {
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.9rem;
}

.event-type {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: capitalize;
  margin: 0.15rem 0;
}

.event-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.no-events {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.recommendation-item {
  padding: 0.75rem;
  background: rgba(76, 175, 130, 0.08);
  border: 1px solid rgba(76, 175, 130, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.recommendation-item strong {
  color: var(--success);
}

/* Life event timing */
#life-event-section {
  margin-top: 1.5rem;
}

.life-event-results {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.life-event-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.life-event-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.life-event-header h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.life-event-summary-box {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.life-event-summary-box.favorable-box {
  background: rgba(76, 175, 130, 0.08);
  border-color: rgba(76, 175, 130, 0.25);
}

.period-assessment-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.assessment-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.assessment-rating {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.assessment-advice {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.life-event-summary-box.risk-box {
  background: rgba(224, 92, 92, 0.08);
  border-color: rgba(224, 92, 92, 0.25);
}

.months-analyzed {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.life-windows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.life-window-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.life-window-card.best-window {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.window-rank {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.window-dates {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--gold-light);
  font-weight: 600;
}

.window-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.window-rating {
  color: var(--success);
  font-weight: 600;
}

.window-score {
  color: var(--text-muted);
}

.window-dasha {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.window-note {
  font-size: 0.75rem;
  color: var(--warning);
  margin-top: 0.5rem;
  font-style: italic;
}

.month-scores-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.month-score-row {
  display: grid;
  grid-template-columns: 70px 1fr 36px;
  align-items: center;
  gap: 0.75rem;
}

.month-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.month-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.month-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.bar-good-high { background: linear-gradient(90deg, #2d8a5e, var(--success)); }
.bar-good-med { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
.bar-good-low { background: linear-gradient(90deg, #6b6355, var(--warning)); }
.bar-risk-high { background: linear-gradient(90deg, #a03030, var(--danger)); }
.bar-risk-med { background: linear-gradient(90deg, #8a5a20, var(--warning)); }
.bar-risk-low { background: linear-gradient(90deg, #5a5a6a, var(--text-muted)); }

.month-score-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  text-align: right;
}

@media (max-width: 900px) {
  .results-layout {
    grid-template-columns: 1fr;
  }

  .results-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .category-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    flex: none;
  }

  .category-nav-btn {
    flex-shrink: 0;
    width: auto;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
  }

  .category-nav-btn .nav-label {
    font-size: 0.8rem;
  }

  .sidebar-saved {
    display: none;
  }

  .results-toolbar {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .kundali-chart {
    width: 100%;
  }

  .readings-grid {
    grid-template-columns: 1fr;
  }

  .results-header,
  .results-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .area-score-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .sector-picks-row {
    grid-template-columns: 1fr;
  }

  .sector-item {
    flex-direction: column;
  }

  .personality-grid,
  .personality-columns {
    grid-template-columns: 1fr;
  }
}
