/* ═══════════════════════════════════════════════════════
   Neptune Nav — UI 2.0 — Desktop 1920x1080 → 4K@200%
   ═══════════════════════════════════════════════════════ */

/* ── Custom properties ─────────────────────────────────── */
:root {
    --bg:           #050d1a;
    --bg2:          #08111f;
    --bg3:          #0d1f3c;
    --surface:      rgba(0, 212, 255, 0.025);
    --surface2:     rgba(0, 212, 255, 0.06);
    --surface3:     rgba(0, 212, 255, 0.10);
    --border:       rgba(0, 212, 255, 0.12);
    --border2:      rgba(0, 212, 255, 0.22);
    --border3:      rgba(0, 212, 255, 0.40);
    --accent:       #00d4ff;
    --accent-dim:   rgba(0, 212, 255, 0.55);
    --accent-glow:  rgba(0, 212, 255, 0.18);
    --green:        #00ff88;
    --green-dim:    rgba(0, 255, 136, 0.55);
    --green-glow:   rgba(0, 255, 136, 0.15);
    --danger:       #ff4466;
    --danger-dim:   rgba(255, 68, 102, 0.55);
    --warn:         #ffaa00;
    --purple:       #a080ff;
    --text:         #c4e4f0;
    --text2:        #7aaabb;
    --muted:        #3a5868;
    --radius:       6px;
    --radius-lg:    10px;
    --topbar-h:     52px;
    --left-w:       280px;
    --right-w:      360px;
    --trans:        0.16s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   APP SHELL
   ══════════════════════════════════════════════════════════ */

.nn-shell {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ── Topbar ────────────────────────────────────────────── */
.nn-topbar {
    height: var(--topbar-h);
    min-height: var(--topbar-h);
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 0.75rem;
    z-index: 10;
    flex-shrink: 0;
}

.nn-logo {
    color: var(--accent);
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.nn-logo:hover { color: var(--accent); opacity: 0.85; }
.nn-logo-hex { font-size: 1.2rem; }

.nn-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-family: monospace;
}
.nn-breadcrumb-sep  { color: var(--muted); }
.nn-breadcrumb-name { color: var(--text2); letter-spacing: 0.04em; }

.nn-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.nn-user-tag {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* ── Workspace 3 columns ───────────────────────────────── */
.nn-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: var(--left-w) 1fr var(--right-w);
    min-height: 0;
    overflow: hidden;
}

/* ── Left panel ────────────────────────────────────────── */
.nn-left {
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* ── Center (radar zone) ───────────────────────────────── */
.nn-center {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    gap: 1.25rem;
    padding: 1.5rem;
}

/* Grid dot pattern */
.nn-center::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
}

/* ── Right panel ───────────────────────────────────────── */
.nn-right {
    background: var(--bg2);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* ══════════════════════════════════════════════════════════
   SECTIONS & SCROLL
   ══════════════════════════════════════════════════════════ */

.nn-section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.875rem 1rem 0.625rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.nn-section-head .nn-count {
    margin-left: auto;
    font-size: 0.6rem;
    background: var(--surface2);
    color: var(--accent-dim);
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: monospace;
}

.nn-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.625rem;
    min-height: 0;
}

.nn-scroll::-webkit-scrollbar { width: 3px; }
.nn-scroll::-webkit-scrollbar-track { background: transparent; }
.nn-scroll::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 2px;
}
.nn-scroll::-webkit-scrollbar-thumb:hover { background: var(--border3); }

/* ══════════════════════════════════════════════════════════
   RADAR
   ══════════════════════════════════════════════════════════ */

.nn-radar-wrap {
    width: min(
        calc(100vw - var(--left-w) - var(--right-w) - 5rem),
        calc(100vh - var(--topbar-h) - 6rem)
    );
    max-width: 880px;
    aspect-ratio: 1;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.nn-radar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.nn-radar-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    border: 1px solid var(--border2);
    box-shadow:
        0 0 0 4px rgba(0, 212, 255, 0.03),
        0 0 40px rgba(0, 212, 255, 0.10),
        0 0 80px rgba(0, 212, 255, 0.05);
}

.nn-cardinal {
    position: absolute;
    font-family: monospace;
    font-weight: bold;
    font-size: clamp(11px, 1.4vw, 16px);
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.7);
    pointer-events: none;
    line-height: 1;
}
.nn-cardinal-n { top: 2px;    left: 50%; transform: translateX(-50%); }
.nn-cardinal-s { bottom: 2px; left: 50%; transform: translateX(-50%); }
.nn-cardinal-e { right: 2px;  top: 50%;  transform: translateY(-50%); }
.nn-cardinal-o { left: 2px;   top: 50%;  transform: translateY(-50%); }

