/* Nemesis Cyber — tema hacker / terminal de última geração */

:root {
    /* Cores extraídas da logo — azul + ouro (sem filtro na imagem) */
    --nc-cyan: #2563eb;
    --nc-cyan-dim: rgba(37, 99, 235, 0.14);
    --nc-cyan-glow: rgba(37, 99, 235, 0.35);
    --nc-mono: Consolas, "Courier New", "Lucida Console", monospace;
    --nc-hud-border: rgba(212, 175, 55, 0.28);
    --nc-hud-gold: rgba(212, 175, 55, 0.35);
}

/* ——— Scrollbar tema azul ——— */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.7) rgba(4, 8, 12, 0.9);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.7) rgba(4, 8, 12, 0.9);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(4, 8, 12, 0.92);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.85), rgba(37, 99, 235, 0.65));
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.95), rgba(37, 99, 235, 0.85));
}

*::-webkit-scrollbar-corner {
    background: rgba(4, 8, 12, 0.92);
}

/* ——— Fundo cyber ——— */
.nc-cyber-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background: #010204;
}

.nc-cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 100%);
}

.nc-cyber-scanlines {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.5) 2px,
        rgba(0, 0, 0, 0.5) 4px
    );
}

.nc-cyber-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.nc-cyber-glow-a {
    width: 500px;
    height: 500px;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(37, 99, 235, 0.1);
}
.nc-cyber-glow-b {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -80px;
    background: rgba(212, 175, 55, 0.1);
}

.nc-bg,
.nc-bg-grid,
.nc-auth-scene,
.nc-orb { display: none !important; }

body {
    background: #010204;
}

/* ——— Auth terminal card ——— */
.nc-auth-body {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    touch-action: manipulation;
}

.nc-auth-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding:
        max(12px, env(safe-area-inset-top, 0px))
        max(16px, env(safe-area-inset-right, 0px))
        max(12px, env(safe-area-inset-bottom, 0px))
        max(16px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.nc-cyber-terminal {
    position: relative;
    width: 100%;
    max-width: min(440px, calc(100vw - 32px));
    margin: 0 auto;
    box-sizing: border-box;
    background: rgba(4, 8, 12, 0.92);
    border: 1px solid var(--nc-hud-border);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(37, 99, 235, 0.06),
        0 30px 80px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(37, 99, 235, 0.08);
}

.nc-cyber-terminal::before,
.nc-cyber-terminal::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--nc-cyan);
    opacity: 0.7;
    pointer-events: none;
}
.nc-cyber-terminal::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}
.nc-cyber-terminal::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.nc-cyber-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.06), transparent);
    font-family: var(--nc-mono);
    font-size: 11px;
    color: var(--nc-cyan);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nc-cyber-titlebar-dots {
    display: flex;
    gap: 5px;
    margin-right: 6px;
}
.nc-cyber-titlebar-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 6px var(--nc-cyan-glow);
}
.nc-cyber-titlebar-dots span:nth-child(2) { background: rgba(212, 175, 55, 0.5); box-shadow: 0 0 6px var(--nc-gold-glow); }
.nc-cyber-titlebar-dots span:nth-child(3) { background: rgba(239, 68, 68, 0.45); box-shadow: none; }

.nc-cyber-titlebar-path {
    flex: 1;
    color: rgba(37, 99, 235, 0.85);
}
.nc-cyber-titlebar-status {
    color: var(--nc-gold-bright);
    font-weight: 700;
    animation: nc-pulse 2s ease-in-out infinite;
}
@keyframes nc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.nc-cyber-body {
    padding: 24px 22px 22px;
}

.nc-auth-card,
.nc-cyber-terminal .nc-auth-card {
    all: unset;
    display: block;
}

.nc-auth-logo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.nc-auth-logo-wrap::before {
    content: "";
    position: absolute;
    width: min(220px, 58vw);
    height: min(220px, 58vw);
    border-radius: 50%;
    border: 1px dashed rgba(37, 99, 235, 0.2);
    animation: nc-spin-slow 30s linear infinite;
}
@keyframes nc-spin-slow {
    to { transform: rotate(360deg); }
}

.nc-auth-logo {
    width: min(200px, 52vw);
    max-width: 200px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
}

.nc-auth-login-success {
    margin: 0 0 8px;
    text-align: center;
    font-family: var(--nc-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--nc-gold-bright);
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
    animation: nc-auth-success-in 0.45s ease-out;
}

