/* ═══════════════════════════════════════════════════
   NanoLunar — Lunar Painel · dashboard.css
   Tema escuro · desktop only
═══════════════════════════════════════════════════ */
:root {
    --nl-bg:        #0a0a0a;
    --nl-sidebar:   #0f0f0f;
    --nl-card:      #161616;
    --nl-border:    #252525;
    --nl-purple:    #764ba2;
    --nl-blue:      #667eea;
    --nl-gradient:  linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    --nl-text:      #e8e8e8;
    --nl-muted:     #bbb;
    --nl-success:   #22c55e;
    --nl-warning:   #f59e0b;
    --nl-danger:    #ef4444;
    --nl-sidebar-w: 240px;
    --nl-header-h:  64px;
}

/* Full-screen overlay — cobre o tema WP */
#nl-dashboard-overlay {
    position: fixed;
    top:0; left:0;
    width:100vw; height:100vh;
    background: var(--nl-bg);
    z-index: 99998;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--nl-text);
    overflow: hidden;
}

/* ─── SIDEBAR ──────────────────────────────────── */
.nl-sidebar {
    width: var(--nl-sidebar-w);
    min-width: var(--nl-sidebar-w);
    background: var(--nl-sidebar);
    border-right: 1px solid var(--nl-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}
.nl-sidebar-logo {
    padding: 22px 20px;
    border-bottom: 1px solid var(--nl-border);
    flex-shrink: 0;
}
.nl-sidebar-logo img { height:32px; width:auto; display:block; }
.nl-sidebar-nav { flex:1; padding:10px 0; overflow-y:auto; }
.nl-nav-label {
    font-size:15px; font-weight:600; letter-spacing:1.2px;
    text-transform:uppercase; color:var(--nl-muted);
    padding:14px 20px 5px;
}
.nl-nav-item {
    display:flex; align-items:center; gap:11px;
    padding:10px 20px; cursor:pointer;
    color:var(--nl-muted); font-size:15px; font-weight:500;
    position:relative; text-decoration:none;
    border:none; background:none; width:100%; text-align:left;
    transition:all 0.18s;
}
.nl-nav-item:hover { color:var(--nl-text); background:rgba(255,255,255,0.04); }
.nl-nav-item.active { color:#fff; background:rgba(118,75,162,0.13); }
.nl-nav-item.active::before {
    content:''; position:absolute; left:0; top:0; bottom:0;
    width:3px; background:var(--nl-gradient); border-radius:0 2px 2px 0;
}
.nl-nav-icon { font-size:16px; width:20px; text-align:center; flex-shrink:0; }
.nl-nav-badge {
    margin-left:auto; background:var(--nl-danger); color:#fff;
    font-size:15px; font-weight:700; padding:2px 6px;
    border-radius:10px; min-width:18px; text-align:center;
}
.nl-sidebar-bottom { padding:10px 0; border-top:1px solid var(--nl-border); flex-shrink:0; }

/* ─── MAIN ─────────────────────────────────────── */
.nl-main { flex:1; display:flex; flex-direction:column; overflow:hidden; min-width:0; }

/* ─── HEADER ───────────────────────────────────── */
.nl-header {
    height:var(--nl-header-h); min-height:var(--nl-header-h);
    background:var(--nl-sidebar); border-bottom:1px solid var(--nl-border);
    display:flex; align-items:center; padding:0 24px; gap:12px; flex-shrink:0;
}
.nl-header-title { font-size:17px; font-weight:600; color:var(--nl-text); flex:1; }
.nl-header-search {
    display:flex; align-items:center; gap:8px;
    background:rgba(255,255,255,0.04); border:1px solid var(--nl-border);
    border-radius:8px; padding:7px 13px; min-width:200px;
}
.nl-header-search input {
    background:none; border:none; outline:none;
    color:var(--nl-text); font-size:15px; width:100%;
}
.nl-header-search input::placeholder { color:var(--nl-muted); }
.nl-header-actions { display:flex; align-items:center; gap:8px; }
.nl-header-btn {
    position:relative; background:rgba(255,255,255,0.05);
    border:1px solid var(--nl-border); border-radius:8px;
    padding:8px 10px; cursor:pointer; color:var(--nl-text);
    font-size:15px; transition:background 0.18s;
    display:flex; align-items:center; gap:5px;
}
.nl-header-btn:hover { background:rgba(255,255,255,0.09); }
.nl-header-btn .nl-badge {
    position:absolute; top:-4px; right:-4px;
    background:var(--nl-danger); color:#fff; font-size:9px;
    font-weight:700; min-width:16px; height:16px; border-radius:8px;
    display:flex; align-items:center; justify-content:center; padding:0 3px;
}
.nl-credits-pill {
    display:flex; align-items:center; gap:7px;
    background:rgba(118,75,162,0.18); border:1px solid rgba(118,75,162,0.35);
    border-radius:20px; padding:6px 16px; cursor:pointer; transition:background 0.18s;
}
.nl-credits-pill:hover { background:rgba(118,75,162,0.28); }
.nl-pill-icon  { font-size:16px; line-height:1; }
.nl-pill-label { font-size:11px; color:#a78cc0; font-weight:500; letter-spacing:0.03em; text-transform:uppercase; }
.nl-pill-value { font-size:16px; font-weight:800; color:#e2d0f5; letter-spacing:0.01em; }
.nl-user-menu { position:relative; }
.nl-user-btn {
    display:flex; align-items:center; gap:9px;
    background:rgba(255,255,255,0.05); border:1px solid var(--nl-border);
    border-radius:8px; padding:6px 12px 6px 6px; cursor:pointer; transition:background 0.18s;
}
.nl-user-btn:hover { background:rgba(255,255,255,0.09); }
.nl-avatar-sm {
    width:30px; height:30px; border-radius:50%; overflow:hidden;
    background:var(--nl-gradient); display:flex; align-items:center;
    justify-content:center; font-size:15px; font-weight:700; color:#fff; flex-shrink:0;
}
.nl-avatar-sm img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.nl-user-btn-name {
    font-size:15px; font-weight:500; color:var(--nl-text);
    max-width:110px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.nl-user-btn-arrow { font-size:15px; color:var(--nl-muted); transition:transform 0.18s; }
.nl-user-btn.open .nl-user-btn-arrow { transform:rotate(180deg); }
.nl-dropdown {
    position:absolute; top:calc(100% + 7px); right:0;
    background:#1a1a1a; border:1px solid var(--nl-border);
    border-radius:10px; min-width:175px; padding:5px;
    box-shadow:0 8px 30px rgba(0,0,0,0.5); z-index:100; display:none;
}
.nl-dropdown.open { display:block; }
.nl-dropdown-item {
    display:flex; align-items:center; gap:9px;
    padding:9px 11px; border-radius:7px; cursor:pointer;
    font-size:15px; color:var(--nl-text); transition:background 0.14s;
    text-decoration:none; border:none; background:none; width:100%; text-align:left;
}
.nl-dropdown-item:hover { background:rgba(255,255,255,0.06); color:var(--nl-text); }
.nl-dropdown-item.danger { color:var(--nl-danger); }
.nl-dropdown-separator { height:1px; background:var(--nl-border); margin:4px 0; }

/* ─── CONTENT ──────────────────────────────────── */
.nl-content { flex:1; overflow-y:auto; padding:28px 32px; background:var(--nl-bg); }
.nl-section { display:none; }
.nl-section.active { display:block; }
.nl-section-header { margin-bottom:24px; }
.nl-section-title { font-size:21px; font-weight:700; color:#fff; margin:0 0 3px; }
.nl-section-subtitle { font-size:15px; color:var(--nl-muted); margin:0; }

/* ─── CARDS ────────────────────────────────────── */
.nl-card {
    background:var(--nl-card); border:1px solid var(--nl-border);
    border-radius:12px; padding:22px;
}
.nl-card-header {
    display:flex; align-items:center; justify-content:space-between; margin-bottom:18px;
}
.nl-card-title { font-size:15px; font-weight:600; color:#fff; margin:0; }

/* ─── GRID ─────────────────────────────────────── */
.nl-grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:22px; }
.nl-grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.nl-stat-card {
    background:var(--nl-card); border:1px solid var(--nl-border);
    border-radius:12px; padding:18px; display:flex; align-items:flex-start; gap:14px;
    transition:border-color 0.2s;
}
.nl-stat-card:hover { border-color:rgba(118,75,162,0.4); }
.nl-stat-icon {
    width:42px; height:42px; border-radius:10px;
    background:rgba(118,75,162,0.13); display:flex;
    align-items:center; justify-content:center; font-size:19px; flex-shrink:0;
}
.nl-stat-info { flex:1; }
.nl-stat-value { font-size:24px; font-weight:700; color:#fff; line-height:1; margin-bottom:4px; }
.nl-stat-label { font-size:15px; color:var(--nl-muted); }

/* ─── ALERTS ───────────────────────────────────── */
.nl-alert {
    display:flex; align-items:center; gap:11px; padding:13px 18px;
    border-radius:10px; margin-bottom:22px; font-size:15px;
}
.nl-alert-warning { background:rgba(245,158,11,0.09); border:1px solid rgba(245,158,11,0.28); color:#fbbf24; }
.nl-alert-info    { background:rgba(102,126,234,0.09); border:1px solid rgba(102,126,234,0.28); color:#a5b4fc; }
.nl-alert a { color:inherit; font-weight:600; text-decoration:underline; cursor:pointer; }

/* ─── CREDIT BAR ───────────────────────────────── */
.nl-credit-bar-wrap { margin:14px 0; }
.nl-credit-bar-info {
    display:flex; justify-content:space-between; align-items:center;
    margin-bottom:7px; font-size:15px; color:var(--nl-muted);
}
.nl-credit-bar-info strong { color:var(--nl-text); }
.nl-credit-bar { height:7px; background:rgba(255,255,255,0.07); border-radius:4px; overflow:hidden; }
.nl-credit-bar-fill { height:100%; background:var(--nl-gradient); border-radius:4px; transition:width 0.8s ease; }

/* ─── TABLES ───────────────────────────────────── */
.nl-table-wrap { overflow-x:auto; border-radius:11px; border:1px solid var(--nl-border); }
.nl-table { width:100%; border-collapse:collapse; font-size:15px; }
.nl-table thead th {
    background:rgba(255,255,255,0.03); color:var(--nl-muted);
    font-weight:600; font-size:15px; text-transform:uppercase;
    letter-spacing:0.7px; padding:12px 15px; border-bottom:1px solid var(--nl-border);
    text-align:left; white-space:nowrap;
}
.nl-table tbody td {
    padding:13px 15px; border-bottom:1px solid rgba(37,37,37,0.55);
    color:var(--nl-text); vertical-align:middle;
}
.nl-table tbody tr:last-child td { border-bottom:none; }
.nl-table tbody tr:hover td { background:rgba(255,255,255,0.02); }

/* ─── BADGES ───────────────────────────────────── */
.nl-badge {
    display:inline-flex; align-items:center;
    padding:3px 9px; border-radius:20px; font-size:15px; font-weight:600;
}
.nl-badge-success { background:rgba(34,197,94,0.13);  color:#4ade80; }
.nl-badge-warning { background:rgba(245,158,11,0.13); color:#fbbf24; }
.nl-badge-danger  { background:rgba(239,68,68,0.13);  color:#f87171; }
.nl-badge-info    { background:rgba(102,126,234,0.13); color:#a5b4fc; }
.nl-badge-purple  { background:rgba(118,75,162,0.18);  color:#c084fc; }

/* ─── PROFILE ──────────────────────────────────── */
.nl-profile-avatar-section {
    display:flex; align-items:center; gap:22px; padding:22px;
    background:var(--nl-card); border:1px solid var(--nl-border);
    border-radius:12px; margin-bottom:22px;
}
.nl-avatar-lg {
    width:76px; height:76px; border-radius:50%;
    background:var(--nl-gradient); display:flex; align-items:center;
    justify-content:center; font-size:26px; font-weight:700; color:#fff;
    overflow:hidden; flex-shrink:0; position:relative; cursor:pointer;
}
.nl-avatar-lg img { width:100%; height:100%; object-fit:cover; }
.nl-avatar-overlay {
    position:absolute; inset:0; background:rgba(0,0,0,0.6);
    display:flex; align-items:center; justify-content:center;
    font-size:20px; opacity:0; transition:opacity 0.2s; border-radius:50%;
}
.nl-avatar-lg:hover .nl-avatar-overlay { opacity:1; }
.nl-avatar-info h3 { font-size:19px; font-weight:700; color:#fff; margin:0 0 3px; }
.nl-avatar-info p  { font-size:15px; color:var(--nl-muted); margin:0 0 11px; }

/* ─── FORM ─────────────────────────────────────── */
.nl-form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.nl-form-group { display:flex; flex-direction:column; gap:5px; }
.nl-form-group.full { grid-column:1/-1; }
.nl-form-group label {
    font-size:15px; font-weight:600; color:var(--nl-muted);
    text-transform:uppercase; letter-spacing:0.5px;
}
.nl-form-group input,
.nl-form-group select,
.nl-form-group textarea {
    background:rgba(255,255,255,0.04); border:1px solid var(--nl-border);
    border-radius:8px; padding:9px 13px; color:var(--nl-text);
    font-size:15px; transition:border-color 0.18s; outline:none; font-family:inherit;
}
.nl-form-group input:focus,
.nl-form-group select:focus { border-color:rgba(118,75,162,0.55); }

/* ─── BUTTONS ──────────────────────────────────── */
#nl-dashboard-overlay .nl-btn,
#nl-guest-page .nl-btn {
    display:inline-flex; align-items:center; gap:7px;
    padding:9px 18px; border-radius:8px; font-size:15px; font-weight:600;
    cursor:pointer; transition:all 0.18s; border:none; font-family:inherit;
    text-decoration:none; white-space:nowrap; box-shadow:none; outline:none; line-height:1.4;
}
#nl-dashboard-overlay .nl-btn-primary,
#nl-guest-page .nl-btn-primary {
    background: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color:#fff;
}
#nl-dashboard-overlay .nl-btn-primary:hover,
#nl-dashboard-overlay .nl-btn-primary:visited,
#nl-guest-page .nl-btn-primary:hover,
#nl-guest-page .nl-btn-primary:visited { color:#fff; opacity:0.88; }

#nl-dashboard-overlay .nl-btn-outline,
#nl-guest-page .nl-btn-outline {
    background: rgba(255,255,255,0.06);
    border: 1px solid #444;
    color: #e0e0e0;
}
#nl-dashboard-overlay .nl-btn-outline:hover,
#nl-guest-page .nl-btn-outline:hover { background:rgba(255,255,255,0.11); color:#fff; }
#nl-dashboard-overlay .nl-btn-outline:visited,
#nl-guest-page .nl-btn-outline:visited { color:#e0e0e0; }

#nl-dashboard-overlay .nl-btn-sm,
#nl-guest-page .nl-btn-sm { padding:5px 13px; font-size:13px; }

/* ─── COURSES ──────────────────────────────────── */
.nl-courses-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.nl-course-card {
    background:var(--nl-card); border:1px solid var(--nl-border);
    border-radius:12px; padding:18px; transition:border-color 0.18s, transform 0.18s;
}
.nl-course-card:hover { border-color:rgba(118,75,162,0.4); transform:translateY(-2px); }
.nl-course-icon {
    width:44px; height:44px; background:rgba(118,75,162,0.13);
    border-radius:10px; display:flex; align-items:center;
    justify-content:center; font-size:20px; margin-bottom:13px;
}
.nl-course-title { font-size:15px; font-weight:600; color:#fff; margin:0 0 5px; line-height:1.4; }
.nl-course-code  { font-size:15px; color:var(--nl-muted); margin:0 0 13px; }

/* ─── NOTIFICATIONS ────────────────────────────── */
.nl-notif-list { display:flex; flex-direction:column; gap:9px; }
.nl-notif-item {
    display:flex; align-items:flex-start; gap:13px; padding:15px;
    background:var(--nl-card); border:1px solid var(--nl-border);
    border-radius:10px; transition:border-color 0.18s;
}
.nl-notif-item:hover { border-color:rgba(118,75,162,0.3); }
.nl-notif-item.unread { border-left:3px solid var(--nl-purple); }
.nl-notif-icon {
    width:34px; height:34px; border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    font-size:15px; flex-shrink:0;
}
.nl-notif-warning .nl-notif-icon { background:rgba(245,158,11,0.13); }
.nl-notif-info    .nl-notif-icon { background:rgba(102,126,234,0.13); }
.nl-notif-success .nl-notif-icon { background:rgba(34,197,94,0.13); }
.nl-notif-danger  .nl-notif-icon { background:rgba(239,68,68,0.13); }
.nl-notif-body { flex:1; }
.nl-notif-title { font-size:15px; font-weight:600; color:#fff; margin:0 0 3px; }
.nl-notif-desc  { font-size:15px; color:var(--nl-muted); margin:0; }
.nl-notif-time  { font-size:15px; color:var(--nl-muted); white-space:nowrap; flex-shrink:0; padding-top:1px; }

/* ─── EMPTY STATE ──────────────────────────────── */
.nl-empty { text-align:center; padding:50px 20px; color:var(--nl-muted); }
.nl-empty-icon  { font-size:44px; margin-bottom:14px; }
.nl-empty-title { font-size:15px; font-weight:600; color:var(--nl-text); margin:0 0 5px; }
.nl-empty-desc  { font-size:15px; margin:0; }

/* ─── GUEST PAGE ───────────────────────────────── */
#nl-guest-page {
    position:fixed; inset:0; z-index:99998;
    background:var(--nl-bg); display:flex;
    align-items:center; justify-content:center;
    font-family:-apple-system, BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
.nl-guest-box { text-align:center; max-width:380px; padding:36px; }
.nl-guest-box img { height:44px; margin-bottom:28px; }
.nl-guest-box h2 { font-size:21px; font-weight:700; color:#fff; margin:0 0 7px; }
.nl-guest-box p  { color:var(--nl-muted); font-size:15px; margin:0 0 28px; }
.nl-guest-btns { display:flex; gap:11px; justify-content:center; }
.nl-guest-btns .nl-btn { padding:11px 26px; font-size:15px; }

/* ─── MOBILE BLOCK ─────────────────────────────── */
#nl-mobile-block {
    display:none; position:fixed; inset:0; z-index:99999;
    background:var(--nl-bg); align-items:center;
    justify-content:center; text-align:center; padding:36px;
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
@media (max-width:1023px) {
    #nl-mobile-block { display:flex; }
    #nl-dashboard-overlay, #nl-guest-page { display:none !important; }
}
#nl-mobile-block h2 { font-size:19px; color:#fff; margin:14px 0 7px; }
#nl-mobile-block p  { color:var(--nl-muted); font-size:15px; }

/* ─── ADMIN BANNER ─────────────────────────────── */
.nl-admin-banner {
    background:rgba(245,158,11,0.09); border-bottom:1px solid rgba(245,158,11,0.28);
    padding:9px 24px; font-size:15px; color:#fbbf24;
    display:flex; align-items:center; gap:8px; flex-shrink:0;
}

/* ─── SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:#2a2a2a; border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:#444; }

/* ─── ABAS DO PERFIL ───────────────────────────── */
.nl-ptabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.nl-ptab {
    background: var(--nl-card);
    border: 1px solid var(--nl-border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: var(--nl-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.nl-ptab:hover { color: var(--nl-text); }
.nl-ptab.active {
    background: var(--nl-card);
    border-color: var(--nl-border);
    color: #a5b4fc;
    position: relative;
    z-index: 1;
}
.nl-ptab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 1px;
    background: var(--nl-card);
}
.nl-ptab-pane { display: none; }
.nl-ptab-pane.active { display: block; }
.nl-ptab-pane .nl-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0;
}
@media (max-width: 600px) {
    .nl-ptab { font-size: 12px; padding: 8px 10px; }
}

/* ─── PAINEL DE MEMBRO (equipe) ──────────────────────── */
/* Esconde botões de salvar no perfil travado do membro */
.nl-role-member #nl-profile-form button[type="submit"] { display: none; }
.nl-locked-fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
.nl-locked-fieldset input,
.nl-locked-fieldset select { opacity: 0.6; cursor: not-allowed; }

/* Nota de dados gerenciados pela empresa */
.nl-member-lock-note {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 10px;
    padding: 12px 16px; margin-bottom: 18px;
    font-size: 13px; color: #f0c47a; line-height: 1.5;
}

/* Banner da empresa/supervisor no topo do Início */
.nl-member-banner {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg,rgba(102,126,234,0.14),rgba(118,75,162,0.14));
    border: 1px solid rgba(118,75,162,0.25);
    border-radius: 14px; padding: 16px 20px; margin-bottom: 22px;
}
.nl-member-banner .nl-mb-icon {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
    background: linear-gradient(135deg,#667eea,#764ba2);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.nl-member-banner .nl-mb-company { font-size: 15px; font-weight: 700; color: #fff; }
.nl-member-banner .nl-mb-sup { font-size: 12.5px; color: #b3aad0; margin-top: 2px; }
.nl-member-banner .nl-mb-tag {
    margin-left: auto; font-size: 11px; font-weight: 600;
    background: rgba(118,75,162,0.3); color: #d3c5f0;
    padding: 5px 12px; border-radius: 20px;
}

/* ─── MODAIS (Equipe / Créditos / Licenças) ──────────── */
#nl-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(6,6,12,0.72);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: nl-modal-fade 0.2s ease;
}
@keyframes nl-modal-fade { from { opacity: 0; } to { opacity: 1; } }

#nl-modal-box {
    background: linear-gradient(180deg,#1b1830 0%,#161422 100%);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 0;
    width: 100%; max-width: 460px;
    position: relative;
    box-shadow: 0 24px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(118,75,162,0.15);
    animation: nl-modal-pop 0.24s cubic-bezier(.16,.84,.44,1);
    overflow: hidden;
    max-height: 92vh; overflow-y: auto;
}
@keyframes nl-modal-pop {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Cabeçalho com faixa em gradiente */
#nl-modal-box .nl-modal-head {
    background: linear-gradient(135deg,rgba(102,126,234,0.18),rgba(118,75,162,0.18));
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 22px 26px 18px;
    display: flex; align-items: center; gap: 14px;
}
#nl-modal-box .nl-modal-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,#667eea,#764ba2);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(118,75,162,0.4);
}
#nl-modal-box .nl-modal-head h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 700; }
#nl-modal-box .nl-modal-head p  { margin: 3px 0 0; color: #a89cc7; font-size: 12.5px; line-height: 1.4; }

#nl-modal-box .nl-modal-body { padding: 22px 26px 26px; }

/* Botão fechar */
#nl-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(255,255,255,0.06); border: none;
    color: #cfc7e3; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s; z-index: 2;
}
#nl-modal-close:hover { background: rgba(239,68,68,0.85); color: #fff; }

/* Campos de formulário dentro do modal */
#nl-modal-overlay .nl-field { display: flex; flex-direction: column; gap: 6px; }
#nl-modal-overlay .nl-label {
    font-size: 12px; font-weight: 600; color: #b9b0d4;
    text-transform: uppercase; letter-spacing: 0.03em;
}
#nl-modal-overlay .nl-input {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 12px 14px;
    color: #f0eefb; font-size: 14px; font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    outline: none;
}
#nl-modal-overlay .nl-input::placeholder { color: #7d7595; }
#nl-modal-overlay .nl-input:focus {
    border-color: #8a6fd0;
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(118,75,162,0.22);
}
#nl-modal-overlay select.nl-input { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a89cc7' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

/* Botões dentro do modal (o overlay fica fora do #nl-dashboard-overlay) */
#nl-modal-overlay .nl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 12px 18px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
    cursor: pointer; transition: all 0.18s; border: none; font-family: inherit;
    line-height: 1.3; outline: none;
}
#nl-modal-overlay .nl-btn-primary { background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; }
#nl-modal-overlay .nl-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(118,75,162,0.4); }
#nl-modal-overlay .nl-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
#nl-modal-overlay .nl-btn-outline {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.18); color: #e0dcef;
}
#nl-modal-overlay .nl-btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
#nl-modal-overlay .nl-btn-block { width: 100%; }

/* Seletor de membros com busca (Atribuir/Reatribuir licença) */
#nl-modal-overlay .nl-picker-list {
    max-height: 260px; overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    background: rgba(255,255,255,0.03);
    display: flex; flex-direction: column; gap: 2px; padding: 4px;
}
#nl-modal-overlay .nl-picker-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px; cursor: pointer;
    transition: background 0.14s;
}
#nl-modal-overlay .nl-picker-item:hover { background: rgba(255,255,255,0.06); }
#nl-modal-overlay .nl-picker-item.selected { background: rgba(118,75,162,0.28); }
#nl-modal-overlay .nl-picker-av {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
    background: linear-gradient(135deg,#667eea,#764ba2);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700;
}
#nl-modal-overlay .nl-picker-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
#nl-modal-overlay .nl-picker-name { font-size: 14px; color: #f0eefb; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nl-modal-overlay .nl-picker-email { font-size: 12px; color: #8a82a3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nl-modal-overlay .nl-picker-check {
    margin-left: auto; color: #a78bfa; font-weight: 700; opacity: 0;
    transition: opacity 0.14s;
}
#nl-modal-overlay .nl-picker-item.selected .nl-picker-check { opacity: 1; }
#nl-modal-overlay .nl-picker-empty { padding: 18px; text-align: center; color: #8a82a3; font-size: 13px; }

/* Dica/nota informativa */
#nl-modal-overlay .nl-modal-note {
    background: rgba(102,126,234,0.09);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 9px; padding: 10px 12px;
    font-size: 12px; color: #b3aad0; line-height: 1.5;
    display: flex; gap: 8px; align-items: flex-start;
}
