.profile-locations-modal {
    position: fixed;
    inset: 0;
    z-index: 12100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.profile-locations-modal.open {
    display: flex;
}

.profile-locations-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.82);
}

.profile-locations-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
    max-height: min(90vh, 44rem);
    display: flex;
    flex-direction: column;
    background: #0A1628;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
    color: #fff;
}

.profile-locations-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.profile-locations-modal-title {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #C9A84C;
}

.profile-locations-modal-close {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(147, 197, 253, 0.65);
    background: rgba(219, 234, 254, 0.95);
    color: #0A1628;
    border-radius: 0.35rem;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.profile-locations-modal-body {
    padding: 1rem 1.1rem 1.2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-locations-modal-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.profile-locations-manage-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.profile-locations-manage-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
}

.profile-locations-manage-item-main {
    flex: 1;
    min-width: 0;
}

.profile-locations-manage-item-label {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
    color: #fff;
}

.profile-locations-manage-item-detail {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.35;
}

.profile-locations-manage-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}

.profile-locations-manage-item-actions button {
    background: none;
    border: none;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0.1rem 0.2rem;
    white-space: nowrap;
}

.profile-locations-edit-btn {
    color: #C9A84C;
}

.profile-locations-remove-btn {
    color: #f87171;
}

.profile-locations-empty {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.75rem;
}

.profile-locations-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.profile-locations-field-full {
    grid-column: 1 / -1;
}

.profile-locations-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
}

.profile-locations-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.profile-locations-check input {
    accent-color: #C9A84C;
}

.profile-locations-default-badge {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.08rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.profile-locations-default-badge.is-pickup {
    background: rgba(201, 168, 76, 0.2);
    color: #C9A84C;
    border: 1px solid rgba(201, 168, 76, 0.35);
}

.profile-locations-default-badge.is-dropoff {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.35);
}

.profile-locations-message {
    margin-top: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.84rem;
    line-height: 1.4;
}

.profile-locations-message.is-error {
    color: #fecaca;
    background: rgba(185, 28, 28, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.profile-locations-message.is-success {
    color: #bbf7d0;
    background: rgba(21, 128, 61, 0.18);
    border: 1px solid rgba(74, 222, 128, 0.35);
}

@media (max-width: 480px) {
    .profile-locations-form-grid {
        grid-template-columns: 1fr;
    }
}