@keyframes nc-auth-success-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nc-auth-header-compact {
    margin-bottom: 22px;
}
.nc-auth-header-compact h1 {
    margin-bottom: 0;
}
.nc-auth-header {
    margin-bottom: 24px;
    text-align: center;
}
.nc-auth-header h1 {
    font-family: var(--nc-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff 0%, var(--nc-cyan) 45%, var(--nc-gold-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nc-auth-header p {
    font-family: var(--nc-mono);
    font-size: 12px;
    color: rgba(37, 99, 235, 0.55);
    margin-top: 8px;
}
.nc-auth-header p::before {
    content: "> ";
    color: var(--nc-gold-bright);
}

.nc-field label {
    font-family: var(--nc-mono);
    font-size: 10px;
    color: var(--nc-cyan);
    letter-spacing: 0.14em;
}

.nc-input {
    height: 46px;
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: rgba(0, 0, 0, 0.55);
    font-family: var(--nc-mono);
    font-size: 16px;
    box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.03);
}
.nc-input:focus {
    border-color: var(--nc-cyan);
    box-shadow: 0 0 0 2px var(--nc-cyan-dim), 0 0 20px rgba(37, 99, 235, 0.12), inset 0 0 20px rgba(37, 99, 235, 0.05);
}
.nc-input-wrap-left .nc-icon-left {
    color: var(--nc-cyan);
    opacity: 0.7;
}

.nc-btn-gold {
    border-radius: 4px;
    font-family: var(--nc-mono);
    letter-spacing: 0.16em;
    background: linear-gradient(135deg, #ffe066 0%, var(--nc-gold) 50%, #b8860b 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.nc-btn-gold:hover {
    box-shadow: 0 0 32px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nc-alert {
    font-family: var(--nc-mono);
    font-size: 12px;
    border-radius: 4px;
}
.nc-alert-error {
    background: rgba(40, 0, 0, 0.6);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.08);
}

.nc-auth-secondary {
    font-family: var(--nc-mono);
    font-size: 12px;
}
.nc-auth-secondary a {
    color: var(--nc-cyan);
    text-shadow: 0 0 12px var(--nc-cyan-glow);
}
.nc-auth-secondary a:hover {
    color: var(--nc-gold-bright);
}

.nc-footer {
    font-family: var(--nc-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.45);
}
.nc-footer .nc-footer-brand {
    color: var(--nc-gold-bright);
    font-weight: 700;
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

.nc-turnstile-wrap {
    width: 100%;
    padding: 8px;
    border: 1px dashed rgba(37, 99, 235, 0.15);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    overflow: visible;
    box-sizing: border-box;
}

.nc-turnstile-wrap .nc-turnstile-target,
.nc-turnstile-wrap #nc-turnstile-target {
    width: 100%;
    min-height: 65px;
}

@media (max-width: 640px) {
    .nc-turnstile-wrap {
        padding: 6px 4px;
    }
    .nc-turnstile-wrap .nc-turnstile-target,
    .nc-turnstile-wrap #nc-turnstile-target {
        min-height: 70px;
    }
}

/* ——— Dashboard HUD ——— */
.nc-app {
    position: relative;
}

.nc-header {
    background: rgba(2, 4, 8, 0.92);
    border-bottom: 1px solid var(--nc-hud-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(37, 99, 235, 0.06);
}

.nc-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex-shrink: 0;
}

.nc-header-cyber .nc-logo.nc-logo-dash {
    align-items: center;
    gap: 18px;
}

/* Imagem da logo no painel — classe dedicada (não herda .nc-logo img 52px) */
.nc-header-cyber .nc-logo-img {
    display: block;
    height: 168px;
    width: 168px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}

.nc-logo img:not(.nc-logo-img) {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nc-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nc-header-cyber .nc-logo-text strong {
    font-family: var(--nc-mono);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.1;
}

.nc-logo-text strong {
    font-family: var(--nc-mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}
.nc-logo-text-live strong {
    animation: nc-logo-blink 2.4s ease-in-out infinite;
}
@keyframes nc-logo-blink {
    0%, 100% {
        opacity: 1;
        color: #fff;
        text-shadow: none;
    }
    50% {
        opacity: 0.65;
        color: var(--nc-cyan);
        text-shadow: 0 0 12px var(--nc-cyan-glow);
    }
}
.nc-logo-text span {
    font-family: var(--nc-mono);
    font-size: 9px;
    color: var(--nc-cyan);
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.nc-user-pill {
    display: flex;
    align-items: center;
    border-radius: 4px;
    border: 1px solid var(--nc-hud-border);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 0 24px rgba(37, 99, 235, 0.04);
    padding: 10px 18px;
    gap: 22px;
}

.nc-user-stat-v {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    min-width: 76px;
}

.nc-user-stat-h {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nc-user-stat-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.06);
    color: var(--nc-cyan);
}
.nc-user-stat-ico svg {
    width: 16px;
    height: 16px;
}

.nc-user-stat-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nc-user-stat-label {
    font-family: var(--nc-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}
.nc-user-stat-value {
    font-family: var(--nc-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}
.nc-user-stat-value.is-gold {
    color: var(--nc-gold-bright);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.nc-user-stat-value.is-ok {
    color: var(--nc-gold-bright);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}
.nc-user-stat-value.is-bad {
    color: var(--nc-cyan);
    text-shadow: 0 0 10px var(--nc-cyan-glow);
}

.nc-btn {
    border-radius: 4px;
    font-family: var(--nc-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
}
.nc-btn-dark {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--nc-cyan);
}
.nc-btn-dark:hover {
    border-color: var(--nc-cyan);
    color: #fff;
    box-shadow: 0 0 16px var(--nc-cyan-dim);
}

.nc-dash-hero {
    text-align: center;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    font-family: var(--nc-mono);
    font-size: 11px;
    color: rgba(37, 99, 235, 0.6);
    letter-spacing: 0.08em;
}
.nc-dash-hero strong {
    color: var(--nc-gold-bright);
}

.nc-stats {
    gap: 14px;
}
.nc-stat-card {
    border-radius: 4px;
    border: 1px solid var(--nc-hud-border);
    background: rgba(4, 8, 12, 0.85);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}
.nc-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nc-cyan), var(--nc-gold));
    opacity: 0.6;
}
.nc-stat-label {
    font-family: var(--nc-mono);
    color: rgba(37, 99, 235, 0.55);
}
.nc-stat-num {
    font-family: var(--nc-mono);
    font-size: 26px;
    color: #fff;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}
.nc-stat-icon {
    border-radius: 4px;
    background: var(--nc-cyan-dim);
    border-color: var(--nc-hud-border);
    color: var(--nc-cyan);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.08);
}

.nc-panel {
    border-radius: 4px;
    border: 1px solid var(--nc-hud-border);
    background: rgba(4, 8, 12, 0.88);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(37, 99, 235, 0.05);
}
.nc-panel-head {
    font-family: var(--nc-mono);
    background: rgba(37, 99, 235, 0.04);
    border-bottom-color: rgba(37, 99, 235, 0.12);
}
.nc-panel-title {
    font-family: var(--nc-mono);
    color: var(--nc-cyan);
    letter-spacing: 0.12em;
}
.nc-panel-title::before {
    content: "// ";
    color: var(--nc-gold-bright);
    opacity: 0.7;
}

.nc-dash-landing {
    gap: 14px;
    padding: 18px;
}
.nc-dash-tile {
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: rgba(0, 0, 0, 0.4);
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}
.nc-dash-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), transparent 60%);
    pointer-events: none;
}
.nc-dash-tile:hover {
    border-color: var(--nc-cyan);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.12), 0 12px 40px rgba(0, 0, 0, 0.4);
}
.nc-dash-tile-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--nc-hud-border);
    background: var(--nc-cyan-dim);
    color: var(--nc-cyan);
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.1);
}
.nc-dash-tile-icon svg {
    width: 32px;
    height: 32px;
}
.nc-dash-tile-icon.is-gold {
    background: var(--nc-gold-dim);
    border-color: var(--nc-hud-gold);
    color: var(--nc-gold-bright);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.12);
}
.nc-dash-tile-title {
    font-family: var(--nc-mono);
    font-size: 14px;
    letter-spacing: 0.14em;
    color: var(--nc-cyan);
}
.nc-dash-tile-sub {
    font-family: var(--nc-mono);
    font-size: 10px;
    color: rgba(37, 99, 235, 0.45);
}
.nc-dash-tile img { display: none; }

