/*
Theme Name: Mishra Jyotish
Theme URI: https://mishrajyotish.example
Author: Mishra Jyotish
Author URI: https://mishrajyotish.example
Description: Premium Vedic astrology theme for Mishra Jyotish — Kundli, Horoscope, Panchang, Puja & Remedies, Consultation and Astrology Products. Purpose-built, API-ready, mobile-first and SEO-first. Requires the "MJ Core" companion plugin.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mishra-jyotish
Tags: e-commerce, blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
WC requires at least: 7.0
WC tested up to: 9.0
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
	--mj-purple: #4B1F6F;
	--mj-purple-deep: #2E1245;
	--mj-purple-ink: #1D0B2E;
	--mj-plum: #6B2D5C;
	--mj-plum-soft: #8A4A78;
	--mj-gold: #C9A227;
	--mj-gold-bright: #E3BE4B;
	--mj-gold-soft: #F1E3B6;
	--mj-gold-tint: #FAF4DF;
	--mj-cream: #F8F3EA;
	--mj-cream-deep: #F1E8D8;
	--mj-white: #FFFFFF;
	--mj-ink: #27232A;
	--mj-muted: #6B6470;
	--mj-line: rgba(75, 31, 111, 0.12);
	--mj-line-soft: rgba(75, 31, 111, 0.08);
	--mj-tint: #F5EFF9;
	--mj-green: #2E7D5B;
	--mj-red: #B3423A;

	--mj-radius: 18px;
	--mj-radius-sm: 12px;
	--mj-radius-lg: 24px;
	--mj-shadow: 0 10px 30px rgba(46, 18, 69, 0.08);
	--mj-shadow-lg: 0 18px 50px rgba(46, 18, 69, 0.14);
	--mj-shadow-gold: 0 8px 24px rgba(201, 162, 39, 0.28);

	--mj-font: 'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--mj-font-display: 'Inter', 'Noto Sans Devanagari', -apple-system, sans-serif;

	--mj-container: 1200px;
	--mj-header-h: 76px;
}

/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--mj-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--mj-ink);
	background: var(--mj-cream);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--mj-purple); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--mj-plum); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--mj-font-display);
	color: var(--mj-ink);
	line-height: 1.22;
	margin: 0 0 .55em;
	font-weight: 700;
	letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.08rem; }
ul, ol { padding-left: 1.25em; }
blockquote {
	margin: 1.4em 0; padding: 1em 1.4em;
	border-left: 3px solid var(--mj-gold);
	background: var(--mj-tint); border-radius: 0 var(--mj-radius-sm) var(--mj-radius-sm) 0;
	color: var(--mj-purple); font-style: italic;
}
hr { border: 0; border-top: 1px solid var(--mj-line); margin: 2em 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--mj-tint); border-radius: 6px; }
code { padding: .1em .4em; }
pre { padding: 1em; overflow: auto; }
table { width: 100%; border-collapse: collapse; margin: 1em 0; }
th, td { padding: .7em .85em; border-bottom: 1px solid var(--mj-line-soft); text-align: left; }
th { color: var(--mj-purple); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
:focus-visible { outline: 2px solid var(--mj-gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(201, 162, 39, 0.30); }
.mj-devanagari, .devanagari { font-family: 'Noto Sans Devanagari', var(--mj-font); }

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.mj-container { max-width: var(--mj-container); margin: 0 auto; padding: 0 22px; }
.mj-container--wide { max-width: 1320px; }
.mj-section { padding: 72px 0; position: relative; }
.mj-section--tight { padding: 52px 0; }
.mj-section--tint { background: var(--mj-tint); }
.mj-section--white { background: var(--mj-white); }
.mj-section--cream-deep { background: var(--mj-cream-deep); }
.mj-section-head { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.mj-section-head--left { margin-left: 0; text-align: left; }
.mj-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--mj-gold); margin-bottom: 12px;
}
.mj-eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--mj-gold); display: inline-block; }
.mj-eyebrow--center::after { content: ""; width: 26px; height: 1.5px; background: var(--mj-gold); display: inline-block; }
.mj-lead { color: var(--mj-muted); font-size: 1.06rem; margin-bottom: 0; }
.mj-grid { display: grid; gap: 22px; }
.mj-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mj-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mj-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mj-text-center { text-align: center; }
.mj-mt { margin-top: 34px; }
.mj-mt-sm { margin-top: 18px; }

/* ==========================================================================
   4. BUTTONS & BADGES
   ========================================================================== */
