/* ============================================================
   ASTROLOAK v3 — A Genuinely Fresh Design
   ============================================================ */

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

ul,
ol {
    list-style: none
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer
}


/* === DESIGN TOKENS === */
:root {
    /* Backgrounds */
    --bg-primary: #0d0f14;
    --bg-secondary: #13151d;
    --bg-tertiary: #181b26;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.04);

    /* Accent */
    --amber: #f0a030;
    --amber-hover: #d88c20;
    --amber-glow: rgba(240, 160, 48, 0.15);
    --amber-subtle: rgba(240, 160, 48, 0.06);

    /* Text */
    --text-1: #f0f0f5;
    --text-2: #a0a3b8;
    --text-3: #6b6e82;

    /* Border */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Spacing */
    --s1: 4px;
    --s2: 8px;
    --s3: 12px;
    --s4: 16px;
    --s5: 20px;
    --s6: 24px;
    --s7: 32px;
    --s8: 40px;
    --s9: 48px;
    --s10: 56px;
    --s11: 64px;
    --s12: 80px;

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-full: 999px;

    /* Fonts */
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;

    /* Layout */
    --max-w: 1200px;
    --pad: clamp(16px, 4vw, 40px);
    --nav-h: 60px;

    /* Shadow */
    --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --sh-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --sh-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
    --sh-glow: 0 0 40px rgba(240, 160, 48, 0.08);
}

/* === LIGHT THEME === */
html.light-theme {
    --bg-primary: #f8f8fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f3;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.04);
    --bg-glass: rgba(0, 0, 0, 0.02);
    --amber: #c07818;
    --amber-hover: #a06010;
    --amber-glow: rgba(192, 120, 24, 0.1);
    --amber-subtle: rgba(192, 120, 24, 0.04);
    --text-1: #111128;
    --text-2: #505068;
    --text-3: #909098;
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --sh-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --sh-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --sh-glow: 0 0 40px rgba(192, 120, 24, 0.05);
}


/* === BASE === */
body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-1);
    background: var(--bg-primary);
    overflow-x: hidden;
    padding-top: var(--nav-h);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2
}

.wrap {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad)
}


/* ============================================================
   NAVBAR — Single clean bar
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-wrapper {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-shrink: 0
}

.logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0a030, #e08818);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #000;
    font-weight: 700;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--amber)
}

.menu-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex: 1;
    min-width: 0
}

.top-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.top-menu a {
    font-size: 12px;
    color: var(--text-2);
    padding: 3px 8px;
    border-radius: var(--r-full);
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.top-menu a:hover {
    color: var(--amber);
    background: var(--amber-subtle)
}

.bottom-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.bottom-menu a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    padding: 3px 10px;
    border-radius: var(--r-full);
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.bottom-menu a:hover {
    color: var(--amber);
    background: var(--amber-subtle)
}

.login-btn {
    background: linear-gradient(135deg, #f0a030, #e08818);
    color: #000;
    padding: 6px 18px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 12px;
    transition: opacity .15s;
}

.login-btn:hover {
    opacity: .85
}

.mobile-controls {
    display: none
}

/* Hidden on desktop */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    transition: border-color .15s;
    flex-shrink: 0;
}

.theme-btn:hover {
    border-color: var(--amber)
}

html.light-theme .icon-sun {
    display: none
}

html.light-theme .icon-moon {
    display: inline
}

html:not(.light-theme) .icon-sun {
    display: inline
}

html:not(.light-theme) .icon-moon {
    display: none
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-hover);
    min-width: 180px;
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-content a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-1);
    transition: background .15s;
    border-bottom: 1px solid var(--border);
}

.dropdown-content a:last-child {
    border-bottom: none
}

.dropdown-content a:hover {
    background: var(--amber-subtle);
    color: var(--amber)
}

.dropdown:hover .dropdown-content {
    display: block
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-hover);
    border-radius: var(--r-sm);
    padding: 8px;
    z-index: 10001;
    flex-shrink: 0;
}

.hamburger:hover {
    border-color: var(--amber)
}

.hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-1);
    border-radius: 1px;
    transition: transform .25s, opacity .15s
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}


/* ============================================================
   HERO — Gradient background, centered text, no image
   ============================================================ */
.hero-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(240, 160, 48, 0.08) 0%, transparent 60%),
        var(--bg-primary);
    padding: var(--s12) 0 var(--s9);
}

.hero-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    text-align: center;
}

.hero-left {
    display: none
}

