/* =========================================================
   SKY RP — STAFF PANEL
   Diseño basado en el Login
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.staff-body,
body {
    font-family: "Inter", Arial, sans-serif;
    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,0.025),
            transparent 35%
        ),
        #08090b;
    color: #f1f2f4;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   LOGIN
========================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(
            circle at top,
            rgba(255,255,255,0.025),
            transparent 40%
        ),
        #08090b;
}

.login-box {
    width: 100%;
    max-width: 380px;
    padding: 34px;
    background: #0e1013;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    box-shadow:
        0 25px 70px rgba(0,0,0,0.45);
}

.login-logo {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 13px;
    background: #f1f1f1;
    overflow: hidden;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.login-box h1 {
    color: #f1f2f4;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-box > p {
    margin-top: 5px;
    color: #686e77;
    font-size: 12px;
}

.staff-error {
    margin-top: 18px;
    padding: 11px 13px;
    border: 1px solid rgba(255,80,80,0.15);
    border-radius: 8px;
    background: rgba(120,25,25,0.14);
    color: #e58a8a;
    font-size: 12px;
}

.staff-form {
    margin-top: 24px;
}

.staff-form label {
    display: block;
    margin-bottom: 7px;
    color: #aeb3bb;
    font-size: 11px;
    font-weight: 700;
}

.staff-form input {
    width: 100%;
    height: 42px;
    margin-bottom: 17px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    outline: none;
    background: #0a0c0f;
    color: #f1f2f4;
    font-size: 13px;
    transition:
        border-color .2s ease,
        background .2s ease;
}

.staff-form input:hover {
    border-color: rgba(255,255,255,0.11);
}

.staff-form input:focus {
    border-color: rgba(255,255,255,0.14);
    background: #0c0e11;
}

.staff-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: #16191d;
    color: #dfe2e6;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.staff-button:hover {
    background: #1c2025;
    border-color: rgba(255,255,255,0.13);
}

.staff-button:active {
    transform: translateY(1px);
}

.staff-button-primary {
    background: #f1f1f1;
    border-color: #f1f1f1;
    color: #08090b;
}

.staff-button-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.login-back {
    display: inline-block;
    margin-top: 20px;
    color: #626872;
    font-size: 11px;
    transition: color .2s ease;
}

.login-back:hover {
    color: #e4e6e9;
}


/* =========================================================
   STAFF SIDEBAR
========================================================= */

.staff-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 250px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    background: #0b0d10;
    border-right: 1px solid rgba(255,255,255,0.06);
}


/* =========================================================
   BRAND
========================================================= */

.staff-brand {
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.staff-brand-link {
    display: flex;
    align-items: center;
    gap: 11px;
}

.staff-brand-logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;
    background: #f1f1f1;
    overflow: hidden;
}

.staff-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.staff-brand-text {
    display: flex;
    flex-direction: column;
}

.staff-brand-text strong {
    color: #f1f2f4;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
}

.staff-brand-text span {
    margin-top: -1px;
    color: #626872;
    font-size: 10px;
}


/* =========================================================
   SIDEBAR USER
========================================================= */

.staff-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 16px 14px;
    padding: 12px;

    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    background: #0e1013;
}

.staff-avatar,
.staff-user-avatar,
.announcement-author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;
    background: #171a1e;
    border: 1px solid rgba(255,255,255,0.07);

    color: #e7e9ec;
    font-weight: 800;
}

.staff-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.staff-sidebar-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.staff-sidebar-user-info strong {
    overflow: hidden;
    color: #dfe2e6;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-sidebar-user-info span {
    color: #626872;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .5px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.staff-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 10px;
}

.staff-nav a {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 40px;
    padding: 0 11px;

    border: 1px solid transparent;
    border-radius: 8px;

    color: #777d86;
    font-size: 11px;
    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.staff-nav a:hover {
    background: #101317;
    color: #cdd1d6;
}

.staff-nav a.active {
    background: #14171b;
    border-color: rgba(255,255,255,0.06);
    color: #f1f2f4;
}

.staff-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 13px;
}

.staff-nav-external {
    margin-left: auto;
    color: #4f555d;
    font-size: 11px;
}