/* Range control */
.nn-range-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 1.25rem;
    flex-shrink: 0;
}

.nn-range-label {
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.nn-range-val {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent);
    min-width: 64px;
    text-align: right;
}

input[type=range].nn-range {
    -webkit-appearance: none;
    width: 220px;
    height: 2px;
    background: var(--border2);
    border-radius: 1px;
    outline: none;
    cursor: pointer;
}
input[type=range].nn-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    cursor: pointer;
    transition: transform var(--trans);
}
input[type=range].nn-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ══════════════════════════════════════════════════════════
   TABS (right panel)
   ══════════════════════════════════════════════════════════ */

.nn-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.nn-tab {
    flex: 1;
    padding: 0.7rem 0.5rem;
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all var(--trans);
    text-align: center;
}
.nn-tab:hover { color: var(--text2); background: var(--surface); }
.nn-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(0, 212, 255, 0.04);
}

/* ══════════════════════════════════════════════════════════
   MAP SELECTOR
   ══════════════════════════════════════════════════════════ */

.nn-map-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.625rem;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text2);
    font-size: 0.82rem;
    width: 100%;
    text-align: left;
    transition: all var(--trans);
    margin-bottom: 0.2rem;
}
.nn-map-item:hover {
    background: var(--surface2);
    border-color: var(--border);
    color: var(--text);
}
.nn-map-item.active {
    background: rgba(0, 212, 255, 0.07);
    border-color: rgba(0, 212, 255, 0.28);
    color: var(--accent);
}
.nn-map-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--muted);
    flex-shrink: 0;
    transition: background var(--trans), box-shadow var(--trans);
}
.nn-map-item.active .nn-map-dot {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-dim);
}

.nn-new-map {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.375rem;
}

/* ══════════════════════════════════════════════════════════
   POI LIST ITEMS
   ══════════════════════════════════════════════════════════ */

.nn-poi-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.475rem 0.625rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left-width: 2px;
    margin-bottom: 0.3rem;
    transition: background var(--trans);
    position: relative;
}
.nn-poi-item:hover { background: var(--surface2); }

