@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #FAF9F6;
    --bg-card: #FFFFFF;
    --sidebar-bg: #2C113C;
    --sidebar-hover: #3C1951;
    --sidebar-active: #4F226A;
    --text-primary: #2C2519;
    --text-secondary: #5C5346;
    --text-muted: #8E8370;
    --gold-primary: #D4AF37;
    --gold-dark: #B5932A;
    --copper: #CD7F32;
    --border-gold: rgba(212, 175, 55, 0.25);
    --border-gold-focus: rgba(212, 175, 55, 0.6);
    --shadow-soft: 0 8px 30px rgba(44, 37, 25, 0.04);
    --shadow-hover: 0 16px 40px rgba(212, 175, 55, 0.08);
    --radius-lg: 1rem;
    --radius-md: 0.5rem;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--text-primary);
}

/* App Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sticky Top Navigation Header */
.top-nav-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #2C113C 0%, #4F226A 100%);
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.top-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

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

.top-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold-primary);
}

.top-brand-text h1 {
    font-size: 1.65rem;
    color: #FFFFFF;
    line-height: 1.1;
    font-family: 'Cormorant Garamond', serif;
}

.top-brand-text p {
    font-size: 0.65rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.1rem;
}

.top-header-actions {
    display: flex;
    align-items: center;
}

.btn-sidebar-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: #FFFFFF;
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-sidebar-wa:hover {
    background-color: #20BA5A;
    transform: translateY(-1px);
}

/* Multi-line Navigation Tabs */
.top-nav-tabs-wrapper {
    position: relative;
    background-color: rgba(44, 17, 60, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    width: 100%;
}

.sidebar-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.5rem;
    padding: 0.6rem 1.5rem;
    width: 100%;
    list-style: none;
}

.sidebar-item {
    margin-bottom: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.sidebar-link i {
    font-size: 1rem;
    color: var(--gold-primary);
    width: auto;
    text-align: center;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.sidebar-item.active .sidebar-link {
    background-color: var(--sidebar-active);
    color: #FFFFFF;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 2rem;
}

/* Main Content Wrapper */
.main-content {
    margin-left: 0;
    flex-grow: 1;
    min-height: 100vh;
    padding: 2.5rem;
    padding-top: 1.5rem; /* Handled dynamically by sticky header in flow */
    transition: padding-top 0.3s ease;
}

/* Mobile Header */
.mobile-header {
    display: none !important;
}

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

.mobile-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
}

.mobile-brand h1 {
    font-size: 1.25rem;
    color: #FFFFFF;
}

.btn-hamburger {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Page Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Common UI Elements */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
    color: var(--copper);
}

.section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0 auto;
    font-size: 1rem;
}

/* Cards & Containers */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Consultation Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--gold-primary);
    color: #FFFFFF;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-gold-focus);
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #FAF6E8;
    border-color: var(--gold-primary);
}

.btn-wa {
    background-color: #25D366;
    color: #FFFFFF;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-wa:hover {
    background-color: #20BA5A;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    background-color: #FFFFFF;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Autocomplete suggestions */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(44, 37, 25, 0.1);
    list-style: none;
    display: none;
}

.autocomplete-suggestions li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.autocomplete-suggestions li:hover {
    background-color: #FAF6E8;
    color: var(--copper);
}

/* Kundali Page Styles */
.kundali-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .kundali-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.chart-card-wrapper {
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-gold-focus);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gold);
}

.chart-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chart-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
}

.chart-meta h2 {
    font-size: 1.25rem;
    line-height: 1.2;
}

.chart-meta p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.chart-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 0.5rem;
}

.chart-tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.25rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 2rem;
    transition: all 0.2s ease;
}

.chart-tab-btn:hover {
    color: var(--text-primary);
    background-color: #FAF6E8;
}

.chart-tab-btn.active {
    background-color: var(--sidebar-active);
    color: #FFFFFF;
}