.nc-item {
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    background: rgba(0, 0, 0, 0.35);
}
.nc-item:hover {
    border-color: var(--nc-cyan);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.08);
}
.nc-item-icon {
    border-radius: 4px;
    background: var(--nc-cyan-dim);
    border-color: var(--nc-hud-border);
    color: var(--nc-cyan);
}
.nc-item-name {
    font-family: var(--nc-mono);
    font-size: 12px;
}

.nc-rank-pos {
    border-radius: 4px;
    font-family: var(--nc-mono);
    background: var(--nc-cyan-dim);
    color: var(--nc-cyan);
    border: 1px solid var(--nc-hud-border);
}
.nc-rank-name {
    font-family: var(--nc-mono);
    font-size: 12px;
}
.nc-rank-count {
    font-family: var(--nc-mono);
    color: var(--nc-cyan);
}

.nc-mobile-stats {
    display: none !important;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 4px;
    border: 1px solid var(--nc-hud-border);
    background: rgba(4, 8, 12, 0.9);
    padding: 12px 14px;
    gap: 12px;
}
.nc-mobile-stats .nc-user-stat-v {
    min-width: 100px;
    flex: 1;
}

@media (max-width: 1024px) {
    .nc-user-pill {
        display: none !important;
    }
    .nc-mobile-stats {
        display: flex !important;
    }
}

.nc-back-btn {
    border-radius: 4px;
    font-family: var(--nc-mono);
    border-color: rgba(37, 99, 235, 0.2);
}
.nc-back-btn:hover {
    color: var(--nc-cyan);
    border-color: var(--nc-cyan);
}