/* Image removed — was broken */
.hero-right {
    max-width: 680px;
    margin: 0 auto
}

.hero-right h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--s4);
}

.hero-right h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: var(--s5);
    background: linear-gradient(135deg, var(--text-1) 30%, var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: var(--s7);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto
}

.chat-btn,
.call-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: 12px 28px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 14px;
    transition: transform .15s, opacity .15s;
    margin: 0 var(--s2) var(--s3);
}

.chat-btn {
    background: linear-gradient(135deg, #f0a030, #e08818);
    color: #000
}

.call-btn {
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border-hover)
}

.chat-btn:hover,
.call-btn:hover {
    transform: translateY(-1px)
}

.call-btn:hover {
    border-color: var(--amber);
    color: var(--amber)
}


/* ============================================================
   SERVICE CARDS — Floating below hero
   ============================================================ */
.services {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s4);
    margin-top: var(--s8);
}

.service-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-align: center;
    padding: var(--s7) var(--s4);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}

.service-card:hover {
    border-color: var(--amber-glow);
    box-shadow: var(--sh-glow);
    transform: translateY(-2px);
}

.service-card p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1)
}

.icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    margin: 0 auto var(--s3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.pink {
    background: linear-gradient(135deg, rgba(230, 100, 130, 0.15), rgba(200, 60, 100, 0.08))
}

.green {
    background: linear-gradient(135deg, rgba(50, 200, 130, 0.15), rgba(30, 150, 90, 0.08))
}

.blue {
    background: linear-gradient(135deg, rgba(70, 140, 230, 0.15), rgba(50, 100, 200, 0.08))
}

.orange {
    background: linear-gradient(135deg, rgba(240, 170, 60, 0.2), rgba(220, 140, 30, 0.08))
}


/* ============================================================
   COMPLIMENTARY SECTION — Alternating darker bg
   ============================================================ */
.complimentary-section {
    background: var(--bg-secondary);
    padding: var(--s12) 0
}

.complimentary-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad)
}

.section-title {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--s4);
}

.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--amber);
    margin: var(--s3) auto 0;
    opacity: .5;
}

.complimentary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--s4);
    margin-top: var(--s8);
}

.comp-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: var(--s7) var(--s5);
    border-radius: var(--r-lg);
    text-align: center;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}

.comp-card:hover {
    border-color: rgba(240, 160, 48, 0.15);
    box-shadow: var(--sh-glow);
    transform: translateY(-2px)
}

.comp-card h4 {
    font-size: 15px;
    margin-bottom: var(--s2);
    color: var(--text-1)
}

.comp-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6
}

.comp-icon {
    width: 48px;
    height: 48px;
    background: var(--amber-subtle);
    border: 1px solid rgba(240, 160, 48, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto var(--s4);
}


/* ============================================================
   STATS — Accent bar with gradient
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
    padding: var(--s11) 0;
}

.stats-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s4);
    text-align: center;
}

.stat-box {
    padding: var(--s7) var(--s4);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
}

.stat-box h3 {
    font-size: 28px;
    color: var(--amber);
    margin-bottom: var(--s1)
}

.stat-box p {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px
}


/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
    background: var(--bg-primary);
    padding: var(--s12) 0
}

.news-title {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--s8);
}

.news-wrapper {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    gap: var(--s4)
}

.news-container {
    display: flex;
    overflow-x: auto;
    gap: var(--s4);
    flex: 1;
    padding-bottom: var(--s2);
    scrollbar-width: none
}

.news-container::-webkit-scrollbar {
    display: none
}

.news-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color .25s, transform .25s;
    flex: 0 0 calc(33.333% - 11px);
    min-width: 260px;
}

.news-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px)
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-secondary)
}

.news-content {
    padding: var(--s4)
}

.news-content p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: var(--s3);
    line-height: 1.45
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-3)
}

.arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: var(--text-2);
    transition: border-color .15s, color .15s;
    flex-shrink: 0;
}

.arrow:hover {
    border-color: var(--amber);
    color: var(--amber)
}


/* ============================================================
   BLOG
   ============================================================ */
.blog-section {
    background: var(--bg-secondary);
    padding: var(--s12) 0
}

.blog-title {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--s2)
}

.blog-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: var(--s8)
}

.blog-wrapper {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    gap: var(--s4)
}

.blog-container {
    display: flex;
    overflow-x: auto;
    gap: var(--s4);
    flex: 1;
    padding-bottom: var(--s2);
    scrollbar-width: none
}

.blog-container::-webkit-scrollbar {
    display: none
}

