:root {
  --maroon: #7b1f2b;
  --saffron: #d4691e;
  --gold: #b8860b;
  --cream: #fff8ec;
  --navy: #1f335e;
  --ink: #2a2118;
  --line: #e3d2b0;
  --green: #1f6e3a;
  --paper: #fffdf7;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans Oriya", system-ui, sans-serif;
  background: radial-gradient(circle at 50% -10%, #fff3df, transparent 60%), var(--cream);
  color: var(--ink)
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px 70px
}

header {
  text-align: center;
  padding: 30px 12px 20px;
  background: linear-gradient(180deg, var(--maroon), #5c1620);
  color: #fff;
  border-bottom: 5px solid var(--gold);
  position: relative
}

header:before,
header:after {
  content: "॥";
  color: var(--gold);
  font-size: 26px;
  position: absolute;
  top: 32px
}

header:before {
  left: 24px
}

header:after {
  right: 24px
}

header .jeyes {
  display: block;
  margin: 0 auto 4px
}

header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: .5px
}

header .h-or {
  font-size: 20px;
  color: #ffe6b8;
  margin-top: 2px
}

header .tag {
  margin-top: 8px;
  font-size: 13px;
  color: #f6dcae
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0
}

.tab {
  padding: 11px 22px;
  border: 1.5px solid var(--gold);
  background: #fff;
  color: var(--maroon);
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  transition: .2s;
  text-align: center;
  text-decoration: none
}

.tab.active {
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 4px 12px rgba(123, 31, 43, .3)
}

.tab small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  opacity: .85
}

.panel {
  display: none
}

.panel.active {
  display: block
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin: 14px 0;
  box-shadow: 0 2px 10px rgba(120, 80, 20, .06)
}

.card h2 {
  margin: 0 0 14px;
  color: var(--maroon);
  font-size: 20px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px
}

.card h2 .or {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600
}

h4.sec {
  color: var(--navy);
  margin: 16px 0 6px;
  font-size: 15px
}

h4.sec .or {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  margin-left: 6px
}

.forms {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.form-col {
  flex: 1;
  min-width: 260px
}

.form-col h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16px;
  text-align: center;
  background: #f1e6cf;
  padding: 7px;
  border-radius: 8px
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  margin: 10px 0 3px
}

label .or {
  color: var(--gold);
  font-weight: 500
}

input,
select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  font-family: inherit
}

.row2 {
  display: flex;
  gap: 8px
}

.row2>div {
  flex: 1
}

.sugg {
  display: none;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  margin-top: -4px;
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 6px 14px rgba(120, 80, 20, .12)
}

.sugg-item {
  padding: 8px 11px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f3ecdb
}

.sugg-item:last-child {
  border-bottom: 0
}

.sugg-item:hover {
  background: #fbf3e0
}

.sugg-item small {
  color: #aaa;
  float: right;
  font-size: 11px
}

.btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  background: linear-gradient(180deg, var(--saffron), #b8520f);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer
}

.btn:hover {
  filter: brightness(1.06)
}

.btn.gold {
  background: linear-gradient(180deg, #cfa233, #9c7212)
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px
}

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  flex: 1;
  min-width: 120px;
  text-align: center
}

.chip .lab {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700
}

.chip .val {
  font-size: 16px;
  color: var(--maroon);
  font-weight: 700;
  margin-top: 2px
}

.chip .val small {
  display: block;
  font-size: 11px;
  color: #666;
  font-weight: 400
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13.5px
}

th,
td {
  border: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top
}

th {
  background: var(--navy);
  color: #fff;
  font-weight: 600
}

th .or {
  color: #ffe6b8;
  font-weight: 500;
  font-size: 11px
}

tr:nth-child(even) td {
  background: #faf3e3
}

.bi {
  display: block
}

.bi .en {
  display: block
}

.bi .or {
  display: block;
  font-size: .9em;
  color: #6b4f1a;
  margin-top: 1px
}

li .bi,
p .bi {
  margin-bottom: 2px
}

.score-tot {
  text-align: center;
  font-size: 15px;
  font-weight: 700
}