.nc-badge-on {
    font-family: var(--nc-mono);
    background: rgba(37, 99, 235, 0.1);
    color: var(--nc-cyan);
    border-color: rgba(37, 99, 235, 0.3);
}

@media (max-width: 640px) {
    .nc-cyber-body { padding: 20px 16px 18px; }
    .nc-header-cyber .nc-logo-img {
        height: 120px;
        width: 120px;
    }
    .nc-auth-logo {
        width: min(176px, 48vw);
        max-width: 176px;
    }
    .nc-auth-logo-wrap::before {
        width: min(196px, 54vw);
        height: min(196px, 54vw);
    }
    .nc-cyber-terminal {
        max-width: calc(100vw - 24px);
    }
    .nc-auth-shell {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ——— Dashboard premium (nível login) ——— */
.nc-app-dash .nc-main-dash {
    padding: 20px 0 48px;
}

.nc-header-cyber {
    padding: 0;
    border-bottom: 1px solid var(--nc-hud-border);
    background: rgba(2, 4, 8, 0.94);
}

.nc-header-topbar {
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent);
}

.nc-header-topbar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    font-family: var(--nc-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nc-header-topbar-title {
    flex: 1;
    font-weight: 700;
    color: rgba(37, 99, 235, 0.85);
}

.nc-header-topbar-title-live {
    animation: nc-topbar-title-blink 2.4s ease-in-out infinite;
}

@keyframes nc-topbar-title-blink {
    0%, 100% {
        opacity: 1;
        color: rgba(37, 99, 235, 0.9);
        text-shadow: none;
    }
    50% {
        opacity: 0.72;
        color: var(--nc-cyan);
        text-shadow: 0 0 12px var(--nc-cyan-glow);
    }
}

.nc-header-topbar-live {
    color: var(--nc-gold-bright);
    font-weight: 700;
    animation: nc-pulse 2s ease-in-out infinite;
}

.nc-header-cyber .nc-header-inner {
    padding: 12px 20px;
    flex-wrap: nowrap;
    align-items: center;
}

.nc-header-cyber .nc-logo {
    flex: 0 0 auto;
}
.nc-header-cyber .nc-user-pill {
    flex: 0 1 auto;
}
.nc-header-cyber .nc-header-actions {
    flex: 0 0 auto;
}

.nc-cyber-panel {
    position: relative;
    background: rgba(4, 8, 12, 0.92);
    border: 1px solid var(--nc-hud-border);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 20px 50px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(37, 99, 235, 0.06);
}

.nc-cyber-panel::before,
.nc-cyber-panel::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--nc-cyan);
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
}
.nc-cyber-panel::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}
.nc-cyber-panel::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.nc-cyber-panel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(37, 99, 235, 0.05);
    font-family: var(--nc-mono);
}

.nc-cyber-panel-bar-sub {
    padding: 10px 16px;
}

.nc-cyber-panel-bar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}
.nc-cyber-panel-bar-title::before {
    content: "// ";
    color: var(--nc-gold-bright);
    opacity: 0.75;
}

.nc-cyber-panel-bar-meta {
    font-size: 10px;
    color: rgba(37, 99, 235, 0.55);
    letter-spacing: 0.06em;
}

.nc-dash-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.nc-dash-modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 18px;
}

.nc-metric-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(4, 8, 12, 0.9);
    border: 1px solid var(--nc-hud-border);
    box-shadow: inset 0 1px 0 rgba(37, 99, 235, 0.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.nc-metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nc-cyan), transparent 70%);
}

.nc-metric-card-link:hover,
.nc-metric-card:hover {
    border-color: rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(37, 99, 235, 0.1);
    color: inherit;
}

.nc-metric-card-accent::before {
    background: linear-gradient(90deg, var(--nc-gold-bright), transparent 70%);
}

.nc-metric-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.08);
    color: var(--nc-cyan);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}
.nc-metric-icon svg { width: 22px; height: 22px; }
.nc-metric-icon.is-gold {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
    color: var(--nc-gold-bright);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.12);
}

.nc-metric-label {
    display: block;
    font-family: var(--nc-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(37, 99, 235, 0.55);
    margin-bottom: 4px;
}

.nc-dash-metrics-3 .nc-metric-label {
    color: var(--nc-gold-bright);
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.22);
}

.nc-metric-value {
    display: block;
    font-family: var(--nc-mono);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 24px rgba(37, 99, 235, 0.2);
}

.nc-metric-sub {
    display: block;
    font-family: var(--nc-mono);
    font-size: 11px;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.75);
    letter-spacing: 0.04em;
    margin-top: 4px;
}

button.nc-metric-card-action {
    appearance: none;
    cursor: pointer;
    font: inherit;
    width: 100%;
    text-align: left;
}

.nc-metric-card-action:hover {
    border-color: rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(37, 99, 235, 0.1);
}

.nc-dash-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 18px;
    align-items: start;
}

.nc-dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nc-module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 18px;
}