.btn, .mj-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 13px 26px; border-radius: 999px;
	font-family: var(--mj-font); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
	border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
	line-height: 1.2; text-align: center;
}
.btn svg { flex: none; }
.btn--primary { background: var(--mj-purple); color: #fff; box-shadow: 0 8px 22px rgba(75, 31, 111, 0.28); }
.btn--primary:hover { background: var(--mj-purple-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(75, 31, 111, 0.34); }
.btn--gold { background: linear-gradient(135deg, var(--mj-gold-bright), var(--mj-gold)); color: var(--mj-purple-ink); box-shadow: var(--mj-shadow-gold); font-weight: 700; }
.btn--gold:hover { background: linear-gradient(135deg, var(--mj-gold), #b8901e); color: var(--mj-purple-ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--mj-purple); border-color: rgba(75, 31, 111, 0.35); }
.btn--ghost:hover { border-color: var(--mj-purple); background: rgba(75, 31, 111, 0.06); }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn--white { background: #fff; color: var(--mj-purple); box-shadow: var(--mj-shadow); }
.btn--white:hover { transform: translateY(-2px); color: var(--mj-plum); }
.btn--sm { padding: 9px 18px; font-size: .86rem; }
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.mj-link-more { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
	font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge--gold { background: var(--mj-gold-tint); color: #8a6d10; border: 1px solid rgba(201, 162, 39, .4); }
.badge--purple { background: rgba(75, 31, 111, .08); color: var(--mj-purple); border: 1px solid rgba(75, 31, 111, .18); }
.badge--green { background: rgba(46, 125, 91, .1); color: var(--mj-green); border: 1px solid rgba(46, 125, 91, .25); }

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.mj-header {
	position: sticky; top: 0; z-index: 900;
	background: rgba(248, 243, 234, 0.92);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--mj-line-soft);
	transition: box-shadow .2s ease;
}
.mj-header.is-scrolled { box-shadow: 0 6px 24px rgba(46, 18, 69, 0.08); }
.mj-header__inner { display: flex; align-items: center; gap: 18px; min-height: var(--mj-header-h); }
.mj-brand { display: flex; align-items: center; gap: 11px; flex: none; }
.mj-brand__mark { width: 46px; height: 46px; flex: none; }
.mj-brand__name { font-size: 1.22rem; font-weight: 800; color: var(--mj-purple); line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.mj-brand__name:hover { color: var(--mj-plum); }
.mj-brand__tag { font-size: .72rem; color: var(--mj-muted); letter-spacing: .02em; white-space: nowrap; }
.mj-nav { margin-left: auto; }
.mj-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.mj-nav a { display: block; padding: 9px 11px; font-size: .9rem; font-weight: 600; color: var(--mj-ink); border-radius: 9px; white-space: nowrap; }
.mj-nav a:hover { color: var(--mj-purple); background: rgba(75, 31, 111, .06); }
.mj-nav .current-menu-item > a, .mj-nav .current_page_item > a { color: var(--mj-purple); }
.mj-nav .current-menu-item > a::after, .mj-nav .current_page_item > a::after {
	content: ""; display: block; height: 2px; border-radius: 2px; background: var(--mj-gold); margin-top: 3px;
}
/* Dropdowns */
.mj-nav li { position: relative; }
.mj-nav .sub-menu, .mj-nav .children {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 235px;
	background: #fff; border: 1px solid var(--mj-line); border-radius: 14px;
	box-shadow: var(--mj-shadow-lg); padding: 8px; display: block;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.mj-nav li:hover > .sub-menu, .mj-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mj-nav .sub-menu li { width: 100%; }
.mj-nav .sub-menu a { padding: 9px 13px; font-weight: 500; border-radius: 9px; white-space: normal; }
.mj-nav .sub-menu .current-menu-item > a::after { display: none; }
.menu-item-has-children > a::after, .page_item_has_children > a::after {
	content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; margin-bottom: 1px;
	border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); opacity: .55;
}
.mj-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.mj-header__login { font-size: .88rem; font-weight: 600; padding: 9px 13px; border-radius: 999px; color: var(--mj-purple); }
.mj-header__login:hover { background: rgba(75, 31, 111, .07); }
.mj-header__cta { flex: none; }
.mj-search-toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: 50%; border: 1px solid var(--mj-line); background: #fff; color: var(--mj-purple); cursor: pointer;
}
.mj-search-bar { display: none; border-top: 1px solid var(--mj-line-soft); background: #fff; padding: 14px 0; }
.mj-search-bar.is-open { display: block; }
.mj-search-bar form { display: flex; gap: 10px; }
.mj-search-bar input[type="search"] { flex: 1; }
.mj-burger { display: none; }

/* ==========================================================================
   6. MOBILE NAV (drawer + bottom bar + floating whatsapp + sticky CTA)
   ========================================================================== */
.mj-drawer {
	position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none;
}
.mj-drawer.is-open { visibility: visible; pointer-events: auto; }
.mj-drawer__backdrop { position: absolute; inset: 0; background: rgba(29, 11, 46, .5); opacity: 0; transition: opacity .22s ease; }
.mj-drawer.is-open .mj-drawer__backdrop { opacity: 1; }
.mj-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
	background: var(--mj-cream); transform: translateX(102%); transition: transform .26s cubic-bezier(.32,.72,.34,1);
	overflow-y: auto; padding: 18px 20px 120px; box-shadow: -18px 0 50px rgba(29, 11, 46, .25);
}
.mj-drawer.is-open .mj-drawer__panel { transform: translateX(0); }
.mj-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mj-drawer__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--mj-line); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--mj-purple); }
.mj-drawer nav ul { list-style: none; margin: 0; padding: 0; }
.mj-drawer nav a { display: block; padding: 12px 6px; font-weight: 600; color: var(--mj-ink); border-bottom: 1px solid var(--mj-line-soft); }
.mj-drawer .sub-menu { padding-left: 14px; }
.mj-drawer .sub-menu a { font-weight: 500; font-size: .92rem; padding: 9px 6px; color: var(--mj-muted); }
.mj-drawer__cta { margin-top: 18px; display: grid; gap: 10px; }

.mj-bottombar {
	display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
	background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-top: 1px solid var(--mj-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.mj-bottombar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.mj-bottombar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; font-size: .66rem; font-weight: 600; color: var(--mj-muted); border-radius: 10px; }
.mj-bottombar a:hover, .mj-bottombar a.is-active { color: var(--mj-purple); }
.mj-bottombar svg { width: 21px; height: 21px; }
.mj-fab-whatsapp {
	position: fixed; z-index: 940; left: 14px; bottom: 76px;
	width: 52px; height: 52px; border-radius: 50%;
	background: #25D366; color: #fff; display: none; align-items: center; justify-content: center;
	box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
}
.mj-fab-whatsapp svg { width: 26px; height: 26px; }
.mj-fab-whatsapp:hover { transform: scale(1.06); color: #fff; }
@media (max-width: 1023px) {
	.mj-bottombar { display: block; }
	.mj-fab-whatsapp { display: inline-flex; }
	body { padding-bottom: 64px; }
	.mj-sticky-cta {
		position: fixed; right: 14px; bottom: 76px; z-index: 945;
		display: inline-flex; align-items: center; gap: 8px;
		background: linear-gradient(135deg, var(--mj-gold-bright), var(--mj-gold));
		color: var(--mj-purple-ink); font-weight: 700; font-size: .86rem;
		padding: 11px 18px; border-radius: 999px; box-shadow: var(--mj-shadow-gold);
	}
}
@media (min-width: 1024px) { .mj-sticky-cta { display: none; } }

/* ==========================================================================
   7. HERO
   ========================================================================== */
.mj-hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(1200px 600px at 85% -10%, rgba(107, 45, 92, .55), transparent 60%),
		radial-gradient(900px 500px at -10% 110%, rgba(107, 45, 92, .5), transparent 55%),
		linear-gradient(158deg, var(--mj-purple-ink) 0%, var(--mj-purple-deep) 34%, var(--mj-purple) 68%, var(--mj-plum) 100%);
	padding: 86px 0 130px;
}
.mj-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.mj-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
	padding: 7px 16px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
	color: var(--mj-gold-soft); margin-bottom: 22px;
}
.mj-hero__title {
	color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.14;
	margin-bottom: 18px;
}
.mj-hero__title .mj-hero__hindi { display: block; color: var(--mj-gold-bright); }
.mj-hero__sub { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 560px; margin-bottom: 30px; }
.mj-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.mj-hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; color: rgba(255,255,255,.75); font-size: .88rem; font-weight: 500; }
.mj-hero__points span { display: inline-flex; align-items: center; gap: 8px; }
.mj-hero__points svg { color: var(--mj-gold-bright); }
.mj-hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.mj-hero__art svg.mj-zodiac-wheel { width: min(520px, 100%); height: auto; opacity: .95; }
.mj-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; color: var(--mj-cream); }
.mj-hero__wave svg { display: block; width: 100%; height: 90px; }
.mj-stars { position: absolute; inset: 0; pointer-events: none; }

/* ==========================================================================
   8. CARDS
   ========================================================================== */
.mj-card {
	background: #fff; border: 1px solid var(--mj-line-soft); border-radius: var(--mj-radius);
	padding: 26px; box-shadow: 0 4px 18px rgba(46, 18, 69, 0.05);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	position: relative; display: flex; flex-direction: column;
}
.mj-card:hover { transform: translateY(-4px); box-shadow: var(--mj-shadow-lg); border-color: rgba(201, 162, 39, .35); }
.mj-card__icon {
	width: 54px; height: 54px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(140deg, rgba(75, 31, 111, .10), rgba(107, 45, 92, .08));
	color: var(--mj-purple); margin-bottom: 16px; border: 1px solid rgba(75, 31, 111, .1);
}
.mj-card__icon svg { width: 26px; height: 26px; }
.mj-card--gold .mj-card__icon { background: var(--mj-gold-tint); color: #9c7c14; border-color: rgba(201, 162, 39, .3); }
.mj-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.mj-card p { color: var(--mj-muted); font-size: .92rem; margin-bottom: 14px; }
.mj-card__cta { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--mj-purple); display: inline-flex; align-items: center; gap: 6px; }
.mj-card__cta svg { transition: transform .18s ease; }
.mj-card:hover .mj-card__cta svg { transform: translateX(3px); }
.mj-card__price { color: var(--mj-plum); font-weight: 800; font-size: 1.02rem; margin-bottom: 12px; }
.mj-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* Tool cards (compact) */
.mj-tool-card { text-align: left; padding: 22px; }
/* Zodiac cards */
.mj-zodiac-card { align-items: center; text-align: center; padding: 22px 16px; gap: 8px; }
.mj-zodiac-card__glyph {
	width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font-size: 1.55rem; color: var(--mj-purple); background: var(--mj-tint); border: 1px solid rgba(75, 31, 111, .12);
	transition: background .2s ease, color .2s ease;
}
.mj-zodiac-card:hover .mj-zodiac-card__glyph { background: var(--mj-gold-tint); color: #8a6d10; }
.mj-zodiac-card h3 { font-size: .98rem; margin: 4px 0 0; }
.mj-zodiac-card p { font-size: .8rem; margin: 0; min-height: 2.4em; }
.mj-zodiac-card__dates { font-size: .72rem; color: var(--mj-gold); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* ==========================================================================
   9. FORMS
   ========================================================================== */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], input[type="date"],
input[type="time"], input[type="datetime-local"], select, textarea {
	width: 100%; padding: 12px 15px; border-radius: var(--mj-radius-sm);
	border: 1.5px solid var(--mj-line); background: #fff; color: var(--mj-ink);
	font-family: var(--mj-font); font-size: .95rem; transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--mj-purple); box-shadow: 0 0 0 3px rgba(75, 31, 111, 0.12); outline: none; }
textarea { min-height: 120px; resize: vertical; }
label { font-weight: 600; font-size: .88rem; color: var(--mj-ink); display: block; margin-bottom: 6px; }
.mj-field { margin-bottom: 18px; }
.mj-field__hint { font-size: .8rem; color: var(--mj-muted); margin-top: 5px; }
.mj-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mj-form-card {
	background: #fff; border: 1px solid var(--mj-line-soft); border-radius: var(--mj-radius-lg);
	padding: 34px; box-shadow: var(--mj-shadow);
}
.mj-form-card--accent { border-top: 4px solid var(--mj-gold); }
details.mj-details {
	background: #fff; border: 1px solid var(--mj-line-soft); border-radius: var(--mj-radius-sm);
	margin-bottom: 12px; overflow: hidden;
}
details.mj-details summary {
	cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.mj-details summary::-webkit-details-marker { display: none; }
details.mj-details summary::after { content: "+"; font-size: 1.25rem; color: var(--mj-gold); font-weight: 600; transition: transform .2s ease; }
details.mj-details[open] summary::after { transform: rotate(45deg); }
details.mj-details .mj-details__body { padding: 0 20px 18px; color: var(--mj-muted); font-size: .94rem; }
.mj-advanced-toggle { background: none; border: none; color: var(--mj-purple); font-weight: 600; cursor: pointer; padding: 0; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.mj-advanced { display: none; }
.mj-advanced.is-open { display: block; }

/* ==========================================================================
   10. NOTICE / ALERT PANELS
   ========================================================================== */
.mj-notice {
	border-radius: var(--mj-radius-sm); padding: 16px 20px; font-size: .92rem; display: flex; gap: 12px; align-items: flex-start;
	border: 1px solid;
}
.mj-notice svg { flex: none; margin-top: 2px; }
.mj-notice--info { background: var(--mj-tint); border-color: rgba(75, 31, 111, .18); color: var(--mj-purple); }
.mj-notice--gold { background: var(--mj-gold-tint); border-color: rgba(201, 162, 39, .35); color: #6d5508; }
.mj-notice--warn { background: #FDF3EE; border-color: rgba(179, 66, 58, .25); color: #8a332c; }
.mj-notice--success { background: #EEF7F2; border-color: rgba(46, 125, 91, .3); color: var(--mj-green); }
.mj-notice a { font-weight: 700; }

/* Result skeleton */
.mj-skeleton { border-radius: 8px; background: linear-gradient(90deg, #efe9f5 25%, #f7f3fb 50%, #efe9f5 75%); background-size: 200% 100%; animation: mj-shimmer 1.3s infinite; height: 14px; margin: 10px 0; }
@keyframes mj-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ==========================================================================
   11. PAGE HEADER (inner pages)
   ========================================================================== */
.mj-page-head {
	background: linear-gradient(150deg, var(--mj-purple-ink), var(--mj-purple) 55%, var(--mj-plum));
	color: #fff; padding: 64px 0 58px; position: relative; overflow: hidden;
}
.mj-page-head h1 { color: #fff; margin-bottom: 8px; position: relative; z-index: 2; }
.mj-page-head p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0; position: relative; z-index: 2; }
.mj-page-head__ornament { position: absolute; right: -60px; top: -40px; opacity: .14; pointer-events: none; }
.mj-breadcrumbs { font-size: .84rem; margin-bottom: 14px; color: rgba(255,255,255,.66); position: relative; z-index: 2; }
.mj-breadcrumbs a { color: rgba(255,255,255,.85); font-weight: 500; }
.mj-breadcrumbs .sep { margin: 0 7px; opacity: .5; }
.mj-breadcrumbs--light-bg { color: var(--mj-muted); margin: 18px 0 0; }
.mj-breadcrumbs--light-bg a { color: var(--mj-purple); }

/* ==========================================================================
   12. MISC COMPONENTS
   ========================================================================== */
/* Trust strip */
.mj-trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mj-trust-item { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px 16px; }
.mj-trust-item svg { color: var(--mj-gold-bright); flex: none; margin-top: 2px; }
.mj-trust-item strong { display: block; font-size: .92rem; color: #fff; }
.mj-trust-item span { font-size: .8rem; color: rgba(255,255,255,.65); }

/* Steps */
.mj-steps { counter-reset: mjstep; display: grid; gap: 0; }
.mj-step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--mj-line); }
.mj-step:last-child { border-bottom: 0; }
.mj-step::before {
	counter-increment: mjstep; content: counter(mjstep);
	flex: none; width: 40px; height: 40px; border-radius: 50%;
	background: var(--mj-gold-tint); color: #8a6d10; border: 1.5px solid rgba(201, 162, 39, .45);
	font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.mj-step__body strong { display: block; margin-bottom: 2px; color: var(--mj-ink); }
.mj-step__body span { color: var(--mj-muted); font-size: .92rem; }

/* Check list */
.mj-checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.mj-checklist li { padding-left: 30px; position: relative; margin-bottom: 9px; }
.mj-checklist li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--mj-gold-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%238a6d10' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
	border: 1px solid rgba(201, 162, 39, .4);
}

/* Tabs */
.mj-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.mj-tab-btn {
	padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--mj-line);
	background: #fff; font-weight: 600; font-size: .88rem; color: var(--mj-muted); cursor: pointer;
	font-family: var(--mj-font);
}
.mj-tab-btn.is-active { background: var(--mj-purple); border-color: var(--mj-purple); color: #fff; }
.mj-tab-panel { display: none; }
.mj-tab-panel.is-active { display: block; }

/* Kundli chart (North Indian diamond) */
.mj-chart-wrap { background: #fff; border: 1px solid var(--mj-line-soft); border-radius: var(--mj-radius); padding: 18px; }
.mj-chart-wrap svg { width: 100%; height: auto; display: block; }
.mj-chart-wrap h4 { margin: 0 0 10px; text-align: center; color: var(--mj-purple); font-size: .95rem; }

/* Dasha tree */
.mj-dasha { list-style: none; padding-left: 0; }
.mj-dasha ul { list-style: none; padding-left: 22px; border-left: 1px dashed var(--mj-line); margin-left: 8px; }
.mj-dasha li { padding: 3px 0; font-size: .92rem; }
.mj-dasha .mj-dasha__lord { font-weight: 700; color: var(--mj-purple); }
.mj-dasha .mj-dasha__dates { color: var(--mj-muted); font-size: .84rem; margin-left: 8px; }

/* Accordion grid (homepage FAQ) */
.mj-faq-grid { max-width: 820px; margin: 0 auto; }

/* Testimonials */
.mj-testimonial { position: relative; }
.mj-testimonial__stars { color: var(--mj-gold); letter-spacing: 2px; margin-bottom: 10px; font-size: .95rem; }
.mj-testimonial__text { color: var(--mj-ink); font-size: .96rem; }
.mj-testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.mj-testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--mj-tint); color: var(--mj-purple); font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.mj-testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mj-testimonial__name { font-weight: 700; font-size: .92rem; }
.mj-testimonial__service { font-size: .78rem; color: var(--mj-muted); }

/* Astrologer card */
.mj-astrologer { text-align: center; }
.mj-astrologer__photo { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(140deg, var(--mj-purple), var(--mj-plum)); color: var(--mj-gold-bright); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 800; overflow: hidden; border: 2.5px solid var(--mj-gold-soft); }
.mj-astrologer__photo img { width: 100%; height: 100%; object-fit: cover; }
.mj-astrologer__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 14px; }

/* Blog cards */
.mj-post-card { overflow: hidden; padding: 0; }
.mj-post-card__thumb { aspect-ratio: 16/9.6; overflow: hidden; background: var(--mj-tint); display: block; }
.mj-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mj-post-card:hover .mj-post-card__thumb img { transform: scale(1.045); }
.mj-post-card__thumb--empty { display: flex; align-items: center; justify-content: center; color: var(--mj-plum); }
.mj-post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.mj-post-card__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--mj-muted); margin-bottom: 8px; align-items: center; }
.mj-post-card__meta .mj-cat { color: #8a6d10; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mj-post-card h3 { font-size: 1.04rem; margin-bottom: 8px; }
.mj-post-card h3 a { color: var(--mj-ink); }
.mj-post-card h3 a:hover { color: var(--mj-purple); }
.mj-post-card p { font-size: .9rem; margin-bottom: 12px; }

/* Single post / page content */
.mj-content {
	background: #fff; border: 1px solid var(--mj-line-soft); border-radius: var(--mj-radius-lg);
	padding: clamp(24px, 4vw, 48px); box-shadow: 0 4px 18px rgba(46, 18, 69, 0.05);
}
.mj-content > h2 { margin-top: 1.6em; padding-top: .4em; }
.mj-content .wp-block-image img { border-radius: var(--mj-radius-sm); }
.mj-toc { background: var(--mj-tint); border: 1px solid var(--mj-line-soft); border-radius: var(--mj-radius-sm); padding: 18px 22px; margin: 22px 0; }
.mj-toc strong { display: block; margin-bottom: 8px; color: var(--mj-purple); }
.mj-toc ol { margin: 0; columns: 2; column-gap: 30px; font-size: .92rem; }
.mj-entry-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--mj-muted); font-size: .86rem; margin: 8px 0 20px; align-items: center; }
.mj-entry-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mj-share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--mj-line); }
.mj-share-row a, .mj-share-row button {
	width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--mj-line); background: #fff; color: var(--mj-purple); cursor: pointer;
}
.mj-share-row a:hover { background: var(--mj-tint); }
.mj-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mj-tag-list a { font-size: .8rem; font-weight: 600; padding: 5px 13px; border-radius: 999px; background: var(--mj-tint); color: var(--mj-purple); border: 1px solid rgba(75,31,111,.12); }