.blog-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color .25s, transform .25s;
    flex: 0 0 calc(33.333% - 11px);
    min-width: 260px;
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px)
}

.blog-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-secondary)
}

.blog-content {
    padding: var(--s4)
}

.blog-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: var(--s3);
    line-height: 1.45
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-3)
}


/* ============================================================
   ASTROLOGERS
   ============================================================ */
.astrologer-section {
    background: var(--bg-primary);
    padding: var(--s12) 0;
    text-align: center
}

.astrologer-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--s2)
}

.astrologer-subtitle {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: var(--s8)
}

.astrologer-wrapper {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    gap: var(--s4)
}

.astrologer-container {
    display: flex;
    overflow-x: auto;
    gap: var(--s4);
    flex: 1;
    padding-bottom: var(--s2);
    scrollbar-width: none
}

.astrologer-container::-webkit-scrollbar {
    display: none
}

.astrologer-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s7) var(--s5);
    text-align: center;
    transition: border-color .25s, transform .25s;
    flex: 0 0 calc(25% - 12px);
    min-width: 200px;
}

.astrologer-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px)
}

.astrologer-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--s3);
    border: 2px solid rgba(240, 160, 48, 0.2)
}

.astrologer-card h3 {
    font-size: 15px;
    margin-bottom: var(--s1)
}

.astrologer-card p {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px
}


/* ============================================================
   TEXT / FAQ
   ============================================================ */
.text-section {
    background: var(--bg-secondary);
    padding: var(--s12) 0
}

.text-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 var(--pad);
    color: var(--text-2);
    line-height: 1.8
}

.text-container h2 {
    font-size: 22px;
    color: var(--text-1);
    margin-bottom: var(--s6);
    text-align: center
}

.text-container h3 {
    margin-top: var(--s8);
    margin-bottom: var(--s3);
    font-size: 17px;
    color: var(--amber)
}

.text-container p {
    margin-bottom: var(--s4);
    font-size: 14px
}

.text-container ul {
    margin-left: var(--s5);
    margin-bottom: var(--s5);
    list-style: disc
}

.text-container ul li {
    margin-bottom: var(--s2);
    font-size: 14px
}

.text-container ul li strong {
    color: var(--text-1)
}

.faq {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: var(--s6);
    border-radius: var(--r-lg);
    margin-top: var(--s6)
}

.faq p strong {
    color: var(--amber)
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-primary);
    color: var(--text-2);
    padding: var(--s11) 0 var(--s7);
    border-top: 1px solid var(--border)
}

.footer-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad)
}

.footer-about {
    padding-bottom: var(--s7);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--s8)
}

.footer-about h3 {
    font-size: 16px;
    margin-bottom: var(--s3);
    color: var(--text-1)
}

.footer-about h3::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--amber);
    margin-top: var(--s2)
}

.footer-about p {
    font-size: 13px;
    line-height: 1.7;
    max-width: 640px;
    color: var(--text-3)
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s7)
}

.footer-col h4 {
    font-size: 13px;
    color: var(--text-1);
    margin-bottom: var(--s3)
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--amber);
    margin-top: var(--s2)
}

.footer-subtitle {
    color: var(--text-1);
    font-size: 12px;
    font-weight: 600;
    margin-top: var(--s6);
    margin-bottom: var(--s3)
}

.footer-subtitle::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--amber);
    margin-top: var(--s2)
}

.footer-col ul {
    padding: 0
}

.footer-col ul li {
    margin-bottom: var(--s2);
    font-size: 12px;
    color: var(--text-3)
}

.footer-col ul li a {
    color: var(--text-3);
    transition: color .15s
}

.footer-col ul li a:hover {
    color: var(--amber)
}

.chat-link {
    color: var(--amber) !important
}


/* ============================================================
   FREE KUNDLI PAGE
   ============================================================ */
.kundli-section {
    background: var(--bg-primary);
    padding: var(--s9) 0 var(--s12);
    min-height: 80vh
}

.kundli-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad)
}

.kundli-title {
    text-align: center;
    margin-bottom: var(--s6)
}

.kundli-title h1 {
    font-size: clamp(24px, 4vw, 34px);
    margin-bottom: var(--s2)
}

.kundli-title p {
    color: var(--text-2);
    font-size: 15px
}

.kundli-divider {
    width: 36px;
    height: 2px;
    background: var(--amber);
    margin: var(--s3) auto
}

.kundli-description {
    text-align: center;
    margin-bottom: var(--s8);
    color: var(--text-2);
    font-size: 14px
}

