/* ==========================================================================
   GERAÇÃO SOFRÊNCIA — PAINEL ADMINISTRATIVO
   Mesma identidade do site: preto profundo, vermelho vivo e branco quente.
   ========================================================================== */

:root {
    --red: #ed1728;
    --red-bright: #ff3342;
    --red-dark: #9e0011;
    --bg: #080808;
    --bg-soft: #0c0c0c;
    --panel: #101010;
    --panel-2: #151515;
    --panel-3: #1a1a1a;
    --line: #272727;
    --line-soft: #1d1d1d;
    --white: #f8f7f7;
    --muted: #a5a5a5;
    --muted-2: #737373;
    --green: #25d366;
    --amber: #f0a92e;
    --danger: #ff4d5b;
    --font-body: 'Montserrat', Arial, sans-serif;
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --sidebar-w: 268px;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
    --shadow-red: 0 16px 42px rgba(237, 23, 40, .22);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.1;
    letter-spacing: -.02em;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

::selection {
    background: var(--red);
    color: #fff;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: currentColor;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--red);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.channel-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(237, 23, 40, .25);
    border-radius: 11px;
    background: linear-gradient(90deg, rgba(237, 23, 40, .1), rgba(237, 23, 40, .02) 60%, var(--panel));
}

.channel-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 9px;
    background: rgba(237, 23, 40, .15);
    color: var(--red-bright);
}

.channel-bar > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.channel-bar strong {
    font-size: 12.5px;
}

.channel-bar small {
    color: var(--muted-2);
    font-size: 11px;
}

.channel-bar .btn {
    margin-left: auto;
    flex: none;
}

@media (max-width: 760px) {
    .channel-bar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .channel-bar .btn {
        width: 100%;
        margin-left: 0;
    }
}

/* --------------------------------------------------------------------------
   Alertas
   -------------------------------------------------------------------------- */
.admin-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 46px 13px 16px;
    margin-bottom: 18px;
    position: relative;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--muted-2);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.admin-alert p {
    margin: 0;
}

.admin-alert-dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--muted);
}

.admin-alert-success {
    border-left-color: var(--green);
    background: rgba(37, 211, 102, .07);
}

.admin-alert-success .admin-alert-dot {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, .12);
}

.admin-alert-warning {
    border-left-color: var(--amber);
    background: rgba(240, 169, 46, .07);
}

.admin-alert-warning .admin-alert-dot {
    background: var(--amber);
}

.admin-alert-error {
    border-left-color: var(--red);
    background: rgba(237, 23, 40, .08);
}

.admin-alert-error .admin-alert-dot {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(237, 23, 40, .14);
}

.admin-alert-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 19px;
    line-height: 1;
}

.admin-alert-close:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--white);
}

.admin-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 300;
    max-width: 340px;
    padding: 13px 18px;
    background: #161616;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-size: 13px;
}

.admin-toast[hidden] {
    display: none;
}

/* --------------------------------------------------------------------------
   Estrutura
   -------------------------------------------------------------------------- */
.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    background:
        radial-gradient(420px 220px at 0 0, rgba(237, 23, 40, .14), transparent 70%),
        #0a0a0a;
    border-right: 1px solid var(--line-soft);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 22px 20px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-brand img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid rgba(237, 23, 40, .5);
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(237, 23, 40, .25);
}

.sidebar-brand span {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    line-height: .95;
    letter-spacing: .03em;
}

.sidebar-brand b {
    color: var(--red);
    font-weight: 800;
}

.sidebar-brand small {
    margin-top: 7px;
    color: var(--muted-2);
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .17em;
}

.sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 22px 14px;
}

.sidebar-label {
    margin: 0 0 8px;
    padding: 0 12px;
    color: var(--muted-2);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.sidebar-label:not(:first-child) {
    margin-top: 24px;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    margin-bottom: 3px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    transition: background .18s, color .18s;
}

.sidebar-link .icon {
    width: 19px;
    height: 19px;
    opacity: .85;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, .045);
    color: var(--white);
}

.sidebar-link.is-active {
    background: linear-gradient(90deg, rgba(237, 23, 40, .18), rgba(237, 23, 40, .03));
    color: var(--white);
}

