.standalone-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    background: #122337;
}

.standalone-page::before,
.standalone-page::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.standalone-page::before {
    z-index: -2;
    background: url('../img/delivery-background.png') center center / cover no-repeat;
    opacity: .72;
    animation: standalone-background-drift 24s ease-in-out infinite alternate;
}

.standalone-page::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(9, 22, 37, .82) 0%, rgba(9, 22, 37, .62) 48%, rgba(9, 22, 37, .34) 100%),
        linear-gradient(180deg, rgba(9, 22, 37, .76) 0%, rgba(9, 22, 37, .34) 42%, rgba(9, 22, 37, .78) 100%);
}

.standalone-page > * {
    position: relative;
    z-index: 1;
}

.standalone-page .page_header {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(214, 225, 237, .72);
    box-shadow: 0 8px 24px rgba(30, 45, 62, .07);
    backdrop-filter: blur(14px);
}

.standalone-page .page_header h1,
.standalone-page .page_header .text-muted {
    color: #152437 !important;
}

.standalone-page .page_header {
    animation: standalone-header-in .65s ease-out both;
}

.standalone-signup-row {
    min-height: calc(100vh - 190px);
    align-items: center;
    padding-block: clamp(2rem, 6vh, 5rem);
}

.standalone-shell {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ebf0;
    box-shadow: 0 20px 50px rgba(30, 45, 62, 0.08);
}

.standalone-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #152437;
    letter-spacing: -0.01em;
}

.standalone-subtitle {
    color: #526172;
    margin-bottom: 0;
}

.panel-card {
    border: 1px solid #e7edf4;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 42px rgba(19, 33, 52, 0.12);
    backdrop-filter: blur(8px);
    animation: standalone-card-in .7s cubic-bezier(.2,.8,.2,1) both;
}

.standalone-signup-row .panel-card {
    animation-delay: .12s;
}

.standalone-signup-row .form-group,
.standalone-signup-row .form-check,
.standalone-signup-row .mt-3.d-grid {
    animation: standalone-field-in .55s ease-out both;
}

.standalone-signup-row .form-group:nth-child(1) { animation-delay: .2s; }
.standalone-signup-row .form-group:nth-child(2) { animation-delay: .26s; }
.standalone-signup-row .form-group:nth-child(3) { animation-delay: .32s; }
.standalone-signup-row .form-group:nth-child(4) { animation-delay: .38s; }
.standalone-signup-row .form-group:nth-child(5) { animation-delay: .44s; }
.standalone-signup-row .mt-3.d-grid { animation-delay: .5s; }

.standalone-signup-row .btn,
.standalone-shell .btn {
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.standalone-signup-row .btn:hover,
.standalone-shell .btn:hover {
    transform: translateY(-2px);
}

.panel-card .card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #1a2b3d;
    margin-bottom: .8rem;
}

.field-hint {
    color: #7a8795;
    font-size: .82rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .48rem 0;
    border-bottom: 1px dashed #e6ebf2;
    font-size: .93rem;
    color: #3a4c61;
}

.pricing-row:last-child {
    border-bottom: 0;
}

.pricing-row.total {
    font-size: 1.08rem;
    font-weight: 700;
    color: #12273d;
    border-top: 1px solid #dce5ef;
    margin-top: .35rem;
    padding-top: .75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: #f2f6fb;
    color: #334c66;
}

.summary-empty {
    color: #7c8a9b;
    font-size: .92rem;
}

.modal-brand {
    font-size: .95rem;
    color: #fff3e8;
    font-weight: 600;
}

.card-payment-shell {
    border: 1px solid #ffd8b0;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    min-height: 48px;
}

.standalone-payment-modal {
    overflow: hidden;
    border-radius: 22px;
}

.standalone-payment-header {
    background: linear-gradient(135deg, #ff7a00 0%, #ff9b30 100%);
    color: #fff;
    position: relative;
    padding: 1.15rem 1.5rem;
}

.standalone-payment-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #18263f 0%, #ffb25e 100%);
}

.standalone-payment-header .modal-title {
    color: #fff;
}

.standalone-summary-panel {
    background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

.standalone-card-panel {
    background: #fff;
}

.standalone-payment-total {
    color: #ff7a00;
}

.btn-platform-pay {
    background: linear-gradient(135deg, #ff7a00 0%, #ff9b30 100%);
    border: 0;
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 122, 0, 0.22);
}

.btn-platform-pay:hover,
.btn-platform-pay:focus {
    background: linear-gradient(135deg, #f26c00 0%, #ff8f14 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 122, 0, 0.28);
}

.btn-platform-outline {
    background: #fff7ed;
    color: #9b4c00;
    border: 1px solid #ffd8b0;
}

.pac-container {
    z-index: 20000 !important;
}

@keyframes standalone-background-drift {
    from { transform: scale(1.02) translate3d(-.4%, -.3%, 0); }
    to { transform: scale(1.07) translate3d(.7%, .5%, 0); }
}

@keyframes standalone-header-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes standalone-card-in {
    from { opacity: 0; transform: translateY(22px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes standalone-field-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .standalone-shell {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .standalone-page::before,
    .standalone-page .page_header,
    .standalone-page .panel-card,
    .standalone-signup-row .form-group,
    .standalone-signup-row .form-check,
    .standalone-signup-row .mt-3.d-grid {
        animation: none;
    }
}