.kundli-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--s6);
    align-items: start
}

.kundli-form-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: var(--s7);
    border-radius: var(--r-lg);
}

.kundli-form-box h3 {
    font-size: 17px;
    margin-bottom: var(--s5)
}

.kundli-form-box label {
    display: block;
    margin-top: var(--s4);
    margin-bottom: var(--s1);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kundli-form-box input,
.kundli-form-box select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-hover);
    background: transparent;
    color: var(--text-1);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}

.kundli-form-box input::placeholder {
    color: var(--text-3)
}

.kundli-form-box input:focus,
.kundli-form-box select:focus {
    border-color: var(--amber)
}

.kundli-form-box select option {
    background: var(--bg-tertiary);
    color: var(--text-1)
}

.birth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s2)
}

.generate-btn {
    width: 100%;
    margin-top: var(--s6);
    padding: 12px;
    background: linear-gradient(135deg, #f0a030, #e08818);
    color: #000;
    border: none;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 15px;
    transition: opacity .15s, transform .15s;
}

.generate-btn:hover {
    opacity: .9;
    transform: translateY(-1px)
}

.kundli-saved-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: var(--s7);
    border-radius: var(--r-lg);
    text-align: center;
}

.kundli-saved-box h3 {
    margin-bottom: var(--s4)
}

.saved-content {
    margin-top: var(--s9);
    color: var(--text-2)
}

.saved-content p {
    margin-bottom: var(--s4);
    font-size: 14px
}

.login-btn-kundli {
    display: inline-block;
    margin-top: var(--s3);
    background: linear-gradient(135deg, #f0a030, #e08818);
    padding: 10px 24px;
    border-radius: var(--r-full);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    transition: opacity .15s;
}

.login-btn-kundli:hover {
    opacity: .85
}


/* ============================================================
   KUNDLI DETAILS
   ============================================================ */
.kundli-header-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: var(--s5);
    border-radius: var(--r-lg);
    margin-top: var(--s4);
    text-align: center;
}

.birth-bar {
    margin-top: var(--s3);
    font-size: 13px;
    color: var(--text-2)
}

.lagna-bar {
    margin-top: var(--s3);
    padding: 8px 20px;
    background: var(--amber-subtle);
    border: 1px solid rgba(240, 160, 48, 0.15);
    border-radius: var(--r-full);
    font-weight: 600;
    color: var(--amber);
    display: inline-block;
    font-size: 13px;
}

.kundli-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 3px;
    margin: var(--s5) 0;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.kundli-tabs::-webkit-scrollbar {
    display: none
}

.kundli-tabs a {
    flex: 1 0 auto;
    text-align: center;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    border-radius: var(--r-full);
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.kundli-tabs a:hover {
    background: var(--bg-card-hover);
    color: var(--text-1)
}

.kundli-tabs .active,
.kundli-tabs .active-toggle {
    background: linear-gradient(135deg, #f0a030, #e08818);
    color: #000;
    font-weight: 700;
}

.details-container {
    max-width: 1000px;
    margin: var(--s7) auto
}

.details-row {
    display: flex;
    gap: var(--s6);
    margin-bottom: var(--s6)
}

.details-box {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: var(--s5);
    border-radius: var(--r-lg)
}

.details-box h4 {
    color: var(--amber);
    font-size: 13px;
    margin-bottom: var(--s3)
}


/* ============================================================
   TABLES
   ============================================================ */
.table-box {
    background: #000000 !important;
    border: 1px solid var(--border);
    padding: var(--s5);
    border-radius: var(--r-lg);
    margin-bottom: var(--s6);
    overflow-x: auto;
}

.table-box h4 {
    color: var(--amber);
    font-size: 13px;
    margin-bottom: var(--s4)
}

table {
    width: 100%;
    border-collapse: collapse
}

th {
    background: var(--amber-subtle);
    color: var(--amber);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-1);
    border-bottom: 1px solid var(--border)
}

tr:last-child td {
    border-bottom: none
}

tr:hover td {
    background: var(--bg-card-hover)
}


/* ============================================================
   SOUTH CHART
   ============================================================ */
.south-chart {
    max-width: 520px;
    margin: var(--s4) auto
}

.south-chart table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed
}

.south-chart td {
    border: 2px solid rgba(240, 160, 48, 0.15);
    vertical-align: top;
    padding: 0;
    font-size: 13px;
    background: var(--bg-tertiary);
    color: var(--text-1);
}