.chart-svg-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    background-color: #FFFDF7;
    position: relative;
    aspect-ratio: 1;
}

.planet-table-wrapper {
    overflow-x: auto;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.table-custom th, .table-custom td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.table-custom th {
    background-color: #FAF6E8;
    color: var(--text-primary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.table-custom tr:hover {
    background-color: #FAFDFB;
}

.planet-retro {
    color: #CD7F32;
    font-weight: bold;
}

/* Drik Panchang Styles */
.panchang-date-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.panchang-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .panchang-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.panchang-sun-moon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sun-moon-card {
    background-color: #FAF9F6;
    border: 1px dashed var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.sun-moon-card i {
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.sun-moon-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sun-moon-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.panchang-list {
    list-style: none;
}

.panchang-item {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.panchang-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.panchang-val {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.panchang-festivals {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #FFFDF5;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
}

.panchang-festivals h4 {
    color: var(--copper);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* End-time badge pill shown below element name */
.end-time-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--copper);
    background-color: #FFF8E1;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    padding: 0.1rem 0.55rem;
    white-space: nowrap;
}

/* Taller panchang item row for two-line values */
.panchang-item-tall {
    align-items: flex-start;
    padding: 0.9rem 0;
}

.panchang-item-tall .panchang-val {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

/* Update sun-moon grid to handle 6 cards */
.panchang-sun-moon-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
    .panchang-sun-moon-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Choghadiya Grid */
.choghadiya-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.chog-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.chog-item.auspicious {
    background-color: #F1F8E9;
    border-color: #A5D6A7;
}

.chog-item.highly-auspicious {
    background-color: #E8F5E9;
    border-color: #66BB6A;
}

.chog-item.inauspicious {
    background-color: #FBE9E7;
    border-color: #FFAB91;
}

.chog-item.neutral {
    background-color: #F3F3F3;
    border-color: #E0E0E0;
}

.chog-name {
    font-weight: 600;
    color: var(--text-primary);
}

.chog-quality-badge {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 30px;
    color: white;
}

.chog-item.auspicious .chog-quality-badge,
.chog-item.highly-auspicious .chog-quality-badge {
    background-color: #43A047;
}

.chog-item.inauspicious .chog-quality-badge {
    background-color: #E53935;
}

.chog-item.neutral .chog-quality-badge {
    background-color: #757575;
}

.chog-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chog-active {
    box-shadow: 0 0 0 2px var(--gold-primary);
}


.avoid-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .avoid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.avoid-card-timing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border-left: 4px solid var(--gold-primary);
    border-top: 1px solid var(--border-gold);
    border-right: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease;
}

.avoid-card-timing:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.avoid-info h4 {
    font-size: 1.15rem;
}

.avoid-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.avoid-time {
    font-weight: bold;
    color: #D32F2F;
    font-size: 1.05rem;
    background-color: #FFEBEE;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
}

/* Hora Table Styles */
.hora-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.hora-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.hora-tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--gold-primary);
}

.hora-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hora-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hora-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hora-item-card {
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hora-item-card.active {
    background-color: #FAF6E8;
    border-color: var(--gold-primary);
}

.hora-planet-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hora-planet-symbol {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.hora-planet-name {
    font-weight: 600;
}

.hora-duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Guided Chat Panel */
.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background-color: #FAF9F6;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.85rem 1.25rem;
    border-radius: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-bubble-bot {
    background-color: #FFFDF5;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.chat-bubble-user {
    background-color: #E6F4EA;
    color: #137333;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    background-color: #FFFFFF;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
}

.chat-form input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-gold);
    border-radius: 2rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.chat-form input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.chat-btn-send {
    background-color: var(--gold-primary);
    color: #FFFFFF;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.chat-btn-send:hover {
    background-color: var(--gold-dark);
}

.chat-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-opt-btn {
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-gold);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-opt-btn:hover {
    border-color: var(--gold-primary);
    background-color: #FFFDF5;
}

/* Shop Section Styles */
.shop-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.shop-tab-btn {
    background-color: #FFFFFF;
    border: 1px solid var(--border-gold);
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-tab-btn.active {
    background-color: var(--sidebar-active);
    color: #FFFFFF;
    border-color: var(--sidebar-active);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.product-img-wrapper {
    aspect-ratio: 1;
    background: linear-gradient(90deg, #FAF9F6 25%, #F0EDE6 50%, #FAF9F6 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Admin Dashboard & Analytics */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .admin-grid {
        grid-template-columns: 200px 1fr;
    }
}

.admin-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 1rem;
}

@media (min-width: 1024px) {
    .admin-menu {
        flex-direction: column;
        border-bottom: none;
        border-right: 1px solid rgba(212, 175, 55, 0.1);
        padding-bottom: 0;
        padding-right: 1rem;
    }
}

.admin-menu-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.admin-menu-btn:hover {
    background-color: #FAF6E8;
    color: var(--text-primary);
}

.admin-menu-btn.active {
    background-color: var(--gold-primary);
    color: #FFFFFF;
}

.analytics-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.analytics-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.analytics-label {
    width: 150px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.analytics-bar-wrapper {
    flex-grow: 1;
    background-color: #FAF9F6;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.analytics-bar-fill {
    background-color: var(--gold-primary);
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.analytics-value {
    width: 50px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Float WhatsApp Widget */
.floating-wa-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.floating-wa-btn:hover {
    background-color: #20BA5A;
    transform: scale(1.05);
}

/* Responsive Menu Adjustments */
@media (max-width: 991px) {
    .top-header-main {
        padding: 0.5rem 1rem;
    }
    
    .top-brand-text h1 {
        font-size: 1.35rem;
    }
    
    .btn-sidebar-wa {
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
    }

    .top-nav-tabs-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    .top-nav-tabs-wrapper::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    .sidebar-menu {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding: 0.5rem 1rem !important;
        gap: 0.5rem !important;
        width: max-content !important;
    }

    .sidebar-item {
        flex-shrink: 0;
    }

    .main-content {
        margin-left: 0;
        padding-top: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* @media Print layouts */
@media print {
    .sidebar, .mobile-header, .floating-wa-btn, .btn-primary, .btn-secondary, .btn-wa, form, .chart-tabs {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .tab-panel {
        display: none !important;
    }

    .tab-panel#kundali-tab {
        display: block !important;
    }

    .kundali-grid {
        grid-template-columns: 1fr !important;
    }

    .chart-card-wrapper {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .chart-svg-container {
        max-width: 450px !important;
    }
}

/* Custom Divisional Charts Dropdown & Active Hora Highlight */
#chart-select {
    padding-left: 1rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5346' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem !important;
    cursor: pointer;
}

.current-hora-highlight {
    animation: pulseBorder 3s infinite alternate;
}

@keyframes pulseBorder {
    0% { border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.05); }
    100% { border-color: rgba(212, 175, 55, 0.9); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15); }
}

.progress-bar-container {
    background-color: rgba(212, 175, 55, 0.1) !important;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Dasha Timeline Layout */
.dasha-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    padding-left: 2rem;
    border-left: 2px dashed var(--border-gold);
    margin-left: 1rem;
    margin-top: 1.5rem;
}

.dasha-timeline-item {
    position: relative;
    padding: 1rem;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dasha-timeline-item::before {
    content: "";
    position: absolute;
    left: -2.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 2px solid var(--gold-primary);
    z-index: 2;
}

.dasha-timeline-item.active {
    border-color: var(--gold-primary);
    background-color: #FFFDF9;
    box-shadow: var(--shadow-soft);
}

.dasha-timeline-item.active::before {
    background-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.dasha-lord-badge {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.dasha-duration-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dasha-range-badge {
    font-weight: 600;
    color: var(--copper);
    font-size: 0.9rem;
}
