/* KundliChat app theme */
:root {
    --kc-gold: #E9D000;
    --kc-gold-light: #FFE77A;
    --kc-gold-soft: #FFF6B0;
    --kc-gold-bg: #FFFDF2;
    --kc-gold-bg2: #FFF4B8;
    --kc-ink: #1E1A08;
    --kc-title: #191506;
    --kc-subtitle: #5F5209;
    --kc-text: #222222;
    --kc-muted: #616161;
    --kc-selected: #FF0F0F;
    --kc-busy: #FF3B3B;
    --kc-teal: #3F797C;
    --kc-strike: #9A9898;
    --kc-price: #2E7D32;
    --kc-radius-card: 16px;
    --kc-radius-chip: 12px;
    --kc-radius-pill: 20px;
    --kc-header-h: 64px;
    --kc-page-max: 1140px;
}

body {
    font-family: 'Lato', sans-serif !important;
    background: #fff !important;
    color: var(--kc-text);
}

/* Shared page width */
.kc-page,
.container.content {
    max-width: var(--kc-page-max);
}

.content {
    margin-top: calc(var(--kc-header-h) + 8px);
    width: 100%;
}

.kc-section-label {
    font-size: 13px;
    letter-spacing: 0.5px;
}

.kc-section-title {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--kc-title);
}

.kc-seo-block h1 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--kc-title);
    margin-bottom: 0.75rem;
}

/* Header */
.kc-header {
    background: linear-gradient(135deg, #FFFDF2 0%, #FFF4B8 50%, #FFE77A 100%);
    border-bottom: 1px solid rgba(233, 208, 0, 0.67);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 8px 0;
}

.kc-header > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.kc-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.kc-logo-box {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--kc-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kc-logo-box img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.kc-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--kc-title);
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.kc-brand-sub {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--kc-subtitle);
}

.kc-nav-link {
    color: var(--kc-ink) !important;
    font-weight: 600;
    font-size: 14px;
}

.kc-nav-chip {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--kc-gold);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--kc-ink);
    text-decoration: none;
}

.kc-nav-chip:hover {
    color: var(--kc-ink);
    background: #fff;
}

/* Header tools (wallet + mobile menu) */
.kc-header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kc-nav-toggler {
    padding: 4px 8px;
    margin: 0;
}

@media (min-width: 992px) {
    .kc-header > .container {
        flex-wrap: nowrap;
    }

    .kc-header-tools {
        flex-shrink: 0;
        margin-left: auto;
    }

    .kc-header .navbar-collapse {
        justify-content: flex-end;
    }
}

/* Wallet chip — matches app WalletBalance */
.kc-wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 10px 0 8px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--kc-gold);
    border-radius: 16px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--kc-ink);
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s;
}

.kc-wallet-chip:hover {
    background: #fff;
    color: var(--kc-ink);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.kc-wallet-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--kc-gold);
    border: 0.8px solid rgba(0, 0, 0, 0.87);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    color: var(--kc-ink);
    flex-shrink: 0;
}

.kc-wallet-balance {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--kc-ink);
    min-width: 1ch;
}

/* Header action buttons (Reports) */
.kc-header-action-btn {
    width: 46px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--kc-gold);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--kc-ink);
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s;
}