/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.staff-sidebar-bottom {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.staff-view-site,
.staff-logout {
    display: flex;
    align-items: center;
    gap: 9px;

    width: 100%;
    min-height: 38px;
    padding: 0 10px;

    border-radius: 8px;

    color: #6b717a;
    font-size: 10px;
    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease;
}

.staff-view-site:hover {
    background: #101317;
    color: #dfe2e6;
}

.staff-logout {
    margin-top: 3px;
}

.staff-logout:hover {
    background: rgba(130,35,35,0.10);
    color: #d98686;
}


/* =========================================================
   MAIN
========================================================= */

.staff-main {
    min-height: 100vh;
    margin-left: 250px;
    padding: 42px 45px 60px;
    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,0.018),
            transparent 30%
        ),
        #08090b;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.staff-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 30px;
}

.staff-page-header > div:first-child {
    min-width: 0;
}

.staff-eyebrow,
.staff-page-eyebrow,
.staff-card-eyebrow {
    display: block;
    margin-bottom: 7px;

    color: #555b64;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.staff-page-header h1 {
    color: #f1f2f4;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.staff-page-header p {
    max-width: 600px;
    margin-top: 5px;
    color: #686e77;
    font-size: 12px;
}

.staff-page-header-actions {
    display: flex;
    gap: 8px;
}


/* =========================================================
   DASHBOARD CARDS
========================================================= */

.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.staff-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 15px;

    min-height: 130px;
    padding: 21px;

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 13px;

    background: #0e1013;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.staff-card:hover {
    background: #111419;
    border-color: rgba(255,255,255,0.10);
    transform: translateY(-2px);
}

.staff-card-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    background: #14171b;

    font-size: 16px;
}

.staff-card-content {
    min-width: 0;
}

.staff-card h2 {
    color: #e7e9ec;
    font-size: 14px;
    font-weight: 750;
}

.staff-card p {
    max-width: 430px;
    margin-top: 3px;
    color: #626872;
    font-size: 10px;
    line-height: 1.55;
}

.staff-card-arrow {
    margin-left: auto;
    color: #4f555d;
    font-size: 15px;
    transition: color .2s ease;
}

.staff-card:hover .staff-card-arrow {
    color: #dfe2e6;
}


/* =========================================================
   GENERIC CARDS
========================================================= */

.announcement-stat,
.staff-user-stat,
.settings-card,
.staff-users-card,
.staff-permissions-card,
.settings-info-card,
.settings-preview-card,
.announcement-empty,
.announcement-card {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 13px;
    background: #0e1013;
}


/* =========================================================
   ANNOUNCEMENT STATS
========================================================= */

.announcement-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.announcement-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
}

.announcement-stat-icon {
    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    background: #14171b;
    border: 1px solid rgba(255,255,255,0.05);

    font-size: 14px;
}

.announcement-stat span,
.staff-user-stat span {
    display: block;
    color: #626872;
    font-size: 9px;
}

.announcement-stat strong,
.staff-user-stat strong {
    display: block;
    margin-top: 1px;
    color: #e7e9ec;
    font-size: 17px;
    font-weight: 800;
}


/* =========================================================
   ANNOUNCEMENT EMPTY
========================================================= */

.announcement-empty {
    padding: 55px 25px;
    text-align: center;
}

.announcement-empty-icon,
.staff-empty-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 11px;
    background: #14171b;
    border: 1px solid rgba(255,255,255,0.06);

    font-size: 18px;
}

.announcement-empty h2,
.staff-empty-state h3 {
    color: #e7e9ec;
    font-size: 15px;
}

.announcement-empty p,
.staff-empty-state p {
    margin-top: 4px;
    color: #626872;
    font-size: 10px;
}

.announcement-empty .staff-button,
.staff-empty-state .staff-button {
    margin-top: 18px;
}


/* =========================================================
   ANNOUNCEMENT LIST
========================================================= */

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.announcement-card {
    overflow: hidden;
}

.announcement-card-featured {
    border-color: rgba(255,255,255,0.10);
}

.announcement-featured-bar {
    padding: 8px 17px;

    border-bottom: 1px solid rgba(255,255,255,0.05);

    background: rgba(255,255,255,0.025);

    color: #9ca2aa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
}

.announcement-card-content {
    padding: 19px;
}