.nc-module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 168px;
    padding: 18px 16px 14px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background:
        linear-gradient(160deg, rgba(37, 99, 235, 0.07) 0%, rgba(0, 0, 0, 0.45) 55%),
        rgba(0, 0, 0, 0.35);
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
    overflow: hidden;
}

.nc-module-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(37, 99, 235, 0.08));
    pointer-events: none;
}

.nc-module-card:hover {
    border-color: var(--nc-cyan);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(37, 99, 235, 0.12);
}

.nc-module-card.is-store:hover {
    border-color: var(--nc-gold-bright);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(212, 175, 55, 0.15);
}

.nc-module-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4px;
}

.nc-module-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.1);
    color: var(--nc-cyan);
}
.nc-module-icon svg { width: 26px; height: 26px; }
.nc-module-icon.is-gold {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.12);
    color: var(--nc-gold-bright);
}

.nc-module-arrow {
    font-family: var(--nc-mono);
    font-size: 18px;
    color: rgba(37, 99, 235, 0.5);
    line-height: 1;
}

.nc-module-title {
    font-family: var(--nc-mono);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.nc-module-desc {
    font-family: var(--nc-mono);
    font-size: 10px;
    color: rgba(148, 163, 184, 0.75);
    letter-spacing: 0.04em;
}

.nc-module-tag {
    margin-top: auto;
    padding-top: 10px;
    font-family: var(--nc-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(37, 99, 235, 0.6);
}

.nc-module-card.is-store .nc-module-tag {
    color: rgba(212, 175, 55, 0.65);
}

.nc-panel-body-tight {
    padding: 16px 18px 18px;
}

.nc-item-pro {
    padding: 14px 16px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(0, 0, 0, 0.4);
}

.nc-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nc-item-meta {
    font-family: var(--nc-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.5);
}

.nc-btn-sm {
    padding: 8px 14px;
    font-size: 10px;
    min-width: 72px;
    width: auto;
}

.nc-rank-list-pro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nc-rank-item-pro {
    padding: 12px 14px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0;
    border-bottom: none;
}

.nc-rank-list-pro .nc-rank-item-pro:last-child {
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.nc-rank-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nc-rank-meta {
    display: block;
    font-family: var(--nc-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(148, 163, 184, 0.45);
}

.nc-rank-pos-1 .nc-rank-pos {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--nc-gold-bright);
}

.nc-rank-pos-1 {
    border-color: rgba(212, 175, 55, 0.25) !important;
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.nc-rank-pos-2 .nc-rank-pos {
    background: rgba(192, 192, 192, 0.12);
    border-color: rgba(192, 192, 192, 0.45);
    color: #e2e8f0;
}

.nc-rank-pos-2 {
    border-color: rgba(192, 192, 192, 0.22) !important;
    box-shadow: inset 0 0 20px rgba(192, 192, 192, 0.06);
}

.nc-rank-pos-2 .nc-rank-count {
    color: #cbd5e1;
    text-shadow: 0 0 12px rgba(192, 192, 192, 0.25);
}

.nc-rank-pos-3 .nc-rank-pos {
    background: rgba(180, 83, 9, 0.14);
    border-color: rgba(217, 119, 6, 0.45);
    color: #f59e0b;
}

.nc-rank-pos-3 {
    border-color: rgba(180, 83, 9, 0.28) !important;
    box-shadow: inset 0 0 20px rgba(180, 83, 9, 0.06);
}

.nc-rank-pos-3 .nc-rank-count {
    color: #f59e0b;
    text-shadow: 0 0 12px rgba(217, 119, 6, 0.25);
}

.nc-empty-msg {
    margin: 0;
    font-family: var(--nc-mono);
    font-size: 12px;
    color: rgba(148, 163, 184, 0.6);
    text-align: center;
    padding: 24px 12px;
}

@media (max-width: 1100px) {
    .nc-dash-layout { grid-template-columns: 1fr; }
    .nc-dash-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nc-header-cyber .nc-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .nc-header-actions { justify-content: center; }
    .nc-header-cyber .nc-logo.nc-logo-dash {
        justify-content: center;
    }
    .nc-header-cyber .nc-logo-img {
        height: 132px;
        width: 132px;
    }
}

/* ——— Subpáginas (histórico, recarga, admin) ——— */
.nc-page-panel {
    margin-bottom: 24px;
}

.nc-page-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.nc-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}

.nc-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(0, 0, 0, 0.35);
}

.nc-history-card {
    display: block;
    font-family: var(--nc-mono);
    font-size: 12px;
    color: #fff;
    word-break: break-all;
    margin-bottom: 6px;
}

.nc-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--nc-mono);
    font-size: 10px;
    color: rgba(148, 163, 184, 0.65);
}

.nc-recarga-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.nc-recarga-panel {
    margin-top: 8px;
}

.nc-recarga-body {
    padding: 24px 22px 28px;
}