/* Product/service single hero meta */
.mj-single-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mj-price-tag { font-size: 1.35rem; font-weight: 800; color: var(--mj-plum); }

/* CTA band */
.mj-cta-band {
	background: linear-gradient(140deg, var(--mj-purple-deep), var(--mj-purple) 60%, var(--mj-plum));
	border-radius: var(--mj-radius-lg); color: #fff; padding: clamp(30px, 5vw, 56px);
	position: relative; overflow: hidden; text-align: center;
}
.mj-cta-band h2 { color: #fff; position: relative; z-index: 2; }
.mj-cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 26px; position: relative; z-index: 2; }
.mj-cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; z-index: 2; }

/* Footer */
.mj-footer { background: var(--mj-purple-ink); color: rgba(255,255,255,.72); margin-top: 0; position: relative; }
.mj-footer a { color: rgba(255,255,255,.72); font-size: .9rem; }
.mj-footer a:hover { color: var(--mj-gold-bright); }
.mj-footer__top { padding: 64px 0 40px; }
.mj-footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 40px; }
.mj-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.mj-footer ul { list-style: none; margin: 0; padding: 0; }
.mj-footer li { margin-bottom: 10px; }
.mj-footer__brand .mj-brand__name { color: #fff; }
.mj-footer__brand .mj-brand__tag { color: rgba(255,255,255,.55); }
.mj-footer__brand p { font-size: .9rem; margin-top: 14px; max-width: 300px; }
.mj-footer__contact { margin-top: 16px; font-size: .88rem; }
.mj-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.mj-footer__contact svg { color: var(--mj-gold-bright); flex: none; margin-top: 3px; }
.mj-socials { display: flex; gap: 10px; margin-top: 18px; }
.mj-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; }
.mj-socials a:hover { border-color: var(--mj-gold); color: var(--mj-gold-bright); }
.mj-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.mj-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; font-size: .84rem; }
.mj-footer__legal nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.mj-footer__disclaimer { font-size: .78rem; color: rgba(255,255,255,.42); margin-top: 12px; max-width: 900px; }
.mj-pay-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mj-pay-chips span { font-size: .72rem; font-weight: 700; letter-spacing: .04em; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; padding: 4px 10px; color: rgba(255,255,255,.6); }

