/* Hero */
.bn-page-hero { background: var(--hero-gradient); color: white; text-align: center; padding: 24px 24px 20px; position: relative; overflow: hidden; }
.bn-page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.bn-page-hero h1 { font-size: 36px; font-weight: 900; color: white; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.02em; }
.bn-page-hero p  { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto; line-height: 1.6; }

.bn-wrapper { max-width: 760px; margin: -20px auto 0; padding: 0 20px 56px; position: relative; z-index: 1; }

.bn-hero { display: none; }

.bn-explainer {
    background: var(--accent-bg); border: 1px solid var(--accent-border);
    border-radius: 16px; padding: 18px 20px; margin: 24px 0;
    font-size: 13.5px; color: var(--accent-text-dark); line-height: 1.7;
}
.bn-explainer strong { color: var(--accent-text); }

.bn-form-card {
    background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 20px; padding: 28px 24px; margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.bn-field-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
@media (max-width: 540px) { .bn-field-grid { grid-template-columns: 1fr; } }

.bn-form-card label {
    display: block; font-weight: 600; color: #334155; margin-bottom: 5px; font-size: 13px;
}
.bn-form-card input, .bn-form-card select {
    width: 100%; padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: 14px; color: #0f172a; background: white; box-sizing: border-box;
    transition: border-color 0.15s;
}
.bn-form-card input:focus, .bn-form-card select:focus {
    outline: none; border-color: #d97706;
}

.bn-gender-row { display: flex; gap: 10px; }
.bn-gender-chip {
    flex: 1; text-align: center; padding: 10px 8px;
    border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: 13px; font-weight: 600; color: #64748b;
    cursor: pointer; transition: all 0.15s; background: white;
}
.bn-gender-chip:has(input:checked) {
    border-color: #d97706; background: #fffbeb; color: #c2410c;
}
.bn-gender-chip input { position: absolute; opacity: 0; width: 0; height: 0; }

.bn-submit-btn {
    display: block; width: 100%; padding: 15px;
    background: var(--brand-gradient);
    color: white; border: none; border-radius: 14px; font-size: 17px; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s, transform 0.15s; margin-top: 8px;
}
.bn-submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.bn-submit-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.error-box {
    background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
    padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 20px;
}

/* Pro gate */
.pro-gate-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #f59e0b;
    border-radius: 20px; padding: 32px 28px; text-align: center; margin-bottom: 24px;
}
.pro-gate-icon { font-size: 48px; margin-bottom: 12px; }
.pro-gate-card h2 { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.pro-gate-card p { font-size: 15px; color: #64748b; line-height: 1.6; margin-bottom: 20px; max-width: 420px; margin-left: auto; margin-right: auto; }
.pro-gate-btn {
    display: inline-block;
    background: var(--brand-gradient);
    color: white; padding: 14px 32px; border-radius: 14px;
    font-weight: 700; font-size: 16px; text-decoration: none; transition: opacity 0.15s;
}
.pro-gate-btn:hover { opacity: 0.88; }

/* Nakshatra info chips */
.bn-nak-chips {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
}
.bn-nak-chip {
    background: #fef3c7; border-radius: 12px; padding: 10px 16px; text-align: center;
    min-width: 80px;
}
.bn-nak-chip.primary { background: #c2410c; }
.bn-nak-chip.primary .bn-nak-chip-label { color: #fde68a; }
.bn-nak-chip.primary .bn-nak-chip-value { color: #fff; }
.bn-nak-chip-label { font-size: 12px; color: #c2410c; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.bn-nak-chip-value { font-size: 15px; font-weight: 800; color: #0f172a; margin-top: 3px; }

.bn-syllable-group {
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px;
    padding: 14px 16px; margin-bottom: 20px;
}
.bn-syllable-group-label {
    font-size: 12px; font-weight: 700; color: #c2410c; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 10px;
}
.bn-syllable-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bn-syl-chip {
    padding: 8px 18px; border-radius: 10px; font-size: 18px; font-weight: 800;
    border: 2px solid #f59e0b; background: white; color: #9a3412;
}
.bn-syl-chip.main {
    background: #c2410c; color: white; border-color: #c2410c;
    font-size: 22px; padding: 10px 22px;
}
.bn-syl-chip-note { font-size: 12px; font-weight: 600; margin-top: 3px; text-align: center; color: #b45309; }

/* Result card */
.bn-result-card {
    background: white; border: 2px solid #f59e0b; border-radius: 20px; padding: 28px 24px; margin-bottom: 24px;
}
.bn-result-header { margin-bottom: 20px; }
.bn-result-header h2 { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.bn-result-header p { font-size: 13px; color: #64748b; }

.bn-result-body { font-size: 14.5px; color: #334155; line-height: 1.8; }
.bn-result-body h2 { font-size: 17px; font-weight: 800; color: #0f172a; margin: 20px 0 6px; }
.bn-result-body h3 { font-size: 15px; font-weight: 700; color: #9a3412; margin: 16px 0 4px; }
.bn-result-body p { margin-bottom: 8px; }
.bn-result-body ul { padding-left: 20px; margin-bottom: 8px; }
.bn-result-body li { margin-bottom: 4px; }
.bn-result-body strong { color: #0f172a; }
.bn-result-body hr { border: none; border-top: 1px solid #f1f5f9; margin: 16px 0; }

.bn-new-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fef3c7; color: #c2410c; padding: 10px 20px;
    border-radius: 12px; font-weight: 700; font-size: 14px; text-decoration: none;
    transition: background 0.15s;
}
.bn-new-btn:hover { background: #fde68a; }

.bn-actions {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px;
}
.bn-pdf-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--brand-gradient);
    color: white; border: none; padding: 11px 22px; border-radius: 12px;
    font-weight: 700; font-size: 14px; cursor: pointer; transition: opacity 0.15s;
}
.bn-pdf-btn:hover { opacity: 0.88; }
.bn-pdf-btn:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
    .bn-wrapper { padding: 20px 14px 48px; }
    .bn-hero h1 { font-size: 24px; }
    .bn-hero p { font-size: 14px; }
    .bn-explainer { font-size: 13px; padding: 14px 16px; }

    .bn-form-card { padding: 20px 16px; }
    .bn-field-grid { grid-template-columns: 1fr; }

    .bn-nak-chips { gap: 8px; }
    .bn-nak-chip { flex: 1 1 calc(50% - 4px); min-width: 0; }

    .bn-result-card { padding: 18px 14px; }
    .bn-result-header h2 { font-size: 18px; }
    .bn-result-body { font-size: 13.5px; word-break: break-word; overflow-wrap: break-word; }
    .bn-result-body h2 { font-size: 15px; }
    .bn-result-body h3 { font-size: 14px; }
    .bn-result-body ul { padding-left: 16px; }

    .bn-syl-chip { font-size: 16px; padding: 8px 14px; }
    .bn-syl-chip.main { font-size: 20px; padding: 10px 18px; }

    .bn-actions { flex-direction: column; }
    .bn-actions .bn-pdf-btn,
    .bn-actions .bn-new-btn { width: 100%; justify-content: center; box-sizing: border-box; }

    .pro-gate-card { padding: 24px 18px; }
    .pro-gate-card h2 { font-size: 18px; }
    .pro-gate-card p { font-size: 14px; }
    .pro-gate-btn { padding: 12px 24px; font-size: 15px; }
}

@keyframes bnspin   { from{transform:rotate(0deg)}to{transform:rotate(360deg)} }
@keyframes bnbounce { 0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-8px);opacity:1} }
