/* =========================================================
   NZT PROFILE MODULE
   Perfil de usuario modular
   ========================================================= */

.nzt-profile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 160;
    background:
        radial-gradient(circle at 50% 10%, rgba(34, 211, 238, 0.11), transparent 38%),
        rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.nzt-profile-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.nzt-profile-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 170;
    width: min(100% - 22px, 430px);
    max-height: calc(100dvh - 28px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-radius: 28px;
    border: 1px solid rgba(34, 211, 238, 0.48);
    background:
        radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.13), transparent 34%),
        radial-gradient(circle at 90% 8%, rgba(96, 165, 250, 0.10), transparent 32%),
        linear-gradient(180deg, rgba(8, 15, 32, 0.99), rgba(2, 6, 23, 0.99));
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.64),
        0 0 34px rgba(34, 211, 238, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    overflow: hidden;
    transform: translateX(-50%) translateY(-46%) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.26s ease,
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.nzt-profile-modal.is-open {
    transform: translateX(-50%) translateY(-50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nzt-profile-head {
    min-height: 78px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 13px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nzt-profile-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #47f5ff;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.16em;
}

.nzt-profile-head h3 {
    margin: 5px 0 0;
    color: #f8fafc;
    font-size: 1.42rem;
    line-height: 1;
    font-weight: 930;
    letter-spacing: -0.05em;
}

.nzt-profile-head button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.48);
    color: rgba(226, 232, 240, 0.94);
    display: grid;
    place-items: center;
    padding: 0;
}

.nzt-profile-body {
    overflow-y: auto;
    padding: 16px 18px 12px;
}

.nzt-profile-hero {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 8px 0 18px;
}

.nzt-profile-avatar-big {
    width: 118px;
    height: 118px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(71, 245, 255, 0.68);
    background:
        radial-gradient(circle at 50% 35%, rgba(71, 245, 255, 0.20), transparent 45%),
        linear-gradient(145deg, rgba(8, 18, 39, 0.98), rgba(15, 23, 42, 0.90));
    box-shadow:
        0 0 36px rgba(34, 211, 238, 0.28),
        0 0 70px rgba(59, 130, 246, 0.18),
        inset 0 0 26px rgba(71, 245, 255, 0.10);
    overflow: hidden;
}

.nzt-profile-avatar-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nzt-profile-avatar-big span {
    color: #47f5ff;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.nzt-profile-avatar-big em {
    width: 18px;
    height: 18px;
    position: absolute;
    right: 10px;
    bottom: 12px;
    border-radius: 999px;
    background: #22c55e;
    border: 3px solid #07101f;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.86);
}

.nzt-profile-hero strong {
    color: #f8fafc;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.1;
}

.nzt-profile-hero small {
    color: #47f5ff;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nzt-profile-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.07), transparent 34%),
        rgba(2, 6, 23, 0.46);
    padding: 14px;
}

.nzt-profile-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dffaff;
    font-size: 0.78rem;
    font-weight: 900;
}

.nzt-profile-panel-title i {
    color: #47f5ff;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
}

.nzt-profile-field {
    display: grid;
    gap: 6px;
}

.nzt-profile-field label {
    color: rgba(203, 213, 225, 0.92);
    font-size: 0.73rem;
    font-weight: 760;
}

.nzt-profile-field input {
    width: 100%;
    min-height: 43px;
    border-radius: 13px;
    border: 1px solid rgba(100, 116, 139, 0.74);
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    font-size: 0.90rem;
    outline: none;
    padding: 0 12px;
}

.nzt-profile-field input:disabled {
    color: rgba(203, 213, 225, 0.74);
    background: rgba(15, 23, 42, 0.42);
}

.nzt-profile-field input:focus {
    border-color: rgba(34, 211, 238, 0.70);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.10);
}

.nzt-profile-action {
    min-height: 46px;
    border-radius: 15px;
    border: 1px solid rgba(34, 211, 238, 0.44);
    background:
        radial-gradient(circle at 12% 50%, rgba(34, 211, 238, 0.15), transparent 36%),
        rgba(15, 23, 42, 0.58);
    color: #dffaff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 0.88rem;
    font-weight: 850;
}

.nzt-profile-note {
    margin: 0;
    color: rgba(148, 163, 184, 0.86);
    font-size: 0.76rem;
    line-height: 1.35;
}

.nzt-profile-foot {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.nzt-profile-secondary,
.nzt-profile-primary {
    min-height: 42px;
    border-radius: 13px;
    padding: 0 16px;
    font-size: 0.84rem;
    font-weight: 840;
}

.nzt-profile-secondary {
    border: 1px solid rgba(226, 232, 240, 0.62);
    background: rgba(2, 6, 23, 0.22);
    color: #f8fafc;
}

.nzt-profile-primary {
    border: 1px solid rgba(34, 197, 94, 0.56);
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.96), rgba(34, 197, 94, 0.92));
    color: #ffffff;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.16);
}

.nzt-profile-toast {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 40;
    width: min(calc(100% - 64px), 300px);
    min-height: 52px;
    display: none;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%) translateY(-50%) scale(0.96);
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.48);
    background:
        radial-gradient(circle at 14% 50%, rgba(34, 197, 94, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(3, 12, 24, 0.98), rgba(2, 6, 23, 0.98));
    color: #bbf7d0;
    padding: 13px 16px;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.35;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.58),
        0 0 28px rgba(34, 197, 94, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    pointer-events: none;
}

.nzt-profile-toast.is-open {
    display: flex;
    animation: nztProfileToastIn 0.18s ease forwards;
}

.nzt-profile-toast.is-error {
    border-color: rgba(248, 113, 113, 0.52);
    background:
        radial-gradient(circle at 14% 50%, rgba(248, 113, 113, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(24, 8, 14, 0.98), rgba(2, 6, 23, 0.98));
    color: #fecaca;
}

@keyframes nztProfileToastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-46%) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-50%) scale(1);
    }
}

@media (max-width: 430px) {
    .nzt-profile-modal {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 24px;
    }

    .nzt-profile-head {
        padding: 16px 15px 12px;
    }

    .nzt-profile-body {
        padding: 14px 15px 12px;
    }

    .nzt-profile-foot {
        padding: 13px 15px 16px;
    }

    .nzt-profile-avatar-big {
        width: 108px;
        height: 108px;
    }

    .nzt-profile-secondary,
    .nzt-profile-primary {
        flex: 1;
        padding: 0 12px;
    }
}