.announcement-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.announcement-card-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.announcement-category,
.announcement-featured {
    display: inline-flex;
    align-items: center;

    min-height: 22px;
    padding: 0 8px;

    border-radius: 6px;

    background: #15181c;
    border: 1px solid rgba(255,255,255,0.06);

    color: #8f959e;
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.announcement-featured {
    color: #c9cdd2;
}

.announcement-date {
    flex-shrink: 0;
    color: #555b64;
    font-size: 9px;
}

.announcement-title {
    margin-top: 13px;
    color: #e8eaed;
    font-size: 16px;
    font-weight: 800;
}

.announcement-preview {
    max-width: 850px;
    margin-top: 6px;
    color: #777d86;
    font-size: 10px;
    line-height: 1.65;
}

.announcement-no-content {
    color: #4f555d;
    font-style: italic;
}

.announcement-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 19px;
    padding-top: 14px;

    border-top: 1px solid rgba(255,255,255,0.05);
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 9px;
}

.announcement-author-avatar {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    font-size: 9px;
}

.announcement-author span,
.announcement-author strong {
    display: block;
}

.announcement-author span {
    color: #4f555d;
    font-size: 8px;
}

.announcement-author strong {
    color: #aeb3bb;
    font-size: 9px;
}

.announcement-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.announcement-actions form {
    margin: 0;
}

.announcement-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    min-height: 31px;
    padding: 0 9px;

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 7px;

    background: #121519;
    color: #777d86;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.announcement-action:hover {
    background: #181b20;
    border-color: rgba(255,255,255,0.10);
    color: #dfe2e6;
}

.announcement-action-delete:hover {
    background: rgba(120,30,30,0.12);
    border-color: rgba(180,60,60,0.18);
    color: #d78383;
}


/* =========================================================
   USER STATS
========================================================= */

.staff-user-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.staff-user-stat {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
}

.staff-user-stat-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    background: #14171b;
    border: 1px solid rgba(255,255,255,0.05);

    color: #9ca2aa;
    font-size: 11px;
}


/* =========================================================
   USERS CARD
========================================================= */

.staff-users-card {
    overflow: hidden;
}

.staff-users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.staff-users-header h2 {
    color: #e7e9ec;
    font-size: 15px;
    font-weight: 800;
}

.staff-users-header p {
    margin-top: 3px;
    color: #626872;
    font-size: 10px;
}

.staff-users-count {
    color: #555b64;
    font-size: 9px;
    white-space: nowrap;
}


/* =========================================================
   USERS TABLE
========================================================= */

.staff-users-list {
    width: 100%;
}

.staff-users-table-head,
.staff-user-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 2fr)
        minmax(120px, 1.2fr)
        minmax(100px, 1fr)
        minmax(90px, 1fr)
        70px;

    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.staff-users-table-head {
    min-height: 38px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.012);

    color: #4f555d;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
}

.staff-user-row {
    min-height: 66px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.staff-user-row:last-child {
    border-bottom: 0;
}

.staff-user-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.staff-user-avatar {
    width: 34px;
    height: 34px;
    font-size: 10px;
}

.staff-user-name {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.staff-user-name strong {
    overflow: hidden;
    color: #dfe2e6;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-self-label {
    padding: 2px 5px;
    border-radius: 4px;
    background: #171a1e;
    color: #626872;
    font-size: 7px;
    font-weight: 800;
}

.staff-role-badge,
.staff-user-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 7px;

    border-radius: 6px;

    background: #14171b;
    border: 1px solid rgba(255,255,255,0.05);

    color: #858b94;
    font-size: 8px;
    font-weight: 700;
}

.staff-role-badge > span,
.staff-user-status > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #656b74;
}

.staff-role-owner {
    color: #c5c8cd;
}

.staff-role-owner > span {
    background: #dfe2e6;
}

.staff-role-admin {
    color: #b1b5bc;
}

.staff-role-admin > span {
    background: #aeb3bb;
}

.staff-role-moderador {
    color: #949aa3;
}

.staff-role-moderador > span {
    background: #858b94;
}

.staff-role-soporte {
    color: #7b818a;
}

.staff-role-soporte > span {
    background: #686e77;
}

.staff-user-date {
    color: #626872;
    font-size: 9px;
}

.staff-user-status {
    color: #858b94;
}

.staff-user-status > span {
    background: #858b94;
}

.staff-user-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.staff-user-actions form {
    margin: 0;
}