.sidebar-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 3px;
    background: var(--red);
    box-shadow: 0 0 14px rgba(237, 23, 40, .8);
}

.sidebar-link.is-active .icon {
    color: var(--red);
    opacity: 1;
}

.sidebar-link em {
    margin-left: auto;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 20px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
    line-height: 1.6;
}

.sidebar-foot {
    padding: 16px 14px 20px;
    border-top: 1px solid var(--line-soft);
}

.sidebar-foot form {
    margin: 0;
}

.sidebar-site,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 2px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    transition: background .18s, color .18s;
}

.sidebar-site .icon,
.sidebar-logout .icon {
    width: 18px;
    height: 18px;
}

.sidebar-site:hover,
.sidebar-logout:hover {
    background: rgba(255, 255, 255, .045);
    color: var(--white);
}

.sidebar-logout:hover {
    color: var(--red-bright);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(3px);
}

.sidebar-overlay[hidden] {
    display: none;
}

.admin-main {
    min-height: 100vh;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px clamp(18px, 2.6vw, 38px);
    background: rgba(8, 8, 8, .88);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(16px);
}

.topbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
}

.topbar-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.topbar-title {
    min-width: 0;
}

.topbar-title p {
    margin: 0 0 1px;
    color: var(--muted-2);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
}

.topbar-title h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.topbar-site {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    transition: border-color .18s, color .18s;
}

.topbar-site .icon {
    width: 14px;
    height: 14px;
}

.topbar-site:hover {
    border-color: rgba(237, 23, 40, .5);
    color: var(--white);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(237, 23, 40, .12);
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.user-meta strong {
    font-size: 12.5px;
    font-weight: 600;
}

.user-meta small {
    color: var(--muted-2);
    font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Conteúdo
   -------------------------------------------------------------------------- */
.admin-content {
    flex: 1;
    width: 100%;
    max-width: 1560px;
    margin-inline: auto;
    padding: clamp(22px, 3vw, 38px);
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.page-head h2 {
    margin: 0 0 6px;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
}

.page-head h2 em {
    color: var(--red);
    font-family: var(--font-display);
    font-style: italic;
    text-transform: uppercase;
}

.page-desc {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.page-actions .btn {
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: transform .18s, background .18s, border-color .18s, color .18s, box-shadow .18s;
}

.btn:active {
    transform: translateY(1px);
}

.btn .icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 10px 26px rgba(237, 23, 40, .22);
}

.btn-primary:hover {
    background: var(--red-bright);
    box-shadow: 0 12px 32px rgba(237, 23, 40, .34);
}

.btn-outline {
    border-color: var(--line);
    background: transparent;
    color: var(--white);
}

.btn-outline:hover {
    border-color: rgba(237, 23, 40, .55);
    background: rgba(237, 23, 40, .07);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
}

.btn-ghost:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .05);
}

.btn-danger {
    border-color: rgba(237, 23, 40, .4);
    background: rgba(237, 23, 40, .1);
    color: #ff7c86;
}

.btn-danger:hover {
    background: var(--red);
    color: #fff;
}

.btn-sm {
    padding: 8px 13px;
    font-size: 10.5px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: .5;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.dash-welcome {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 26px;
    padding: 26px;
    margin-bottom: 22px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background:
        radial-gradient(600px 200px at 0 0, rgba(237, 23, 40, .15), transparent 65%),
        var(--panel);
    overflow: hidden;
}

.dash-welcome h2 {
    margin: 0 0 8px;
    font-size: clamp(23px, 2.6vw, 31px);
}

.dash-welcome h2 em {
    color: var(--red);
    font-family: var(--font-display);
    font-style: italic;
    text-transform: uppercase;
}

.dash-welcome > div > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.dash-checklist {
    display: grid;
    gap: 6px;
    align-content: start;
}

.dash-checklist a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    transition: background .18s, border-color .18s;
}

.dash-checklist a:hover {
    background: rgba(255, 255, 255, .055);
    border-color: var(--line);
}

.check-dot {
    width: 16px;
    height: 16px;
    flex: none;
    border: 1.5px solid var(--muted-2);
    border-radius: 50%;
}

.dash-checklist span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-checklist strong {
    font-size: 12.5px;
    font-weight: 600;
}

.dash-checklist small {
    color: var(--muted-2);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.check-arrow {
    margin-left: auto;
    color: var(--red);
    font-weight: 700;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--panel);
    transition: border-color .18s, transform .18s, background .18s;
}

.quick-action:hover {
    border-color: rgba(237, 23, 40, .45);
    background: var(--panel-2);
    transform: translateY(-2px);
}

.quick-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 9px;
    background: rgba(237, 23, 40, .12);
    color: var(--red-bright);
}