.nc-recarga-lead {
    margin: 0 0 18px;
    font-family: var(--nc-mono);
    font-size: 12px;
    color: rgba(148, 163, 184, 0.75);
    text-align: center;
}

.nc-input-key {
    text-align: center;
    font-family: var(--nc-mono);
    letter-spacing: 0.08em;
}

.nc-recarga-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(37, 99, 235, 0.12);
}

.nc-recarga-info-title {
    margin: 0 0 12px;
    font-family: var(--nc-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nc-gold-bright);
}

.nc-recarga-steps {
    margin: 0 0 16px;
    padding-left: 18px;
    font-family: var(--nc-mono);
    font-size: 11px;
    color: rgba(148, 163, 184, 0.75);
    line-height: 1.8;
}

.nc-recarga-tg {
    width: 100%;
    justify-content: center;
}

.nc-alert-success {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
    color: var(--nc-gold-bright);
}

.nc-admin-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 32px;
}

.nc-admin-panel {
    margin-bottom: 0;
}

.nc-admin-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.nc-admin-form-row .nc-input,
.nc-admin-form-row .nc-select {
    flex: 1;
    min-width: 140px;
}

.nc-field-inline {
    flex: 1;
    min-width: 180px;
}

.nc-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.nc-data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--nc-mono);
    font-size: 11px;
}

.nc-data-table th {
    padding: 10px 12px;
    text-align: left;
    background: rgba(37, 99, 235, 0.08);
    color: rgba(37, 99, 235, 0.85);
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
    white-space: nowrap;
}

.nc-data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    vertical-align: middle;
}

.nc-data-table tr:hover td {
    background: rgba(37, 99, 235, 0.04);
}

.nc-code {
    font-family: var(--nc-mono);
    font-size: 10px;
    color: var(--nc-gold-bright);
    word-break: break-all;
}

.nc-table-sub {
    display: block;
    font-size: 9px;
    color: rgba(148, 163, 184, 0.5);
}

.nc-inline-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.nc-data-table .nc-input-full {
    width: 100%;
    min-width: 120px;
}

.nc-data-table .nc-input-dir {
    width: 100%;
    min-width: 180px;
    font-family: var(--nc-mono);
    font-size: 11px;
}

.nc-admin-time-form {
    min-width: 0;
}

.nc-admin-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nc-admin-time-inputs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nc-admin-time-unit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nc-admin-time-unit-label {
    font-family: var(--nc-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    width: 10px;
    text-align: center;
    flex-shrink: 0;
}

.nc-input-time {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    padding: 4px 4px;
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
}

.nc-admin-time-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nc-data-table td:has(.nc-admin-time-form) {
    min-width: 320px;
    vertical-align: middle;
}

.nc-btn-danger {
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

.nc-btn-danger:hover {
    border-color: #ef4444 !important;
    color: #fff !important;
}

.nc-admin-keys-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.nc-admin-keys-toolbar .nc-admin-form-row {
    margin-bottom: 0;
    flex: 1;
}

.nc-admin-keys-toolbar form:last-child {
    flex-shrink: 0;
}

.nc-btn-xs {
    padding: 6px 8px;
    font-size: 10px;
    min-width: auto;
    width: auto;
}

.nc-input-sm {
    min-width: 120px;
    padding: 6px 10px;
    font-size: 11px;
}

.nc-select {
    appearance: none;
    cursor: pointer;
}

.nc-admin-keys-box {
    margin-top: 12px;
}

.nc-admin-keys-text {
    width: 100%;
    min-height: 100px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(0, 0, 0, 0.4);
    color: var(--nc-gold-bright);
    font-family: var(--nc-mono);
    font-size: 11px;
    resize: vertical;
}

/* ——— Dashboard split (checkers + ferramentas) ——— */
.nc-dash-metrics-3 {
    grid-template-columns: repeat(3, 1fr);
}

.nc-dash-main-col {
    min-width: 0;
}

.nc-dash-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.nc-dash-module-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.nc-dash-module-panel.nc-dash-tools-panel {
    max-height: 480px;
}

.nc-dash-module-scroll {
    flex: 1;
    min-height: 0;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px;
}

.nc-dash-checkers-panel {
    max-height: none;
}

.nc-dash-checkers-body {
    padding: 12px;
}

.nc-dash-checkers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.nc-dash-checkers-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
    font-family: var(--nc-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.42);
}

.nc-dash-checkers-divider::before,
.nc-dash-checkers-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.22), transparent);
}

.nc-item-checker {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 10px 9px;
    min-height: 108px;
}

.nc-item-checker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nc-item-checker .nc-item-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nc-item-checker .nc-item-icon svg {
    width: 16px;
    height: 16px;
}

