.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.popup-overlay.alert-overlay {
    z-index: 9998;
}

.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 201;
    background: #1e1c18;
    border: 2px solid rgba(210, 170, 120, 0.7);
    border-radius: 20px 20px 0 0;
    padding: 0 24px 32px;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    touch-action: none;
}

.popup-sheet.alert-sheet {
    z-index: 9999;
}

.popup-sheet.show {
    transform: translateY(0);
}

@media (min-width: 500px) {
    .popup-sheet {
        width: 500px;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
    }
}

.popup-handle {
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: rgba(210, 170, 120, 0.3);
    margin: 12px auto 24px;
    cursor: grab;
}

.popup-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(210, 170, 120, 0.95);
    margin-bottom: 12px;
}

.popup-sheet .popup-icon {
    display: flex;
    justify-content: center;
    margin: 24px auto 12px;
}

.popup-sheet .popup-icon svg {
    width: 26px;
    height: 26px;
}

.popup-body {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    flex: 1;
    white-space: pre-line;
}

.popup-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 30px;
    justify-content: center;
}

.popup-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid rgba(150, 110, 70, 0.4);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.popup-checkbox.checked {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.popup-checkbox svg {
    width: 12px;
    height: 12px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.popup-checkbox.checked svg {
    opacity: 1;
}

.popup-checkbox-label {
    font-size: 12px;
    color: #7a6050;
    cursor: pointer;
}

.popup-confirm-btn {
    flex: 1;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(210, 170, 120, 0.85), rgba(180, 140, 90, 0.85));
    color: #1a1208;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.popup-cancel-btn {
    flex: 1;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 201;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 32px 24px;
}

.modal-wrap.show {
    pointer-events: auto;
}

.modal-box {
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    background: #1e1e22;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-wrap.show .modal-box {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    display: none;
}

.modal-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-row:last-child {
    border-bottom: none;
}

.modal-row-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.modal-row-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.modal-row-value.price {
    color: #FF6B6B;
    font-weight: 900;
}