:root {
    --bg-deep: #0b0a16;
    --bg-mid: #141328;
    --bg-soft: #1e1b38;
    --gold: #d8b15a;
    --saffron: #f4a31c;
    --lotus: #e46aa8;
    --teal: #2aa6a5;
    --ivory: #f7f3ea;
    --ink: #0f111f;
    --glow: 0 18px 55px rgba(216, 177, 90, 0.24);
    --shadow: 0 18px 50px rgba(5, 5, 20, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Hind', sans-serif;
    color: var(--ivory);
    background: radial-gradient(circle at 20% 20%, rgba(216, 177, 90, 0.12), transparent 40%),
        radial-gradient(circle at 80% 15%, rgba(42, 166, 165, 0.12), transparent 35%),
        linear-gradient(130deg, var(--bg-deep) 0%, var(--bg-mid) 45%, var(--bg-soft) 100%);
    min-height: 100vh;
}

/* Ensure readable text on dark surfaces */
.bg-dark,
.bg-dark.bg-opacity-10,
.bg-dark.bg-opacity-25,
.bg-dark.bg-opacity-50,
.bg-dark.bg-opacity-75 {
    color: var(--ivory);
}

.bg-dark .text-muted,
.bg-dark .text-secondary {
    color: rgba(247, 243, 234, 0.7) !important;
}

.bg-dark .text-light {
    color: var(--ivory) !important;
}

.bg-dark .table {
    --bs-table-color: var(--ivory);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.bg-dark .table td,
.bg-dark .table th {
    color: inherit;
}

select option,
select optgroup {
    color: #0f111f;
    background: #ffffff;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    background: rgba(11, 10, 22, 0.88);
    border-bottom: 1px solid rgba(216, 177, 90, 0.2);
    backdrop-filter: blur(16px);
}

.navbar .nav-link {
    color: rgba(247, 243, 234, 0.85);
    font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--gold);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img {
    width: 40px;
    height: 40px;
}

.btn-vedic {
    background: linear-gradient(135deg, var(--gold), var(--saffron));
    border: none;
    color: var(--ink);
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--glow);
}

.btn-vedic-outline {
    border: 1px solid rgba(216, 177, 90, 0.6);
    color: var(--ivory);
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    background: transparent;
}

.hero {
    padding: 8rem 0 3rem;
}

.hero-card {
    background: rgba(19, 18, 43, 0.9);
    border: 1px solid rgba(216, 177, 90, 0.2);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: var(--shadow);
}

.section {
    padding: 4rem 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge-vedic {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(216, 177, 90, 0.2);
    color: var(--ivory);
    border: 1px solid rgba(216, 177, 90, 0.45);
    font-size: 0.85rem;
}

.badge-vedic--accent {
    background: rgba(42, 166, 165, 0.2);
    border-color: rgba(42, 166, 165, 0.5);
}

.filters-card {
    background: rgba(15, 14, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

.filter-item label {
    display: block;
    font-size: 0.85rem;
    color: rgba(247, 243, 234, 0.7);
    margin-bottom: 0.35rem;
}

.filters-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

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

.astrologer-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    box-shadow: var(--shadow);
}

.astrologer-card__head {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.astrologer-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(216, 177, 90, 0.4);
}

.astrologer-card__name {
    font-size: 1.1rem;
    margin: 0;
}

.astrologer-card__meta {
    color: rgba(247, 243, 234, 0.7);
    font-size: 0.85rem;
}

.astrologer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: rgba(247, 243, 234, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.astrologer-card__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
}

.astrologer-card__details span {
    color: rgba(247, 243, 234, 0.65);
}

.astrologer-card__details strong {
    color: var(--ivory);
}

.rate-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(216, 177, 90, 0.2);
    color: var(--ivory);
    border: 1px solid rgba(216, 177, 90, 0.45);
    font-size: 0.8rem;
}

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

.btn-chat {
    background: linear-gradient(135deg, var(--teal), #3fb0ad);
    border: none;
    color: var(--ivory);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.btn-call {
    background: linear-gradient(135deg, var(--lotus), #f28cbf);
    border: none;
    color: var(--ivory);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

details.dasha-detail {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
}

details.dasha-detail summary {
    cursor: pointer;
    font-weight: 600;
    color: rgba(247, 243, 234, 0.9);
}

.dasha-nested {
    margin-top: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.section-subtitle {
    color: rgba(247, 243, 234, 0.7);
}

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

.card-vedic {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.form-control,
.form-select,
textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--ivory);
}

.form-control::placeholder,
textarea::placeholder {
    color: rgba(247, 243, 234, 0.6);
}

.footer {
    background: rgba(8, 8, 18, 0.9);
    border-top: 1px solid rgba(216, 177, 90, 0.2);
    padding: 3rem 0 2rem;
}

.footer a {
    color: rgba(247, 243, 234, 0.7);
}

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

.alert-success {
    background: rgba(42, 166, 165, 0.18);
    border: 1px solid rgba(42, 166, 165, 0.6);
    color: var(--ivory);
}