/* 404 */
.mj-404 { text-align: center; padding: 90px 0; }
.mj-404__glyph { font-size: 4.6rem; color: var(--mj-gold); font-weight: 800; letter-spacing: .04em; }

/* Pagination */
.mj-pagination { margin: 40px 0 0; text-align: center; }
.mj-pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mj-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--mj-line); font-weight: 600; font-size: .9rem; color: var(--mj-purple); }
.mj-pagination .current { background: var(--mj-purple); color: #fff; border-color: var(--mj-purple); }

/* Search results */
.mj-search-result-item { border-bottom: 1px solid var(--mj-line-soft); padding: 18px 0; }
.mj-search-result-item:last-child { border-bottom: 0; }

/* Comments */
.mj-comments { margin-top: 34px; }
.comment-list .comment { border: 1px solid var(--mj-line-soft); border-radius: var(--mj-radius-sm); padding: 18px; margin-bottom: 14px; list-style: none; }
.comment-form p { margin-bottom: 14px; }

/* WooCommerce wrappers */
.woocommerce ul.products li.product { background: #fff; border: 1px solid var(--mj-line-soft); border-radius: var(--mj-radius); padding: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--mj-shadow-lg); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--mj-font); font-weight: 700; color: var(--mj-ink); font-size: 1rem !important; padding: 0; }
.woocommerce ul.products li.product .price { color: var(--mj-plum) !important; font-weight: 700; }
.woocommerce ul.products li.product .button { background: var(--mj-purple); color: #fff; border-radius: 999px; }
.woocommerce ul.products li.product .button:hover { background: var(--mj-purple-deep); }
.woocommerce span.onsale { background: var(--mj-gold); color: var(--mj-purple-ink); font-weight: 700; border-radius: 999px; min-height: 2.4em; min-width: 2.4em; line-height: 2.4; top: 10px; left: 10px; }
.woocommerce div.product .product_title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.woocommerce div.product p.price { color: var(--mj-plum); font-weight: 800; font-size: 1.3rem; }
.woocommerce div.product form.cart .button, .woocommerce a.single_add_to_cart_button { background: var(--mj-purple); border-radius: 999px; padding: 13px 30px; }
.woocommerce div.product form.cart .button:hover { background: var(--mj-purple-deep); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--mj-gold); border-radius: var(--mj-radius-sm); }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--mj-gold); }
.woocommerce .woocommerce-error { border-top-color: var(--mj-red); }

