/* ==========================================================
   DVCLhost — Tema "Nagatoro" (roxo/lilás, espaço, rachadura no tempo)
   Só CSS: carrega sempre, sem imagem externa.
   ========================================================== */
:root {
    --dv-fundo: #07030f;
    --dv-fundo2: #12081f;
    --dv-card: rgba(22, 10, 40, .78);
    --dv-card2: rgba(34, 15, 60, .85);
    --dv-roxo: #a855f7;
    --dv-lilas: #c084fc;
    --dv-lilas2: #e9d5ff;
    --dv-rosa: #e879f9;
    --dv-ciano: #67e8f9;
    --dv-verde: #4ade80;
    --dv-borda: rgba(192, 132, 252, .55);
    --dv-brilho: 0 0 18px rgba(168, 85, 247, .45), 0 0 2px rgba(233, 213, 255, .9) inset;
    --dv-texto: #f3e8ff;
    --dv-texto2: #c4b5fd;
    --dv-raio: 18px;
}

/* ---------- fundo: nebulosa + estrelas ---------- */
html, body { background: var(--dv-fundo) !important; color: var(--dv-texto) !important; }
body { position: relative; }
body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 72%, #e9d5ff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 44% 34%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 63% 88%, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 77% 22%, #f5d0fe 50%, transparent 51%),
        radial-gradient(1px 1px at 86% 61%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 93% 9%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 52% 6%, #e9d5ff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 35% 95%, #fff 50%, transparent 51%),
        radial-gradient(ellipse 60% 45% at 85% 10%, rgba(168, 85, 247, .35), transparent 70%),
        radial-gradient(ellipse 55% 40% at 10% 90%, rgba(232, 121, 249, .22), transparent 70%),
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(76, 29, 149, .25), transparent 75%),
        linear-gradient(180deg, #07030f 0%, #0d0519 55%, #07030f 100%);
    animation: dv-piscar 6s ease-in-out infinite alternate;
}
/* rachadura no tempo (Doctor Who) */
body::after {
    content: ""; position: fixed; z-index: 0; pointer-events: none;
    top: 70px; right: -20px; width: 260px; height: 420px; opacity: .55;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 200'%3E%3Cdefs%3E%3Cfilter id='g'%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M70 5 L58 40 L72 62 L50 95 L66 120 L44 160 L56 195' fill='none' stroke='%23c084fc' stroke-width='7' filter='url(%23g)'/%3E%3Cpath d='M70 5 L58 40 L72 62 L50 95 L66 120 L44 160 L56 195' fill='none' stroke='%23fdf4ff' stroke-width='2.2'/%3E%3Cpath d='M72 62 L88 70 M50 95 L34 100 M66 120 L80 132' fill='none' stroke='%23e9d5ff' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
    animation: dv-raio 7s infinite;
}
@keyframes dv-piscar { from { filter: brightness(.9); } to { filter: brightness(1.1); } }
@keyframes dv-raio {
    0%, 86%, 100% { opacity: .45; }
    88% { opacity: 1; filter: drop-shadow(0 0 14px #e879f9); }
    90% { opacity: .3; }
    92% { opacity: .95; }
}
.wrapper, .login-box, .register-box, .content-wrapper, .main-footer { position: relative; z-index: 1; }

/* ---------- estrutura ---------- */
.content-wrapper, .main-footer, .wrapper { background: transparent !important; }
.main-footer { border-top: 1px solid rgba(192, 132, 252, .2) !important; color: var(--dv-texto2) !important; }
.content-header h1, h1, h2, h3, h4, h5 { color: #fff !important; font-weight: 700; letter-spacing: .3px; }
.content-header h1 { border-left: 5px solid var(--dv-roxo); padding-left: 12px; text-shadow: 0 0 14px rgba(168, 85, 247, .6); }
a { color: var(--dv-lilas); }
a:hover { color: var(--dv-rosa); }
.text-muted { color: var(--dv-texto2) !important; }
.breadcrumb { background: transparent !important; }
.breadcrumb-item, .breadcrumb-item a, .breadcrumb-item.active { color: var(--dv-texto2) !important; }

/* barra de cima */
.main-header.navbar {
    background: rgba(10, 4, 20, .82) !important; backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dv-borda) !important;
    box-shadow: 0 4px 24px rgba(168, 85, 247, .25);
}
.main-header .nav-link, .main-header .text-gray-600 { color: var(--dv-lilas2) !important; }
.main-header .nav-item.dropdown:first-child .nav-link span,
#userDropdown .fa-coins { color: #fff !important; }
.main-header .navbar-nav.ml-auto > .nav-item:first-child > .nav-link {
    background: linear-gradient(135deg, var(--dv-roxo), var(--dv-rosa));
    border-radius: 999px; padding: 6px 16px !important; margin-top: 2px;
    box-shadow: 0 0 16px rgba(232, 121, 249, .55); font-weight: 700;
}

/* menu lateral */
.main-sidebar {
    background: linear-gradient(180deg, #120720 0%, #0a0414 100%) !important;
    border-right: 1px solid var(--dv-borda);
    box-shadow: 6px 0 30px rgba(168, 85, 247, .18) !important;
}
.brand-link { border-bottom: 1px solid rgba(192, 132, 252, .25) !important; }
.brand-link .brand-text { color: #fff !important; font-weight: 800 !important; letter-spacing: .5px; }
.brand-link .brand-image { box-shadow: 0 0 14px rgba(192, 132, 252, .8); }
.sidebar .user-panel { border-bottom: 1px solid rgba(192, 132, 252, .2) !important; }
.nav-sidebar .nav-header { color: var(--dv-lilas) !important; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-sidebar .nav-link {
    color: var(--dv-lilas2) !important; border-radius: 12px !important; margin: 3px 6px;
    border: 1px solid transparent; transition: all .2s;
}
.nav-sidebar .nav-link .nav-icon { color: var(--dv-lilas) !important; }
.nav-sidebar .nav-link:hover { background: rgba(168, 85, 247, .14) !important; border-color: rgba(192, 132, 252, .35); }
.nav-sidebar .nav-link.active, .nav-pills .nav-link.active {
    background: linear-gradient(90deg, rgba(168, 85, 247, .45), rgba(232, 121, 249, .18)) !important;
    border: 1px solid var(--dv-borda) !important; color: #fff !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, .45), inset 4px 0 0 var(--dv-rosa) !important;
}
.nav-sidebar .nav-link.active .nav-icon { color: #fff !important; }
.nav-sidebar .badge { background: var(--dv-roxo) !important; box-shadow: 0 0 8px var(--dv-roxo); }

/* ---------- cards neon ---------- */
.card, .info-box, .small-box, .modal-content, .dropdown-menu, .list-group-item, .callout {
    background: var(--dv-card) !important; color: var(--dv-texto) !important;
    border: 1px solid var(--dv-borda) !important; border-radius: var(--dv-raio) !important;
    box-shadow: var(--dv-brilho) !important; backdrop-filter: blur(6px);
}
.card { overflow: hidden; }
.card-header, .card-footer, .modal-header, .modal-footer {
    background: rgba(168, 85, 247, .08) !important;
    border-color: rgba(192, 132, 252, .25) !important;
}
.card-title { color: #fff !important; font-weight: 700; }
.card-outline.card-primary { border-top: 3px solid var(--dv-roxo) !important; }

.info-box { padding: 16px !important; min-height: 110px; transition: transform .2s, box-shadow .2s; }
.info-box:hover { transform: translateY(-3px); box-shadow: 0 0 28px rgba(168, 85, 247, .6) !important; }
.info-box .info-box-icon {
    border-radius: 16px !important; width: 64px; font-size: 1.6rem;
    background: linear-gradient(135deg, var(--dv-roxo), #6d28d9) !important; color: #fff !important;
    box-shadow: 0 0 18px rgba(168, 85, 247, .7);
}
.info-box .info-box-text { color: var(--dv-texto2) !important; text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; }
.info-box .info-box-number { color: #fff !important; font-size: 1.9rem; font-weight: 800; text-shadow: 0 0 12px rgba(192, 132, 252, .7); }
/* 2º card (moedas) em verde neon, igual carteira */
.row > div:nth-child(2) > .info-box { border-color: rgba(74, 222, 128, .6) !important; box-shadow: 0 0 18px rgba(74, 222, 128, .35) !important; }
.row > div:nth-child(2) > .info-box .info-box-icon { background: linear-gradient(135deg, #22c55e, #15803d) !important; box-shadow: 0 0 18px rgba(74, 222, 128, .7); }
/* 3º card em ciano */
.row > div:nth-child(3) > .info-box { border-color: rgba(103, 232, 249, .55) !important; box-shadow: 0 0 18px rgba(103, 232, 249, .3) !important; }
.row > div:nth-child(3) > .info-box .info-box-icon { background: linear-gradient(135deg, #06b6d4, #0e7490) !important; }

.small-box .inner h3, .small-box .inner p { color: #fff !important; }
.small-box .icon > i { color: rgba(233, 213, 255, .25) !important; }
.small-box-footer { background: rgba(168, 85, 247, .2) !important; color: #fff !important; }

/* ---------- botões ---------- */
.btn { border-radius: 12px !important; font-weight: 600; transition: all .2s; }
.btn-primary, .btn-info, .bg-primary {
    background: linear-gradient(135deg, var(--dv-roxo), #7c3aed) !important;
    border: 1px solid var(--dv-lilas) !important; color: #fff !important;
    box-shadow: 0 0 14px rgba(168, 85, 247, .5);
}
.btn-primary:hover, .btn-info:hover { background: linear-gradient(135deg, var(--dv-rosa), var(--dv-roxo)) !important; box-shadow: 0 0 22px rgba(232, 121, 249, .7); transform: translateY(-1px); }
.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a) !important; border-color: #4ade80 !important; box-shadow: 0 0 12px rgba(74, 222, 128, .45); }
.btn-danger { background: linear-gradient(135deg, #f43f5e, #be123c) !important; border-color: #fb7185 !important; box-shadow: 0 0 12px rgba(244, 63, 94, .45); }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706) !important; border-color: #fbbf24 !important; color: #fff !important; }
.btn-secondary, .btn-default, .btn-outline-primary {
    background: rgba(168, 85, 247, .12) !important; border: 1px solid var(--dv-borda) !important; color: var(--dv-lilas2) !important;
}

/* ---------- formulários ---------- */
.form-control, .custom-select, .select2-selection, .input-group-text, .note-editor, textarea {
    background: rgba(10, 4, 20, .75) !important; color: #fff !important;
    border: 1px solid rgba(192, 132, 252, .4) !important; border-radius: 12px !important;
}
.input-group > .form-control { border-radius: 12px 0 0 12px !important; }
.input-group-append .input-group-text { border-radius: 0 12px 12px 0 !important; color: var(--dv-lilas) !important; }
.form-control:focus { border-color: var(--dv-rosa) !important; box-shadow: 0 0 0 3px rgba(232, 121, 249, .25) !important; }
.form-control::placeholder { color: rgba(196, 181, 253, .55) !important; }
label, .custom-control-label { color: var(--dv-lilas2) !important; }
.select2-dropdown, .select2-results__option { background: #12081f !important; color: #fff !important; }
.select2-results__option--highlighted { background: var(--dv-roxo) !important; }

/* ---------- tabelas ---------- */
.table, .dataTable { color: var(--dv-texto) !important; }
.table thead th { border-bottom: 1px solid var(--dv-borda) !important; color: var(--dv-lilas) !important; text-transform: uppercase; font-size: .78rem; letter-spacing: 1px; }
.table td, .table th { border-color: rgba(192, 132, 252, .15) !important; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(168, 85, 247, .06) !important; }
.table-hover tbody tr:hover { background: rgba(168, 85, 247, .14) !important; }
.page-item .page-link { background: transparent !important; color: var(--dv-lilas2) !important; border-color: rgba(192, 132, 252, .3) !important; }
.page-item.active .page-link { background: var(--dv-roxo) !important; border-color: var(--dv-lilas) !important; color: #fff !important; }

/* ---------- extras ---------- */
.dropdown-item { color: var(--dv-lilas2) !important; border-radius: 10px; }
.dropdown-item:hover { background: rgba(168, 85, 247, .2) !important; color: #fff !important; }
.dropdown-divider { border-color: rgba(192, 132, 252, .2) !important; }
.badge-primary, .badge-info { background: var(--dv-roxo) !important; }
.badge-success { background: #22c55e !important; }
.alert { border-radius: 14px !important; border: 1px solid var(--dv-borda) !important; background: var(--dv-card2) !important; color: #fff !important; }
.alert-danger { border-color: #fb7185 !important; }
.alert-success { border-color: #4ade80 !important; }
.progress { background: rgba(168, 85, 247, .15) !important; border-radius: 99px !important; }
.progress-bar { background: linear-gradient(90deg, var(--dv-roxo), var(--dv-rosa)) !important; }
hr { border-color: rgba(192, 132, 252, .2) !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0414; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--dv-roxo), var(--dv-rosa)); border-radius: 99px; }
::selection { background: var(--dv-roxo); color: #fff; }

/* ---------- login / cadastro ---------- */
.login-page, .register-page { background: transparent !important; }
.login-box .card, .register-box .card { padding: 6px; box-shadow: 0 0 40px rgba(168, 85, 247, .45) !important; }
.login-box .card-header img, .register-box .card-header img { max-width: 100%; filter: drop-shadow(0 0 12px rgba(168, 85, 247, .8)); }
.login-box-msg { color: var(--dv-lilas2) !important; }
.login-box .card-header a, .register-box .card-header a { color: #fff !important; text-shadow: 0 0 14px rgba(192, 132, 252, .8); }

/* celular: tudo um embaixo do outro, letra maior */
@media (max-width: 576px) {
    body::after { width: 150px; height: 260px; opacity: .35; }
    .info-box .info-box-number { font-size: 1.6rem; }
    .content-header h1 { font-size: 1.6rem; }
}

/* ---------- criar servidor: passos + cartões de categoria ---------- */
.dv-passos { display: grid; gap: 8px; margin-bottom: 18px; }
.dv-passo { display: flex; align-items: center; gap: 10px; color: var(--dv-lilas2); font-size: .95rem; }
.dv-passo span {
    flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--dv-roxo), var(--dv-rosa)); box-shadow: 0 0 12px rgba(232, 121, 249, .6);
}
.dv-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.dv-cat {
    text-align: left; cursor: pointer; padding: 16px; border-radius: 16px; color: var(--dv-texto);
    background: rgba(10, 4, 20, .7); border: 1px solid rgba(192, 132, 252, .35);
    display: flex; flex-direction: column; gap: 6px; transition: all .2s;
}
.dv-cat .dv-ico {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, rgba(168, 85, 247, .9), rgba(232, 121, 249, .5));
    border: 1px solid rgba(233, 213, 255, .5); box-shadow: 0 0 18px rgba(168, 85, 247, .55);
}
.dv-cat .dv-ico svg { width: 28px; height: 28px; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); }
.dv-cat b { font-size: 1.05rem; color: #fff; }
.dv-cat small { color: var(--dv-texto2); line-height: 1.35; }
.dv-cat:hover { border-color: var(--dv-lilas); transform: translateY(-2px); }
.dv-cat.ativo {
    border-color: var(--dv-rosa); background: linear-gradient(135deg, rgba(168, 85, 247, .35), rgba(232, 121, 249, .12));
    box-shadow: 0 0 22px rgba(232, 121, 249, .55);
}
.dv-cat.ativo .dv-ico { box-shadow: 0 0 26px rgba(232, 121, 249, .9); }
.dv-explica {
    margin-top: 10px; padding: 12px 14px; border-radius: 12px; color: var(--dv-lilas2);
    background: rgba(168, 85, 247, .1); border-left: 4px solid var(--dv-rosa);
}
[x-cloak] { display: none !important; }

/* criar servidor: cartões lado a lado (2x2 no celular, 4 no PC) */
.dv-cats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
@media (min-width: 992px) { .dv-cats { grid-template-columns: repeat(4, 1fr) !important; } }
.dv-cat { align-items: center; text-align: center; padding: 16px 10px !important; }
.dv-cat b { font-size: .95rem; }
.dv-cat small { font-size: .78rem; }

/* dashboard: ações rápidas em blocos */
.dv-rapido { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 4px 0 18px; }
@media (min-width: 992px) { .dv-rapido { grid-template-columns: repeat(4, 1fr); } }
.dv-acao {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 10px;
    border-radius: 18px; color: var(--dv-texto) !important; text-decoration: none !important;
    background: var(--dv-card); border: 1px solid var(--dv-borda); box-shadow: var(--dv-brilho); transition: all .2s;
}
.dv-acao:hover { transform: translateY(-3px); border-color: var(--dv-rosa); box-shadow: 0 0 26px rgba(232, 121, 249, .55); }
.dv-acao .dv-ico {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, rgba(168, 85, 247, .9), rgba(232, 121, 249, .5));
    border: 1px solid rgba(233, 213, 255, .5); box-shadow: 0 0 18px rgba(168, 85, 247, .55);
}
.dv-acao .dv-ico svg { width: 28px; height: 28px; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); }
.dv-acao b { color: #fff; font-size: .95rem; }
.dv-acao small { color: var(--dv-texto2); font-size: .78rem; }