.staff-user-action {
    width: 29px;
    height: 29px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 7px;

    background: #121519;
    color: #6e747d;

    font-size: 11px;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.staff-user-action:hover {
    background: #181b20;
    color: #e0e3e7;
    border-color: rgba(255,255,255,0.10);
}

.staff-user-action-delete:hover {
    background: rgba(120,30,30,0.12);
    border-color: rgba(180,60,60,0.18);
    color: #d78383;
}

.staff-user-action-disabled {
    cursor: not-allowed;
    opacity: .45;
}


/* =========================================================
   EMPTY USERS
========================================================= */

.staff-empty-state {
    padding: 55px 20px;
    text-align: center;
}


/* =========================================================
   PERMISSIONS
========================================================= */

.staff-permissions-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 12px;
    padding: 15px;
}

.staff-permissions-icon {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;
    background: #14171b;
    color: #858b94;

    font-size: 12px;
}

.staff-permissions-card strong {
    color: #aeb3bb;
    font-size: 10px;
}

.staff-permissions-card p {
    margin-top: 2px;
    color: #626872;
    font-size: 9px;
}


/* =========================================================
   ALERTS
========================================================= */

.staff-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin-bottom: 16px;
    padding: 13px 15px;

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    background: #0e1013;
}

.staff-alert-icon {
    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;
    background: #15181c;

    font-size: 11px;
    font-weight: 800;
}

.staff-alert-success .staff-alert-icon {
    color: #aeb3bb;
}

.staff-alert-error .staff-alert-icon {
    color: #d78383;
}

.staff-alert strong {
    color: #cfd2d7;
    font-size: 10px;
}

.staff-alert p,
.staff-alert li {
    color: #626872;
    font-size: 9px;
}

.staff-alert ul {
    margin-top: 3px;
    padding-left: 14px;
}


/* =========================================================
   SETTINGS LAYOUT
========================================================= */

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 12px;
    align-items: start;
}

.settings-card {
    overflow: hidden;
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 22px;

    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.settings-card-header h2 {
    color: #e7e9ec;
    font-size: 15px;
    font-weight: 800;
}

.settings-card-header p {
    max-width: 570px;
    margin-top: 4px;
    color: #626872;
    font-size: 10px;
}

.settings-live-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 8px;

    border-radius: 6px;
    background: #14171b;
    border: 1px solid rgba(255,255,255,0.05);

    color: #858b94;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.settings-live-status > span,
.settings-preview-status > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #777d86;
}

.settings-live-online > span,
.settings-preview-online > span {
    background: #aeb3bb;
}

.settings-live-maintenance > span,
.settings-preview-maintenance > span {
    background: #858b94;
}

.settings-live-offline > span,
.settings-preview-offline > span {
    background: #555b64;
}


/* =========================================================
   SETTINGS FORM
========================================================= */

.settings-form {
    padding: 22px;
}

.settings-field {
    margin-bottom: 23px;
}

.settings-field > label {
    display: block;
    margin-bottom: 3px;

    color: #aeb3bb;
    font-size: 10px;
    font-weight: 750;
}

.settings-field > span {
    display: block;
    margin-bottom: 9px;

    color: #555b64;
    font-size: 8px;
}

.settings-field input[type="text"],
.settings-field textarea {
    width: 100%;

    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    outline: none;

    background: #0a0c0f;
    color: #e7e9ec;

    font-size: 11px;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.settings-field input[type="text"] {
    height: 42px;
    padding: 0 12px;
}

.settings-field textarea {
    min-height: 110px;
    padding: 11px 12px;
    resize: vertical;
    line-height: 1.55;
}

.settings-field input[type="text"]:focus,
.settings-field textarea:focus {
    border-color: rgba(255,255,255,0.14);
    background: #0c0e11;
}


/* =========================================================
   STATUS OPTIONS
========================================================= */

.settings-status-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.settings-status-option {
    position: relative;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px;

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 9px;

    background: #0a0c0f;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.settings-status-option:hover {
    background: #0d0f12;
    border-color: rgba(255,255,255,0.10);
}

.settings-status-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-status-option-icon {
    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;
    background: #14171b;

    color: #555b64;
    font-size: 8px;
}

.settings-status-option strong,
.settings-status-option span {
    display: block;
}

.settings-status-option strong {
    color: #aeb3bb;
    font-size: 9px;
}

.settings-status-option div:last-child span {
    margin-top: 1px;
    color: #555b64;
    font-size: 8px;
}

.settings-status-option:has(input:checked) {
    border-color: rgba(255,255,255,0.13);
    background: #111419;
}

.settings-status-option:has(input:checked) .settings-status-option-icon {
    color: #dfe2e6;
}


/* =========================================================
   SETTINGS ACTIONS
========================================================= */

.settings-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.settings-actions strong,
.settings-actions span {
    display: block;
}

.settings-actions strong {
    color: #aeb3bb;
    font-size: 9px;
}

.settings-actions span {
    margin-top: 2px;
    color: #555b64;
    font-size: 8px;
}


/* =========================================================
   SETTINGS SIDE
========================================================= */

.settings-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-info-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
}

