/* Astro Mala Singh — Royal Spiritual Theme */
:root {
    --bg: #050816;
    --primary: #6D28D9;
    --secondary: #8B5CF6;
    --gold: #FBBF24;
    --gold-dim: #d4a017;
    --text: #FFFFFF;
    --muted: #a5b4fc;
    --glass: rgba(109, 40, 217, 0.12);
    --glass-border: rgba(139, 92, 246, 0.35);
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-glow: 0 0 40px rgba(109, 40, 217, 0.35);
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Galaxy canvas */
#galaxy-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.zodiac-float {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    font-size: 1.4rem;
    opacity: 0.15;
    animation: floatZodiac 20s ease-in-out infinite;
    color: var(--gold);
}

@keyframes floatZodiac {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.site-wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gold);
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--glass);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.2s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    font-family: inherit;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 24px rgba(109, 40, 217, 0.5);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.7);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #050816;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(251, 191, 36, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--secondary);
    background: var(--glass);
}

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* Glass cards */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
}

.glass-card {
    padding: 28px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 50px rgba(109, 40, 217, 0.45);
}

/* Hero */
.hero {
    padding: clamp(60px, 12vw, 120px) 0 clamp(48px, 8vw, 80px);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--gold) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 28px;
}

.hero-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-pill {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-offers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.offer-tag {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.05rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Sections */
.section {
    padding: clamp(48px, 8vw, 80px) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--gold);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Service cards */
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.service-card p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 12px 0;
}

.tag-list li {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.2);
    font-size: 0.78rem;
    color: var(--muted);
}

/* Astrologer */
.astrologer-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.astrologer-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
}

.astrologer-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.astrologer-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 6px;
}

.astrologer-title {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.credential-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.credential-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.credential-list li::before {
    content: '✦';
    color: var(--gold);
}

/* Pricing */
.price-card {
    text-align: center;
    position: relative;
}

.price-card.featured {
    border-color: var(--gold);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.25);
}

.price-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--bg);
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    margin: 16px 0;
}

.price-features {
    list-style: none;
    text-align: left;
    margin: 20px 0;
    display: grid;
    gap: 10px;
}

.price-features li {
    color: var(--muted);
    font-size: 0.9rem;
    padding-left: 20px;
    position: relative;
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: rgba(5, 8, 22, 0.6);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.upload-zone {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover {
    border-color: var(--secondary);
    background: var(--glass);
}

.upload-zone input { display: none; }

/* Chat */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 480px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.chat-bubble.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
}

.chat-input-row {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--glass-border);
}

.chat-input-row input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(5, 8, 22, 0.8);
    color: var(--text);
    font-family: inherit;
}

/* Dashboard layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    min-height: calc(100vh - 200px);
    padding: 24px 0;
}

.sidebar {
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar a {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--muted);
    transition: 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--glass);
    color: var(--text);
}

.dashboard-main { padding: 0; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    color: var(--gold);
    font-weight: 600;
}

.data-table td { color: var(--muted); }

/* FAQ */
.faq-item {
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--gold);
    font-size: 1.2rem;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    padding: 0 22px 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Blog */
.blog-card .blog-date {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.blog-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: rgba(5, 8, 22, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 48px 0 24px;
}

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

.footer-grid h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.footer-grid ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-grid a {
    color: var(--muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-grid a:hover { color: var(--text); }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: 0.2s;
}

.social-links a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--muted);
    font-size: 0.82rem;
}

/* Page hero */
.page-hero {
    padding: 48px 0 32px;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold);
    margin-bottom: 10px;
}

.page-hero p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Payment badges */
.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.payment-badges span {
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--muted);
}

/* Admin */
.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-badge.success { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.admin-badge.pending { background: rgba(251, 191, 36, 0.2); color: var(--gold); }

main { flex: 1; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5, 8, 22, 0.98);
        padding: 16px;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.open { display: flex; }

    .site-header .nav { position: relative; flex-wrap: wrap; }

    .astrologer-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .astrologer-photo {
        max-width: 280px;
        margin: 0 auto;
    }

    .credential-list li { justify-content: center; }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar { position: static; }
}