/* Left border by category */
.nn-poi-item[data-cat="ressource"] { border-left-color: #00ff88; }
.nn-poi-item[data-cat="danger"]    { border-left-color: #ff4466; }
.nn-poi-item[data-cat="base"]      { border-left-color: #00d4ff; }
.nn-poi-item[data-cat="biome"]     { border-left-color: #a080ff; }
.nn-poi-item[data-cat="epave"]     { border-left-color: #ffaa00; }
.nn-poi-item[data-cat="autre"]     { border-left-color: #3a5868; }

.nn-poi-body { flex: 1; min-width: 0; }
.nn-poi-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nn-poi-meta {
    font-family: monospace;
    font-size: 0.68rem;
    color: var(--text2);
    margin-top: 0.08rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.nn-poi-meta .sep { color: var(--muted); }

.nn-poi-actions {
    display: flex;
    gap: 0.2rem;
    opacity: 0;
    transition: opacity var(--trans);
}
.nn-poi-item:hover .nn-poi-actions { opacity: 1; }

/* Inline edit form */
.nn-edit-form {
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.nn-edit-form-row { display: grid; gap: 0.4rem; }
.nn-edit-form-2 { grid-template-columns: 1fr 1fr; }
.nn-edit-form-3 { grid-template-columns: 1fr 1fr 1fr; }
.nn-edit-actions { display: flex; gap: 0.375rem; justify-content: flex-end; margin-top: 0.25rem; }

/* ══════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════ */

.nn-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.875rem;
}

.nn-field { display: flex; flex-direction: column; gap: 0.3rem; }

.nn-label {
    font-family: monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.nn-input, .nn-select, .nn-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.45rem 0.7rem;
    width: 100%;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.nn-input:focus, .nn-select:focus, .nn-textarea:focus {
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.07);
    background: rgba(0, 0, 0, 0.45);
}
.nn-input::placeholder, .nn-textarea::placeholder { color: var(--muted); }
.nn-select option { background: #0d1f3c; color: var(--text); }
.nn-textarea { resize: vertical; min-height: 60px; }

.nn-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.nn-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */

.nn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.475rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border2);
    background: var(--surface2);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trans);
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.nn-btn:hover {
    background: var(--surface3);
    border-color: var(--border3);
    box-shadow: 0 0 14px var(--accent-glow);
    color: var(--accent);
    text-decoration: none;
}
.nn-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.nn-btn-sm  { padding: 0.3rem 0.7rem; font-size: 0.75rem; }
.nn-btn-xs  { padding: 0.15rem 0.45rem; font-size: 0.7rem; }
.nn-btn-full { width: 100%; }

.nn-btn-primary {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.5);
}
.nn-btn-primary:hover {
    background: rgba(0, 212, 255, 0.22);
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.22);
}

.nn-btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text2);
}
.nn-btn-ghost:hover {
    background: var(--surface2);
    border-color: var(--border2);
    color: var(--text);
    box-shadow: none;
}

.nn-btn-danger {
    background: rgba(255, 68, 102, 0.06);
    border-color: rgba(255, 68, 102, 0.4);
    color: var(--danger);
}
.nn-btn-danger:hover {
    background: rgba(255, 68, 102, 0.15);
    border-color: var(--danger);
    box-shadow: 0 0 12px rgba(255, 68, 102, 0.15);
}

.nn-btn-secondary {
    background: rgba(100, 160, 200, 0.08);
    border-color: rgba(100, 160, 200, 0.35);
    color: var(--text2);
    font-size: 0.8rem;
}
.nn-btn-secondary:hover {
    background: rgba(100, 160, 200, 0.16);
    border-color: rgba(100, 160, 200, 0.7);
    color: var(--text);
    box-shadow: none;
}

.nn-btn-calc-toggle { width: 100%; margin-top: 0.25rem; }

.nn-calculator { margin-top: 0.5rem; }

.nn-calc-panel {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 30, 50, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nn-calc-hint {
    font-size: 0.75rem;
    color: var(--text3);
    margin: 0;
    line-height: 1.5;
}

.nn-btn-success {
    background: rgba(0, 255, 136, 0.06);
    border-color: rgba(0, 255, 136, 0.4);
    color: var(--green);
}
.nn-btn-success:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--green);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

/* ══════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════ */

.nn-alert {
    border-radius: var(--radius);
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.nn-alert.error   { background: rgba(255,68,102,0.09); border: 1px solid rgba(255,68,102,0.28); color: #ff8898; }
.nn-alert.success { background: rgba(0,255,136,0.07);  border: 1px solid rgba(0,255,136,0.22);  color: #00ff88; }
.nn-alert.info    { background: rgba(0,212,255,0.07);  border: 1px solid rgba(0,212,255,0.2);   color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════ */

.nn-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.nn-badge.ressource { background: rgba(0,255,136,0.12); color:#00ff88; border:1px solid rgba(0,255,136,0.22); }
.nn-badge.danger    { background: rgba(255,68,102,0.12); color:#ff4466; border:1px solid rgba(255,68,102,0.22); }
.nn-badge.base      { background: rgba(0,212,255,0.12); color:#00d4ff; border:1px solid rgba(0,212,255,0.22); }
.nn-badge.biome     { background: rgba(160,128,255,0.12); color:#a080ff; border:1px solid rgba(160,128,255,0.22); }
.nn-badge.epave     { background: rgba(255,170,0,0.12); color:#ffaa00; border:1px solid rgba(255,170,0,0.22); }
.nn-badge.autre     { background: rgba(58,88,104,0.2); color:#7aaabb; border:1px solid rgba(58,88,104,0.35); }
.nn-badge.owner     { background: rgba(0,212,255,0.1); color: var(--accent); border:1px solid var(--border2); }
.nn-badge.member    { background: rgba(255,170,0,0.1); color: var(--warn); border:1px solid rgba(255,170,0,0.25); }
.nn-badge.pending   { background: rgba(255,170,0,0.1); color: var(--warn); border:1px solid rgba(255,170,0,0.25); }
.nn-badge.approved  { background: rgba(0,255,136,0.1); color: var(--green); border:1px solid rgba(0,255,136,0.25); }

/* Old badge aliases kept for Admin */
.poi-category          { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 3px; font-family: monospace; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.poi-category.ressource { background: rgba(0,255,136,0.12); color:#00ff88; border:1px solid rgba(0,255,136,0.22); }
.poi-category.danger    { background: rgba(255,68,102,0.12); color:#ff4466; border:1px solid rgba(255,68,102,0.22); }
.poi-category.base      { background: rgba(0,212,255,0.12); color:#00d4ff; border:1px solid rgba(0,212,255,0.22); }

/* ══════════════════════════════════════════════════════════
   DIVIDERS & MISC
   ══════════════════════════════════════════════════════════ */

.nn-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

.nn-form-title {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

/* Empty state (center panel) */
.nn-empty {
    text-align: center;
    z-index: 1;
}
.nn-empty-hex  { font-family: monospace; font-size: 3rem; color: var(--accent-dim); margin-bottom: 0.5rem; }
.nn-empty-text { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ══════════════════════════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════════════════════════ */

.nn-auth-shell {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 70% at 25% 50%, rgba(0, 50, 100, 0.35) 0%, transparent 100%),
        radial-gradient(ellipse 60% 70% at 75% 50%, rgba(0, 80, 80, 0.2) 0%, transparent 100%),
        var(--bg);
    position: relative;
}

/* Scan-line texture */
.nn-auth-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.04) 3px,
        rgba(0, 0, 0, 0.04) 4px
    );
    pointer-events: none;
}

/* Corner decorations */
.nn-auth-shell::after {
    content: '';
    position: absolute;
    inset: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.05);
    border-radius: 4px;
    pointer-events: none;
}

.nn-auth-card {
    position: relative;
    z-index: 1;
    width: 420px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 2.75rem 3rem;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.04),
        0 0 60px rgba(0, 212, 255, 0.08),
        0 32px 80px rgba(0, 0, 0, 0.55);
}

.nn-auth-logo {
    text-align: center;
    font-family: monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.14em;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}
.nn-auth-sub {
    text-align: center;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    margin-bottom: 2.25rem;
}

.nn-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--muted);
}
.nn-auth-footer a { color: var(--accent); }
.nn-auth-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   ADMIN PAGE
   ══════════════════════════════════════════════════════════ */

.nn-admin-shell {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
}

.nn-admin-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 3rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}
.nn-admin-body::-webkit-scrollbar { width: 4px; }
.nn-admin-body::-webkit-scrollbar-track { background: transparent; }
.nn-admin-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.nn-admin-title {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.nn-user-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.4rem;
    transition: background var(--trans);
}
.nn-user-row:hover { background: var(--surface2); }

.nn-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface3);
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.nn-user-info { flex: 1; min-width: 0; }
.nn-user-name  { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.nn-user-email { font-family: monospace; font-size: 0.75rem; color: var(--text2); margin-top: 0.1rem; }
.nn-user-meta  { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.nn-user-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   LOADING (index.html)
   ══════════════════════════════════════════════════════════ */

.neptune-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--bg);
}

.radar-sweep {
    transform-origin: 50px 50px;
    animation: radarSweep 2s linear infinite;
}
@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════ */

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1       { gap: 0.375rem; }
.gap-2       { gap: 0.625rem; }
.mt-1        { margin-top: 0.375rem; }
.mt-2        { margin-top: 0.625rem; }
.flex-1      { flex: 1; }
.text-mono   { font-family: monospace; }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-green  { color: var(--green); }
.text-danger { color: var(--danger); }
.text-sm     { font-size: 0.8rem; }
.text-xs     { font-size: 0.72rem; }