.verdict {
  text-align: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700
}

.v-good {
  background: #e3f3e7;
  color: var(--green);
  border: 1.5px solid var(--green)
}

.v-ok {
  background: #fff3df;
  color: var(--saffron);
  border: 1.5px solid var(--saffron)
}

.v-low {
  background: #fbe6e6;
  color: var(--maroon);
  border: 1.5px solid var(--maroon)
}

.charts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start
}

.chartbox {
  text-align: center
}

.chartbox h4 {
  margin: 0 0 6px;
  color: var(--navy)
}

svg {
  background: #fffdf5;
  border: 2px solid var(--maroon);
  border-radius: 6px
}

.legend {
  font-size: 11.5px;
  color: #666;
  margin-top: 8px;
  text-align: center
}

ul.clean {
  margin: 4px 0;
  padding-left: 20px
}

ul.clean li {
  margin-bottom: 6px
}

.areagrid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px
}

.areacard {
  flex: 1;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  background: #fff
}

.areacard .h {
  font-weight: 700;
  color: var(--maroon);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px
}

.pill {
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 20px;
  color: #fff;
  white-space: nowrap;
  align-self: flex-start;
  flex: 0 0 auto;
  height: fit-content;
  line-height: 1.5
}

.b0 {
  background: var(--green)
}

.b1 {
  background: #3a8f57
}

.b2 {
  background: var(--saffron)
}

.b3 {
  background: var(--maroon)
}

.dosha {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6efde;
  border: 1px solid var(--line);
  font-size: 13.5px
}

.note {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
  line-height: 1.5
}

.promo {
  margin: 0 0 14px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7e8, #fffdf7);
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(120, 80, 20, .06)
}

.promo-h {
  font-size: 17px;
  font-weight: 800;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.promo-h .or {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600
}

.promo-price {
  margin-left: auto;
  background: var(--maroon);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 15px
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin: 12px 0 8px
}

.feat {
  font-size: 12.5px;
  border-left: 3px solid var(--gold);
  padding-left: 9px
}

.feat b {
  color: var(--navy)
}

.feat span {
  display: block;
  color: #777;
  font-size: 11.5px
}

.promo-foot {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 6px
}

.genz-card {
  margin-top: 14px;
  border: 1.5px solid #d9b8ff;
  border-radius: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fbefff, #eef3ff 60%, #fff0f6);
  box-shadow: 0 4px 16px rgba(150, 90, 200, .10)
}

.genz-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #7b3fb0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.genz-card .ztag {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #a05cf0, #e0569b);
  padding: 3px 11px;
  border-radius: 20px
}

.genz-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.genz-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .65);
  border: 1px solid #ead8ff;
  border-radius: 12px;
  padding: 11px 13px
}

.genz-item .ge {
  font-size: 22px;
  line-height: 1.1;
  flex: 0 0 auto
}

.genz-item b {
  color: #6a32a0;
  font-size: 14px
}

.genz-item div div {
  font-size: 13.5px;
  color: #3a2a4a;
  margin-top: 2px;
  line-height: 1.45
}

.genz-foot {
  margin-top: 10px;
  font-size: 11.5px;
  color: #9b7bbf;
  text-align: center;
  font-style: italic
}

.premium-card {
  margin-top: 14px;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf0, #fff);
  padding: 18px;
  position: relative
}

.premium-card h2 {
  color: var(--maroon);
  font-size: 18px;
  margin: 0 0 4px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 7px
}

.premium-card .sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px
}

.locklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px
}

.lockitem {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  background: #fff;
  position: relative
}

.lockitem .lk {
  position: absolute;
  top: 9px;
  right: 11px;
  font-size: 13px;
  opacity: .6
}

.lockitem b {
  color: var(--navy);
  font-size: 13px
}

.lockitem .tease {
  font-size: 12px;
  color: #7b1f2b;
  margin-top: 3px;
  font-weight: 600
}

.lockitem .or {
  color: #6b4f1a;
  font-size: 11.5px
}