.quick-icon .icon {
    width: 19px;
    height: 19px;
}

.quick-action span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.quick-action strong {
    font-size: 12.5px;
}

.quick-action small {
    color: var(--muted-2);
    font-size: 10.5px;
}

.quick-plus {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 18px;
    font-weight: 300;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 18px 19px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--panel);
    transition: border-color .18s, transform .18s;
}

.stat-card:hover {
    border-color: rgba(237, 23, 40, .4);
    transform: translateY(-2px);
}

.stat-label {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.stat-card strong {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.stat-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.stat-foot .icon {
    width: 13px;
    height: 13px;
    color: var(--red);
}

.stat-card-alert {
    border-color: rgba(237, 23, 40, .35);
    background: linear-gradient(145deg, rgba(237, 23, 40, .1), var(--panel) 60%);
}

.stat-card-alert strong {
    color: var(--red-bright);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.dash-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel);
}

.admin-card-accent {
    background:
        radial-gradient(360px 180px at 100% 0, rgba(237, 23, 40, .16), transparent 70%),
        var(--panel);
    border-color: rgba(237, 23, 40, .22);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.card-head h2 {
    margin: 0;
    font-size: 18px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-link .icon {
    width: 13px;
    height: 13px;
    color: var(--red);
}

.card-link:hover {
    color: var(--white);
}

.dash-messages,
.dash-shows {
    display: grid;
    gap: 2px;
    margin: 0 -8px;
}

.dash-message {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 8px;
    border-radius: 8px;
    transition: background .18s;
}

.dash-message:hover,
.dash-show:hover {
    background: rgba(255, 255, 255, .04);
}

.dash-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    background: var(--panel-3);
    border: 1px solid var(--line);
    color: var(--red-bright);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.dash-message-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.dash-message-body strong {
    font-size: 12.5px;
}

.dash-message-body small {
    color: var(--muted-2);
    font-size: 10px;
}

.dash-message-body p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash-badge {
    margin-left: auto;
    padding: 2px 8px;
    flex: none;
    border-radius: 20px;
    background: var(--red);
    color: #fff;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dash-show {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background .18s;
}

.dash-show-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    line-height: 1;
}

.dash-show-date strong {
    font-family: var(--font-display);
    font-size: 21px;
}

.dash-show-date small {
    margin-top: 2px;
    color: var(--red);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .12em;
}

.dash-show-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.dash-show-body strong {
    font-size: 12.5px;
}

.dash-show-body small {
    color: var(--muted-2);
    font-size: 10.5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash-show .status {
    margin-left: auto;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-ok {
    border-color: rgba(37, 211, 102, .3);
    background: rgba(37, 211, 102, .08);
    color: #59e08c;
}

.status-warn {
    border-color: rgba(240, 169, 46, .3);
    background: rgba(240, 169, 46, .08);
    color: #f7be5c;
}

.status-off {
    border-color: rgba(255, 77, 91, .3);
    background: rgba(255, 77, 91, .08);
    color: #ff7c86;
}

.status-soon {
    border-color: rgba(120, 160, 255, .3);
    background: rgba(120, 160, 255, .08);
    color: #96b4ff;
}

.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: var(--muted-2);
    text-align: center;
}

.admin-empty > span:first-child {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--muted-2);
}

.admin-empty p {
    max-width: 380px;
    margin: 0;
    font-size: 12px;
}

.admin-empty .btn {
    margin-top: 6px;
}

.admin-empty-compact {
    min-height: 90px;
    padding: 18px;
}

.mini-list {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line-soft);
}

.mini-list li:last-child {
    border-bottom: 0;
}

.mini-thumb {
    display: grid;
    place-items: center;
    width: 44px;
    height: 34px;
    flex: none;
    overflow: hidden;
    border-radius: 6px;
    background: var(--panel-2);
    color: var(--muted-2);
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-thumb .icon {
    width: 16px;
    height: 16px;
}

.mini-list li > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.mini-list strong {
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-list small {
    color: var(--muted-2);
    font-size: 10px;
}

.accent-text {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 12.5px;
}

.status-list {
    display: grid;
    gap: 1px;
    margin-bottom: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    overflow: hidden;
}

.status-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: rgba(255, 255, 255, .02);
    font-size: 11.5px;
}

.status-list span {
    color: var(--muted);
}

.status-list strong {
    font-family: var(--font-display);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Painéis, toolbar e tabelas
   -------------------------------------------------------------------------- */
.admin-panel {
    min-width: 0;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel);
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head h3 {
    margin: 0 0 3px;
    font-size: 16px;
}

.panel-head p {
    margin: 0;
    color: var(--muted-2);
    font-size: 11.5px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: var(--panel);
}

.toolbar-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 0;
}

.toolbar-search .icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--muted-2);
    transform: translateY(-50%);
    pointer-events: none;
}

