﻿:root {
    --primary: #1f8f2e;
    --primary-700: #187326;
    --bg: #f6f8f7;
    --text: #172217;
    --muted: #5f6b5f;
    --border: rgba(0,0,0,.10);
}

/* Page shell */
.profile-page {
    min-height: calc(100vh - 0px);
    padding: 24px;
    background: radial-gradient(800px 400px at 20% 10%, rgba(31,143,46,.12), transparent 60%), radial-gradient(900px 500px at 80% 0%, rgba(31,143,46,.10), transparent 55%), var(--bg);
}

.profile-shell {
    max-width: 980px;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 60px
}

/* Topbar */
.profile-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.profile-title h1 {
    font-size: 26px;
    margin: 0 0 4px;
    color: var(--text);
    letter-spacing: -0.2px;
}

.profile-title p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Cards */
.cardProfile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    padding: 18px;
}

.gridProfile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.card-wide {
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .gridProfile {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* Header user */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    margin-bottom: 14px;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-700));
    box-shadow: 0 10px 20px rgba(31,143,46,.18);
}

.card-header-text h2 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Key-value */
.kv {
    display: grid;
    gap: 10px;
}

.kv-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    background: rgba(0,0,0,.015);
}

.kv-key {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.kv-val {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

/* Section head */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

    .section-head h3 {
        margin: 0;
        color: var(--text);
        font-size: 16px;
    }

    .section-head p {
        margin: 4px 0 0;
        font-size: 13px;
    }

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    min-width: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(31,143,46,.25);
    background: rgba(31,143,46,.08);
    color: var(--primary-700);
    font-weight: 800;
    font-size: 12px;
}

/* Buttons */
.btn-primary {
    height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform .04s ease, background .12s ease;
}

    .btn-primary:hover {
        background: var(--primary-700);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

    .btn-primary:disabled {
        opacity: .65;
        cursor: not-allowed;
    }

.btn-ghost-danger {
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, .28);
    background: rgba(220, 53, 69, .06);
    color: #b02a37;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .04s ease, background .12s ease;
    user-select: none;
}

    .btn-ghost-danger:hover {
        background: rgba(220, 53, 69, .10);
    }

    .btn-ghost-danger:active {
        transform: translateY(1px);
    }

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Address list */
.address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 520px) {
    .address-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.address-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 12px;
    background: #fff;
}

.address-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.address-label {
    color: var(--text);
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.02);
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
}

.address-line {
    color: var(--text);
    font-size: 13px;
    margin-top: 4px;
}

.address-ref {
    margin-top: 8px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px dashed rgba(0,0,0,.12);
    background: rgba(0,0,0,.015);
    color: var(--muted);
    font-size: 12px;
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

@media (min-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.fieldProfile label {
    display: block;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 700;
}

.inputBTNProfile{
    display: flex;
    flex-direction: row;
}

.inputProfile {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0 12px;
    outline: none;
    font-size: 14px;
    color: var(--text);
    background: #fff;
}

.btnSearch{
    margin-top: 0px;
    margin-left: 6px;
    width: 44px;
    height: 44px;
}

    .inputProfile:focus {
        border-color: rgba(31,143,46,.45);
        box-shadow: 0 0 0 4px rgba(31,143,46,.12);
    }

.field-wide {
    grid-column: 1 / -1;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

/* Validation & alerts */
.validation-summary {
    margin: 8px 0 0;
    color: #b02a37;
    font-size: 13px;
}

.alert-info {
    margin-top: 12px;
    border: 1px solid rgba(31, 143, 46, .25);
    background: rgba(31, 143, 46, .08);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
}

/* Empty states */
.empty-state {
    display: flex;
    gap: 14px;
    align-items: center;
}

.empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.02);
    font-size: 22px;
}

.empty-state h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--text);
}

.empty-state p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.empty-mini {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.015);
}

.empty-mini-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--primary-700);
    background: rgba(31,143,46,.08);
    border: 1px solid rgba(31,143,46,.18);
}

/* Skeleton */
.skeleton {
    display: grid;
    gap: 10px;
}

.sk-line {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.035), rgba(0,0,0,.06));
    background-size: 200% 100%;
    animation: shimmer 1.05s infinite linear;
}

.w-40 {
    width: 40%;
}

.w-55 {
    width: 55%;
}

.w-70 {
    width: 70%;
}

@keyframes shimmer {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.address-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-delete {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

    .address-delete:hover {
        filter: brightness(0.95);
    }

    .address-delete:active {
        transform: scale(0.98);
    }