.fbc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    z-index: 99998;
}

.fbc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(94vw, 520px);
    max-height: min(88vh, 760px);
    overflow-y: auto;
    border-radius: 18px;
    z-index: 99999;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    -webkit-overflow-scrolling: touch;
}

.fbc-modal-light {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #d7eeea;
}

.fbc-modal-inner {
    padding: 22px;
    text-align: center;
}

.fbc-modal h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
    color: #0f172a;
}

.fbc-intro-copy {
    margin: 0 0 8px;
    color: #49616a;
    font-size: 14px;
}

.fbc-intro-login-line {
    margin-bottom: 18px;
}

.fbc-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    justify-content: center;
}

.fbc-btn {
    appearance: none;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.fbc-btn:hover {
    transform: translateY(-1px);
}

.fbc-btn-primary {
    background: #12939a;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(18, 147, 154, 0.18);
}

.fbc-btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border-color: #b9dcd7;
}

.fbc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    text-align: left;
}

.fbc-field {
    margin-bottom: 14px;
    text-align: left;
}

.fbc-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
}

.fbc-field input,
.fbc-field select {
    width: 100%;
    border: 1px solid #cfe8e4;
    border-radius: 10px;
    padding: 11px 13px;
    background: #ffffff;
    color: #0f172a;
    min-height: 48px;
}

.fbc-phone-wrap {
    display: grid;
    grid-template-columns: minmax(150px, 190px) 1fr;
    gap: 10px;
    align-items: center;
}

.fbc-phone-wrap-compact input[name="phone_prefix_display"] {
    text-align: center;
    font-weight: 500;
}

.fbc-phone-wrap-compact input[name="phone_local"] {
    min-width: 0;
}

.fbc-form-message {
    min-height: 22px;
    font-size: 13px;
    text-align: center;
}

.fbc-error {
    color: #d14343;
}

.fbc-success {
    color: #147d52;
}

.fbc-link-btn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: #0f8a8d;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
}

.fbc-inline-alt {
    margin-top: 6px;
    color: #49616a;
    font-size: 13px;
    text-align: center;
}

.fbc-coupon-code {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 2px;
    font-weight: 800;
    background: #eefbfa;
    color: #0f8a8d;
    padding: 16px 18px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.fbc-checkout-notice {
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 14px;
}

.fbc-applied {
    background: #fff4a8;
    color: #5b4b00;
}

.fbc-none {
    background: #ffef75;
    color: #5b4b00;
    border: 1px solid #e8d13e;
}

.fbc-danger {
    background: #ffcdcd;
    color: #8f1d1d;
    border: 1px solid #ef9f9f;
}

.fbc-success-note {
    background: #bdf7b8;
    color: #14532d;
    border: 1px solid #7fdc86;
}

.fbc-readonly {
    background: #eef2f7 !important;
    color: #64748b !important;
    cursor: not-allowed;
}

.fbc-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.fbc-cart-coupon-note {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.fbc-cart-coupon-applied {
    background: #eefbf9;
    color: #0f6d70;
    border: 1px solid #cfe8e4;
}

.fbc-cart-coupon-none {
    background: #ffef75;
    color: #5b4b00;
    border: 1px solid #e8d13e;
}

.fbc-cart-coupon-danger {
    background: #ffd8d8;
    color: #8f1d1d;
    border: 1px solid #f0a3a3;
}

.fbc-cart-coupon-success {
    background: #c8f7c5;
    color: #14532d;
    border: 1px solid #8fdda2;
}

.fbc-admin-wrap {
    width: 100%;
}

.fbc-admin-warning {
    padding: 18px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
}

.fbc-admin-stats {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.fbc-stat-box {
    background: #0f8a8d;
    color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fbc-stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.fbc-stat-value {
    font-size: 24px;
    font-weight: 800;
}

.fbc-admin-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.fbc-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.fbc-admin-table th,
.fbc-admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e8f1f0;
}

.fbc-admin-table thead th {
    background: #0f172a;
    color: #ffffff;
}

.fbc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.fbc-page-link,
.fbc-page-current {
    padding: 10px 14px;
    border-radius: 10px;
}

.fbc-page-link {
    background: #0f8a8d;
    color: #ffffff;
    text-decoration: none;
}

.fbc-page-current {
    background: #eef2f7;
    color: #0f172a;
}

@media (max-width: 980px) {
    .fbc-admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fbc-modal {
        width: min(94vw, 94vw);
        max-height: 90vh;
    }

    .fbc-modal-inner {
        padding: 20px;
    }

    .fbc-modal h3 {
        font-size: 20px;
    }

    .fbc-grid,
    .fbc-phone-wrap {
        grid-template-columns: 1fr;
    }

    .fbc-modal-actions {
        flex-direction: column;
    }

    .fbc-btn {
        width: 100%;
    }

    .fbc-admin-stats {
        grid-template-columns: 1fr;
    }
}

.fbc-inline-validate-btn {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #12939a;
    background: #12939a;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.fbc-admin-totals-row th {
    background: #e8fbf8 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #cfe8e4;
}

@media (max-width: 767px) {
    .fbc-inline-validate-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .fbc-modal { width: min(94vw, 420px); max-height: 90vh; }
    .fbc-modal-inner { padding: 18px; }
    .fbc-grid { grid-template-columns: 1fr; }
    .fbc-phone-wrap { grid-template-columns: 1fr; }
    .fbc-btn { width: 100%; }
}