.toolbar-search input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 37px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    font-size: 12.5px;
}

.toolbar-search input::placeholder {
    color: var(--muted-2);
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-filters select {
    height: 40px;
    padding: 0 30px 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.toolbar-clear {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.toolbar-clear:hover {
    color: var(--white);
}

.result-count {
    margin: 0 0 12px;
    color: var(--muted-2);
    font-size: 11px;
}

.result-count strong {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel);
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 12.5px;
}

.admin-table th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--muted-2);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr {
    transition: background .15s;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, .025);
}

.admin-table .num {
    color: var(--muted-2);
    font-family: var(--font-display);
    font-size: 13px;
    text-align: center;
}

.media-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.media-thumb {
    display: grid;
    place-items: center;
    width: 74px;
    height: 48px;
    flex: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel-2);
    color: var(--muted-2);
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumb .icon {
    width: 20px;
    height: 20px;
}

.media-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.media-info strong {
    max-width: 300px;
    overflow: hidden;
    font-size: 12.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.media-info small {
    max-width: 300px;
    overflow: hidden;
    color: var(--muted-2);
    font-size: 10.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
}

.pill-red {
    border-color: rgba(237, 23, 40, .35);
    background: rgba(237, 23, 40, .08);
    color: #ff7c86;
}

.pill-green {
    border-color: rgba(37, 211, 102, .3);
    background: rgba(37, 211, 102, .07);
    color: #59e08c;
}

.pill-muted {
    border-color: var(--line);
    color: var(--muted-2);
}

.pill-amber {
    border-color: rgba(240, 169, 46, .3);
    background: rgba(240, 169, 46, .07);
    color: #f7be5c;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
}

.table-actions form {
    margin: 0;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    transition: background .16s, color .16s, border-color .16s;
}

.icon-btn .icon {
    width: 15px;
    height: 15px;
}

.icon-btn:hover {
    border-color: rgba(237, 23, 40, .5);
    background: rgba(237, 23, 40, .09);
    color: var(--white);
}

.icon-btn-danger:hover {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.toggle-form {
    display: inline-flex;
    margin: 0;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.toggle-track {
    position: relative;
    display: block;
    width: 32px;
    height: 18px;
    border-radius: 20px;
    background: #2d2d2d;
    transition: background .18s;
}

.toggle-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #888;
    transition: transform .18s, background .18s;
}

.is-on .toggle-track {
    background: rgba(37, 211, 102, .25);
}

.is-on .toggle-track::after {
    background: var(--green);
    transform: translateX(14px);
}

.is-on {
    color: #59e08c;
}

/* --------------------------------------------------------------------------
   Formulários
   -------------------------------------------------------------------------- */
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 16px;
}

.form-main,
.form-side {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.form-section {
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-field-full {
    grid-column: 1 / -1;
}

.admin-field > span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.admin-field > span em {
    color: var(--red);
    font-style: normal;
}

.admin-field input[type="text"],
.admin-field input[type="url"],
.admin-field input[type="email"],
.admin-field input[type="password"],
.admin-field input[type="number"],
.admin-field input[type="date"],
.admin-field input[type="time"],
.admin-field input[type="search"],
.admin-field select,
.admin-field textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--white);
    font-size: 13px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.admin-field textarea {
    min-height: 108px;
    resize: vertical;
    line-height: 1.6;
}

.admin-field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 17px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: rgba(237, 23, 40, .65);
    outline: none;
    background: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(237, 23, 40, .12);
}

.admin-field input::placeholder,
.admin-field textarea::placeholder {
    color: #5c5c5c;
}

.admin-field input[type="file"] {
    width: 100%;
    padding: 9px 11px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 11.5px;
}

.admin-field input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-2);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.field-hint {
    color: var(--muted-2);
    font-size: 10.5px;
    line-height: 1.5;
}