.south-chart td .cell-content {
    height: 110px;
    overflow: hidden;
    padding: 6px
}

.south-chart td.center-box .cell-content {
    height: 220px
}

.center-box {
    text-align: center;
    font-weight: 600;
    background: var(--amber-subtle) !important;
    color: var(--amber)
}

.south-chart td.highlight {
    background: var(--amber-subtle)
}

.pr-container h2 {
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: var(--s7)
}


/* ============================================================
   UTILITIES
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4)
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s4)
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s4)
}

.place-suggestions {
    position: relative;
    z-index: 100
}

.place-item {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
    transition: background .15s
}

.place-item:hover {
    background: var(--amber-subtle)
}

.place-empty {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-3)
}

.charts-row,
.chart-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s8);
    margin: var(--s8) 0
}

.chart-box {
    flex: 1;
    max-width: 520px;
    min-width: 300px
}


/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media(max-width:1024px) {
    .hero-right h1 {
        font-size: 36px
    }

    .services {
        grid-template-columns: repeat(2, 1fr)
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr)
    }

    .kundli-wrapper {
        grid-template-columns: 1fr
    }

    .details-row {
        flex-direction: column
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr)
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr)
    }
}


/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media(max-width:768px) {
    :root {
        --nav-h: 56px
    }

    .hamburger {
        display: flex
    }

    .nav-wrapper {
        flex-wrap: wrap;
        padding: 10px var(--pad)
    }

    .logo-section {
        flex: 1
    }

    .menu-section {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: var(--s2);
        border-top: 1px solid var(--border);
        margin-top: var(--s3);
        max-height: 80vh;
        overflow-y: auto;
        background: var(--bg-primary);
        /* Fix transparency overlap */
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px var(--pad) 20px;
        box-shadow: var(--sh-lg);
    }

    .menu-section.menu-open {
        display: flex
    }

    .top-menu,
    .bottom-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%
    }

    .top-menu a,
    .bottom-menu a {
        display: block;
        padding: 12px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--border);
        border-radius: 0
    }

    .bottom-menu {
        border-top: 2px solid rgba(240, 160, 48, 0.12);
        margin-top: 4px;
        padding-top: 4px
    }

    .dropdown {
        display: block
    }

    .dropdown-content {
        position: static;
        transform: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        min-width: auto;
        background: var(--bg-secondary);
        margin-top: 5px
    }

    .dropdown-content a {
        padding-left: 16px;
        font-size: 14px
    }

    .mobile-controls {
        display: flex;
        align-items: center;
        gap: var(--s3)
    }

    .top-menu .theme-btn {
        display: none
    }

    /* Hide desktop theme btn on mobile */
    .login-btn {
        margin: 12px 0;
        width: 100%;
        display: block;
        text-align: center;
        padding: 12px
    }

    .hero-right h1 {
        font-size: 28px
    }

    .hero-desc {
        font-size: 14px
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s3)
    }

    .stats-container {
        grid-template-columns: 1fr
    }

    .kundli-wrapper {
        grid-template-columns: 1fr
    }

    .kundli-tabs {
        border-radius: var(--r-md);
        padding: 2px
    }

    .kundli-tabs a {
        padding: 6px 10px;
        font-size: 11px
    }

    .charts-row,
    .chart-row {
        flex-direction: column;
        align-items: center;
        gap: var(--s6)
    }

    .chart-box {
        min-width: auto;
        width: 100%
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s6)
    }

    .birth-grid {
        grid-template-columns: 1fr
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr
    }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media(max-width:480px) {
    .hero-right h1 {
        font-size: 24px
    }

    .hero-container {
        padding: var(--s7) var(--pad)
    }

    .services {
        grid-template-columns: 1fr 1fr;
        gap: var(--s2)
    }

    .service-card {
        padding: var(--s5) var(--s3)
    }

    .footer-links {
        grid-template-columns: 1fr
    }

    .kundli-form-box,
    .kundli-saved-box {
        padding: var(--s5) var(--s4)
    }

    .stat-box h3 {
        font-size: 22px
    }

    .table-box {
        padding: var(--s3)
    }

    .south-chart {
        max-width: 100%
    }

    .news-card,
    .blog-card {
        flex: 0 0 85%;
        min-width: 240px
    }

    .astrologer-card {
        flex: 0 0 70%;
        min-width: 180px
    }
}

@media print {

    .navbar,
    .hamburger,
    .footer {
        display: none
    }

    body {
        padding-top: 0;
        background: #fff;
        color: #000
    }
}