.nc-item-checker .nc-item-name {
    flex: 1;
    font-size: 11px;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nc-item-checker-btn {
    width: 100%;
    margin-top: auto;
}

.nc-item-checker.is-on {
    border-color: rgba(212, 175, 55, 0.18);
    background:
        linear-gradient(160deg, rgba(212, 175, 55, 0.06) 0%, rgba(0, 0, 0, 0.42) 55%);
}

.nc-item-checker.is-on:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.08);
}

.nc-item-checker.is-off {
    opacity: 0.58;
    border-color: rgba(37, 99, 235, 0.08);
    background: rgba(0, 0, 0, 0.28);
}

.nc-item-checker.is-off:hover {
    opacity: 0.72;
}

@media (max-width: 900px) {
    .nc-dash-checkers-grid {
        grid-template-columns: 1fr;
    }
}

.nc-dash-item-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nc-item-compact {
    padding: 10px 12px;
}

.nc-item-icon.is-gold {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.1);
    color: var(--nc-gold-bright);
}

/* ——— Admin Pegasus ——— */
.nc-admin-nav-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.nc-pegasus-hint {
    margin: 12px 0 0;
    font-family: var(--nc-mono);
    font-size: 11px;
    color: rgba(148, 163, 184, 0.55);
    text-align: center;
}

.nc-pegasus-row {
    cursor: pointer;
    transition: background 0.12s;
}

.nc-pegasus-row:hover td {
    background: rgba(37, 99, 235, 0.08);
}

.nc-pegasus-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nc-pegasus-modal[hidden] {
    display: none !important;
}

