.bci-gate-open {
    overflow: hidden;
    height: 100dvh;
}

.bci-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(6, 13, 24, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bci-gate[hidden] {
    display: none !important;
}

.bci-gate__panel {
    width: min(42rem, 100%);
    max-height: min(88vh, 44rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 28px 80px -24px rgba(2, 79, 124, 0.45);
    border: 1px solid rgba(2, 79, 124, 0.1);
    overflow: hidden;
}

.bci-gate__header {
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
}

.bci-gate__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.35rem;
}

.bci-gate__title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.bci-gate__body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #475569;
}

.bci-gate__body p {
    margin: 0 0 1rem;
}

.bci-gate__body ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.bci-gate__body li {
    margin-bottom: 0.65rem;
}

.bci-gate__body li:last-child {
    margin-bottom: 0;
}

.bci-gate__footer {
    padding: 1rem 1.5rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fafbfc;
}

.bci-gate__note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.bci-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.bci-gate__btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.bci-gate__btn--primary {
    background: #024f7c;
    color: #fff;
}

.bci-gate__btn--primary:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(2, 79, 124, 0.45);
}

.bci-gate__btn--ghost {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.bci-gate__btn--ghost:hover {
    color: #024f7c;
    border-color: #94a3b8;
}

.bci-gate__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-size: 0.78rem;
}

.bci-gate__links a {
    color: #024f7c;
    text-decoration: none;
    font-weight: 600;
}

.bci-gate__links a:hover {
    text-decoration: underline;
}