/* Talkndheal Clone Design System & Stylesheet */
:root {
    --primary: #0f172a;        /* Deep Slate Blue */
    --primary-light: #1e293b;
    --accent: #ff9900;         /* Golden Orange */
    --accent-hover: #e08800;
    --accent-light: rgba(255, 153, 0, 0.1);
    --gold: #f59e0b;
    --success: #10b981;        /* Emerald Green */
    --danger: #ef4444;         /* Bright Red */
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 70px; /* Leave space for sticky mobile footer */
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--primary);
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.top-bar .flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a {
    color: #cbd5e1;
    margin-left: 15px;
}
.top-bar a:hover {
    color: var(--accent);
}

.header {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo img {
    height: 50px;
    object-fit: contain;
}
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}
.nav-link:hover {
    color: var(--accent);
    background-color: var(--accent-light);
}
.nav-link img {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background-color: var(--bg-main);
}

/* Secondary Navigation (Submenu) */
.sub-nav {
    background-color: var(--primary-light);
    color: #ffffff;
    overflow-x: auto;
    white-space: nowrap;
}
.sub-nav-menu {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 12px 0;
}
.sub-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}
.sub-nav-link:hover, .sub-nav-link.active {
    color: #ffffff;
}

/* Banner Slider */
.slider-container {
    width: 100%;
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/1;
    box-shadow: var(--shadow-md);
}
.slider-img {
    width: 100%;
   
    object-fit: cover;
}

/* Grids & Cards */
.section-title {
    margin: 30px 0 15px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title a {
    font-size: 14px;
    color: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.service-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
}
.service-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}
.badge-free {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--success);
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Astrologers Grid */
.astrologers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 45px;
}
.astrologer-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}
.astrologer-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.astro-header {
    padding: 20px;
    display: flex;
    gap: 15px;
    position: relative;
}
.astro-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.astro-details {
    flex: 1;
}
.astro-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.astro-expertise {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.astro-languages {
    font-size: 12px;
    color: var(--text-muted);
}
.astro-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}
.badge-online {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}
.badge-busy {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid var(--warning);
}
.badge-offline {
    background-color: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}
.astro-footer {
    background-color: var(--bg-main);
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.astro-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}
.astro-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

/* Info Banner and process */
.process-section {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.process-step {
    position: relative;
}
.step-num {
    background-color: var(--accent);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}
.step-title {
    font-weight: 600;
    margin-bottom: 8px;
}
.step-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Testimonial slider */
.testimonials-section {
    margin-bottom: 40px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.testimonial-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 15px;
}
.testimonial-client {
    display: flex;
    align-items: center;
    gap: 12px;
}
.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
}

/* Footer Section */
.footer {
    background-color: var(--primary);
    color: #cbd5e1;
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}
.footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a:hover {
    color: var(--accent);
}

/* Mobile Sticky Footer */
.mobile-footer-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    height: 60px;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
}
.mobile-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}
.mobile-footer-item img {
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
}
.mobile-footer-item.active {
    color: var(--accent);
}

/* Login/Auth Styles */
.auth-container {
    max-width: 420px;
    margin: 60px auto;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
}
.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}
.form-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}

/* Dashboard Styles */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin: 30px 0;
}
.sidebar-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px 15px;
    height: fit-content;
}
.sidebar-menu {
    list-style: none;
}
.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-main);
}
.sidebar-item.active a, .sidebar-item a:hover {
    background-color: var(--accent-light);
    color: var(--accent);
}

.dashboard-main {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 30px;
}

/* Wallet Card */
.wallet-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.wallet-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.15) 0%, transparent 80%);
    top: -50px;
    right: -50px;
    border-radius: 50%;
}
.wallet-title {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.wallet-balance {
    font-size: 36px;
    font-weight: 800;
}
.recharge-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.recharge-box {
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
}
.recharge-box:hover, .recharge-box.selected {
    border-color: var(--accent);
    background-color: var(--accent-light);
    color: var(--accent);
}

/* Chat & Simulators Room */
.room-container {
    max-width: 900px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
}
.room-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--primary-light);
}
.room-timer {
    background-color: rgba(255, 153, 0, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.msg {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}
.msg-received {
    align-self: flex-start;
    background-color: #ffffff;
    color: var(--text-main);
    border-bottom-left-radius: 2px;
}
.msg-sent {
    align-self: flex-end;
    background-color: var(--accent);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}
.chat-input-bar {
    padding: 15px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}
.chat-input {
    flex: 1;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 15px;
    font-family: inherit;
    font-size: 14px;
}
.chat-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Call Simulator Panel */
.call-simulator {
    background-color: var(--primary);
    color: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}
.call-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 153, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0); }
}
.call-status {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.call-controls {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}
.btn-call-end {
    background-color: var(--danger);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 20px;
}
.btn-call-end:hover {
    background-color: #dc2626;
}

/* Star rating widget */
.star-label {
    color: #cbd5e1;
    transition: color 0.15s ease;
}
.star-label:hover {
    color: var(--gold);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin-top: 10px;
}
.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
}
.pagination .page-item .page-link:hover {
    background-color: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}
.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    cursor: default;
}

/* Astrology Tool styling */
.tool-container {
    max-width: 800px;
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 35px;
    box-shadow: var(--shadow-md);
}
.chart-box {
    margin-top: 25px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    background-color: #fffbeb;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lagna-chart {
    width: 320px;
    height: 320px;
    border: 2.5px solid var(--primary);
    position: relative;
    background-color: #ffffff;
    margin: 20px 0;
}
.lagna-line {
    position: absolute;
    background-color: var(--primary);
}
.chart-cell {
    position: absolute;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Table styling for Panchang */
.panchang-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.panchang-table th, .panchang-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.panchang-table th {
    background-color: var(--primary-light);
    color: #ffffff;
    font-weight: 600;
}
.panchang-table tr:nth-child(even) {
    background-color: var(--bg-main);
}

/* Responsive Rules */
@media(max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
    .header-main {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .slider-container {
        aspect-ratio: 2/1;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .mobile-footer-nav {
        display: flex;
    }
    .desktop-only {
        display: none !important;
    }
}