.field-hint code {
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--panel-3);
    color: var(--muted);
    font-size: 10px;
}

.field-error {
    color: #ff7c86;
    font-size: 10.5px;
    font-weight: 600;
}

.image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: var(--bg-soft);
}

.image-preview img {
    width: 96px;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--panel-2);
}

.image-preview[hidden] {
    display: none;
}

.image-preview-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.image-preview-info strong {
    font-size: 11px;
    font-weight: 600;
}

.image-preview-info small {
    color: var(--muted-2);
    font-size: 10px;
    word-break: break-all;
}

.switch-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: var(--bg-soft);
    cursor: pointer;
}

.switch-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-ui {
    position: relative;
    width: 38px;
    height: 22px;
    margin-top: 2px;
    flex: none;
    border-radius: 20px;
    background: #303030;
    transition: background .18s;
}

.switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8a8a8a;
    transition: transform .18s, background .18s;
}

.switch-field input:checked + .switch-ui {
    background: rgba(237, 23, 40, .9);
}

.switch-field input:checked + .switch-ui::after {
    background: #fff;
    transform: translateX(16px);
}

.switch-field input:focus-visible + .switch-ui {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.switch-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.switch-text strong {
    font-size: 11.5px;
    font-weight: 600;
}

.switch-text small {
    color: var(--muted-2);
    font-size: 10px;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
    padding: 16px 4px 0;
}

.form-footer .btn-danger {
    margin-right: auto;
}

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

.type-option {
    position: relative;
    cursor: pointer;
}

.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition: border-color .18s, background .18s, color .18s;
}

.type-option span .icon {
    width: 15px;
    height: 15px;
}

.type-option input:checked + span {
    border-color: rgba(237, 23, 40, .7);
    background: rgba(237, 23, 40, .1);
    color: var(--white);
}

.type-option input:focus-visible + span {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.form-note {
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    margin-top: 14px;
    border-left: 2px solid var(--red);
    border-radius: 0 7px 7px 0;
    background: rgba(237, 23, 40, .06);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.form-note strong {
    color: var(--white);
    font-weight: 600;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 44px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted-2);
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--white);
}

.password-toggle .icon {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Abas de configurações
   -------------------------------------------------------------------------- */
.admin-tabs {
    position: sticky;
    top: 78px;
    z-index: 20;
    display: flex;
    gap: 4px;
    padding: 7px;
    margin-bottom: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: rgba(16, 16, 16, .92);
    overflow-x: auto;
    backdrop-filter: blur(12px);
}

.admin-tabs a {
    padding: 8px 13px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .16s, color .16s;
}

.admin-tabs a:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--white);
}

.admin-tabs a.is-active {
    background: var(--red);
    color: #fff;
}

.settings-section {
    scroll-margin-top: 140px;
}

/* --------------------------------------------------------------------------
   Mensagens
   -------------------------------------------------------------------------- */
.msg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 16px;
}

.msg-list {
    display: grid;
    gap: 1px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line-soft);
}

.msg-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--panel);
    transition: background .16s;
}

.msg-item:hover {
    background: var(--panel-2);
}

.msg-item.is-new {
    background: linear-gradient(90deg, rgba(237, 23, 40, .07), var(--panel) 40%);
}

