/* KundliChat Web Features */
.feature-hero {
    background: linear-gradient(135deg, #FFFDF2 0%, #FFF4B8 50%, #FFE77A 100%);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(233, 208, 0, 0.15);
    border: 1px solid rgba(233, 208, 0, 0.4);
}

.feature-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--kc-title, #191506);
    margin-bottom: 12px;
}

.feature-hero p {
    font-size: 1.1rem;
    color: var(--kc-subtitle, #5F5209);
    max-width: 640px;
    margin: 0 auto 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 576px) {
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 28px;
    }

    .feature-card-link {
        padding: 18px 10px;
    }
}

.feature-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    color: inherit;
}

.feature-card-link .icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.feature-card-link span {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary-kc {
    background: linear-gradient(135deg, #ff8a00, #ff6f00);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-kc:hover {
    color: white;
    opacity: 0.92;
}

.rashi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.rashi-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    transition: box-shadow 0.2s;
}

.rashi-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    color: inherit;
}

.rashi-card .emoji { font-size: 1.75rem; }
.rashi-card .name { font-weight: 600; margin-top: 4px; }
.rashi-card .score { font-size: 0.85rem; color: #888; }

.horoscope-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.horoscope-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #c15700;
}

.kundli-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #c15700;
}

.ni-kundli-wrap {
    max-width: 420px;
    margin: 0 auto;
    background: #fffdf8;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(193, 87, 0, 0.08);
}

.ni-kundli-svg {
    width: 100%;
    height: auto;
    display: block;
}

.ni-kundli-svg .ni-outer {
    fill: #fffaf0;
    stroke: #8b4513;
    stroke-width: 3;
}

.ni-kundli-svg .ni-house {
    fill: #fffef8;
    stroke: #8b4513;
    stroke-width: 1.5;
}

.ni-kundli-svg .ni-house.ni-lagna {
    fill: #ffe4b8;
}

.ni-kundli-svg .ni-sign {
    font: bold 15px Lato, sans-serif;
    fill: #a05000;
    pointer-events: none;
}

.ni-kundli-svg .ni-planet {
    font: bold 14px Lato, sans-serif;
    fill: #1a1a1a;
    pointer-events: none;
}

.ni-chart-legend {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #777;
    text-align: center;
    line-height: 1.5;
}

.ni-chart-legend span {
    display: block;
}

.kundli-chart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #333;
}

.kundli-cell {
    border: 1px solid #ccc;
    padding: 8px 4px;
    min-height: 60px;
    font-size: 0.75rem;
    background: #fffef5;
    text-align: center;
}