@media(max-width:560px) {

  .promo-grid,
  .locklist {
    grid-template-columns: 1fr
  }
}

.paywall {
  margin-top: 16px;
  text-align: center;
  padding: 18px;
  border: 2px dashed var(--gold);
  border-radius: 12px;
  background: #fffaf0
}

.paywall .price {
  font-size: 22px;
  color: var(--maroon);
  font-weight: 800
}

.paywall small {
  display: block;
  color: #888;
  margin-top: 6px;
  font-size: 11.5px
}

footer {
  text-align: center;
  font-size: 11.5px;
  color: #999;
  margin-top: 34px;
  line-height: 1.6
}

.footer-links {
  margin: 12px 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
}

.footer-links a {
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 4px;
  font-size: 11px;
  color: #aaa;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50
}

.modal-bg.show {
  display: flex
}

.modal {
  background: #fff;
  border-radius: 14px;
  padding: 26px;
  max-width: 380px;
  width: 92%;
  text-align: center;
  border-top: 6px solid var(--gold)
}

.modal h3 {
  color: var(--maroon);
  margin: 0 0 8px
}

.modal input {
  margin: 8px 0
}

@media(max-width:560px) {
  header h1 {
    font-size: 25px
  }

  .charts {
    flex-direction: column;
    align-items: center
  }
}

/* SEO Content & FAQ Styles */
.seo-section {
  margin-top: 24px;
}

.seo-card {
  border-color: var(--line);
  background: var(--paper);
}

.seo-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.seo-text-col {
  flex: 1;
  min-width: 280px;
}

.seo-text-col p {
  line-height: 1.6;
  font-size: 14px;
  margin: 0 0 14px;
}

.faq-heading {
  margin: 24px 0 14px;
  color: var(--maroon);
  font-size: 18px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--gold);
  box-shadow: 0 3px 8px rgba(120, 80, 20, 0.05);
}

.faq-question {
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 14.5px;
  user-select: none;
  background: #fffdf9;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #fff8eb;
}

.faq-question span.faq-icon {
  font-size: 18px;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: padding 0.3s ease, max-height 0.3s ease;
  font-size: 13.5px;
  line-height: 1.55;
  background: #fff;
}

.faq-item.active .faq-question {
  background: #fff5e1;
  border-bottom: 1px solid var(--line);
}

.faq-item.active .faq-question span.faq-icon {
  transform: rotate(45deg);
  color: var(--maroon);
}

.faq-item.active .faq-answer {
  padding: 14px 18px;
  max-height: 500px;
}

@media(max-width:768px) {
  .seo-grid {
    flex-direction: column;
    gap: 12px;
  }
}

/* Calendar & Panjika Styles */
.cal-container {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}

.cal-main {
  flex: 3;
  min-width: 320px;
}

.cal-sidebar {
  flex: 1.2;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cal-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  background: var(--paper);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}

.cal-controls select {
  max-width: 160px;
  font-weight: 600;
  color: var(--navy);
  border-color: var(--gold);
  background-color: #fffdf9;
}

.cal-btn {
  padding: 9px 15px;
  background: var(--paper);
  border: 1px solid var(--gold);
  color: var(--maroon);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s;
  user-select: none;
}

.cal-btn:hover {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.cal-btn-today {
  border-color: var(--green);
  color: var(--green);
}

.cal-btn-today:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.cal-ics-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  color: var(--maroon);
  background: #fff8ee;
  border: 1px solid var(--gold);
  border-radius: 7px;
  cursor: pointer;
  transition: 0.15s;
}

.cal-ics-btn:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

/* Day-view festival row: text left, calendar button right */
.cal-detail-festivals li.cal-fest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cal-fest-text {
  min-width: 0;
}

.cal-grid-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(120, 80, 20, .05);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 13px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-cell {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.cal-day-cell:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(120, 80, 20, 0.08);
}

.cal-day-cell.is-outside {
  opacity: 0.35;
  background: #fafaf8;
}

.cal-day-cell.is-selected {
  border: 2px solid var(--maroon) !important;
  box-shadow: 0 0 0 2px rgba(123, 31, 43, 0.15);
}