.settings-info-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;
    background: #14171b;

    color: #858b94;
    font-size: 10px;
}

.settings-info-card strong {
    display: block;
    color: #aeb3bb;
    font-size: 9px;
}

.settings-info-card p {
    margin-top: 4px;
    color: #555b64;
    font-size: 8px;
    line-height: 1.6;
}

.settings-preview-card {
    padding: 16px;
}

.settings-preview-status {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 11px;
    padding: 11px;

    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;

    background: #0a0c0f;
}

.settings-preview-status strong,
.settings-preview-status small {
    display: block;
}

.settings-preview-status strong {
    color: #bfc3c8;
    font-size: 9px;
}

.settings-preview-status small {
    margin-top: 1px;
    color: #555b64;
    font-size: 8px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .staff-main {
        padding: 35px 30px 50px;
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-preview-card {
        grid-column: span 2;
    }

}


@media (max-width: 850px) {

    .staff-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .staff-brand {
        padding: 15px;
    }

    .staff-sidebar-user {
        margin: 10px 15px;
    }

    .staff-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 8px 12px;
    }

    .staff-nav a {
        flex: 1 1 140px;
    }

    .staff-sidebar-bottom {
        display: flex;
        gap: 5px;
        margin-top: 0;
    }

    .staff-view-site,
    .staff-logout {
        margin-top: 0;
    }

    .staff-main {
        margin-left: 0;
        padding: 30px 20px 45px;
    }

}


@media (max-width: 700px) {

    .staff-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .staff-page-header-actions {
        width: 100%;
    }

    .staff-page-header-actions .staff-button {
        width: 100%;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .announcement-stats,
    .staff-user-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .announcement-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .announcement-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .announcement-actions {
        width: 100%;
    }

    .announcement-action {
        flex: 1;
        justify-content: center;
    }

    .staff-users-table-head {
        display: none;
    }

    .staff-user-row {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 14px 16px;
    }

    .staff-user-row > div:nth-child(2),
    .staff-user-row > div:nth-child(3),
    .staff-user-row > div:nth-child(4) {
        display: none;
    }

    .staff-user-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .settings-side {
        grid-template-columns: 1fr;
    }

    .settings-preview-card {
        grid-column: auto;
    }

}


@media (max-width: 480px) {

    .login-box {
        padding: 27px 22px;
    }

    .staff-main {
        padding: 25px 14px 40px;
    }

    .staff-page-header h1 {
        font-size: 23px;
    }

    .announcement-stats,
    .staff-user-stats {
        grid-template-columns: 1fr;
    }

    .staff-sidebar-bottom {
        flex-direction: column;
    }

    .settings-card-header {
        flex-direction: column;
    }

    .settings-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-actions .staff-button {
        width: 100%;
    }

}

/* =========================================================
   WIKI — STAFF PANEL
========================================================= */

.staff-card:has(.staff-table) {
    overflow: hidden;
}

/* =========================================================
   WIKI HEADER
========================================================= */

.staff-card:has(.staff-table) .staff-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 72px;
    padding: 18px 21px;

    border-bottom: 1px solid rgba(255,255,255,0.05);

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.018),
            transparent
        );
}

.staff-card:has(.staff-table) .staff-card-header > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.staff-card:has(.staff-table) .staff-card-header strong {
    color: #e7e9ec;
    font-size: 14px;
    font-weight: 800;
}

.staff-card:has(.staff-table) .staff-card-header span {
    color: #555b64;
    font-size: 9px;
}

/* =========================================================
   WIKI TABLE
========================================================= */

