/* admin.css - Estilos del Panel de Administración */

:root {
    --primary-color: #ef4b3f;
    --primary-soft: #fff0ec;
    --dark-bg: #111827;
    --owner-text: #18212b;
    --owner-muted: #6b7280;
    --owner-border: #edf0f3;
    --owner-card-shadow: 0 8px 24px rgba(22, 30, 39, .07);
}

body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    color: var(--owner-text);
}

/* =========================
   Owner layout / navigation
========================= */

.owner-shell {
    min-height: 100vh;
}

.owner-topbar {
    min-height: 66px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(237, 240, 243, .92);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 25px rgba(22, 30, 39, .05);
    z-index: 1040;
}

.owner-topbar-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.owner-menu-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary-color);
    display: grid;
    place-items: center;
}

.owner-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--owner-text);
    text-decoration: none;
    min-width: 0;
}

.owner-brand:hover,
.owner-brand:focus {
    color: var(--owner-text);
}

.owner-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4b3f 0%, #f97316 100%);
    box-shadow: 0 10px 22px rgba(239, 75, 63, .28);
    flex-shrink: 0;
}

.owner-brand-text {
    display: grid;
    line-height: 1.1;
    min-width: 0;
}

.owner-brand-text strong {
    font-size: .98rem;
    letter-spacing: -.02em;
}

.owner-brand-text small {
    color: var(--owner-muted);
    font-weight: 700;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.owner-preview-link {
    align-items: center;
    gap: 7px;
    color: var(--owner-text);
    background: #f8fafc;
    border: 1px solid var(--owner-border);
    border-radius: 999px;
    padding: 9px 13px;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 850;
}

.owner-preview-link:hover,
.owner-preview-link:focus {
    color: var(--primary-color);
    background: var(--primary-soft);
    border-color: #ffd7d0;
}

.owner-user-button {
    border: 1px solid var(--owner-border);
    border-radius: 999px;
    padding: 5px 9px 5px 5px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--owner-text);
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(22, 30, 39, .05);
}

.owner-user-avatar,
.owner-sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-weight: 900;
}

.owner-user-name {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .84rem;
}

.owner-user-chevron {
    color: var(--owner-muted);
    font-size: .7rem;
}

.owner-user-dropdown {
    border: 0;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .18);
}

.owner-user-dropdown .dropdown-header {
    display: grid;
    gap: 2px;
    padding: 8px 12px 10px;
}

.owner-user-dropdown .dropdown-header strong {
    color: var(--owner-text);
}

.owner-user-dropdown .dropdown-header span {
    color: var(--owner-muted);
    font-size: .78rem;
}

.owner-user-dropdown .dropdown-item {
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 750;
}

.owner-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
    padding-top: 84px;
}

.owner-sidebar {
    position: sticky;
    top: 84px;
    height: calc(100vh - 98px);
}

.owner-sidebar-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--owner-border);
    border-radius: 28px;
    box-shadow: var(--owner-card-shadow);
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.owner-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 22px;
    margin-bottom: 12px;
}

.owner-sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 18px;
    flex-shrink: 0;
}

.owner-sidebar-profile strong {
    display: block;
    color: var(--owner-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-sidebar-profile span {
    display: block;
    color: var(--owner-muted);
    font-size: .78rem;
    font-weight: 750;
}

.owner-sidebar-nav,
.owner-mobile-nav {
    display: grid;
    gap: 7px;
}

.owner-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 18px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 850;
    position: relative;
    transition: background .16s ease, color .16s ease, transform .12s ease;
}

.owner-nav-link i {
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

.owner-nav-link:hover,
.owner-nav-link:focus {
    color: var(--owner-text);
    background: #f8fafc;
}

.owner-nav-link:active {
    transform: scale(.98);
}

.owner-nav-link.active {
    color: var(--primary-color);
    background: var(--primary-soft);
}

.owner-nav-link.active::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: var(--primary-color);
}

.owner-nav-link.active i {
    color: var(--primary-color);
}

.owner-sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
}

.owner-sidebar-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    border-radius: 18px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-weight: 850;
}

.owner-main {
    min-width: 0;
    padding-bottom: 40px;
}

/* Mobile offcanvas: compact, not full screen */
.owner-mobile-menu {
    width: min(86vw, 340px) !important;
    border-right: 0;
    border-radius: 0 28px 28px 0;
}

.owner-mobile-menu .offcanvas-header {
    padding: 22px 20px 14px;
}

.owner-mobile-menu .offcanvas-body {
    padding: 8px 14px 18px;
    display: flex;
    flex-direction: column;
}

.owner-mobile-nav .owner-nav-link {
    min-height: 50px;
    border-radius: 20px;
}

.owner-mobile-menu-footer {
    margin-top: auto;
    padding-top: 18px;
    display: grid;
    gap: 9px;
}

.owner-mobile-preview,
.owner-mobile-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 850;
}

.owner-mobile-preview {
    background: #111827;
    color: #ffffff;
}

.owner-mobile-preview:hover,
.owner-mobile-preview:focus {
    color: #ffffff;
}

.owner-mobile-logout {
    background: #fff5f5;
    color: #dc3545;
}

/* Legacy sidebar compatibility */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link.active {
    color: var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 8px;
}

/* Navbar */
.navbar-brand i {
    font-size: 1.5rem;
    margin-right: 5px;
}

/* No More Tables (Mobile) */
@media only screen and (max-width: 800px) {
    #no-more-tables table,
    #no-more-tables thead,
    #no-more-tables tbody,
    #no-more-tables th,
    #no-more-tables td,
    #no-more-tables tr {
        display: block;
    }

    #no-more-tables thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #no-more-tables tr {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }

    #no-more-tables td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: left;
    }

    #no-more-tables td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-title);
    }
}

/* Utilidades */
.cursor-pointer {
    cursor: pointer;
}

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

@media (max-width: 767.98px) {
    .owner-layout {
        display: block;
        padding-top: 74px;
    }

    .owner-main {
        width: 100%;
    }

    .owner-brand-text small {
        max-width: 128px;
    }

    .owner-topbar-inner {
        min-height: 64px;
    }

    .owner-topbar {
        min-height: 64px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .owner-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}


/* =========================
   Superadmin pilotos
========================= */

.pilot-admin-page {
    max-width: 1180px;
}

.pilot-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4b3f;
    background: #fff0ec;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.pilot-sticky {
    top: 92px;
}

.pilot-form .form-control,
.pilot-form .form-select {
    border-color: #edf0f3;
    min-height: 46px;
}

.pilot-form .form-control:focus,
.pilot-form .form-select:focus {
    border-color: #ef4b3f;
    box-shadow: 0 0 0 .2rem rgba(239, 75, 63, .12);
}

.pilot-switches {
    display: grid;
    gap: 10px;
}

.pilot-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #edf0f3;
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    cursor: pointer;
}

.pilot-check input {
    margin-top: 5px;
    accent-color: #ef4b3f;
}

.pilot-check strong,
.pilot-check small {
    display: block;
}

.pilot-check strong {
    color: #18212b;
}

.pilot-check small {
    color: #6b7280;
    font-weight: 650;
}

.pilot-payment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.pilot-payment-options label {
    margin: 0;
}

.pilot-payment-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pilot-payment-options span {
    min-height: 80px;
    border: 1px solid #edf0f3;
    border-radius: 20px;
    padding: 12px 8px;
    display: grid;
    place-items: center;
    gap: 7px;
    text-align: center;
    color: #4b5563;
    font-weight: 900;
    background: #ffffff;
    cursor: pointer;
    transition: .16s ease;
}

.pilot-payment-options span i {
    font-size: 1.3rem;
}

.pilot-payment-options input:checked + span {
    color: #14532d;
    border-color: rgba(34, 197, 94, .35);
    background: #f0fdf4;
    box-shadow: 0 10px 24px rgba(34, 197, 94, .11);
}

.pilot-note {
    background: #f8fafc;
    border: 1px solid #edf0f3;
    border-radius: 22px;
    padding: 14px;
    color: #334155;
}

.pilot-note ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.pilot-note li {
    margin: 4px 0;
    font-size: .9rem;
}