.cal-day-cell.is-today {
  border: 2px solid var(--green);
  box-shadow: 0 0 0 2px rgba(31, 110, 58, 0.18);
}

.cal-day-cell.is-today .cal-day-num::after {
  content: "•";
  color: var(--green);
  margin-left: 3px;
  font-size: 18px;
  line-height: 0;
  vertical-align: middle;
}

.cal-day-cell.is-today.is-selected {
  border-color: var(--maroon);
}

.cal-day-cell.is-sankranti {
  border-color: var(--saffron);
  background: #fff9f3;
}

.cal-day-cell.is-purnima {
  background: #fffdf0;
  border-color: #f7e3a3;
}

.cal-day-cell.is-amavasya {
  background: #f7f7f7;
  border-color: #ddd;
}

.cal-day-cell.is-fest {
  background: #fffcf5;
  border-color: var(--gold);
}

.cal-day-cell.is-holiday {
  border-left: 3px solid #7c3aed;
  background: #fdf8ff;
}

.cal-day-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.cal-solar-info {
  font-size: 10.5px;
  color: var(--saffron);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.cal-day-cell.is-outside .cal-solar-info {
  color: #bbb;
}

.cal-day-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.cal-day-cell.is-outside .cal-day-num {
  color: #888;
}

.cal-tithi-name {
  font-size: 10px;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.cal-day-cell.is-outside .cal-tithi-name {
  color: #bbb;
}

.cal-fest-badge {
  font-size: 8px;
  background: var(--saffron);
  color: #fff;
  border-radius: 4px;
  padding: 1px 4px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: auto;
  line-height: 1.3;
}

.cal-sankranti-badge {
  font-size: 8px;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  padding: 1px 4px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: auto;
  line-height: 1.3;
}

.cal-detail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(120, 80, 20, .05);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
}

.cal-detail-card h3 {
  margin: 0 0 10px;
  color: var(--maroon);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  font-size: 15px;
}

.cal-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-detail-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}

.cal-detail-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cal-detail-item .label {
  font-size: 10px;
  color: var(--gold);
  font-weight: 700;
}

.cal-detail-item .value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2px;
}

.cal-detail-item .value small {
  color: #666;
  font-weight: 400;
  margin-left: 5px;
}

.cal-detail-festivals {
  margin-top: 10px;
  background: #fff8ee;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.cal-detail-festivals h4 {
  margin: 0 0 6px;
  color: var(--saffron);
  font-size: 13px;
  font-weight: 800;
}

.cal-detail-festivals ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

.cal-detail-festivals li {
  margin-bottom: 4px;
}

.cal-detail-festivals li:last-child {
  margin-bottom: 0;
}

/* ── Monthly summary list ── */
.cal-sum-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cal-sum-row {
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}

.cal-sum-row:last-child {
  border-bottom: 0;
}

.cal-sum-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .2px;
}

.cal-sum-events {
  margin-top: 4px;
  padding-left: 8px;
}

.cal-sum-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.cal-sum-event:last-child {
  margin-bottom: 0;
}

.cal-sum-text {
  min-width: 0;
}

.cal-sum-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.cal-sum-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: #777;
  margin-left: 20px;
  line-height: 1.3;
}

.cal-sum-empty {
  font-style: italic;
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
}

@media(max-width:768px) {
  .cal-container {
    flex-direction: column;
  }

  .cal-sidebar {
    margin-top: 10px;
  }

  .cal-detail-card {
    position: static;
    height: auto;
    overflow-y: visible;
  }

  .cal-day-cell {
    padding: 3px;
  }

  .cal-day-num {
    font-size: 14px;
  }

  .cal-solar-info {
    font-size: 8.5px;
  }

  .cal-tithi-name {
    font-size: 8px;
  }

  .cal-fest-badge,
  .cal-sankranti-badge,
  .cal-muhurta-tag,
  .cal-holiday-badge {
    font-size: 7px;
    padding: 0 2px;
  }
}

.cal-muhurta-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  width: 100%;
}