.kundli-cell.asc { background: #ffe8c4; font-weight: 700; }

.planets-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.planets-table th, .planets-table td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; }
.planets-table th { background: #fff8e7; font-weight: 600; }

.scan-upload {
    border: 2px dashed #ffb366;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    background: #fffaf4;
    cursor: pointer;
}

.scan-upload input[type=file] { display: none; }

.report-preview { background: #fff; border-radius: 16px; padding: 24px; margin-top: 24px; border: 1px solid #eee; }

.auth-card {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.btn-google:hover { background: #f8f8f8; color: #333; }
.btn-google:disabled { opacity: 0.65; cursor: not-allowed; }

.wallet-pack {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.wallet-pack:hover, .wallet-pack.selected { border-color: #ff8a00; }

.seo-content {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.seo-content h2 { font-size: 1.25rem; font-weight: 700; margin-top: 24px; }
.seo-content h3 { font-size: 1.05rem; font-weight: 700; margin-top: 18px; margin-bottom: 6px; }
.seo-content p, .seo-content li { color: #555; line-height: 1.7; }

.seo-content-chat {
    margin-top: 40px;
    padding: 28px 22px 32px;
    background: #fffdf8;
    border-radius: 20px;
    border: 1px solid #f0e6c8;
}

.seo-content-chat h1 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: var(--kc-title, #191506);
    margin: 0 0 14px;
    line-height: 1.3;
}

.seo-content-chat h2 {
    color: var(--kc-title, #191506);
    margin-top: 32px;
    margin-bottom: 12px;
}

.seo-content-chat h2:first-child {
    margin-top: 0;
}

.seo-content-chat p {
    color: #4a4030;
    margin-bottom: 14px;
}

.seo-content-chat a:not(.seo-chip) {
    color: var(--kc-title, #191506);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid var(--kc-gold, #E9D000);
    padding-bottom: 1px;
}

.seo-content-chat a:not(.seo-chip):hover {
    color: #000;
    border-bottom-color: #ff8a00;
}

.seo-perk-list {
    list-style: none;
    margin: 8px 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.seo-perk-list li {
    position: relative;
    padding: 12px 14px 12px 42px;
    background: #fff;
    border: 1px solid rgba(233, 208, 0, 0.35);
    border-radius: 12px;
    color: #3e2e16;
    line-height: 1.55;
}

.seo-perk-list li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 14px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--kc-gold, #E9D000);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.seo-perk-list li::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 18px;
    width: 6px;
    height: 9px;
    border: solid #1E1A08;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.seo-step-list {
    list-style: none;
    margin: 8px 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
    counter-reset: seo-step;
}

.seo-step-list li {
    position: relative;
    padding: 12px 14px 12px 42px;
    background: #fff;
    border: 1px solid rgba(233, 208, 0, 0.35);
    border-radius: 12px;
    color: #3e2e16;
    line-height: 1.55;
    counter-increment: seo-step;
}

.seo-step-list li::before {
    content: counter(seo-step);
    position: absolute;
    left: 14px;
    top: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--kc-gold, #E9D000);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    color: #1E1A08;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.seo-step-list {
    list-style: none;
    margin: 8px 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
    counter-reset: seo-step;
}

.seo-step-list li {
    position: relative;
    padding: 12px 14px 12px 48px;
    background: #fff;
    border: 1px solid rgba(233, 208, 0, 0.35);
    border-radius: 12px;
    color: #3e2e16;
    line-height: 1.55;
    counter-increment: seo-step;
}

.seo-step-list li::before {
    content: counter(seo-step);
    position: absolute;
    left: 12px;
    top: 11px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--kc-gold, #E9D000);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    color: var(--kc-ink, #1E1A08);
    font-size: 12px;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
}

.seo-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 8px;
}

.seo-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(233, 208, 0, 0.65);
    color: var(--kc-title, #191506);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.seo-chip:hover {
    color: #000;
    text-decoration: none;
    border-color: var(--kc-gold, #E9D000);
    background: var(--kc-gold-soft, #FFF6B0);
    box-shadow: 0 4px 12px rgba(233, 208, 0, 0.22);
    transform: translateY(-1px);
}

.seo-faq {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.seo-faq-item {
    background: #fff;
    border: 1px solid rgba(233, 208, 0, 0.4);
    border-radius: 14px;
    padding: 0 16px;
}

.seo-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--kc-title, #191506);
    padding: 14px 28px 14px 0;
    position: relative;
    line-height: 1.45;
}

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

.seo-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--kc-gold-soft, #FFF6B0);
    border: 1px solid rgba(233, 208, 0, 0.7);
    color: var(--kc-ink, #1E1A08);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.seo-faq-item[open] summary::after {
    content: "–";
}

.seo-faq-item p {
    margin: 0 0 14px;
    padding-top: 0;
    color: #555;
}

.chat-cta-banner {
    background: linear-gradient(90deg, var(--kc-gold-soft, #FFF6B0), var(--kc-gold, #E9D000));
    color: var(--kc-ink, #1E1A08);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0 20px;
    border: 1px solid var(--kc-gold, #E9D000);
}

.chat-cta-banner a {
    color: var(--kc-ink, #1E1A08);
    background: rgba(255, 255, 255, 0.75);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.chat-cta-banner a:hover {
    background: #fff;
    color: var(--kc-ink, #1E1A08);
}

@media (max-width: 768px) {
    .index-page .container.kc-page {
        padding-top: 4px;
    }

    .seo-content-chat {
        padding: 22px 16px 26px;
        border-radius: 16px;
    }

    .feature-hero { padding: 32px 20px; }
    .ni-kundli-wrap { max-width: 100%; }
    .chat-cta-banner {
        padding: 16px 18px;
        margin: 16px 0 16px;
    }
    .chat-cta-banner a {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .feature-hero {
        padding: 56px 40px;
    }

    .container.content {
        padding-top: 8px;
        padding-bottom: 32px;
    }

    .index-page .chat-cta-banner {
        margin: 20px 0 8px;
        padding: 22px 28px;
    }

    .index-page .chat-cta-banner strong {
        font-size: 1.15rem;
    }
}