.nc-pegasus-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.nc-pegasus-modal-box {
    position: relative;
    width: min(960px, 100%);
    max-height: min(85vh, 720px);
    display: flex;
    flex-direction: column;
    background: rgba(4, 8, 12, 0.98);
    border: 1px solid var(--nc-hud-border);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.nc-pegasus-close {
    border: none;
    background: transparent;
    color: rgba(148, 163, 184, 0.8);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.nc-pegasus-close:hover {
    color: #fff;
}

.nc-pegasus-modal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.nc-pegasus-date-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.nc-pegasus-date-chip {
    appearance: none;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: rgba(8, 16, 32, 0.9);
    color: rgba(186, 198, 220, 0.85);
    font-family: var(--nc-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 5px 9px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.nc-pegasus-date-chip:hover {
    border-color: rgba(59, 130, 246, 0.55);
    color: #e2e8f0;
}

.nc-pegasus-date-chip.is-active {
    border-color: rgba(212, 175, 55, 0.65);
    background: rgba(212, 175, 55, 0.12);
    color: #f5e6a8;
}

.nc-pegasus-modal-body {
    padding: 12px 14px 16px;
    overflow: auto;
    flex: 1;
    min-height: 0;
}

.nc-pegasus-detail code.nc-code {
    font-size: 9px;
}

@media (max-width: 1100px) {
    .nc-dash-split {
        grid-template-columns: 1fr;
        max-height: none;
    }
    .nc-dash-module-panel,
    .nc-dash-module-scroll {
        max-height: none;
    }
    .nc-dash-module-scroll {
        max-height: 280px;
    }
    .nc-dash-metrics-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nc-dash-split {
        max-height: none;
    }
}

/* ——— Ferramentas (binchk, gggen, 3d, separador, matriz) ——— */
.nc-tool-panel {
    max-width: 960px;
    margin: 0 auto 24px;
}

.nc-tool-panel-wide {
    max-width: 1200px;
}

.nc-tool-body {
    padding: 16px 18px 20px;
}

.nc-tool-lead {
    margin: 0 0 16px;
    font-family: var(--nc-mono);
    font-size: 12px;
    color: rgba(148, 163, 184, 0.7);
    line-height: 1.5;
}

.nc-tool-body .form-group {
    margin-bottom: 14px;
}

.nc-tool-body .form-label,
.nc-tool-body .column-label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--nc-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.nc-tool-body .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nc-tool-body .form-input,
.nc-tool-body .form-select,
.nc-tool-body .input-bin,
.nc-tool-body textarea,
.nc-tool-body .result-area {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(0, 0, 0, 0.45);
    color: #e2e8f0;
    font-family: var(--nc-mono);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.nc-tool-body textarea,
.nc-tool-body .result-area {
    min-height: 220px;
    resize: vertical;
    line-height: 1.45;
}

.nc-tool-body .form-input:focus,
.nc-tool-body .form-select:focus,
.nc-tool-body .input-bin:focus,
.nc-tool-body textarea:focus {
    border-color: var(--nc-cyan);
    box-shadow: 0 0 0 2px var(--nc-cyan-dim);
}

.nc-tool-body .input-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.nc-tool-body .input-bin {
    flex: 1;
    min-width: 160px;
}

.nc-tool-body .btn-check,
.nc-tool-body .btn-generate,
.nc-tool-body .btn-copy,
.nc-tool-body .btn-action,
.nc-tool-body .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, #ffe066 0%, var(--nc-gold) 50%, #b8860b 100%);
    color: #0a0a0a;
    font-family: var(--nc-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s;
    text-decoration: none;
}

.nc-tool-body .btn-check:hover,
.nc-tool-body .btn-generate:hover,
.nc-tool-body .btn-copy:hover,
.nc-tool-body .btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.nc-tool-body .btn-copy,
.nc-tool-body .page-btn {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--nc-cyan);
}

.nc-tool-body .btn-copy:hover,
.nc-tool-body .page-btn:hover {
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.2);
}

.nc-tool-body .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.nc-tool-body .result-box {
    display: none;
    margin-top: 8px;
    padding: 14px;
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: rgba(0, 0, 0, 0.35);
}

.nc-tool-body .result-box.is-visible,
.nc-tool-body .result-box[style*="block"] {
    display: block !important;
}

.nc-tool-body .result-header {
    margin-bottom: 12px;
    font-family: var(--nc-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nc-gold-bright);
}

.nc-tool-body .result-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nc-tool-body .result-item {
    display: grid;
    grid-template-columns: auto 100px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.nc-tool-body .result-label {
    font-family: var(--nc-mono);
    font-size: 10px;
    color: rgba(148, 163, 184, 0.65);
    text-transform: uppercase;
}

.nc-tool-body .result-value {
    font-family: var(--nc-mono);
    font-size: 12px;
    color: #fff;
    word-break: break-word;
}

.nc-tool-body .result-icon {
    color: var(--nc-cyan);
    opacity: 0.85;
}

.nc-tool-body .generator-wrapper,
.nc-tool-body .separator-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nc-tool-body .panel,
.nc-tool-body .checker-panel,
.nc-tool-body .separator-panel {
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 16px;
}

.nc-tool-body .panel-header,
.nc-tool-body .checker-header,
.nc-tool-body .separator-header {
    margin-bottom: 14px;
}

.nc-tool-body .panel-title,
.nc-tool-body .checker-title,
.nc-tool-body .separator-title {
    font-family: var(--nc-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nc-gold-bright);
}

.nc-tool-body .checker-subtitle,
.nc-tool-body .separator-subtitle {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.6);
}

.nc-tool-body .actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.nc-tool-body .stats-row {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-left: auto;
}

.nc-tool-body .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 52px;
}

.nc-tool-body .stat-val {
    font-family: var(--nc-mono);
    font-size: 18px;
    font-weight: 800;
    color: var(--nc-gold-bright);
    line-height: 1;
}

.nc-tool-body .stat-lbl {
    font-family: var(--nc-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.55);
}

.nc-tool-body .matrix-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nc-tool-body .matrix-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.nc-tool-body .matrix-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.nc-tool-body .matrix-text {
    flex: 1;
    min-width: 0;
    font-family: var(--nc-mono);
    font-size: 11px;
    line-height: 1.35;
    color: #e2e8f0;
    word-break: break-all;
}

.nc-tool-body .btn-copy-matrix {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.14);
    color: var(--nc-gold-bright);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.nc-tool-body .btn-copy-matrix:hover {
    background: rgba(212, 175, 55, 0.28);
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateY(-1px);
}

.nc-tool-body .btn-copy-matrix.copied {
    background: rgba(74, 222, 128, 0.18);
    border-color: rgba(74, 222, 128, 0.45);
    color: #4ade80;
}

.nc-tool-body .btn-copy-matrix svg {
    width: 16px;
    height: 16px;
    display: block;
}

.nc-tool-body .matrix-col-empty,
.nc-tool-body .empty-msg {
    font-family: var(--nc-mono);
    font-size: 11px;
    color: rgba(148, 163, 184, 0.65);
    text-align: center;
    padding: 16px 8px;
}

.nc-tool-body .matrix-line {
    font-family: var(--nc-mono);
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 3px;
    background: rgba(37, 99, 235, 0.06);
    color: #e2e8f0;
    word-break: break-all;
}

.nc-tool-body .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.nc-tool-body .page-info {
    font-family: var(--nc-mono);
    font-size: 11px;
    color: rgba(148, 163, 184, 0.75);
}

.nc-tool-body .card-preview-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}

.nc-tool-body .virtual-card {
    aspect-ratio: 1.586;
    border-radius: 12px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(0, 0, 0, 0.8));
    border: 1px solid rgba(37, 99, 235, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--nc-mono);
}

.nc-tool-body .virtual-card.amex {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(0, 0, 0, 0.85));
    border-color: rgba(212, 175, 55, 0.35);
}

.nc-tool-body .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: nc-tool-spin 0.7s linear infinite;
}

@keyframes nc-tool-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .nc-tool-body .generator-wrapper,
    .nc-tool-body .separator-content,
    .nc-tool-body .matrix-columns,
    .nc-tool-body .card-preview-wrap,
    .nc-tool-body .form-row {
        grid-template-columns: 1fr;
    }

    .nc-tool-body .result-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