.cal-day-cell>.cal-muhurta-container:last-child {
  margin-top: auto;
}

.cal-day-cell>.cal-badges-container~.cal-muhurta-container {
  margin-top: 2px;
}

.cal-muhurta-tag {
  font-size: 8px;
  border-radius: 4px;
  padding: 1px 4px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.cal-muhurta-tag.marriage {
  background: #ffe3e3;
  color: #b51c1c;
}

.cal-muhurta-tag.house {
  background: #e3f3e7;
  color: #1c6e3a;
}

/* Holiday badges in calendar cells */
.cal-holiday-badge {
  font-size: 8px;
  border-radius: 4px;
  padding: 1px 4px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-top: 0;
}

.cal-holiday-badge.national {
  background: #ede9fe;
  color: #4c1d95;
  border: 1px solid #c4b5fd;
}

.cal-holiday-badge.odisha {
  background: #fff7ed;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Sidebar Tabs */
.sidebar-tabs {
  display: flex;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
  gap: 4px;
  width: 100%;
}

.sidebar-tab {
  flex: 1;
  padding: 8px 6px;
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sidebar-tab:hover {
  background: #fff3df;
}

.sidebar-tab.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.sidebar-tab small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  opacity: 0.85;
}

/* Compact Calendar Cell Icons */
.cal-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
  width: 100%;
}

.cal-icon-item {
  font-size: 11px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cal-icon-item.sankranti {
  background: #fff9f3;
  border-color: var(--saffron);
}

.cal-icon-item.festival {
  background: #fffcf5;
  border-color: var(--gold);
}

.cal-icon-item.holiday-national {
  background: #ede9fe;
  border-color: #c4b5fd;
}

.cal-icon-item.holiday-odisha {
  background: #fff7ed;
  border-color: #fcd34d;
}

.cal-icon-item.marriage {
  background: #ffe3e3;
  border-color: #b51c1c;
}

.cal-icon-item.house {
  background: #e3f3e7;
  border-color: #1c6e3a;
}

/* Personalized Good Dates Finder Highlights */
.cal-day-cell.is-good-date {
  background: #eefcf2 !important;
  border-color: #a7e7be !important;
}

.cal-day-cell.is-good-date:hover {
  box-shadow: 0 4px 10px rgba(28, 110, 58, 0.12) !important;
}

.cal-day-cell.is-ok-date {
  background: #fffdf5 !important;
  border-color: #fceea7 !important;
}

.cal-day-cell.is-bad-date {
  background: #fffafb !important;
  border-color: #fbc7c7 !important;
  opacity: 0.7;
}

/* Styling for Good Dates Results Table */
.pg-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.pg-results-table th {
  background: var(--navy);
  color: white;
  padding: 6px 8px;
  font-size: 11px;
}

.pg-results-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.pg-row-good {
  background: #eefcf2;
}

.pg-row-ok {
  background: #fffdf5;
}

.pg-row-bad {
  background: #fffafb;
  opacity: 0.85;
}

.pg-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 10px;
}

.pg-badge.good {
  background: #2e7d32;
  color: white;
}

.pg-badge.ok {
  background: #f57c00;
  color: white;
}

.pg-badge.bad {
  background: #c62828;
  color: white;
}

/* ── Print ── */
@media print {
  body {
    background: #fff;
  }

  header,
  .tabs,
  .cal-controls,
  #personalized-dates-card,
  .seo-section,
  .footer-links,
  .cal-ics-btn,
  .modal-bg,
  .paywall-btn,
  .cal-detail-tabs,
  .cal-tabs {
    display: none !important;
  }

  .wrap {
    max-width: 100%;
  }

  .cal-container {
    display: block;
  }

  .cal-day-cell,
  .cal-grid-card,
  .cal-detail-card {
    box-shadow: none !important;
    break-inside: avoid;
  }

  .cal-day-cell:hover {
    transform: none;
  }

  .cal-detail-card {
    position: static;
    height: auto;
    overflow: visible;
    margin-top: 14px;
  }

  a[href]::after {
    content: "";
  }
}