.pilot-success-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid rgba(34, 197, 94, .18);
    border-radius: 26px;
    box-shadow: 0 12px 30px rgba(22, 30, 39, .07);
    padding: 18px;
}

.pilot-success-icon {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pilot-result-list {
    display: grid;
    gap: 14px;
}

.pilot-result-list span {
    display: block;
    color: #6b7280;
    font-size: .82rem;
    font-weight: 850;
    margin-bottom: 6px;
}

.pilot-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.pilot-message-box {
    font-size: .88rem;
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .pilot-payment-options {
        grid-template-columns: 1fr;
    }

    .pilot-copy-row {
        grid-template-columns: 1fr;
    }

    .pilot-success-card {
        align-items: flex-start;
    }
}


/* =========================
   Superadmin localidades
========================= */

.loc-admin-page {
    max-width: 1180px;
}

.loc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4b3f;
    background: #fff0ec;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.loc-stat-card {
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 24px;
    box-shadow: 0 12px 26px rgba(17, 24, 39, .06);
    padding: 18px;
}

.loc-stat-card span {
    display: block;
    color: #6b7280;
    font-weight: 850;
    font-size: .82rem;
}

.loc-stat-card strong {
    display: block;
    color: #18212b;
    font-size: 1.7rem;
    font-weight: 950;
    margin-top: 4px;
}

.loc-form-card {
    position: sticky;
    top: 90px;
}

.loc-active-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 850;
    color: #334155;
}

.loc-active-check input {
    accent-color: #ef4b3f;
}

.loc-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f3;
}

.loc-list {
    padding: 10px;
}

.loc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 12px 13px calc(12px + var(--loc-indent));
    border-radius: 18px;
    border: 1px solid transparent;
    transition: .15s ease;
}

.loc-row:hover {
    background: #f8fafc;
    border-color: #edf0f3;
}

.loc-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.loc-indent-marker {
    width: 11px;
    height: 38px;
    border-left: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
    border-bottom-left-radius: 8px;
    flex-shrink: 0;
}

.loc-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #18212b;
    font-weight: 950;
}

.loc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: .78rem;
    font-weight: 750;
    margin-top: 2px;
}

.loc-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.loc-empty {
    min-height: 230px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
    color: #6b7280;
}

.loc-empty i {
    width: 60px;
    height: 60px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: #fff0ec;
    color: #ef4b3f;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.loc-empty strong {
    display: block;
    color: #18212b;
    font-size: 1.05rem;
}

.loc-empty span {
    display: block;
    max-width: 340px;
    margin-top: 4px;
}

@media (max-width: 991.98px) {
    .loc-form-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .loc-row {
        grid-template-columns: 1fr;
        padding-left: 12px;
    }

    .loc-actions {
        justify-content: flex-start;
    }

    .loc-indent-marker {
        display: none;
    }
}


/* =========================
   Superadmin localidades v1.1
========================= */

.loc-admin-page-v2 {
    max-width: 1320px;
}

.loc-table-card {
    overflow: hidden;
}

.loc-table {
    font-size: .92rem;
}

.loc-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .02em;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    padding: 13px 14px;
}

.loc-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.loc-table-row:hover td {
    background: #fafafa;
}

.loc-table-row.is-muted {
    opacity: .68;
}

.loc-name-cell {
    min-width: 330px;
}

.loc-name-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: var(--loc-indent);
}

.loc-indent-line {
    width: 12px;
    height: 34px;
    border-left: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
    border-bottom-left-radius: 9px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.loc-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-weight: 950;
    color: #111827;
    line-height: 1.2;
}

.loc-desc {
    color: #64748b;
    font-size: .78rem;
    line-height: 1.35;
    margin-top: 4px;
    max-width: 520px;
}

.loc-type-pill {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .76rem;
    font-weight: 900;
}

.loc-slug-cell {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .82rem;
}

.loc-modal .form-control,
.loc-modal .form-select {
    border-color: #edf0f3;
    min-height: 46px;
}

.loc-modal .form-control:focus,
.loc-modal .form-select:focus {
    border-color: #ef4b3f;
    box-shadow: 0 0 0 .2rem rgba(239, 75, 63, .12);
}

@media (max-width: 767.98px) {
    .loc-name-cell {
        min-width: 260px;
    }

    .loc-name-wrap {
        padding-left: 0;
    }

    .loc-indent-line {
        display: none;
    }
}


/* =========================
   Selectores de localidad por nivel
========================= */

.locality-level-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.locality-level-grid .form-label {
    color: #64748b;
    font-weight: 850;
}

.locality-selected-path {
    margin-top: 8px;
    border-radius: 16px;
    padding: 9px 11px;
    background: #f8fafc;
    color: #64748b;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.35;
}

.locality-selected-path.is-ready {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid rgba(34, 197, 94, .18);
}

@media (max-width: 767.98px) {
    .locality-level-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   Superadmin UI v2
========================= */

.superadmin-shell {
    min-height: 100vh;
    background: #f5f6f8;
}

.superadmin-topbar {
    min-height: 74px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(229, 231, 235, .94);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
    z-index: 1040;
}

.superadmin-topbar-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px;
}

.superadmin-menu-button,
.superadmin-logout {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 16px;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.superadmin-menu-button {
    color: #ef4b3f;
    background: #fff0ec;
}

.superadmin-logout {
    color: #111827;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.superadmin-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #111827;
    text-decoration: none;
    min-width: 0;
}

.superadmin-brand:hover {
    color: #111827;
}

.superadmin-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4b3f 0%, #f97316 100%);
    box-shadow: 0 10px 22px rgba(239, 75, 63, .25);
    flex-shrink: 0;
}

.superadmin-brand-text {
    display: grid;
    line-height: 1.08;
}

.superadmin-brand-text strong {
    font-size: 1rem;
    letter-spacing: -.02em;
}

.superadmin-brand-text small {
    color: #64748b;
    font-weight: 800;
    font-size: .78rem;
}

.superadmin-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.superadmin-quick-action {
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    background: #ef4b3f;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: .84rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(239, 75, 63, .18);
}

.superadmin-quick-action:hover {
    color: #ffffff;
    background: #dc2626;
}

.superadmin-user-pill {
    align-items: center;
    gap: 8px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: .84rem;
    font-weight: 850;
}

.superadmin-sidebar {
    position: fixed;
    top: 74px;
    bottom: 0;
    left: 0;
    width: 270px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    z-index: 1030;
    overflow-y: auto;
}

.superadmin-sidebar-inner {
    padding: 22px 16px;
    width: 100%;
}

.superadmin-sidebar-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 16px 32px rgba(17, 24, 39, .14);
}

.superadmin-sidebar-card span,
.superadmin-sidebar-card strong {
    display: block;
}

.superadmin-sidebar-card span {
    color: rgba(255, 255, 255, .68);
    font-size: .75rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.superadmin-sidebar-card strong {
    margin-top: 3px;
    font-size: .98rem;
}

.superadmin-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 5px;
}

.superadmin-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #475569;
    text-decoration: none;
    border-radius: 18px;
    padding: 12px 13px;
    font-weight: 850;
    transition: .16s ease;
}

.superadmin-nav a i {
    width: 22px;
    color: #64748b;
    text-align: center;
}

.superadmin-nav a:hover {
    background: #f8fafc;
    color: #111827;
}

.superadmin-nav a.is-active {
    background: #fff0ec;
    color: #ef4b3f;
    box-shadow: inset 0 0 0 1px rgba(239, 75, 63, .12);
}

.superadmin-nav a.is-active i {
    color: #ef4b3f;
}

.superadmin-offcanvas {
    border-right: 0;
    max-width: min(88vw, 360px);
}

.superadmin-offcanvas .offcanvas-header {
    border-bottom: 1px solid #e5e7eb;
}

.superadmin-main {
    min-height: 100vh;
    padding: 112px 28px 44px;
}

@media (min-width: 992px) {
    .superadmin-main {
        margin-left: 270px;
    }
}

@media (max-width: 767.98px) {
    .superadmin-topbar-inner {
        padding: 0 14px;
    }

    .superadmin-brand-text small {
        display: none;
    }

    .superadmin-main {
        padding: 98px 14px 34px;
    }
}

.superadmin-page {
    max-width: 1280px;
    margin: 0 auto;
}

.superadmin-page-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.superadmin-page-header h1 {
    margin: 8px 0 4px;
    font-weight: 950;
    letter-spacing: -.04em;
    color: #111827;
}

.superadmin-page-header p {
    margin: 0;
    color: #64748b;
    font-weight: 650;
    max-width: 720px;
}

.superadmin-eyebrow {
    display: inline-flex;
    align-items: center;
    color: #ef4b3f;
    background: #fff0ec;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .75rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.superadmin-header-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.superadmin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.superadmin-stat-card {
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
    padding: 18px;
}

.superadmin-stat-card span {
    display: block;
    color: #64748b;
    font-size: .82rem;
    font-weight: 900;
}

.superadmin-stat-card strong {
    display: block;
    color: #111827;
    font-size: 1.8rem;
    font-weight: 950;
    margin-top: 5px;
}

.superadmin-stat-card.is-warning {
    border-color: rgba(239, 68, 68, .18);
    background: #fff7f7;
}

.superadmin-filter-card {
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.superadmin-search-box {
    position: relative;
}

.superadmin-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.superadmin-search-box .form-control {
    min-height: 46px;
    border-radius: 18px;
    padding-left: 42px;
}

.superadmin-filter-card .form-select,
.superadmin-filter-card .btn {
    min-height: 46px;
}

.superadmin-table-card {
    overflow: hidden;
}

.superadmin-table-header {
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f3;
    background: #ffffff;
}

.superadmin-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
    padding: 13px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.superadmin-table tbody td {
    padding: 14px 15px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.superadmin-table tbody tr:hover td {
    background: #fafafa;
}

.sa-business-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 250px;
}

.sa-business-cell strong,
.sa-business-cell small {
    display: block;
}

.sa-business-cell strong {
    color: #111827;
    font-weight: 950;
    line-height: 1.15;
}

.sa-business-cell small {
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    margin-top: 2px;
}

.sa-business-avatar {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff0ec;
    color: #ef4b3f;
    overflow: hidden;
    flex-shrink: 0;
}

.sa-business-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa-mono {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .82rem;
}

.sa-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .75rem;
    font-weight: 950;
}

.sa-status-badge.is-success {
    background: #dcfce7;
    color: #166534;
}

.sa-status-badge.is-info {
    background: #cffafe;
    color: #155e75;
}

.sa-status-badge.is-muted {
    background: #f1f5f9;
    color: #475569;
}

.sa-status-badge.is-neutral {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e5e7eb;
}

.sa-status-dot {
    display: inline-block;
    width: 34px;
    height: 12px;
    border-radius: 999px;
    position: relative;
    background: #e5e7eb;
}

.sa-status-dot::after {
    content: "";
    position: absolute;
    top: 2px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ffffff;
}

.sa-status-dot.is-on {
    background: #86efac;
}

.sa-status-dot.is-on::after {
    right: 3px;
}

.sa-status-dot.is-off::after {
    left: 3px;
}

.superadmin-empty-state {
    min-height: 280px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 34px;
    color: #64748b;
}

.superadmin-empty-state i {
    width: 64px;
    height: 64px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: #fff0ec;
    color: #ef4b3f;
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.superadmin-empty-state strong {
    display: block;
    color: #111827;
    font-size: 1.08rem;
}

.superadmin-empty-state span {
    display: block;
    margin-top: 4px;
    max-width: 360px;
}

@media (max-width: 991.98px) {
    .superadmin-page-header {
        flex-direction: column;
    }

    .superadmin-header-actions {
        justify-content: flex-start;
        width: 100%;
    }

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

@media (max-width: 575.98px) {
    .superadmin-stat-grid {
        grid-template-columns: 1fr;
    }

    .superadmin-header-actions .btn {
        width: 100%;
    }
}


/* =========================
   Superadmin v2.1 extras
========================= */

.sa-category-name strong,
.sa-category-name small {
    display: block;
}

.sa-category-name strong {
    color: #111827;
    font-weight: 950;
}

.sa-category-name small {
    color: #64748b;
    font-size: .78rem;
    line-height: 1.35;
    margin-top: 3px;
    max-width: 520px;
}

.sa-color-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sa-color-dots span {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, .12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.sa-switch-card {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #edf0f3;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px 13px;
    font-weight: 900;
    color: #334155;
    cursor: pointer;
}

.sa-switch-card input {
    accent-color: #ef4b3f;
}

.sa-edit-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.negocio-edit-page .form-control,
.negocio-edit-page .form-select,
.categorias-admin-page .form-control,
.categorias-admin-page .form-select {
    min-height: 46px;
    border-color: #edf0f3;
}

.negocio-edit-page .form-control:focus,
.negocio-edit-page .form-select:focus,
.categorias-admin-page .form-control:focus,
.categorias-admin-page .form-select:focus {
    border-color: #ef4b3f;
    box-shadow: 0 0 0 .2rem rgba(239, 75, 63, .12);
}

@media (max-width: 767.98px) {
    .sa-edit-switches {
        grid-template-columns: 1fr;
    }
}


/* =========================
   Login / recovery v2
========================= */

.cmm-login-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(239,75,63,.14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(34,197,94,.12), transparent 28%),
        #f8fafc;
    font-family: 'Poppins', sans-serif;
    color: #111827;
}

.cmm-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
    gap: 28px;
    align-items: center;
    padding: 34px;
}

.cmm-login-shell.is-simple {
    grid-template-columns: minmax(320px, 480px);
    justify-content: center;
}

.cmm-login-hero {
    min-height: calc(100vh - 68px);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(17,24,39,.82), rgba(31,41,55,.66)),
        var(--login-hero-image, linear-gradient(135deg, #ef4b3f, #22c55e));
    color: #ffffff;
    padding: 46px;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 30px 70px rgba(15,23,42,.18);
}

.cmm-login-hero h1 {
    max-width: 720px;
    font-weight: 950;
    letter-spacing: -.05em;
    font-size: clamp(2.2rem, 4vw, 4.8rem);
    line-height: .95;
    margin: 14px 0;
}

.cmm-login-hero p {
    color: rgba(255,255,255,.78);
    font-size: 1.08rem;
    max-width: 520px;
    font-weight: 650;
}

.cmm-login-badge {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    padding: 8px 12px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .04em;
}

.cmm-login-card {
    width: 100%;
    max-width: 460px;
    margin: auto;
    background: rgba(255,255,255,.92);
    border: 1px solid #edf0f3;
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(15,23,42,.12);
    backdrop-filter: blur(14px);
}

.cmm-login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 26px;
}

.cmm-login-brand span {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4b3f 0%, #22c55e 100%);
    box-shadow: 0 12px 24px rgba(239,75,63,.22);
}

.cmm-login-brand strong,
.cmm-login-brand small {
    display: block;
}

.cmm-login-brand strong {
    font-weight: 950;
    line-height: 1.1;
}

.cmm-login-brand small,
.cmm-login-muted {
    color: #64748b;
    font-weight: 700;
}

.cmm-login-card h2 {
    font-weight: 950;
    letter-spacing: -.035em;
    margin-bottom: 4px;
}

.cmm-login-card .form-control {
    border-color: #edf0f3;
    min-height: 52px;
}

.cmm-login-card .form-control:focus {
    border-color: #ef4b3f;
    box-shadow: 0 0 0 .2rem rgba(239,75,63,.12);
}

.cmm-login-link {
    color: #ef4b3f;
    text-decoration: none;
    font-weight: 850;
    font-size: .9rem;
}

.cmm-login-link:hover {
    color: #dc2626;
}

@media (max-width: 991.98px) {
    .cmm-login-shell {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

/* Owner visual polish v3 */
.owner-topbar,
.owner-sidebar-card,
.owner-user-dropdown {
    border-color: rgba(34,197,94,.12);
}

.owner-brand-icon,
.owner-mobile-header .owner-brand-icon {
    background: linear-gradient(135deg, #ef4b3f 0%, #22c55e 100%);
}

.owner-preview-link:hover,
.owner-preview-link:focus,
.owner-nav-link.active,
.owner-sidebar-footer a:hover {
    border-color: rgba(34,197,94,.22);
}