.kc-header-action-btn:hover {
    background: #fff;
    color: var(--kc-ink);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.kc-header-action-btn .material-icons {
    font-size: 18px;
    line-height: 1;
}

.kc-header-action-label {
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.1px;
}

/* Profile avatar chip */
.kc-profile-chip {
    width: 42px;
    height: 42px;
    padding: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--kc-gold);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.kc-profile-chip:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.kc-profile-chip-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff8d9;
    border: 0.8px solid rgba(0, 0, 0, 0.87);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kc-profile-chip-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Categories strip */
.kc-categories {
    position: sticky;
    top: var(--kc-header-h);
    z-index: 999;
    background: #fff;
    padding: 12px 0 8px;
    margin-top: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.kc-categories + .kc-astro-list,
.kc-categories + .px-md-3 + .kc-astro-list {
    padding-top: 4px;
}

.kc-categories-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.kc-categories-scroll::-webkit-scrollbar {
    display: none;
}

.kc-category-item {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    padding: 0 8px;
    min-width: 64px;
}

.kc-category-icon {
    width: 48px;
    height: 48px;
    background: var(--kc-gold);
    border-radius: var(--kc-radius-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.kc-category-icon .material-icons {
    font-size: 26px;
    color: #000;
}

.kc-category-label {
    display: block;
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--kc-muted);
    line-height: 1.2;
    max-width: 72px;
}

.kc-category-item.is-selected .kc-category-label {
    font-weight: 900;
    color: var(--kc-selected);
}

/* Astrologer list */
.kc-astro-list {
    padding: 8px 0 24px;
    width: 100%;
}

.kc-astro-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 0 0 10px;
    background: #fff;
    border: 2px solid var(--kc-gold);
    border-radius: var(--kc-radius-card);
    box-shadow: 0 4px 12px rgba(233, 208, 0, 0.2);
    text-decoration: none;
    color: inherit;
}

.kc-astro-card:hover {
    color: inherit;
}

.kc-astro-left {
    flex-shrink: 0;
    text-align: center;
}

.kc-astro-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.kc-astro-rating {
    margin-top: 6px;
    background: var(--kc-gold);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.kc-astro-rating .material-icons {
    font-size: 12px;
}

.kc-astro-mid {
    flex: 1;
    min-width: 0;
}

.kc-astro-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.kc-astro-name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.kc-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kc-status-dot.online { background: #4CAF50; }
.kc-status-dot.busy { background: var(--kc-busy); }

.kc-astro-desc {
    font-size: 12px;
    font-style: italic;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.kc-astro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #333;
}

.kc-astro-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kc-astro-meta .material-icons {
    font-size: 13px;
    color: var(--kc-teal);
}

.kc-astro-meta .lang-icon {
    font-size: 16px;
    color: #B5A82D;
}

.kc-astro-action {
    flex-shrink: 0;
    text-align: center;
    min-width: 100px;
}

.kc-btn-chat {
    display: inline-block;
    background: var(--kc-gold);
    color: #000;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.54);
    text-decoration: none;
    min-width: 90px;
    text-align: center;
    line-height: 1.3;
}

.kc-btn-chat:hover {
    color: #000;
    background: var(--kc-gold-light);
}

.kc-btn-busy {
    display: inline-block;
    color: var(--kc-busy);
    font-size: 12px;
    padding: 8px 24px;
    border: 1px solid var(--kc-busy);
    border-radius: 20px;
    background: transparent;
    min-width: 90px;
    line-height: 1.3;
}

.kc-astro-price {
    margin-top: 4px;
    font-size: 13px;
    text-align: center;
}

.kc-astro-price .was {
    color: var(--kc-strike);
    text-decoration: line-through;
    margin-right: 4px;
}

.kc-astro-price .now {
    color: var(--kc-price);
    font-weight: 600;
}

/* Buttons & banners */
.btn-primary-kc,
.kc-btn-primary {
    background: linear-gradient(135deg, #ff8a00, var(--kc-gold)) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #000 !important;
    padding: 10px 24px;
    border-radius: var(--kc-radius-pill);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-kc:hover,
.kc-btn-primary:hover {
    color: #000 !important;
    opacity: 0.92;
}

.chat-cta-banner {
    background: linear-gradient(90deg, var(--kc-gold-soft), var(--kc-gold)) !important;
    color: var(--kc-ink) !important;
    border: 1px solid var(--kc-gold);
}

.chat-cta-banner a {
    background: rgba(255, 255, 255, 0.75) !important;
    color: var(--kc-ink) !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.feature-card-link {
    border-color: var(--kc-gold-soft) !important;
}

.feature-card-link:hover {
    border-color: var(--kc-gold) !important;
    box-shadow: 0 4px 12px rgba(233, 208, 0, 0.2);
}

.nav-wallet-chip {
    background: rgba(255, 255, 255, 0.86) !important;
    border: 1px solid var(--kc-gold) !important;
    color: var(--kc-ink) !important;
}

.price-badge {
    background: var(--kc-gold-soft) !important;
    color: var(--kc-ink) !important;
    border: 1px solid var(--kc-gold);
}

@media (min-width: 768px) {
    .kc-astro-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
    }

    .kc-astro-list .kc-astro-card {
        margin: 0;
        height: 100%;
    }

    .kc-categories-scroll {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 8px 6px;
        padding: 6px 0 10px;
    }

    .kc-category-item {
        min-width: 72px;
    }
}

@media (min-width: 992px) {
    :root {
        --kc-header-h: 68px;
    }

    .kc-header .navbar-nav {
        gap: 4px;
    }

    .kc-astro-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 20px;
    }

    .kc-astro-card {
        gap: 15px;
        padding: 12px 14px;
    }

    .kc-astro-name {
        font-size: 16px;
    }

    .kc-astro-desc {
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    .kc-astro-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    :root {
        --kc-header-h: 56px;
    }

    .kc-astro-action {
        min-width: 84px;
    }

    .kc-btn-chat,
    .kc-btn-busy {
        min-width: 76px;
        padding: 8px 6px;
        font-size: 11px;
    }

    .kc-astro-card {
        gap: 10px;
        padding: 10px;
    }

    .kc-astro-mid {
        min-width: 0;
    }
}

@media (max-width: 400px) {
    .kc-brand-sub {
        display: none;
    }

    .kc-astro-card {
        flex-wrap: wrap;
    }

    .kc-astro-action {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 4px;
        border-top: 1px solid #f3f3f3;
        margin-top: 2px;
    }

    .kc-astro-price {
        margin-top: 0;
        text-align: right;
    }
}