/* Back to top */
.mj-top-btn {
	position: fixed; right: 16px; bottom: 140px; z-index: 930; width: 44px; height: 44px; border-radius: 50%;
	background: var(--mj-purple); color: #fff; border: none; cursor: pointer; opacity: 0; pointer-events: none;
	transition: opacity .2s ease; display: flex; align-items: center; justify-content: center; box-shadow: var(--mj-shadow-lg);
}
.mj-top-btn.is-visible { opacity: 1; pointer-events: auto; }
@media (max-width: 1023px) { .mj-top-btn { bottom: 140px; } }

/* Reveal on scroll (subtle) */
.mj-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.mj-reveal.is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.mj-reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 1250px) {
	.mj-nav a { padding: 9px 8px; font-size: .86rem; }
}
@media (max-width: 1180px) {
	:root { --mj-header-h: 68px; }
	.mj-header__login { display: none; }
}
@media (max-width: 1023px) {
	.mj-nav, .mj-header__cta--desktop { display: none; }
	.mj-burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--mj-line); background: #fff; color: var(--mj-purple); cursor: pointer; }
	.mj-hero { padding: 64px 0 120px; }
	.mj-hero__grid { grid-template-columns: 1fr; gap: 36px; }
	.mj-hero__art { order: -1; }
	.mj-hero__art svg.mj-zodiac-wheel { width: min(340px, 74vw); opacity: .6; }
	.mj-grid--3, .mj-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.mj-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
	.mj-section { padding: 56px 0; }
	.mj-zodiac-grid { grid-template-columns: repeat(4, 1fr) !important; }
	.mj-trust-strip { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	body { font-size: 15.5px; }
	form[data-mj-form="tool"] { grid-template-columns: 1fr 1fr !important; }
	form[data-mj-form="tool"] input[name="place"], form[data-mj-form="tool"] button { grid-column: 1 / -1; }
	.mj-grid--2, .mj-grid--3, .mj-grid--4 { grid-template-columns: 1fr; }
	.mj-field-row { grid-template-columns: 1fr; }
	.mj-zodiac-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.mj-form-card { padding: 24px 18px; }
	.mj-toc ol { columns: 1; }
	.mj-footer__grid { grid-template-columns: 1fr; }
	.mj-footer__legal { flex-direction: column; align-items: flex-start; }
	.mj-section { padding: 46px 0; }
	.mj-hero__ctas .btn { width: 100%; }
	.mj-cta-band__actions .btn { width: 100%; }
}
@media (max-width: 360px) {
	.mj-zodiac-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
	.mj-brand__tag { display: none; }
}

/* Screen reader helpers */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--mj-purple); color: #fff; padding: 10px 18px; z-index: 1001; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--mj-muted); text-align: center; }
.sticky { }
.bypostauthor { }