.msg-item.is-active {
    box-shadow: inset 3px 0 0 var(--red);
    background: var(--panel-2);
}

.msg-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: var(--panel-3);
    color: var(--red-bright);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.msg-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.msg-body strong {
    font-size: 12.5px;
}

.msg-body small {
    color: var(--muted-2);
    font-size: 10px;
}

.msg-body p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.msg-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    margin-left: auto;
    flex: none;
}

.msg-meta time {
    color: var(--muted-2);
    font-size: 9.5px;
    white-space: nowrap;
}

.msg-detail {
    padding: 22px;
}

.msg-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.msg-detail-head h3 {
    margin: 0 0 2px;
    font-size: 18px;
}

.msg-detail-head p {
    margin: 0;
    color: var(--muted-2);
    font-size: 10.5px;
}

.msg-detail-head .msg-avatar {
    width: 46px;
    height: 46px;
    font-size: 20px;
}

.msg-detail-head .status {
    margin-left: auto;
    flex: none;
}

.msg-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.msg-data div {
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--bg-soft);
}

.msg-data span {
    display: block;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.msg-data strong {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    word-break: break-word;
}

.msg-text {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-left: 2px solid var(--red);
    border-radius: 0 8px 8px 0;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
    white-space: pre-line;
}

.msg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.msg-actions form {
    margin: 0;
}

.msg-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 320px;
    padding: 30px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted-2);
    text-align: center;
}

.msg-placeholder span {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--panel-2);
}

.msg-placeholder .icon {
    width: 24px;
    height: 24px;
}

.msg-placeholder p {
    max-width: 230px;
    margin: 0;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   Paginação
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding-top: 18px;
}

.pagination a,
.pagination span {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.pagination a:hover {
    border-color: rgba(237, 23, 40, .5);
    color: var(--white);
}

.pagination .is-current {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Moderação de comentários
   -------------------------------------------------------------------------- */
.comment-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-admin-item {
    padding: 18px 20px;
}

.comment-admin-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.comment-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: rgba(237, 23, 40, .14);
    color: var(--red-bright);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.comment-admin-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.comment-admin-meta strong {
    font-size: 13px;
}

.comment-admin-meta small {
    color: var(--muted-2);
    font-size: 10.5px;
}

.comment-admin-head .status {
    margin-left: auto;
    flex: none;
}

.comment-admin-text {
    margin: 13px 0;
    padding: 12px 15px;
    border-left: 2px solid var(--line);
    border-radius: 0 8px 8px 0;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.comment-admin-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.comment-admin-context {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--muted-2);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

a.comment-admin-context:hover {
    color: var(--red-bright);
}

.comment-admin-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.comment-admin-actions form {
    margin: 0;
}

@media (max-width: 620px) {
    .comment-admin-actions {
        width: 100%;
        margin-left: 0;
    }
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */
.login-body {
    min-height: 100vh;
    background: var(--bg);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    min-height: 100vh;
}

.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 4vw, 54px);
    overflow: hidden;
    background:
        var(--login-image, url('../../assets/midia-kit-referencia.jpg')) center / cover no-repeat,
        #0a0a0a;
}

.login-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 8, .15) 0%, rgba(8, 8, 8, .55) 55%, rgba(8, 8, 8, .96) 100%),
        linear-gradient(90deg, rgba(8, 8, 8, .85) 0%, rgba(8, 8, 8, .28) 70%, rgba(8, 8, 8, .5) 100%);
}

.login-visual-top,
.login-visual-content,
.login-visual-foot {
    position: relative;
    z-index: 2;
}

.login-visual .sidebar-brand img {
    width: 52px;
    height: 52px;
}

.login-visual .sidebar-brand span {
    font-size: 24px;
}

.login-visual-content {
    max-width: 520px;
    margin-block: auto;
    padding-block: 40px;
}

.login-visual-content h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 4.6vw, 62px);
    font-weight: 800;
    line-height: 1.02;
}

.login-visual-content h1 em {
    color: var(--red);
    font-family: var(--font-display);
    font-style: italic;
    text-transform: uppercase;
}

.login-visual-content > p {
    max-width: 420px;
    margin-bottom: 26px;
    color: #d0d0d0;
    font-size: 14px;
}