.staff-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.staff-table {
    width: 100%;
    min-width: 850px;

    border-collapse: collapse;

    table-layout: fixed;
}

/* =========================================================
   TABLE HEADER
========================================================= */

.staff-table thead {
    background: rgba(255,255,255,0.012);
}

.staff-table th {
    height: 40px;

    padding: 0 18px;

    border-bottom: 1px solid rgba(255,255,255,0.05);

    color: #4f555d;

    font-size: 8px;
    font-weight: 800;

    text-align: left;
    text-transform: uppercase;

    letter-spacing: 0.9px;
    white-space: nowrap;
}

.staff-table th:first-child {
    width: 34%;
}

.staff-table th:nth-child(2) {
    width: 17%;
}

.staff-table th:nth-child(3) {
    width: 14%;
}

.staff-table th:nth-child(4) {
    width: 17%;
}

.staff-table th:last-child {
    width: 18%;
}

/* =========================================================
   TABLE ROWS
========================================================= */

.staff-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.035);

    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.staff-table tbody tr:last-child {
    border-bottom: 0;
}

.staff-table tbody tr:hover {
    background: rgba(255,255,255,0.018);
}

.staff-table td {
    padding: 16px 18px;

    color: #858b94;

    font-size: 10px;

    vertical-align: middle;
}

/* =========================================================
   ARTICLE TITLE
========================================================= */

.staff-table-title {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.staff-table-title strong {
    display: block;

    max-width: 100%;

    overflow: hidden;

    color: #dfe2e6;

    font-size: 11px;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color 0.18s ease;
}

.staff-table tbody tr:hover .staff-table-title strong {
    color: #ffffff;
}

.staff-table-title small {
    display: block;

    max-width: 100%;

    margin-top: 4px;

    overflow: hidden;

    color: #454a52;

    font-family: monospace;
    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   FEATURED BADGE
========================================================= */

.staff-table-title .staff-badge {
    display: inline-flex;
    align-items: center;

    margin-top: 7px;
    padding: 4px 7px;

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;

    background: rgba(255,255,255,0.045);

    color: #bfc3c8;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}

/* =========================================================
   CATEGORY
========================================================= */

.staff-category {
    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 0 9px;

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;

    background: #14171b;

    color: #858b94;

    font-size: 8px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.staff-table tbody tr:hover .staff-category {
    background: #181b20;
    border-color: rgba(255,255,255,0.09);
    color: #aeb3bb;
}

/* =========================================================
   AUTHOR
========================================================= */

.staff-table td:nth-child(3) {
    color: #777d86;
    font-size: 9px;
}

/* =========================================================
   DATE
========================================================= */

.staff-table td:nth-child(4) {
    color: #626872;

    font-size: 9px;

    white-space: nowrap;
}

/* =========================================================
   ACTIONS
========================================================= */

.staff-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 5px;
}

.staff-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 0 10px;

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 7px;

    background: #121519;

    color: #777d86;

    font-size: 8px;
    font-weight: 750;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.staff-actions a:hover {
    background: #181b20;

    border-color: rgba(255,255,255,0.11);

    color: #e5e7ea;

    transform: translateY(-1px);
}

.staff-actions .staff-action-delete:hover {
    background: rgba(120,30,30,0.12);

    border-color: rgba(180,60,60,0.18);

    color: #d78383;
}

/* =========================================================
   WIKI EMPTY STATE
========================================================= */

.staff-card .staff-empty {
    padding: 65px 25px;

    text-align: center;
}

.staff-card .staff-empty-icon {
    width: 52px;
    height: 52px;

    margin-bottom: 17px;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #171a1e,
            #111419
        );

    border: 1px solid rgba(255,255,255,0.07);

    color: #9ca2aa;

    font-size: 20px;
}

.staff-card .staff-empty strong {
    display: block;

    color: #e7e9ec;

    font-size: 14px;
    font-weight: 800;
}

.staff-card .staff-empty > span {
    display: block;

    max-width: 350px;

    margin: 5px auto 0;

    color: #626872;

    font-size: 10px;
    line-height: 1.6;
}

.staff-card .staff-empty .staff-button {
    margin-top: 20px;
}

/* =========================================================
   WIKI RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .staff-table {
        min-width: 780px;
    }

    .staff-table th,
    .staff-table td {
        padding-left: 14px;
        padding-right: 14px;
    }

}

@media (max-width: 600px) {

    .staff-card:has(.staff-table) .staff-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .staff-card:has(.staff-table) .staff-card-header > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .staff-table {
        min-width: 720px;
    }

    .staff-table th,
    .staff-table td {
        padding-left: 12px;
        padding-right: 12px;
    }

    .staff-actions {
        flex-wrap: wrap;
    }

}

/* =========================================================
   WIKI — CAMPOS DEL EDITOR
========================================================= */

.wiki-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.wiki-editor-main {
    min-width: 0;
}

.wiki-editor-section {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    background: #0e1013;
}

.wiki-editor-section + .wiki-editor-section {
    margin-top: 18px;
}

.wiki-editor-section-header {
    margin-bottom: 22px;
}

.wiki-editor-section-header h2 {
    margin: 0;
    color: #e8eaed;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.2px;
}

.wiki-editor-section-header p {
    margin: 5px 0 0;
    color: #626871;
    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   FORM GRID
========================================================= */

.wiki-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.wiki-form-group {
    min-width: 0;
}

.wiki-form-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #aeb3ba;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .75px;
    text-transform: uppercase;
}

.wiki-form-label-required {
    color: #777d85;
    font-size: 9px;
}

.wiki-form-help {
    margin-top: 7px;
    color: #555b63;
    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   INPUTS
========================================================= */

.wiki-form-input,
.wiki-form-select,
.wiki-form-textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 9px;
    outline: none;
    background: #0a0c0f;
    color: #e5e7ea;
    font-family: inherit;
    font-size: 12px;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.wiki-form-input,
.wiki-form-select {
    height: 44px;
    padding: 0 13px;
}

.wiki-form-textarea {
    min-height: 180px;
    padding: 13px;
    resize: vertical;
    line-height: 1.6;
}

.wiki-form-input::placeholder,
.wiki-form-textarea::placeholder {
    color: #3f444b;
}

.wiki-form-input:hover,
.wiki-form-select:hover,
.wiki-form-textarea:hover {
    border-color: rgba(255,255,255,.11);
    background: #0c0e11;
}

.wiki-form-input:focus,
.wiki-form-select:focus,
.wiki-form-textarea:focus {
    border-color: rgba(255,255,255,.18);
    background: #0c0e11;
    box-shadow: 0 0 0 3px rgba(255,255,255,.025);
}


/* =========================================================
   SLUG
========================================================= */

.wiki-slug-wrapper {
    position: relative;
}

.wiki-slug-input {
    padding-right: 13px;
}

.wiki-slug-preview {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 7px;
    background: rgba(255,255,255,.015);
    color: #555b63;
    font-size: 10px;
    overflow: hidden;
}

.wiki-slug-preview span:first-child {
    color: #3f444a;
}

.wiki-slug-preview strong {
    min-width: 0;
    color: #777d85;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   SELECT — CATEGORÍA
========================================================= */

.wiki-category-select-wrapper {
    position: relative;
}

.wiki-category-select-wrapper::after {
    content: "⌄";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-52%);
    pointer-events: none;
    color: #777d85;
    font-size: 15px;
}

.wiki-form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.wiki-form-select option {
    background: #101216;
    color: #e5e7ea;
}

.wiki-category-selected {
    display: flex;
    align-items: center;
    gap: 9px;
}

.wiki-category-icon {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 7px;
    background: #13161a;
    font-size: 13px;
}


/* =========================================================
   DOS COLUMNAS PARA CAMPOS
========================================================= */

.wiki-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
    gap: 18px;
}


/* =========================================================
   ESTADOS
========================================================= */

.wiki-form-input.is-valid {
    border-color: rgba(111,190,130,.22);
}

.wiki-form-input.is-invalid {
    border-color: rgba(220,90,90,.25);
}

.wiki-form-status {
    margin-top: 7px;
    font-size: 10px;
}

.wiki-form-status.success {
    color: #6da879;
}

.wiki-form-status.error {
    color: #c76b6b;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .wiki-editor-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .wiki-editor-section {
        padding: 18px;
    }

    .wiki-form-row {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {

    .wiki-editor-section {
        padding: 15px;
        border-radius: 11px;
    }

    .wiki-form-input,
    .wiki-form-select {
        height: 42px;
    }

}