/* Menú cliente — panel lateral tipo app */
.nf-app-nav {
    background: #111114 !important;
    border-color: #2a2a30 !important;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.nf-app-nav .navbar-brand {
    color: #f9fafb;
}
.nf-app-nav__guest {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}
.nf-app-nav__admin {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}
.nf-app-nav__admin .nav-link {
    color: #d1d5db;
    padding: 0.35rem 0.5rem;
}
.nf-app-nav__admin .nav-link:hover {
    color: #ff6b1a;
}

.nf-menu-trigger {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.45rem 0.35rem 0.35rem;
    border-radius: 999px;
    border: 1px solid #2f2f38;
    background: #1a1a1f;
    color: #e5e7eb;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.nf-menu-trigger:hover {
    border-color: rgba(255, 107, 26, 0.45);
    background: #1f1f26;
    box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.12);
}
.nf-menu-trigger:focus-visible {
    outline: 2px solid #ff6b1a;
    outline-offset: 2px;
}
.nf-menu-trigger__avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(145deg, #ff6b1a, #e85a0f);
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(255, 107, 26, 0.35);
}
.nf-menu-trigger__avatar--photo {
    padding: 0;
    overflow: hidden;
    background: #25252d;
}
.nf-menu-trigger__avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nf-menu-trigger__meta {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.15;
    max-width: 9rem;
}
@media (min-width: 576px) {
    .nf-menu-trigger__meta {
        display: flex;
    }
}
.nf-menu-trigger__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.nf-menu-trigger__credits {
    font-size: 0.72rem;
    color: #ff6b1a;
    font-weight: 600;
}
.nf-menu-trigger__icon {
    font-size: 1.35rem;
    color: #9ca3af;
    padding-right: 0.15rem;
    line-height: 1;
}

.nf-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.nf-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.nf-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1081;
    width: min(100vw - 2.5rem, 340px);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    background: linear-gradient(180deg, #16161c 0%, #0f0f12 55%, #0d0d0f 100%);
    border-left: 1px solid #2a2a32;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.nf-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}
.nf-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem;
    flex-shrink: 0;
}
.nf-drawer__brand {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
}
.nf-drawer__close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid #2f2f38;
    background: #1c1c22;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nf-drawer__close:hover {
    color: #ff6b1a;
    border-color: rgba(255, 107, 26, 0.4);
    background: rgba(255, 107, 26, 0.08);
}
.nf-drawer__close i {
    font-size: 1.35rem;
    line-height: 1;
}

.nf-drawer__profile {
    padding: 0.25rem 1.1rem 1.1rem;
    flex-shrink: 0;
}
.nf-drawer__profile-card {
    border-radius: 1.1rem;
    padding: 1.1rem 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.14) 0%, rgba(45, 212, 191, 0.08) 100%);
    border: 1px solid rgba(255, 107, 26, 0.28);
    position: relative;
    overflow: hidden;
}
.nf-drawer__profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b1a, #2dd4bf);
    opacity: 0.9;
}
.nf-drawer__profile-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.nf-drawer__avatar-lg {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #ff6b1a, #c2410c);
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(255, 107, 26, 0.35);
}
.nf-drawer__avatar-lg--photo {
    padding: 0;
    overflow: hidden;
    background: #25252d;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.nf-drawer__avatar-lg--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nf-drawer__who {
    min-width: 0;
    flex: 1;
}
.nf-drawer__who-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f9fafb;
    margin: 0 0 0.2rem;
    line-height: 1.2;
    word-break: break-word;
}
.nf-drawer__who-email {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
    word-break: break-all;
}

.nf-drawer__credits {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.nf-drawer__credits-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    font-weight: 600;
}
.nf-drawer__credits-value {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}
.nf-drawer__credits-num {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ff6b1a;
    line-height: 1;
}
.nf-drawer__credits-unit {
    font-size: 0.8rem;
    color: #d1d5db;
    font-weight: 500;
}

.nf-drawer__nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.85rem 1rem;
    -webkit-overflow-scrolling: touch;
}
.nf-drawer__nav-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    font-weight: 700;
    padding: 0.5rem 0.35rem 0.35rem;
    margin: 0;
}
.nf-drawer__link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    margin-bottom: 0.35rem;
    border-radius: 0.85rem;
    text-decoration: none;
    color: #e5e7eb;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nf-drawer__link i {
    font-size: 1.2rem;
    color: #6b7280;
    width: 1.35rem;
    text-align: center;
    transition: color 0.15s;
}
.nf-drawer__link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #2f2f38;
    color: #fff;
}
.nf-drawer__link:hover i {
    color: #ff6b1a;
}

.nf-drawer__footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem 1.25rem;
    border-top: 1px solid #25252d;
    background: rgba(0, 0, 0, 0.25);
}
.nf-drawer__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid #3f3f48;
    background: transparent;
    color: #fca5a5;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nf-drawer__logout:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

body.nf-drawer-open {
    overflow: hidden;
    touch-action: none;
}

/* Formularios perfil / registro */
.nf-choice-grid,
.nf-goal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}
.nf-choice-option {
    display: block;
    margin: 0;
}
.nf-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nf-choice-card,
.nf-goal-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4.5rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #eef0f4;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.nf-choice-card strong,
.nf-goal-card span {
    display: block;
    font-weight: 700;
}
.nf-choice-card small {
    display: block;
    margin-top: 0.2rem;
    color: #9ca3af;
}
.nf-choice-icon,
.nf-goal-card i {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.nf-choice-card--blue .nf-choice-icon {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}
.nf-choice-card--pink .nf-choice-icon {
    background: rgba(244, 114, 182, 0.16);
    color: #f9a8d4;
}
.nf-goal-card--orange i {
    background: rgba(255, 107, 26, 0.14);
    color: #ff9b63;
}
.nf-goal-card--violet i {
    background: rgba(168, 85, 247, 0.14);
    color: #d8b4fe;
}
.nf-goal-card--teal i {
    background: rgba(45, 212, 191, 0.14);
    color: #7ce9da;
}
.nf-choice-input:checked + .nf-choice-card,
.nf-choice-input:checked + .nf-goal-card {
    border-color: rgba(255, 107, 26, 0.72);
    background: rgba(255, 107, 26, 0.08);
    box-shadow: 0 10px 28px rgba(255, 107, 26, 0.14);
    transform: translateY(-1px);
}
.nf-choice-card:hover,
.nf-goal-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}