.login-features {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #dcdcdc;
    font-size: 12.5px;
}

.login-features span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border: 1px solid rgba(237, 23, 40, .5);
    border-radius: 50%;
    color: var(--red-bright);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
}

.login-visual-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #9c9c9c;
    font-size: 11px;
}

.login-visual-foot a:hover {
    color: #fff;
}

.login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: clamp(24px, 4vw, 54px);
    background:
        radial-gradient(500px 300px at 100% 0, rgba(237, 23, 40, .1), transparent 70%),
        var(--bg);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.login-card-head {
    margin-bottom: 22px;
}

.login-card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border: 1px solid rgba(237, 23, 40, .3);
    border-radius: 11px;
    background: rgba(237, 23, 40, .1);
    color: var(--red-bright);
}

.login-card-icon .icon {
    width: 21px;
    height: 21px;
}

.login-card-head h2 {
    margin: 0 0 6px;
    font-size: 27px;
    font-weight: 800;
}

.login-card-head > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-form .btn {
    margin-top: 6px;
}

.login-help {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted-2);
    font-size: 10.5px;
}

.login-help p {
    margin: 0 0 6px;
}

.login-help a {
    color: var(--muted);
    font-weight: 600;
}

.login-help a span {
    color: var(--red);
}

.login-help a:hover {
    color: var(--white);
}

.login-copy {
    margin: 0;
    color: var(--muted-2);
    font-size: 10.5px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    .quick-actions,
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-grid-3 > :last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1180px) {
    .form-layout,
    .msg-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .24s ease;
        box-shadow: 30px 0 70px rgba(0, 0, 0, .5);
    }

    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar-close {
        display: grid;
        place-items: center;
    }

    .sidebar-overlay {
        display: none;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .admin-main {
        margin-left: 0;
    }

    .topbar-toggle {
        display: flex;
    }

    .admin-tabs {
        top: 74px;
    }
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
    }

    .dash-welcome {
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-grid-3 > :last-child {
        grid-column: auto;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .topbar-site {
        display: none;
    }

    .user-meta {
        display: none;
    }

    .user-chip {
        padding-left: 12px;
    }

    .admin-content {
        padding: 20px 16px 30px;
    }

    .form-grid,
    .form-grid-3,
    .form-side,
    .msg-data {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-footer .btn,
    .form-footer .btn-danger {
        width: 100%;
        margin-right: 0;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .btn {
        flex: 1 1 auto;
    }

    .quick-actions,
    .stat-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .stat-card strong {
        margin-left: auto;
        font-size: 30px;
    }

    .stat-foot {
        flex-basis: 100%;
    }

    .admin-panel {
        padding: 16px;
    }

    .admin-toolbar {
        padding: 10px;
    }

    .toolbar-filters {
        width: 100%;
    }

    .toolbar-filters select {
        flex: 1 1 auto;
    }

    .video-type {
        grid-template-columns: minmax(0, 1fr);
    }

    .msg-meta {
        display: none;
    }

    .admin-tabs {
        top: 71px;
    }
}

@media (max-width: 520px) {
    .topbar-title h1 {
        font-size: 21px;
    }

    .topbar-title p {
        display: none;
    }

    .admin-topbar {
        gap: 11px;
        padding: 12px 14px;
    }

    .topbar-toggle {
        width: 38px;
        height: 38px;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
    }

    .admin-alert {
        font-size: 12.5px;
    }

    .card-head {
        flex-direction: column;
        gap: 6px;
    }

    .login-panel {
        padding: 20px 14px;
    }

    .login-card {
        padding: 22px 18px;
    }

    .login-card-head h2 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Analytics e cookies
   -------------------------------------------------------------------------- */
.access-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.access-summary > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 13px 15px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: var(--bg-soft);
}

.access-summary span {
    color: var(--muted-2);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.access-summary strong {
    color: var(--white);
    font-family: var(--font-display, inherit);
    font-size: 24px;
    line-height: 1.1;
}

.access-summary small {
    color: var(--muted-2);
    font-size: 10.5px;
}

@media (max-width: 700px) {
    .access-summary {
        grid-template-columns: 1fr;
    }
}
