/* Business Name Checker styles — Gravity Projex. Loaded via inc/assets.php per-template loader. */
/* ── Reset & Base ── */
#bnc-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
#bnc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #020617;
    color: #cbd5e1;
    min-height: 100vh;
    padding: 120px 0 80px;
}

#bnc-wrap .bnc-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero ── */
#bnc-wrap .bnc-hero {
    text-align: center;
    margin-bottom: 56px;
}
#bnc-wrap .bnc-hero .bnc-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ff6b6b;
    margin-bottom: 16px;
}
#bnc-wrap .bnc-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 16px;
}
#bnc-wrap .bnc-hero p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 12px;
    line-height: 1.6;
}
#bnc-wrap .bnc-beta-note {
    display: inline-block;
    background: rgba(234,179,8,0.08);
    border: 1px solid rgba(234,179,8,0.2);
    color: #fbbf24;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 8px;
    line-height: 1.5;
}

/* ── Search Bar ── */
#bnc-wrap .bnc-search-row {
    display: flex;
    gap: 12px;
    max-width: 680px;
    margin: 0 auto 56px;
    flex-wrap: wrap;
}
#bnc-wrap .bnc-search-row input {
    flex: 1;
    min-width: 240px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 1rem;
    color: #ffffff;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#bnc-wrap .bnc-search-row input::placeholder { color: #475569; }
#bnc-wrap .bnc-search-row input:focus {
    outline: none;
    border-color: rgba(139,92,246,0.6);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
#bnc-wrap .bnc-search-row button {
    padding: 16px 28px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
#bnc-wrap .bnc-search-row button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(139,92,246,0.3);
}
#bnc-wrap .bnc-search-row button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Cards Grid ── */
#bnc-wrap .bnc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
#bnc-wrap .bnc-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px;
    transition: border-color 0.3s;
}
#bnc-wrap .bnc-card:hover { border-color: rgba(255,255,255,0.14); }
#bnc-wrap .bnc-card.full { grid-column: span 2; }

/* ── Card Header ── */
#bnc-wrap .bnc-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
#bnc-wrap .bnc-card-head .bnc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
#bnc-wrap .bnc-card-head h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

/* ── Row Items ── */
#bnc-wrap .bnc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
    color: #94a3b8;
    gap: 10px;
}
#bnc-wrap .bnc-row:last-child { border-bottom: none; }
#bnc-wrap .bnc-row .bnc-label { font-weight: 500; color: #cbd5e1; flex: 1; }

/* ── Status Badges ── */
#bnc-wrap .bnc-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
#bnc-wrap .bnc-badge.available  { background: rgba(34,197,94,0.12);  color: #4ade80; }
#bnc-wrap .bnc-badge.taken      { background: rgba(239,68,68,0.12);  color: #f87171; }
#bnc-wrap .bnc-badge.unknown    { background: rgba(148,163,184,0.1); color: #94a3b8; }
#bnc-wrap .bnc-badge.checking   { background: rgba(234,179,8,0.1);   color: #facc15; }

/* ── Link Buttons ── */
#bnc-wrap a.bnc-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #06b6d4;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s;
}
#bnc-wrap a.bnc-link-btn:hover { color: #22d3ee; }

/* ── ASIC / Trademark info boxes ── */
#bnc-wrap .bnc-info-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
}
#bnc-wrap .bnc-info-box strong { color: #cbd5e1; }
#bnc-wrap .bnc-info-box a {
    color: #06b6d4;
    font-weight: 600;
    text-decoration: none;
}
#bnc-wrap .bnc-info-box a:hover { color: #22d3ee; }

/* ── Full-width action button ── */
#bnc-wrap .bnc-full-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.2s;
}
#bnc-wrap .bnc-full-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Domain CTA inside card ── */
#bnc-wrap .bnc-domain-cta {
    margin-top: 20px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.1));
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 14px;
    text-align: center;
}
#bnc-wrap .bnc-domain-cta p {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 12px;
    line-height: 1.5;
}
#bnc-wrap .bnc-domain-cta p strong { color: #e2e8f0; }

/* ── Social note ── */
#bnc-wrap .bnc-social-note {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(234,179,8,0.06);
    border: 1px solid rgba(234,179,8,0.12);
    border-radius: 10px;
    font-size: 0.83rem;
    color: #fbbf24;
    line-height: 1.5;
}

/* ── Loading ── */
#bnc-wrap .bnc-loading-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.9rem;
    padding: 8px 0;
}
#bnc-wrap .bnc-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.08);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: bnc-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes bnc-spin { to { transform: rotate(360deg); } }

/* ── Empty state ── */
#bnc-wrap .bnc-empty {
    color: #334155;
    font-size: 0.88rem;
    font-style: italic;
    padding: 4px 0;
}

/* ── Copyright ── */
#bnc-wrap .bnc-copyright {
    text-align: center;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8rem;
    color: #334155;
}

/* ── MODAL ── */
body.bnc-modal-open { overflow: hidden; }

#bncModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(2,6,23,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 24px 16px;
}
#bncModal.open { display: flex; align-items: flex-start; justify-content: center; }

.bnc-modal-box {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    animation: bnc-slide-in 0.25s ease;
    margin-top: 40px;
}
@keyframes bnc-slide-in {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.bnc-modal-head {
    background: linear-gradient(135deg, rgba(139,92,246,0.35), rgba(6,182,212,0.35));
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bnc-modal-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
.bnc-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.bnc-modal-close:hover { color: #fff; }

.bnc-modal-body { padding: 28px 26px; }

.bnc-field { margin-bottom: 18px; }
.bnc-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 7px;
}
.bnc-field input,
.bnc-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 0.93rem;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
}
.bnc-field input::placeholder,
.bnc-field textarea::placeholder { color: #475569; }
.bnc-field input:focus,
.bnc-field textarea:focus {
    outline: none;
    border-color: rgba(139,92,246,0.5);
}
.bnc-field input[readonly] { color: #94a3b8; }
.bnc-field textarea { min-height: 80px; resize: vertical; }

.bnc-checkbox-list {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 10px 14px;
}
.bnc-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
    color: #cbd5e1;
    cursor: pointer;
}
.bnc-checkbox-item:last-child { border-bottom: none; }
.bnc-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8b5cf6;
    flex-shrink: 0;
    cursor: pointer;
}
.bnc-checkbox-item .avail-tag { color: #4ade80; font-size: 0.8rem; font-weight: 700; }

.bnc-modal-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
    transition: opacity 0.2s, transform 0.2s;
}
.bnc-modal-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.bnc-modal-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.bnc-form-success {
    display: none;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: #4ade80;
    padding: 16px;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.5;
}
.bnc-form-error {
    display: none;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    #bnc-wrap .bnc-grid { grid-template-columns: 1fr; }
    #bnc-wrap .bnc-card.full { grid-column: span 1; }
    #bnc-wrap .bnc-search-row { flex-direction: column; }
    #bnc-wrap .bnc-search-row input,
    #bnc-wrap .bnc-search-row button { width: 100%; min-width: auto; }
}
/* ── Accessibility: visible keyboard focus + SR-only helper (WCAG 2.4.7, 3.3.2) ── */
#bnc-wrap .bnc-search-row input:focus-visible,
#bnc-wrap button:focus-visible,
#bnc-wrap a:focus-visible,
#bncModal button:focus-visible,
#bncModal input:focus-visible,
#bncModal textarea:focus-visible {
    outline: 3px solid #8b5cf6;
    outline-offset: 2px;
}
.bnc-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }