/* ==========================================================
   Asylonia Civic Reservation Modal
   ========================================================== */

.civic-reserve-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(5, 3, 1, 0.72);
    backdrop-filter: blur(12px);
}

.civic-reserve-modal[hidden] {
    display: none;
}

.civic-reserve-box {
    position: relative;
    width: min(100%, 460px);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    color: #071a34;
    background:
        radial-gradient(circle at 88% 0%, rgba(216, 168, 79, 0.20), transparent 34%),
        linear-gradient(180deg, #fffaf1 0%, #f7ecd8 100%);
    border: 1px solid rgba(184, 124, 31, 0.42);
    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.44),
        0 0 0 1px rgba(255, 255, 255, 0.48) inset;
}

.civic-reserve-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(7, 26, 52, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: #071a34;
    font-weight: 950;
    cursor: pointer;
}

.civic-reserve-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 230, 160, 0.20), transparent 42%),
        linear-gradient(180deg, #21130a 0%, #050302 100%);
    border: 1px solid rgba(210, 176, 109, 0.42);
    box-shadow: 0 0 28px rgba(216, 168, 79, 0.22);
    overflow: hidden;
}

.civic-reserve-icon img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.civic-reserve-eyebrow {
    margin: 0 0 8px;
    color: #9a6718;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.civic-reserve-box h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 5vw, 3.1rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #071a34;
}

.civic-reserve-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin: 0 0 16px;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(184, 124, 31, 0.24);
    background: rgba(255, 255, 255, 0.62);
    text-align: left;
}

.civic-reserve-summary strong {
    color: #071a34;
    font-weight: 950;
}

.civic-reserve-summary span {
    color: #9a6718;
    font-weight: 950;
}

.civic-reserve-copy {
    margin: 0 0 16px;
    color: rgba(7, 26, 52, 0.66);
    font-weight: 750;
}

.civic-reserve-status {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(7, 26, 52, 0.12);
    background: rgba(255, 255, 255, 0.48);
    color: rgba(7, 26, 52, 0.72);
    font-weight: 800;
}

.civic-reserve-status[hidden] {
    display: none;
}

.civic-reserve-status.is-error {
    color: #8b2417;
    border-color: rgba(160, 42, 24, 0.24);
    background: rgba(160, 42, 24, 0.09);
}

.civic-reserve-status.is-success {
    color: #14522f;
    border-color: rgba(20, 82, 47, 0.24);
    background: rgba(20, 82, 47, 0.09);
}

.civic-reserve-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.civic-reserve-actions button,
.civic-reserve-actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 999px;
    border: 1px solid rgba(184, 124, 31, 0.28);
    text-decoration: none;
    font-weight: 950;
    cursor: pointer;
}

.civic-reserve-confirm,
.civic-reserve-vault {
    border: 0 !important;
    color: #1a1005 !important;
    background: linear-gradient(180deg, #ffd884 0%, #d39d3a 58%, #a76d18 100%) !important;
}

.civic-reserve-buy,
.civic-reserve-cancel {
    color: #0d3d70;
    background: rgba(255, 255, 255, 0.52);
}

.civic-reserve-confirm[disabled] {
    opacity: 0.72;
    cursor: wait;
}

@media (max-width: 560px) {
    .civic-reserve-box {
        padding: 24px;
    }

    .civic-reserve-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .civic-reserve-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
