﻿    @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=DM+Sans:wght@300;400;500&display=swap');

    /* ── GRID ── */
    .address-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    /* ── CARD ── */
    .address-card {
        background: #fff;
        padding: 1.5rem;
        border-radius: 16px;
        border: 0.5px solid #e5e5e5;
        transition: border-color 0.2s ease;
        font-family: 'DM Sans', sans-serif;
    }

        .address-card:hover {
            border-color: #bbb;
        }

        .address-card.default {
            border: 1.5px solid #1a1a1a;
        }

    /* ── HEADER ── */
    .address-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .name {
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
    }

    .phone {
        font-size: 12px;
        color: #aaa;
        margin-top: 3px;
        letter-spacing: 0.02em;
    }

    /* ── BODY ── */
    .address-body {
        font-size: 13px;
        color: #555;
        margin-bottom: 14px;
        line-height: 1.6;
    }

    .notes {
        font-size: 12px;
        color: #aaa;
        margin-top: 4px;
        font-style: italic;
    }

    /* ── ACTIONS ── */
    .address-actions {
        display: flex;
        gap: 12px;
        border-top: 0.5px solid #eee;
        padding-top: 12px;
    }

    .link-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #999;
        font-family: 'DM Sans', sans-serif;
        padding: 0;
        transition: color 0.15s;
    }

        .link-btn:hover {
            color: #1a1a1a;
        }

        .link-btn.primary {
            color: #1a1a1a;
            font-weight: 500;
        }

        .link-btn.danger:hover {
            color: #c0392b;
        }

    /* ── BADGE ── */
    .badge {
        background: #1a1a1a;
        color: #fff;
        padding: 3px 10px;
        border-radius: 100px;
        font-size: 10px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-family: 'DM Sans', sans-serif;
    }

    /* ── MODAL OVERLAY ── */
    .modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 5000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-backdrop {
        position: absolute;
        inset: 0;
    }

    /* ── MODAL ── */
    .modal {
        position: relative;
        z-index: 5001;
        width: 500px;
        max-width: 90%;
        background: #fff;
        border-radius: 20px;
        overflow: hidden;
        font-family: 'DM Sans', sans-serif;
    }

    /* ── MODAL HEADER ── */
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 1.5rem;
        border-bottom: 0.5px solid #eee;
    }

        .modal-header h3 {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.3rem;
            font-weight: 400;
            color: #1a1a1a;
            margin: 0;
        }

    .close-btn {
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
        color: #aaa;
        transition: color 0.15s;
        line-height: 1;
        padding: 0;
    }

        .close-btn:hover {
            color: #1a1a1a;
        }

    /* ── MODAL BODY ── */
    .modal-body {
        padding: 1.5rem;
    }

    /* ── FORM ── */
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }

    .modal input,
    .modal textarea {
        width: 100%;
        padding: 11px 14px;
        border-radius: 8px;
        border: 0.5px solid #e5e5e5;
        background: #f9f9f9;
        font-family: 'DM Sans', sans-serif;
        font-size: 13px;
        color: #1a1a1a;
        outline: none;
        transition: border-color 0.15s;
        box-sizing: border-box;
    }

        .modal input:focus,
        .modal textarea:focus {
            border-color: #999;
            background: #fff;
        }

    .modal textarea {
        min-height: 80px;
        resize: none;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    /* ── CHECKBOX ── */
    .checkbox {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #555;
        cursor: pointer;
    }

        .checkbox input[type="checkbox"] {
            width: 15px;
            height: 15px;
            accent-color: #1a1a1a;
            cursor: pointer;
        }

    /* ── MODAL FOOTER ── */
    .modal-footer {
        padding: 1rem 1.5rem;
        border-top: 0.5px solid #eee;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    /* ── BUTTONS ── */
    .primary-btn {
        background: #1a1a1a;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 100px;
        cursor: pointer;
        font-family: 'DM Sans', sans-serif;
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        transition: opacity 0.15s;
    }

        .primary-btn:hover {
            opacity: 0.75;
        }

    .secondary-btn {
        background: transparent;
        border: 0.5px solid #ccc;
        padding: 10px 20px;
        border-radius: 100px;
        cursor: pointer;
        font-family: 'DM Sans', sans-serif;
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #555;
        transition: border-color 0.15s, color 0.15s;
    }

        .secondary-btn:hover {
            border-color: #999;
            color: #1a1a1a;
        }


.user-page {
    padding: 2rem;
    font-family: 'DM Sans', sans-serif;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .user-header h2 {
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.8rem;
        font-weight: 300;
        color: #1a1a1a;
        margin: 0;
    }

.user-card {
    background: #fff;
    border: 0.5px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    padding: 1.5rem;
}

.user-empty {
    padding: 3rem 20px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .address-grid {
        grid-template-columns: 1fr;
    }

    .address-card {
        padding: 1rem;
    }

    .address-actions {
        flex-wrap: wrap;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
    }

    .modal-overlay {
        align-items: flex-end;
    }

    .user-page {
        padding: 1rem 0.75rem 5rem;
    }

    .user-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .user-header h2 { font-size: 1.5rem; }

    .user-header .primary-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}
