/* =========================================================
   MineLatino Design System — Global
   ========================================================= */
:root {
    color-scheme: light;
    --ml-page: #f3c18f;
    --ml-page-deep: #e6aa73;
    --ml-paper: #fff4e7;
    --ml-paper-2: #f9e6d1;
    --ml-paper-3: #f2d4b5;
    --ml-ink: #4e2b1d;
    --ml-ink-deep: #3c2015;
    --ml-ink-soft: #754a35;
    --ml-brown: #673821;
    --ml-brown-deep: #3b1f15;
    --ml-orange: #dc7438;
    --ml-orange-deep: #b85225;
    --ml-gold: #ffc24f;
    --ml-gold-soft: #ffdb8d;
    --ml-line: rgba(105,53,28,.20);
    --ml-line-strong: rgba(105,53,28,.34);
    --ml-shadow: rgba(91,45,23,.16);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ml-page: #1b110d;
    --ml-page-deep: #120b08;
    --ml-paper: #291b15;
    --ml-paper-2: #332219;
    --ml-paper-3: #3c281e;
    --ml-ink: #f5e6d6;
    --ml-ink-deep: #fff4e8;
    --ml-ink-soft: #bea58f;
    --ml-brown: #4a2a1d;
    --ml-brown-deep: #1a0f0b;
    --ml-orange: #ea8248;
    --ml-orange-deep: #c96335;
    --ml-gold: #ffc765;
    --ml-gold-soft: #f2d197;
    --ml-line: rgba(255,218,181,.13);
    --ml-line-strong: rgba(255,218,181,.22);
    --ml-shadow: rgba(0,0,0,.32);
}


    html,
    body {
        font-family: 'Rubik', sans-serif;
    }

    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(83, 43, 24, 0.24);
        border-radius: 999px;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(196, 98, 46, 0.56);
        border: 2px solid rgba(255, 218, 177, 0.65);
        border-radius: 999px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(169, 76, 34, 0.78);
    }

    /* =========================================================
       NAVBAR — PROPUESTA CÁLIDA / SEGMENTADA
       ========================================================= */
    .navbar {
        --nav-shell: #eda56f;
        --nav-shell-light: #f4ba88;
        --nav-shell-deep: #c87243;
        --nav-ink: #5b301e;
        --nav-ink-deep: #3d2015;
        --nav-cream: #fff7ec;
        --nav-cream-soft: rgba(255, 247, 236, 0.78);
        --nav-highlight: #ffd899;
        --nav-shadow: rgba(92, 45, 24, 0.30);
        --nav-button: #87492f;
        --nav-button-deep: #6d3926;

        margin: 0.9rem 1rem 1rem;
        padding: 0.48rem;
        border-radius: 17px;
        border: 1px solid rgba(105, 53, 28, 0.48);
        background:
            linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0) 30%),
            linear-gradient(180deg, var(--nav-shell-light), var(--nav-shell));
        box-shadow:
            0 4px 0 rgba(125, 62, 33, 0.62),
            0 12px 28px rgba(77, 37, 20, 0.14),
            inset 0 1px 0 rgba(255, 245, 227, 0.42);
        position: relative;
        overflow: visible;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        padding: 0.1rem;
        position: relative;
        z-index: 2;
    }

    .navbar-brand-home {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin: 0 0.28rem 0 0.05rem !important;
        padding: 0 !important;
        border-radius: 13px !important;
        border: 1px solid rgba(255, 232, 201, 0.24);
        background: linear-gradient(180deg, var(--nav-button), var(--nav-button-deep)) !important;
        box-shadow:
            0 2px 0 #56301f,
            inset 0 1px 0 rgba(255,255,255,0.10);
        overflow: visible;
        transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    }

    .navbar-brand-home:hover,
    .navbar-brand-home:focus {
        transform: translateY(-2px);
        filter: brightness(1.04);
        box-shadow:
            0 3px 0 #56301f,
            0 7px 14px rgba(75, 34, 18, 0.11),
            inset 0 1px 0 rgba(255,255,255,0.10);
    }

    .navbar-brand-home img.navbar-brand-logo {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        flex: 0 0 44px !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 10px !important;
        display: block !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        transform: none !important;
    }

    .navbar-brand-logo--fallback {
        width: 44px;
        height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        color: #ffe2ae;
        background: rgba(255,255,255,0.05);
    }

    .navbar-menu {
        background: none;
        box-shadow: none;
        position: relative;
        z-index: 2;
    }

    .navbar-start {
        gap: 0.08rem;
    }

    /* =========================================================
       NAVEGACIÓN PRINCIPAL
       ========================================================= */
    .navbar-start > a.navbar-item,
    .navbar-start > .navbar-item.has-dropdown > .navbar-link {
        position: relative;
        min-height: 50px;
        margin: 0 0.08rem;
        padding: 0.65rem 0.78rem;
        border-radius: 12px;
        background: transparent !important;
        color: rgba(92, 43, 23, 0.88) !important;
        font-size: 0.86rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.035em;
        text-transform: uppercase;
        transition:
            color 0.18s ease,
            background 0.18s ease,
            transform 0.18s ease,
            box-shadow 0.18s ease;
        overflow: visible;
    }

    .navbar-start > a.navbar-item .icon,
    .navbar-start > .navbar-item.has-dropdown > .navbar-link .icon {
        width: 1.05rem;
        margin-right: 0.32rem;
        color: currentColor !important;
        opacity: 0.72;
    }

    .navbar-start > a.navbar-item .icon i,
    .navbar-start > .navbar-item.has-dropdown > .navbar-link .icon i {
        color: currentColor !important;
        font-size: 0.84rem;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .navbar-start > a.navbar-item:hover,
    .navbar-start > a.navbar-item:focus,
    .navbar-start > .navbar-item.has-dropdown:hover > .navbar-link,
    .navbar-start > .navbar-item.has-dropdown > .navbar-link:hover,
    .navbar-start > .navbar-item.has-dropdown > .navbar-link:focus {
        color: var(--nav-ink-deep) !important;
        background: rgba(255, 239, 217, 0.32) !important;
        transform: translateY(-1px);
        box-shadow: none;
    }

    .navbar-start > a.navbar-item:hover .icon i,
    .navbar-start > .navbar-item.has-dropdown:hover > .navbar-link .icon i {
        transform: translateY(-1px) scale(1.06);
        opacity: 1;
    }

    /* Estado activo: mismo lenguaje del marco del logo, sin marcador inferior. */
    .navbar-start > a.navbar-item.is-active,
    .navbar-start > .navbar-item.has-dropdown > .navbar-link.is-active {
        color: #fffaf2 !important;
        background: linear-gradient(180deg, var(--nav-button), var(--nav-button-deep)) !important;
        box-shadow:
            0 2px 0 #56301f,
            0 5px 10px rgba(91, 43, 24, 0.10),
            inset 0 1px 0 rgba(255,255,255,0.12);
        transform: none;
        align-items: center;
    }

    .navbar-start > a.navbar-item.is-active .icon,
    .navbar-start > .navbar-item.has-dropdown > .navbar-link.is-active .icon {
        color: #ffe8bf !important;
        opacity: 1;
    }

    /* Flechas de submenú: posición explícita para que queden centradas. */
    .navbar-start > .navbar-item.has-dropdown > .navbar-link {
        padding-right: 2rem;
    }

    .navbar-start > .navbar-item.has-dropdown > .navbar-link:not(.is-arrowless)::after,
    .account-dropdown > .navbar-link:not(.is-arrowless)::after {
        width: 0.52em;
        height: 0.52em;
        right: 0.78rem;
        top: 50%;
        margin-top: -0.30em;
        border: 2px solid currentColor;
        border-right: 0;
        border-top: 0;
        border-radius: 1px;
        display: block;
        position: absolute;
        pointer-events: none;
        opacity: 0.72;
        transform: rotate(-45deg);
        transform-origin: center;
        transition: transform 0.20s ease, opacity 0.18s ease;
    }

    .navbar-item.has-dropdown.is-active > .navbar-link:not(.is-arrowless)::after {
        margin-top: -0.18em;
        transform: rotate(135deg);
    }

    /* =========================================================
       DROPDOWNS
       ========================================================= */
    .navbar-dropdown {
        margin-top: 0;
        padding: 0.45rem;
        min-width: 225px;
        border-radius: 13px;
        border: 1px solid rgba(107, 54, 29, 0.26);
        background: linear-gradient(180deg, #fff0dc, #f4c797);
        box-shadow:
            0 5px 0 rgba(124, 62, 32, 0.25),
            0 16px 28px rgba(79, 37, 20, 0.18),
            inset 0 1px 0 rgba(255,255,255,0.48);
        overflow: hidden;
    }

    @media screen and (min-width: 1024px) {
        .navbar-item.has-dropdown > .navbar-dropdown {
            top: calc(100% - 1px);
        }

        .navbar-item.has-dropdown.is-hoverable:hover > .navbar-dropdown,
        .navbar-item.has-dropdown.is-hoverable:focus-within > .navbar-dropdown {
            display: block;
        }
    }

    .navbar-dropdown .navbar-item {
        min-height: 42px;
        margin: 0.12rem 0;
        padding: 0.58rem 0.72rem;
        border-radius: 9px;
        background: transparent !important;
        color: rgba(84, 40, 21, 0.84) !important;
        font-size: 0.84rem;
        font-weight: 700;
        transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
    }

    .navbar-dropdown .navbar-item:hover,
    .navbar-dropdown .navbar-item:focus {
        color: #4b2516 !important;
        background: rgba(255, 255, 255, 0.42) !important;
        transform: translateX(2px);
    }

    .navbar-dropdown .navbar-item.is-active {
        color: #fffaf4 !important;
        background: #8b4a2c !important;
    }

    .navbar-dropdown .navbar-item .icon {
        margin-right: 0.42rem;
        color: #a8562e;
    }

    .navbar-dropdown .navbar-item.is-active .icon {
        color: #ffe0ab;
    }

    .navbar-divider {
        height: 1px;
        margin: 0.38rem 0 !important;
        background-color: rgba(116, 58, 31, 0.14) !important;
        border: 0;
    }

    /* =========================================================
       CUENTA / LOGIN
       ========================================================= */
    .navbar-end {
        align-items: center;
    }

    .account-dropdown {
        position: relative;
        padding: 0 !important;
        margin-left: 0.28rem !important;
    }

    .account-dropdown .account-navbar-link {
        width: 100%;
        min-width: 210px;
        min-height: 50px;
        box-sizing: border-box;
        padding: 0.36rem 2.45rem 0.36rem 0.48rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 226, 188, 0.20);
        background: linear-gradient(180deg, var(--nav-button), var(--nav-button-deep)) !important;
        color: #fff8ef !important;
        box-shadow:
            0 3px 0 #472417,
            inset 0 1px 0 rgba(255,255,255,0.07);
        transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    }

    .account-dropdown .account-navbar-link:hover,
    .account-dropdown:hover .account-navbar-link,
    .account-dropdown .account-navbar-link.is-active {
        color: #ffffff !important;
        background: linear-gradient(180deg, #955238, #78402a) !important;
        transform: translateY(-1px);
        box-shadow:
            0 4px 0 #472417,
            0 7px 12px rgba(77, 35, 18, 0.12),
            inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .navbar-user-profile {
        display: flex;
        align-items: center;
        gap: 0.66rem;
        width: 100%;
    }

    .navbar-user-profile img {
        width: 37px !important;
        height: 37px !important;
        min-width: 37px !important;
        max-height: none !important;
        flex-shrink: 0 !important;
        object-fit: cover !important;
        border-radius: 9px;
        border: 1px solid rgba(255, 225, 178, 0.48);
        padding: 0;
        background: rgba(255,255,255,0.08);
    }

    .navbar-user-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .navbar-user-username {
        color: #ffffff;
        font-weight: 800;
        font-size: 0.88rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-user-role {
        margin-top: 0.12rem;
        color: rgba(255, 224, 178, 0.80);
        font-size: 0.67rem;
        font-weight: 700;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .account-menu {
        width: 100%;
        min-width: 100%;
        left: 0;
        right: auto;
        box-sizing: border-box;
    }

    .account-menu form,
    .account-menu .logout-menu-item {
        width: 100%;
    }

    .logout-menu-item {
        width: 100%;
        border: none;
        cursor: pointer;
        text-align: left;
        font-family: inherit;
        font-size: 0.9rem;
        color: #9e332f !important;
        background: transparent !important;
    }

    .logout-menu-item:hover,
    .logout-menu-item:focus {
        color: #ffffff !important;
        background: #a43e35 !important;
    }

    .navbar-login-shell {
        padding: 0 !important;
        margin-left: 0.25rem !important;
        min-height: 50px;
        background: transparent !important;
    }

    .navbar-login-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.48rem;
        min-height: 50px;
        padding: 0.65rem 1rem;
        border-radius: 12px;
        border: 1px solid rgba(131, 71, 29, 0.24);
        background: linear-gradient(180deg, #ffc24f, #efa20d);
        color: #5b2e14 !important;
        font-weight: 900;
        font-size: 0.83rem;
        text-transform: uppercase;
        letter-spacing: 0.035em;
        text-decoration: none;
        box-shadow:
            0 3px 0 #b56b08,
            inset 0 1px 0 rgba(255,255,255,0.42);
        transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    }

    .navbar-login-button:hover,
    .navbar-login-button:focus {
        color: #51270f !important;
        transform: translateY(-2px);
        filter: brightness(1.02);
        box-shadow:
            0 5px 0 #b56b08,
            0 8px 16px rgba(117, 63, 16, 0.13),
            inset 0 1px 0 rgba(255,255,255,0.42);
    }

    /* =========================================================
       ESCRITORIO
       ========================================================= */
    @media screen and (min-width: 1024px) {
        .navbar {
            display: flex;
            align-items: stretch;
        }

        .navbar-menu {
            display: flex;
            flex: 1 1 auto;
            min-width: 0;
            align-items: stretch;
        }

        .navbar-start {
            display: flex;
            flex: 1 1 auto;
            min-width: 0;
            align-items: center;
            flex-wrap: wrap;
        }

        .navbar-end {
            display: flex;
            flex: 0 0 auto;
            margin-left: auto !important;
            margin-right: 0.08rem;
        }

        .navbar-item.has-dropdown {
            padding: 0;
            align-items: stretch;
        }
    }

    /* =========================================================
       MÓVIL / TABLET
       ========================================================= */
    .navbar-burger {
        color: var(--nav-ink);
        border-radius: 11px;
        height: auto;
        transition: color 0.18s ease, background 0.18s ease;
    }

    .navbar-burger:hover,
    .navbar-burger:focus {
        color: var(--nav-ink-deep);
        background: rgba(255, 244, 228, 0.28);
    }

    @media screen and (max-width: 1023px) {
        .navbar {
            margin-inline: 0.75rem;
            padding: 0.42rem;
        }

        .navbar-brand {
            min-height: 54px;
            justify-content: space-between;
        }

        .navbar-menu {
            margin-top: 0.55rem;
            padding: 0.5rem;
            border-radius: 13px;
            border: 1px solid rgba(105, 53, 28, 0.16);
            background: rgba(255, 229, 197, 0.40);
            backdrop-filter: blur(10px);
        }

        .navbar-start,
        .navbar-end {
            display: block;
            width: 100%;
        }

        .navbar-start > a.navbar-item,
        .navbar-start > .navbar-item.has-dropdown > .navbar-link {
            width: 100%;
            min-height: 48px;
            margin: 0.08rem 0;
            justify-content: flex-start;
        }

        .navbar-item.has-dropdown {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            padding: 0;
        }

        .navbar-dropdown {
            display: none;
            margin: 0.42rem 0.28rem 0.55rem;
            box-shadow: none;
        }

        .navbar-item.has-dropdown.is-active .navbar-dropdown {
            display: block;
            animation: navDropdownIn 0.22s ease;
        }

        .navbar-end {
            margin-left: 0 !important;
            margin-right: 0;
            padding-top: 0.35rem;
        }

        .account-dropdown,
        .account-dropdown .account-navbar-link,
        .account-menu {
            width: 100%;
        }

        .account-dropdown {
            margin-left: 0 !important;
        }

        .account-dropdown .account-navbar-link {
            min-width: 0;
        }

        .navbar-login-shell {
            margin-left: 0 !important;
        }

        .navbar-login-button {
            width: 100%;
        }
    }

    @keyframes navDropdownIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* =========================================================
       AVISO GLOBAL DE SANCIÓN ACTIVA
       ========================================================= */
    .active-punishment-alert {
        margin: 0.9rem 1rem 0;
        padding: 0.9rem 1rem;
        border: 1px solid rgba(158, 47, 44, 0.32);
        border-radius: 14px;
        background: linear-gradient(180deg, #f6c1ad, #e99b80);
        box-shadow: 0 4px 0 rgba(142, 55, 40, 0.30);
        color: #58241f;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .active-punishment-alert__content {
        min-width: 0;
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .active-punishment-alert__icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(119, 33, 32, 0.12);
        color: #8e302e;
        font-size: 1rem;
    }

    .active-punishment-alert__title {
        margin: 0 0 0.2rem;
        font-weight: 800;
        font-size: 0.95rem;
        color: #56231e;
    }

    .active-punishment-alert__details {
        margin: 0;
        color: rgba(86, 35, 30, 0.80);
        font-size: 0.82rem;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .active-punishment-alert__case {
        color: #7f2927;
        font-weight: 800;
    }

    .active-punishment-alert__actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .active-punishment-alert__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        min-height: 34px;
        padding: 0.45rem 0.72rem;
        border-radius: 9px;
        border: 1px solid rgba(105, 40, 32, 0.18);
        background: rgba(255, 247, 239, 0.34);
        color: #652b25;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 700;
        transition: transform 0.18s ease, background 0.18s ease;
    }

    .active-punishment-alert__button:hover,
    .active-punishment-alert__button:focus {
        color: #4d201c;
        background: rgba(255, 250, 244, 0.55);
        transform: translateY(-1px);
    }

    .active-punishment-alert__button.is-primary {
        color: #fff9f3;
        background: #8e3b33;
        border-color: #7c302a;
    }

    @media screen and (max-width: 768px) {
        .active-punishment-alert {
            margin-inline: 0.75rem;
            flex-direction: column;
            align-items: stretch;
        }

        .active-punishment-alert__actions {
            width: 100%;
        }

        .active-punishment-alert__button {
            flex: 1 1 0;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .navbar *,
        .navbar *::before,
        .navbar *::after {
            animation: none !important;
            transition-duration: 0.001ms !important;
        }
    }


    .modern-footer {
        --footer-shell: #6b3a22;
        --footer-shell-deep: #3f2116;
        --footer-shell-mid: #542c1b;
        --footer-peach: #efa973;
        --footer-gold: #ffc45c;
        --footer-cream: #fff5e8;
        --footer-text: rgba(255, 238, 216, 0.72);
        --footer-line: rgba(255, 220, 174, 0.13);

        position: relative;
        margin-top: auto;
        padding: 3rem 0 0;
        color: var(--footer-text);
        background:
            radial-gradient(circle at 12% 0%, rgba(255, 185, 103, 0.13), transparent 26%),
            linear-gradient(180deg, #714027 0%, var(--footer-shell-mid) 48%, var(--footer-shell-deep) 100%);
        border-top: 1px solid rgba(105, 53, 28, 0.42);
        box-shadow:
            inset 0 1px 0 rgba(255, 230, 194, 0.10),
            0 -12px 28px rgba(84, 39, 20, 0.08);
        overflow: hidden;
    }

    .modern-footer::before {
        content: '';
        position: absolute;
        inset: 0 0 auto;
        height: 5px;
        background: linear-gradient(90deg, #f6b36d, #ffc75f 45%, #dc7438 100%);
        box-shadow: 0 2px 0 rgba(73, 34, 19, 0.28);
    }

    .modern-footer::after {
        content: '';
        position: absolute;
        right: -120px;
        top: 55px;
        width: 360px;
        height: 360px;
        border: 1px solid rgba(255, 225, 183, 0.045);
        border-radius: 50%;
        box-shadow:
            0 0 0 34px rgba(255, 225, 183, 0.018),
            0 0 0 72px rgba(255, 225, 183, 0.012);
        pointer-events: none;
    }

    .modern-footer .container {
        position: relative;
        z-index: 1;
        width: min(1220px, calc(100% - 2rem));
        margin: 0 auto;
    }

    .footer-grid {
        display: grid;
        grid-template-columns:
            minmax(300px, 1.55fr)
            minmax(175px, 0.78fr)
            minmax(190px, 0.86fr)
            minmax(215px, 0.95fr);
        gap: clamp(1.5rem, 3vw, 2.6rem);
        align-items: start;
    }

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

    .footer-brand-column {
        padding-right: clamp(0rem, 2vw, 1.8rem);
    }

    .footer-brand-heading {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        margin-bottom: 1.1rem;
    }

    .footer-brand-logo {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 12px;
        object-fit: cover;
        border: 1px solid rgba(255, 225, 184, 0.16);
        background: rgba(255, 245, 230, 0.07);
        padding: 2px;
        box-shadow:
            0 3px 0 rgba(44, 21, 13, 0.26),
            inset 0 1px 0 rgba(255,255,255,0.06);
    }

    .footer-brand-separator {
        width: 1px;
        height: 38px;
        background: linear-gradient(180deg, transparent, rgba(255, 207, 135, 0.55), transparent);
        flex: 0 0 1px;
    }

    .footer-brand-title {
        margin: 0;
        color: var(--footer-cream);
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .footer-about {
        margin: 0;
        max-width: 590px;
        color: rgba(255, 237, 215, 0.66);
        font-size: 0.85rem;
        line-height: 1.72;
    }

    .footer-about + .footer-about {
        margin-top: 0.72rem;
    }

    .footer-about.is-highlight {
        margin-top: 1rem;
        padding: 0.8rem 0.9rem;
        border-left: 3px solid rgba(255, 195, 91, 0.72);
        border-radius: 0 10px 10px 0;
        background: rgba(255, 238, 213, 0.055);
        color: rgba(255, 244, 231, 0.84);
        font-weight: 700;
        line-height: 1.58;
    }

    .footer-socials {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1.2rem;
    }

    .footer-social-link {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        border: 1px solid rgba(255, 222, 174, 0.13);
        background: rgba(255, 241, 221, 0.07);
        color: rgba(255, 238, 215, 0.74);
        text-decoration: none;
        box-shadow: 0 2px 0 rgba(44, 21, 13, 0.22);
        transition:
            transform 0.18s ease,
            background 0.18s ease,
            color 0.18s ease,
            border-color 0.18s ease,
            box-shadow 0.18s ease;
    }

    .footer-social-link:hover,
    .footer-social-link:focus {
        transform: translateY(-2px);
        color: #4b2818;
        background: linear-gradient(180deg, #ffd17a, #f6b445);
        border-color: rgba(255, 225, 175, 0.32);
        box-shadow: 0 4px 0 rgba(69, 31, 16, 0.25);
    }

    .footer-social-link i {
        font-size: 0.95rem;
    }

    .footer-title {
        position: relative;
        margin: 0 0 1rem;
        padding-bottom: 0.72rem;
        color: var(--footer-cream);
        font-size: 0.82rem;
        font-weight: 900;
        letter-spacing: 0.095em;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 0.55rem;
    }

    .footer-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 34px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--footer-gold), rgba(255, 196, 92, 0));
    }

    .footer-title i {
        color: #ffca68;
        font-size: 0.84rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.18rem 0;
        color: rgba(255, 235, 209, 0.67);
        text-decoration: none;
        font-size: 0.82rem;
        line-height: 1.38;
        transition: color 0.18s ease, transform 0.18s ease;
    }

    .footer-link::before {
        content: '';
        width: 6px;
        height: 6px;
        border: 1px solid rgba(255, 201, 112, 0.66);
        border-radius: 2px;
        background: transparent;
        flex: 0 0 auto;
        transform: rotate(45deg);
        transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    }

    .footer-link:hover,
    .footer-link:focus {
        color: #fff7eb;
        transform: translateX(3px);
    }

    .footer-link:hover::before,
    .footer-link:focus::before {
        background: #ffc45c;
        border-color: #ffc45c;
        transform: rotate(45deg) scale(1.15);
    }

    .footer-contact-copy {
        margin: 0 0 1rem;
        color: rgba(255, 235, 210, 0.64);
        font-size: 0.84rem;
        line-height: 1.62;
    }

    .footer-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 0.7rem;
        margin-top: 0.6rem;
        padding: 0.65rem 0.72rem;
        border: 1px solid rgba(255, 220, 171, 0.095);
        border-radius: 10px;
        background: rgba(255, 241, 219, 0.045);
        color: rgba(255, 237, 214, 0.7);
        font-size: 0.82rem;
        line-height: 1.4;
        transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    }

    .footer-contact-item:hover {
        transform: translateY(-1px);
        background: rgba(255, 241, 219, 0.075);
        border-color: rgba(255, 220, 171, 0.16);
    }

    .footer-contact-item i {
        width: 20px;
        margin-top: 0.13rem;
        color: #ffca68;
        text-align: center;
    }

    .footer-contact-item strong {
        color: #fff5e8 !important;
    }

    .footer-contact-item a {
        color: rgba(255, 239, 217, 0.78);
        text-decoration: none;
    }

    .footer-contact-item a:hover {
        color: #ffd27e;
    }

    .footer-bottom {
        margin-top: 2.6rem;
        padding: 1rem 0 1.2rem;
        border-top: 1px solid rgba(255, 221, 175, 0.11);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        color: rgba(255, 233, 206, 0.43);
        font-size: 0.76rem;
    }

    .footer-bottom strong {
        color: rgba(255, 242, 225, 0.75);
        font-weight: 700;
    }

    .footer-credit {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
    }

    .footer-credit i {
        color: #ffc568;
    }

    @media screen and (max-width: 1100px) {
        .footer-grid {
            grid-template-columns: 1.35fr 1fr 1fr;
        }

        .footer-contact-column {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            column-gap: 0.75rem;
        }

        .footer-contact-column .footer-title,
        .footer-contact-column .footer-contact-copy {
            grid-column: 1 / -1;
        }
    }

    @media screen and (max-width: 760px) {
        .modern-footer {
            padding-top: 2.4rem;
        }

        .footer-grid {
            grid-template-columns: 1fr 1fr;
        }

        .footer-brand-column,
        .footer-contact-column {
            grid-column: 1 / -1;
        }
    }

    @media screen and (max-width: 560px) {
        .modern-footer .container {
            width: min(100% - 1.3rem, 1220px);
        }

        .footer-grid,
        .footer-contact-column {
            grid-template-columns: 1fr;
            gap: 1.7rem;
        }

        .footer-contact-column {
            gap: 0.55rem;
        }

        .footer-brand-column,
        .footer-contact-column,
        .footer-contact-column .footer-title,
        .footer-contact-column .footer-contact-copy {
            grid-column: auto;
        }

        .footer-bottom {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.45rem;
        }
    }

/* =========================================================
   Selector flotante de tema
   ========================================================= */
.ml-theme-toggle {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: .52rem;
    min-height: 46px;
    padding: .62rem .8rem;
    border: 1px solid rgba(91,43,24,.38);
    border-radius: 13px;
    background: linear-gradient(180deg,#865039,#683721);
    color: #fff7ec;
    box-shadow: 0 3px 0 #4c281a, 0 12px 28px rgba(70,32,17,.20), inset 0 1px 0 rgba(255,255,255,.10);
    font: 800 .78rem/1 'Rubik',sans-serif;
    letter-spacing: .02em;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.ml-theme-toggle:hover,.ml-theme-toggle:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
    outline: none;
    box-shadow: 0 5px 0 #4c281a,0 15px 30px rgba(70,32,17,.23),inset 0 1px 0 rgba(255,255,255,.11);
}
.ml-theme-toggle:active { transform: translateY(1px); box-shadow: 0 1px 0 #4c281a,0 7px 16px rgba(70,32,17,.18); }
.ml-theme-toggle__icon { width:23px;height:23px;display:inline-grid;place-items:center;border-radius:7px;background:rgba(255,255,255,.10);font-size:.78rem; }
.ml-theme-toggle__label { white-space:nowrap; }
html[data-theme="dark"] .ml-theme-toggle {
    border-color: rgba(255,214,174,.18);
    background: linear-gradient(180deg,#e68a51,#bf6033);
    color:#28150e;
    box-shadow:0 3px 0 #7d3c22,0 12px 28px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.18);
}
html[data-theme="dark"] .ml-theme-toggle__icon { background:rgba(57,28,17,.13); }
@media(max-width:560px){.ml-theme-toggle{right:.78rem;bottom:.78rem;width:46px;height:46px;min-height:46px;padding:0;justify-content:center}.ml-theme-toggle__label{display:none}}
@media(prefers-reduced-motion:reduce){.ml-theme-toggle{transition:none!important}}

/* =========================================================
   Dark theme — global reusable components
   ========================================================= */
html[data-theme="dark"] .navbar {
    --nav-shell: #4a291d;
    --nav-shell-light: #603722;
    --nav-shell-deep: #29160f;
    --nav-ink: #ecd4bd;
    --nav-ink-deep: #fff3e4;
    --nav-cream: #fff3e4;
    --nav-cream-soft: rgba(255,238,219,.76);
    --nav-highlight: #ffc879;
    --nav-shadow: rgba(0,0,0,.34);
    --nav-button: #b85b35;
    --nav-button-deep: #8e4329;
    border-color: rgba(255,210,169,.15);
    background: linear-gradient(180deg,rgba(255,183,111,.06),rgba(255,255,255,0) 30%),linear-gradient(180deg,var(--nav-shell-light),var(--nav-shell));
    box-shadow:0 4px 0 #28150e,0 14px 30px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,238,216,.08);
}
html[data-theme="dark"] .navbar-start > a.navbar-item,
html[data-theme="dark"] .navbar-start > .navbar-item.has-dropdown > .navbar-link { color:rgba(255,231,207,.82)!important; }
html[data-theme="dark"] .navbar-start > a.navbar-item:hover,
html[data-theme="dark"] .navbar-start > a.navbar-item:focus,
html[data-theme="dark"] .navbar-start > .navbar-item.has-dropdown:hover > .navbar-link,
html[data-theme="dark"] .navbar-start > .navbar-item.has-dropdown > .navbar-link:hover,
html[data-theme="dark"] .navbar-start > .navbar-item.has-dropdown > .navbar-link:focus { color:#fff7ed!important;background:rgba(255,211,164,.08)!important; }
html[data-theme="dark"] .navbar-start > a.navbar-item.is-active,
html[data-theme="dark"] .navbar-start > .navbar-item.has-dropdown > .navbar-link.is-active { background:linear-gradient(180deg,#c96a3d,#a64d2e)!important;box-shadow:0 2px 0 #6d321f,0 5px 10px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.10); }
html[data-theme="dark"] .navbar-dropdown { border-color:rgba(255,216,178,.13);background:linear-gradient(180deg,#382219,#27150f);box-shadow:0 5px 0 #180d09,0 18px 32px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.04); }
html[data-theme="dark"] .navbar-dropdown .navbar-item { color:rgba(255,229,203,.78)!important; }
html[data-theme="dark"] .navbar-dropdown .navbar-item:hover,
html[data-theme="dark"] .navbar-dropdown .navbar-item:focus { color:#fff8ee!important;background:rgba(255,205,155,.08)!important; }
html[data-theme="dark"] .navbar-dropdown .navbar-item.is-active { background:#aa512f!important;color:#fff8ef!important; }
html[data-theme="dark"] .navbar-dropdown .navbar-item .icon { color:#ec9665; }
html[data-theme="dark"] .account-dropdown .account-navbar-link { background:linear-gradient(180deg,#9f5033,#773621)!important;border-color:rgba(255,222,185,.14); }
html[data-theme="dark"] .account-dropdown .account-navbar-link:hover,
html[data-theme="dark"] .account-dropdown:hover .account-navbar-link,
html[data-theme="dark"] .account-dropdown .account-navbar-link.is-active { background:linear-gradient(180deg,#b25b38,#854027)!important; }
html[data-theme="dark"] .modern-footer {
    --footer-shell:#24150f;
    --footer-shell-deep:#0f0906;
    --footer-shell-mid:#1a100c;
    --footer-peach:#e98950;
    --footer-gold:#ffc96c;
    --footer-cream:#fff0df;
    --footer-text:rgba(243,217,194,.70);
    --footer-line:rgba(255,220,184,.09);
    background:radial-gradient(circle at 12% 0%,rgba(232,132,73,.07),transparent 26%),linear-gradient(180deg,#2a1912 0%,var(--footer-shell-mid) 48%,var(--footer-shell-deep) 100%);
    border-top-color:rgba(255,219,181,.10);
}

/* =========================================================
   PORTAL DE CUENTA / CASOS
   Vistas migradas: perfil, apelaciones y reportes
   ========================================================= */
body.ml-portal-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 10% 0%, rgba(220,116,56,.11), transparent 30%),
        radial-gradient(circle at 92% 9%, rgba(255,194,79,.09), transparent 26%),
        linear-gradient(180deg, var(--ml-page) 0%, var(--ml-page-deep) 100%) !important;
    color: var(--ml-ink);
    font-family: 'Rubik', sans-serif !important;
}

html[data-theme="dark"] body.ml-portal-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(234,130,72,.10), transparent 30%),
        radial-gradient(circle at 92% 9%, rgba(255,199,101,.05), transparent 26%),
        linear-gradient(180deg, var(--ml-page) 0%, var(--ml-page-deep) 100%) !important;
}

body.ml-portal-page > .section {
    flex: 1 0 auto;
    margin: 0 !important;
    padding: 1rem 1rem 2.75rem !important;
}

body.ml-portal-page > .section > .container,
body.ml-portal-page .back-button-container > .container {
    width: min(calc(100% - 1rem), 1220px);
    max-width: 1220px !important;
}

body.ml-portal-page .back-button-container {
    margin: 0;
    padding: 0 1rem .25rem !important;
}

body.ml-portal-page .back-button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 42px;
    padding: .62rem .9rem !important;
    border: 1px solid var(--ml-line) !important;
    border-radius: 11px !important;
    background: var(--ml-paper) !important;
    color: var(--ml-ink) !important;
    box-shadow: 0 3px 0 rgba(113,57,30,.13);
    font-weight: 800 !important;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease !important;
}

body.ml-portal-page .back-button:hover,
body.ml-portal-page .back-button:focus-visible {
    transform: translateY(-1px) !important;
    border-color: var(--ml-line-strong) !important;
    background: var(--ml-paper-2) !important;
    color: var(--ml-ink-deep) !important;
    box-shadow: 0 4px 0 rgba(113,57,30,.16);
}

body.ml-portal-page .back-button:hover i {
    transform: translateX(-2px) !important;
}

/* Superficies compartidas */
body.ml-portal-page .glass-card,
body.ml-portal-page .profile-header,
body.ml-portal-page .roles-container,
body.ml-portal-page .minecraft-profile-section,
body.ml-portal-page .history-section,
body.ml-portal-page .messages-section,
body.ml-portal-page .support-history-section,
body.ml-portal-page .appeal-profile,
body.ml-portal-page .appeal-status-container,
body.ml-portal-page .appeal-question,
body.ml-portal-page .report-info-card,
body.ml-portal-page .actions-card {
    background: var(--ml-paper) !important;
    border: 1px solid var(--ml-line) !important;
    box-shadow: 0 12px 28px var(--ml-shadow) !important;
    backdrop-filter: none !important;
}

body.ml-portal-page .profile-header,
body.ml-portal-page .minecraft-profile-section,
body.ml-portal-page .support-history-section,
body.ml-portal-page .appeal-profile,
body.ml-portal-page .appeal-status-container,
body.ml-portal-page .report-info-card,
body.ml-portal-page .actions-card,
body.ml-portal-page .glass-card {
    border-radius: 16px !important;
}

body.ml-portal-page .stat-card,
body.ml-portal-page .timestamp-item,
body.ml-portal-page .minecraft-category-stat,
body.ml-portal-page .punishment-item,
body.ml-portal-page .message-item,
body.ml-portal-page .modal-user-info,
body.ml-portal-page .user-card,
body.ml-portal-page .reason-box,
body.ml-portal-page .metadata-item,
body.ml-portal-page .action-limits-card,
body.ml-portal-page .permission-checkbox-container,
body.ml-portal-page .radio-container,
body.ml-portal-page .reason-detail {
    background: var(--ml-paper-2) !important;
    border-color: var(--ml-line) !important;
    box-shadow: none !important;
}

body.ml-portal-page .stat-card:hover,
body.ml-portal-page .timestamp-item:hover,
body.ml-portal-page .minecraft-category-stat:hover,
body.ml-portal-page .punishment-item:hover,
body.ml-portal-page .message-item:hover,
body.ml-portal-page .user-card:hover,
body.ml-portal-page .appeal-question:hover,
body.ml-portal-page .permission-checkbox-container:hover,
body.ml-portal-page .radio-container:hover {
    background: var(--ml-paper-3) !important;
    border-color: var(--ml-line-strong) !important;
}

/* Jerarquía tipográfica */
body.ml-portal-page .section-title,
body.ml-portal-page .profile-name,
body.ml-portal-page .roles-header,
body.ml-portal-page .history-title,
body.ml-portal-page .support-history-title,
body.ml-portal-page .minecraft-player-name,
body.ml-portal-page .appeal-username,
body.ml-portal-page .report-id,
body.ml-portal-page .report-section-title,
body.ml-portal-page .user-name,
body.ml-portal-page .actions-title,
body.ml-portal-page .message-username,
body.ml-portal-page .modal-card-title,
body.ml-portal-page .timestamp-value,
body.ml-portal-page .stat-value,
body.ml-portal-page .minecraft-category-value,
body.ml-portal-page .punishment-details,
body.ml-portal-page .punishment-details .reason,
body.ml-portal-page .reason-box,
body.ml-portal-page .metadata-value,
body.ml-portal-page .timeline-text {
    color: var(--ml-ink-deep) !important;
}

body.ml-portal-page .profile-username,
body.ml-portal-page .profile-id,
body.ml-portal-page .no-roles,
body.ml-portal-page .timestamp-label,
body.ml-portal-page .minecraft-player-uuid,
body.ml-portal-page .minecraft-category-label,
body.ml-portal-page .minecraft-empty-stats,
body.ml-portal-page .history-time,
body.ml-portal-page .exact-date,
body.ml-portal-page .time,
body.ml-portal-page .action-description,
body.ml-portal-page .appeal-userid,
body.ml-portal-page .appeal-server-status,
body.ml-portal-page .metadata-label,
body.ml-portal-page .timeline-time,
body.ml-portal-page .user-id,
body.ml-portal-page .message-time,
body.ml-portal-page .support-history-subtitle,
body.ml-portal-page .report-timestamp {
    color: var(--ml-ink-soft) !important;
}

body.ml-portal-page .notice-item,
body.ml-portal-page .notice-content,
body.ml-portal-page .question-answer,
body.ml-portal-page .appeal-status-detail,
body.ml-portal-page .appeal-status-detail span,
body.ml-portal-page .info-content p,
body.ml-portal-page .message-text,
body.ml-portal-page .message-content,
body.ml-portal-page .form-label,
body.ml-portal-page .permission-checkbox-label,
body.ml-portal-page .action-limits-header,
body.ml-portal-page .has-text-white,
body.ml-portal-page .has-text-light {
    color: var(--ml-ink) !important;
}

body.ml-portal-page .section-title i,
body.ml-portal-page .roles-header i,
body.ml-portal-page .history-title i,
body.ml-portal-page .support-history-title i,
body.ml-portal-page .report-section-title i,
body.ml-portal-page .metadata-label i,
body.ml-portal-page .minecraft-profile-eyebrow,
body.ml-portal-page .minecraft-profile-notice i,
body.ml-portal-page .stat-icon,
body.ml-portal-page .info-title,
body.ml-portal-page .info-notice i {
    color: var(--ml-orange) !important;
}

body.ml-portal-page .section-title,
body.ml-portal-page .history-title,
body.ml-portal-page .support-history-title,
body.ml-portal-page .roles-header {
    font-weight: 800 !important;
    letter-spacing: -.015em;
}

/* Perfil */
body.ml-profile-page .profile-header {
    padding: 2rem 1.5rem !important;
    background:
        radial-gradient(circle at 50% -30%, rgba(255,194,79,.24), transparent 42%),
        linear-gradient(145deg, var(--ml-paper), var(--ml-paper-2)) !important;
}

body.ml-profile-page .profile-info {
    margin-top: 0 !important;
}

body.ml-profile-page .profile-avatar {
    background: var(--ml-paper-3) !important;
    border: 4px solid var(--ml-orange) !important;
    box-shadow: 0 8px 24px rgba(112,54,27,.18) !important;
}

html[data-theme="dark"] body.ml-profile-page .profile-avatar {
    box-shadow: 0 8px 24px rgba(0,0,0,.34) !important;
}

body.ml-profile-page .profile-staff-badge,
body.ml-profile-page .support-private-badge,
body.ml-profile-page .minecraft-linked-status,
body.ml-profile-page .id-badge {
    border-color: rgba(220,116,56,.30) !important;
    background: rgba(220,116,56,.10) !important;
    color: var(--ml-orange-deep) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.ml-profile-page .profile-staff-badge,
html[data-theme="dark"] body.ml-profile-page .support-private-badge,
html[data-theme="dark"] body.ml-profile-page .minecraft-linked-status,
html[data-theme="dark"] body.ml-profile-page .id-badge {
    color: var(--ml-gold-soft) !important;
}

body.ml-profile-page .roles-container {
    margin: 1rem 0 1.5rem !important;
}

body.ml-profile-page .role-badge {
    background: var(--ml-paper-2) !important;
    border-color: var(--ml-line) !important;
}

body.ml-profile-page .role-badge:hover {
    background: var(--ml-paper-3) !important;
    border-color: var(--ml-line-strong) !important;
}

body.ml-profile-page .minecraft-player-head {
    background: var(--ml-paper-3) !important;
    border-color: rgba(220,116,56,.38) !important;
    box-shadow: 0 8px 22px var(--ml-shadow) !important;
}

body.ml-profile-page .minecraft-profile-divider,
body.ml-profile-page .modal-divider,
body.ml-profile-page .section-divider {
    background: var(--ml-line) !important;
}

body.ml-profile-page .minecraft-profile-notice,
body.ml-profile-page .info-notice,
body.ml-profile-page .support-unavailable {
    background: rgba(220,116,56,.08) !important;
    border-color: rgba(220,116,56,.22) !important;
    color: var(--ml-ink-soft) !important;
}

body.ml-profile-page .minecraft-modality-tab {
    border-color: var(--ml-line) !important;
    background: var(--ml-paper-2) !important;
    color: var(--ml-ink-soft) !important;
}

body.ml-profile-page .minecraft-modality-tab:hover {
    border-color: var(--ml-line-strong) !important;
    background: var(--ml-paper-3) !important;
    color: var(--ml-ink-deep) !important;
}

body.ml-profile-page .minecraft-modality-tab.is-active {
    border-color: var(--ml-orange) !important;
    background: var(--ml-orange) !important;
    color: #32190f !important;
    box-shadow: 0 4px 0 rgba(141,65,30,.24) !important;
}

/* Historial privado con estilos inline heredados */
body.ml-profile-page .support-history-section [style*="background: rgba(0,0,0"],
body.ml-profile-page .support-history-section [style*="background: rgba(0, 0, 0"] {
    background: var(--ml-paper-2) !important;
    border-color: var(--ml-line) !important;
}

body.ml-profile-page .support-history-section [style*="color: white"] {
    color: var(--ml-ink-deep) !important;
}

body.ml-profile-page .support-history-section [style*="color: rgba(255,255,255"],
body.ml-profile-page .support-history-section [style*="color: rgba(255, 255, 255"] {
    color: var(--ml-ink-soft) !important;
}

body.ml-profile-page .support-history-section [style*="border-top: 1px solid rgba(255,255,255"] {
    border-top-color: var(--ml-line) !important;
}

body.ml-profile-page .support-page-link {
    background: var(--ml-paper-2) !important;
    border-color: var(--ml-line) !important;
    color: var(--ml-ink) !important;
}

body.ml-profile-page .support-page-link:hover:not(.is-disabled) {
    background: var(--ml-paper-3) !important;
    border-color: var(--ml-line-strong) !important;
    color: var(--ml-ink-deep) !important;
}

/* Apelaciones */
body.ml-appeal-page .appeal-avatar {
    background: var(--ml-paper-3) !important;
    border-color: var(--ml-orange) !important;
}

body.ml-appeal-page .appeal-profile,
body.ml-appeal-page .appeal-status-container,
body.ml-appeal-page .appeal-question {
    background: var(--ml-paper-2) !important;
}

body.ml-appeal-page .appeal-status-detail strong,
body.ml-appeal-page .question-label {
    color: var(--ml-orange-deep) !important;
}

html[data-theme="dark"] body.ml-appeal-page .appeal-status-detail strong,
html[data-theme="dark"] body.ml-appeal-page .question-label {
    color: var(--ml-gold-soft) !important;
}

body.ml-appeal-page .question-label,
body.ml-appeal-page .section-divider {
    border-color: var(--ml-line) !important;
}

body.ml-appeal-page .reason-detail,
body.ml-appeal-page .info-notice {
    background: var(--ml-paper-3) !important;
    border-color: var(--ml-line) !important;
}

/* Reportes */
body.ml-report-page .report-info-card,
body.ml-report-page .actions-card {
    overflow: hidden;
}

body.ml-report-page .report-header,
body.ml-report-page .actions-header {
    background: var(--ml-paper-2) !important;
    border-color: var(--ml-line) !important;
}

body.ml-report-page .report-info-card::before {
    background: linear-gradient(90deg, var(--ml-orange), var(--ml-gold)) !important;
}

body.ml-report-page .actions-card::before {
    background: linear-gradient(90deg, #e67e22, #ffbd55) !important;
}

body.ml-report-page .user-avatar,
body.ml-report-page .report-screenshot {
    border-color: var(--ml-line-strong) !important;
}

body.ml-report-page .user-card:hover .user-avatar {
    border-color: var(--ml-orange) !important;
}

body.ml-report-page .timeline::before {
    background: rgba(220,116,56,.30) !important;
}

body.ml-report-page .timeline-item::before {
    background: var(--ml-orange) !important;
    border-color: var(--ml-paper) !important;
}

body.ml-report-page .action-limits-card,
body.ml-report-page .radio-container {
    background: var(--ml-paper-2) !important;
}

body.ml-report-page .permission-checkbox-label,
body.ml-report-page .action-limits-header {
    color: var(--ml-ink) !important;
}

body.ml-report-page .radio-custom,
body.ml-report-page .checkbox-custom,
body.ml-report-page .switch-slider {
    background: var(--ml-paper-3) !important;
    border-color: var(--ml-line-strong) !important;
}

body.ml-report-page input[type="radio"]:checked + .radio-custom,
body.ml-report-page input[type="checkbox"]:checked + .checkbox-custom,
body.ml-report-page input:checked + .switch-slider {
    background: var(--ml-orange) !important;
    border-color: var(--ml-orange) !important;
}

body.ml-report-page .permission-checkbox-container:has(input[type="radio"]:checked),
body.ml-report-page .radio-selected,
body.ml-report-page .radio-container:has(input[type="radio"]:checked) {
    background: rgba(220,116,56,.10) !important;
    border-color: rgba(220,116,56,.30) !important;
}

/* Formularios y modales */
body.ml-portal-page .form-input,
body.ml-portal-page .form-select,
body.ml-portal-page .form-textarea,
body.ml-portal-page .modal-textarea {
    background: var(--ml-paper-2) !important;
    border: 1px solid var(--ml-line-strong) !important;
    color: var(--ml-ink-deep) !important;
    box-shadow: none !important;
}

body.ml-portal-page .form-input:focus,
body.ml-portal-page .form-select:focus,
body.ml-portal-page .form-textarea:focus,
body.ml-portal-page .modal-textarea:focus {
    background: var(--ml-paper) !important;
    border-color: var(--ml-orange) !important;
    box-shadow: 0 0 0 3px rgba(220,116,56,.12) !important;
    outline: none;
}

body.ml-portal-page .form-input::placeholder,
body.ml-portal-page .form-select::placeholder,
body.ml-portal-page .form-textarea::placeholder,
body.ml-portal-page .modal-textarea::placeholder {
    color: var(--ml-ink-soft) !important;
    opacity: .68;
}

body.ml-portal-page .form-select option {
    background: var(--ml-paper) !important;
    color: var(--ml-ink-deep) !important;
}

body.ml-portal-page .modal-background {
    background: rgba(25,13,9,.64) !important;
    backdrop-filter: blur(8px);
}

body.ml-portal-page .modal-card {
    background: var(--ml-paper) !important;
    border: 1px solid var(--ml-line-strong) !important;
    box-shadow: 0 24px 60px rgba(45,22,12,.30) !important;
    backdrop-filter: none !important;
}

html[data-theme="dark"] body.ml-portal-page .modal-card {
    box-shadow: 0 24px 60px rgba(0,0,0,.48) !important;
}

body.ml-portal-page .modal-card-head,
body.ml-portal-page .modal-card-foot {
    background: var(--ml-paper-2) !important;
    border-color: var(--ml-line) !important;
}

body.ml-portal-page .modal-card-body {
    color: var(--ml-ink) !important;
}

body.ml-portal-page .modal-button.cancel,
body.ml-portal-page .modal-button.cancel-button {
    background: var(--ml-paper-3) !important;
    color: var(--ml-ink) !important;
    border: 1px solid var(--ml-line) !important;
}

body.ml-portal-page .modal-button.cancel:hover,
body.ml-portal-page .modal-button.cancel-button:hover {
    background: var(--ml-paper-2) !important;
    color: var(--ml-ink-deep) !important;
}

body.ml-portal-page .delete,
body.ml-portal-page .modal-delete {
    background: rgba(110,55,30,.12) !important;
}

body.ml-portal-page .delete::before,
body.ml-portal-page .delete::after,
body.ml-portal-page .modal-delete::before,
body.ml-portal-page .modal-delete::after {
    background-color: var(--ml-ink) !important;
}

/* Botones neutros y acentos */
body.ml-portal-page .action-button.message,
body.ml-portal-page .id-badge,
body.ml-report-page .transcript-button {
    background: rgba(220,116,56,.10) !important;
    border-color: rgba(220,116,56,.28) !important;
    color: var(--ml-orange-deep) !important;
}

html[data-theme="dark"] body.ml-portal-page .action-button.message,
html[data-theme="dark"] body.ml-portal-page .id-badge,
html[data-theme="dark"] body.ml-report-page .transcript-button {
    color: var(--ml-gold-soft) !important;
}

body.ml-report-page .transcript-button:hover:not(:disabled) {
    background: var(--ml-orange) !important;
    border-color: var(--ml-orange) !important;
    color: #32190f !important;
}

/* Evita blancos heredados de Bulma/estilos antiguos en tema claro */
body.ml-portal-page [style*="color: #ffffff"],
body.ml-portal-page [style*="color: white"] {
    color: var(--ml-ink-deep) !important;
}

body.ml-portal-page [style*="color: rgba(255, 255, 255"],
body.ml-portal-page [style*="color: rgba(255,255,255"] {
    color: var(--ml-ink-soft) !important;
}

body.ml-portal-page [style*="background: rgba(24, 21, 31"],
body.ml-portal-page [style*="background: rgba(30, 27, 38"] {
    background: var(--ml-paper-2) !important;
}

@media screen and (max-width: 768px) {
    body.ml-portal-page > .section {
        padding-inline: .7rem !important;
    }

    body.ml-portal-page .back-button-container {
        padding-inline: .7rem !important;
    }

    body.ml-portal-page > .section > .container,
    body.ml-portal-page .back-button-container > .container {
        width: 100%;
    }

    body.ml-profile-page .profile-header {
        padding: 1.5rem 1rem !important;
    }
}

/* =========================================================
   COMPONENTES GLOBALES DE DETALLE
   Perfil / Apelaciones / Reportes
   ========================================================= */

.ml-button--gold,
body.ml-portal-page .back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 44px;
    padding: .68rem 1rem !important;
    border: 1px solid rgba(122, 69, 25, .24) !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #ffd06b, var(--ml-gold)) !important;
    color: #4a2a18 !important;
    box-shadow:
        0 4px 0 rgba(132, 70, 28, .24),
        0 10px 22px rgba(110, 55, 25, .11) !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    transition:
        transform .16s ease,
        filter .16s ease,
        box-shadow .16s ease !important;
}

.ml-button--gold:hover,
.ml-button--gold:focus-visible,
body.ml-portal-page .back-button:hover,
body.ml-portal-page .back-button:focus-visible {
    transform: translateY(-2px) !important;
    background: linear-gradient(180deg, #ffda82, #ffc04c) !important;
    border-color: rgba(122, 69, 25, .28) !important;
    color: #3d2114 !important;
    box-shadow:
        0 6px 0 rgba(132, 70, 28, .22),
        0 14px 26px rgba(110, 55, 25, .14) !important;
    filter: saturate(1.02);
}

.ml-button--gold:active,
body.ml-portal-page .back-button:active {
    transform: translateY(1px) !important;
    box-shadow:
        0 2px 0 rgba(132, 70, 28, .22),
        0 7px 16px rgba(110, 55, 25, .10) !important;
}

html[data-theme="dark"] .ml-button--gold,
html[data-theme="dark"] body.ml-portal-page .back-button {
    border-color: rgba(255, 220, 157, .16) !important;
    box-shadow:
        0 4px 0 rgba(71, 34, 18, .66),
        0 12px 24px rgba(0, 0, 0, .25) !important;
}

body.ml-detail-page > .section {
    padding-top: .8rem !important;
}

body.ml-detail-page > .section > .container {
    width: min(calc(100% - 1rem), 1180px) !important;
    max-width: 1180px !important;
}

body.ml-detail-page .glass-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1rem, 2.4vw, 1.7rem) !important;
    border-radius: 18px !important;
}

body.ml-detail-page .glass-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ml-orange), var(--ml-gold));
    pointer-events: none;
}

body.ml-detail-page .section-title {
    margin: .25rem 0 1.15rem !important;
    color: var(--ml-ink-deep) !important;
    font-size: clamp(1.55rem, 2.6vw, 2rem) !important;
    font-weight: 900 !important;
    letter-spacing: -.035em;
    line-height: 1.08;
}

body.ml-detail-page .section-title i {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(220, 116, 56, .11);
    color: var(--ml-orange) !important;
    font-size: 1rem;
}

body.ml-detail-page .report-section-title,
body.ml-detail-page .history-title {
    color: var(--ml-ink-deep) !important;
    font-weight: 900 !important;
    letter-spacing: -.015em;
}

body.ml-detail-page .report-section-title i,
body.ml-detail-page .history-title i {
    color: var(--ml-orange) !important;
}

body.ml-detail-page .appeal-profile,
body.ml-detail-page .report-info-card,
body.ml-detail-page .history-section,
body.ml-detail-page .messages-section,
body.ml-detail-page .actions-card {
    border-radius: 15px !important;
}

body.ml-detail-page .appeal-profile,
body.ml-detail-page .user-card,
body.ml-detail-page .appeal-question,
body.ml-detail-page .punishment-item,
body.ml-detail-page .message-item,
body.ml-detail-page .reason-box,
body.ml-detail-page .metadata-item,
body.ml-detail-page .screenshot-container,
body.ml-detail-page .decision-section,
body.ml-detail-page .reason-detail {
    background: var(--ml-paper-2) !important;
    border: 1px solid var(--ml-line) !important;
    box-shadow: none !important;
}

body.ml-detail-page .appeal-profile:hover,
body.ml-detail-page .user-card:hover,
body.ml-detail-page .appeal-question:hover,
body.ml-detail-page .punishment-item:hover,
body.ml-detail-page .message-item:hover {
    background: var(--ml-paper-3) !important;
    border-color: var(--ml-line-strong) !important;
}

body.ml-detail-page .appeal-profile {
    border-left: 4px solid var(--ml-orange) !important;
}

body.ml-detail-page .appeal-avatar,
body.ml-detail-page .user-avatar {
    border-color: rgba(220, 116, 56, .38) !important;
    background: var(--ml-paper-3) !important;
    box-shadow: none !important;
}

body.ml-detail-page .appeal-status-container {
    background: var(--ml-paper-2) !important;
    border-color: var(--ml-line) !important;
    box-shadow: none !important;
}

body.ml-detail-page .appeal-status-container::before {
    width: 5px !important;
    opacity: .9 !important;
}

body.ml-detail-page .appeal-status-badge,
body.ml-detail-page .report-status,
body.ml-detail-page .user-tag,
body.ml-detail-page .punishment-badge,
body.ml-detail-page .id-badge {
    border-radius: 9px !important;
    box-shadow: none !important;
}

body.ml-detail-page .question-label,
body.ml-detail-page .appeal-status-detail strong,
body.ml-detail-page .metadata-label,
body.ml-detail-page .info-title {
    color: var(--ml-orange-deep) !important;
}

html[data-theme="dark"] body.ml-detail-page .question-label,
html[data-theme="dark"] body.ml-detail-page .appeal-status-detail strong,
html[data-theme="dark"] body.ml-detail-page .metadata-label,
html[data-theme="dark"] body.ml-detail-page .info-title {
    color: var(--ml-gold-soft) !important;
}

body.ml-detail-page .appeal-status-detail span,
body.ml-detail-page .question-answer,
body.ml-detail-page .punishment-details,
body.ml-detail-page .message-content,
body.ml-detail-page .timeline-text,
body.ml-detail-page .reason-box,
body.ml-detail-page .metadata-value,
body.ml-detail-page .actions-content,
body.ml-detail-page .info-content p {
    color: var(--ml-ink) !important;
}

body.ml-detail-page .appeal-userid,
body.ml-detail-page .appeal-server-status,
body.ml-detail-page .exact-time,
body.ml-detail-page .exact-date,
body.ml-detail-page .message-time,
body.ml-detail-page .timeline-time,
body.ml-detail-page .user-id,
body.ml-detail-page .report-timestamp,
body.ml-detail-page .action-description {
    color: var(--ml-ink-soft) !important;
}

body.ml-detail-page .report-header,
body.ml-detail-page .actions-header,
body.ml-detail-page .message-header {
    background: var(--ml-paper-2) !important;
    border-color: var(--ml-line) !important;
}

body.ml-detail-page .report-id,
body.ml-detail-page .user-name,
body.ml-detail-page .appeal-username,
body.ml-detail-page .actions-title,
body.ml-detail-page .message-username {
    color: var(--ml-ink-deep) !important;
}

body.ml-detail-page .report-id-badge,
body.ml-detail-page .punishment-id-link,
body.ml-detail-page .message-link,
body.ml-detail-page .id-badge {
    color: var(--ml-orange-deep) !important;
}

html[data-theme="dark"] body.ml-detail-page .report-id-badge,
html[data-theme="dark"] body.ml-detail-page .punishment-id-link,
html[data-theme="dark"] body.ml-detail-page .message-link,
html[data-theme="dark"] body.ml-detail-page .id-badge {
    color: var(--ml-gold-soft) !important;
}

body.ml-detail-page .transcript-button,
body.ml-detail-page a.action-button:not(.approve-button):not(.deny-button),
body.ml-detail-page .modal-button.primary,
body.ml-detail-page .modal-button.confirm-button {
    border: 1px solid rgba(220, 116, 56, .26) !important;
    background: rgba(220, 116, 56, .11) !important;
    color: var(--ml-orange-deep) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.ml-detail-page .transcript-button,
html[data-theme="dark"] body.ml-detail-page a.action-button:not(.approve-button):not(.deny-button),
html[data-theme="dark"] body.ml-detail-page .modal-button.primary,
html[data-theme="dark"] body.ml-detail-page .modal-button.confirm-button {
    color: var(--ml-gold-soft) !important;
}

body.ml-detail-page .transcript-button:hover:not(:disabled),
body.ml-detail-page a.action-button:hover,
body.ml-detail-page .modal-button.primary:hover,
body.ml-detail-page .modal-button.confirm-button:hover {
    background: var(--ml-orange) !important;
    border-color: var(--ml-orange) !important;
    color: #381d11 !important;
}

body.ml-detail-page .action-limits-card,
body.ml-detail-page .radio-container,
body.ml-detail-page #timeoutOptions,
body.ml-detail-page #banOptions {
    background: var(--ml-paper-2) !important;
    border: 1px solid var(--ml-line) !important;
}

body.ml-detail-page .modal-card {
    border-radius: 17px !important;
}

body.ml-detail-page .modal-card-head {
    border-radius: 17px 17px 0 0 !important;
}

body.ml-detail-page .modal-card-foot {
    border-radius: 0 0 17px 17px !important;
}

/* Información de Discord en el perfil */
body.ml-profile-page .discord-info-section {
    margin: 0 0 1.2rem;
    overflow: hidden;
    border: 1px solid var(--ml-line);
    border-radius: 16px;
    background: var(--ml-paper);
    box-shadow: 0 10px 24px var(--ml-shadow);
}

body.ml-profile-page .discord-info-header {
    padding: 1.1rem 1.25rem .95rem;
    border-bottom: 1px solid var(--ml-line);
    background: linear-gradient(135deg, rgba(220,116,56,.08), rgba(255,194,79,.08));
}

body.ml-profile-page .discord-info-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .3rem;
    color: var(--ml-orange-deep);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html[data-theme="dark"] body.ml-profile-page .discord-info-kicker {
    color: var(--ml-gold-soft);
}

body.ml-profile-page .discord-info-title {
    margin: 0;
    color: var(--ml-ink-deep);
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -.025em;
}

body.ml-profile-page .discord-info-subtitle {
    margin: .25rem 0 0;
    color: var(--ml-ink-soft);
    font-size: .84rem;
}

body.ml-profile-page .discord-info-content {
    padding: 1rem 1.15rem 1.15rem;
}

body.ml-profile-page .discord-roles-block {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ml-line);
}

body.ml-profile-page .discord-roles-block .roles-header {
    margin-bottom: .7rem !important;
}

body.ml-profile-page .discord-info-section .stats-grid {
    margin: 1rem 0 0 !important;
}

body.ml-profile-page .discord-info-section .stat-card {
    min-height: 104px;
}

body.ml-profile-page .ml-profile-ticket-link,
body.ml-profile-page .ml-profile-ticket-link:visited {
    color: var(--ml-ink-deep) !important;
}

body.ml-profile-page .ml-profile-ticket-link:hover {
    color: var(--ml-orange-deep) !important;
}

body.ml-profile-page .ml-profile-ticket-link > div {
    border-color: var(--ml-line) !important;
    background: var(--ml-paper-2) !important;
}

body.ml-profile-page .ml-profile-ticket-link:hover > div {
    border-color: var(--ml-line-strong) !important;
    background: var(--ml-paper-3) !important;
}

body.ml-profile-page .ml-profile-ticket-link [style*="color: white"] {
    color: var(--ml-ink-deep) !important;
}

body.ml-profile-page .ml-profile-ticket-link [style*="color: rgba(255,255,255"] {
    color: var(--ml-ink-soft) !important;
}

@media screen and (max-width: 768px) {
    body.ml-detail-page .is-flex.is-justify-content-space-between.is-align-items-center {
        align-items: flex-start !important;
        flex-direction: column;
        gap: .8rem;
    }

    body.ml-detail-page .back-button {
        width: 100%;
    }

    body.ml-profile-page .discord-info-content {
        padding: .85rem;
    }
}



/* =========================================================
   PORTAL V2 — cabeceras y superficies reutilizables de casos
   Perfil / apelaciones / reportes / futuras vistas internas
   ========================================================= */
body.ml-portal-page .ml-case-shell {
    padding: clamp(.9rem, 2vw, 1.25rem) !important;
    background: var(--ml-paper) !important;
    border: 1px solid var(--ml-line) !important;
    border-radius: 19px !important;
    box-shadow: 0 14px 32px var(--ml-shadow) !important;
    overflow: hidden;
}

body.ml-portal-page .ml-case-shell::before {
    display: none !important;
}

body.ml-portal-page .ml-case-header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin: 0 0 1.1rem;
    padding: clamp(1.15rem, 3vw, 1.65rem);
    border: 1px solid rgba(255,216,153,.16);
    border-radius: 15px;
    background:
        linear-gradient(90deg, rgba(34,15,9,.92), rgba(74,37,23,.78)),
        radial-gradient(circle at 82% 15%, rgba(255,194,79,.15), transparent 30%),
        var(--ml-brown-deep);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

body.ml-portal-page .ml-case-header::after {
    content: '';
    position: absolute;
    inset: auto -4% -44% 48%;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,194,79,.12), transparent 67%);
    pointer-events: none;
}

body.ml-portal-page .ml-case-header__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

body.ml-portal-page .ml-case-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .45rem;
    padding: .34rem .6rem;
    border: 1px solid rgba(255,216,153,.18);
    border-radius: 8px;
    background: rgba(255,194,79,.08);
    color: var(--ml-gold-soft);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

body.ml-portal-page .ml-case-title {
    margin: 0;
    color: #fff6eb;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.04em;
}

body.ml-portal-page .ml-case-subtitle {
    max-width: 760px;
    margin: .55rem 0 0;
    color: rgba(255,239,220,.74);
    font-size: .9rem;
    line-height: 1.55;
}

body.ml-portal-page .ml-case-header .back-button {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin: 0 !important;
}

body.ml-detail-page .report-info-card,
body.ml-detail-page .appeal-status-container,
body.ml-detail-page .appeal-profile,
body.ml-detail-page .history-section,
body.ml-detail-page .messages-section,
body.ml-detail-page .actions-card {
    background: var(--ml-paper) !important;
    border: 1px solid var(--ml-line) !important;
    box-shadow: none !important;
}

body.ml-detail-page .report-header,
body.ml-detail-page .actions-header,
body.ml-detail-page .message-header,
body.ml-detail-page .decision-section,
body.ml-detail-page .reason-detail,
body.ml-detail-page .user-card,
body.ml-detail-page .metadata-item,
body.ml-detail-page .reason-box,
body.ml-detail-page .appeal-question,
body.ml-detail-page .punishment-item,
body.ml-detail-page .message-item,
body.ml-detail-page .screenshot-container {
    border-color: var(--ml-line) !important;
}

@media screen and (max-width: 768px) {
    body.ml-portal-page .ml-case-header {
        align-items: flex-start;
        flex-direction: column;
    }

    body.ml-portal-page .ml-case-header .back-button {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================
   Componentes reutilizables — cuentas vinculadas / avisos
   ========================================================= */
body.ml-portal-page .ml-account-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

body.ml-portal-page .ml-account-link-avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: cover;
    border: 2px solid rgba(220, 116, 56, .32);
    border-radius: 14px;
    background: var(--ml-paper-3);
    box-shadow: none;
}

body.ml-portal-page .ml-account-link-avatar--pixel {
    image-rendering: pixelated;
}

body.ml-portal-page .ml-account-link-details {
    min-width: 0;
    flex: 1;
}

body.ml-portal-page .ml-account-link-eyebrow {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .25rem;
    color: var(--ml-orange-deep);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}

html[data-theme="dark"] body.ml-portal-page .ml-account-link-eyebrow {
    color: var(--ml-gold-soft);
}

body.ml-portal-page .ml-account-link-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
}

body.ml-portal-page .ml-account-link-name {
    min-width: 0;
    margin: 0;
    color: var(--ml-ink-deep);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

body.ml-portal-page .ml-account-link-badge {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    padding: .25rem .58rem;
    border: 1px solid rgba(59, 141, 98, .22);
    border-radius: 999px;
    background: rgba(59, 141, 98, .10);
    color: #237a52;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

html[data-theme="dark"] body.ml-portal-page .ml-account-link-badge {
    color: #7cddb0;
}

body.ml-portal-page .ml-account-link-meta {
    margin-top: .38rem;
    color: var(--ml-ink-soft);
    font-size: .78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.ml-detail-page .ml-context-note {
    border-left: 4px solid var(--ml-orange) !important;
}

body.ml-detail-page .ml-context-note__text {
    color: var(--ml-ink) !important;
    line-height: 1.55;
}

body.ml-detail-page .ml-context-note--warning .ml-context-note__text > i {
    color: var(--ml-orange-deep) !important;
}

html[data-theme="dark"] body.ml-detail-page .ml-context-note--warning .ml-context-note__text > i {
    color: var(--ml-gold-soft) !important;
}

@media screen and (max-width: 560px) {
    body.ml-portal-page .ml-account-link-card {
        align-items: flex-start;
    }

    body.ml-portal-page .ml-account-link-avatar {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        border-radius: 12px;
    }
}


/* =========================================================
   CUENTA / VINCULACIÓN — COMPONENTES GLOBALES
   ========================================================= */
body.ml-account-page .ml-account-shell {
    width: min(calc(100% - 2rem), 1080px);
    margin: 0 auto;
    padding: .35rem 0 3rem;
    flex: 1 0 auto;
}

body.ml-account-page .ml-account-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
    margin: 0 0 1rem;
    padding: 1.45rem 1.55rem;
    border: 1px solid rgba(255,216,166,.12);
    border-radius: 18px;
    background:
        radial-gradient(circle at 87% 20%, rgba(255,194,79,.16), transparent 28%),
        linear-gradient(135deg, #4b281a 0%, #6b351f 54%, #8b4726 100%);
    box-shadow:
        0 5px 0 rgba(91,45,23,.30),
        0 16px 34px rgba(89,43,22,.14);
    color: #fff4e7;
}

html[data-theme="dark"] body.ml-account-page .ml-account-hero {
    border-color: rgba(255,218,181,.10);
    background:
        radial-gradient(circle at 87% 20%, rgba(255,199,101,.10), transparent 28%),
        linear-gradient(135deg, #2a1811 0%, #392016 54%, #482617 100%);
    box-shadow:
        0 5px 0 rgba(0,0,0,.22),
        0 18px 38px rgba(0,0,0,.28);
}

body.ml-account-page .ml-account-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .55rem;
    padding: .34rem .62rem;
    border: 1px solid rgba(255,219,151,.22);
    border-radius: 9px;
    background: rgba(32,15,9,.16);
    color: #ffd985;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.ml-account-page .ml-account-hero h1 {
    margin: 0;
    color: #fff7ed;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.08;
}

body.ml-account-page .ml-account-hero p {
    max-width: 720px;
    margin: .5rem 0 0;
    color: rgba(255,238,220,.76);
    font-size: .95rem;
    line-height: 1.6;
}

body.ml-account-page .ml-account-hero-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,220,170,.18);
    border-radius: 18px;
    background: rgba(255,205,121,.10);
    color: var(--ml-gold);
    font-size: 1.65rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

body.ml-account-page .ml-account-panel {
    margin-bottom: 1rem;
    padding: 1.35rem;
    border: 1px solid var(--ml-line);
    border-radius: 17px;
    background: var(--ml-paper);
    box-shadow:
        0 4px 0 rgba(111,57,31,.10),
        0 14px 30px var(--ml-shadow);
}

body.ml-account-page .ml-account-section-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

body.ml-account-page .ml-account-section-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(220,116,56,.20);
    border-radius: 12px;
    background: rgba(220,116,56,.10);
    color: var(--ml-orange-deep);
    font-size: 1.05rem;
}

html[data-theme="dark"] body.ml-account-page .ml-account-section-icon {
    color: var(--ml-gold-soft);
}

body.ml-account-page .ml-account-section-icon--danger {
    border-color: rgba(190,58,49,.22);
    background: rgba(190,58,49,.10);
    color: #b23831;
}

html[data-theme="dark"] body.ml-account-page .ml-account-section-icon--danger {
    color: #ff9b92;
}

body.ml-account-page .ml-account-section-heading h2 {
    margin: 0;
    color: var(--ml-ink-deep);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.25;
}

body.ml-account-page .ml-account-section-heading p {
    margin: .16rem 0 0;
    color: var(--ml-ink-soft);
    font-size: .86rem;
    line-height: 1.45;
}

body.ml-account-page .ml-account-service-tile {
    padding: 1rem;
    border: 1px solid var(--ml-line);
    border-radius: 14px;
    background: var(--ml-paper-2);
}

body.ml-account-page .ml-account-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

body.ml-account-page .ml-account-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--ml-line);
    border-radius: 13px;
    background: var(--ml-paper-2);
    color: var(--ml-ink);
}

body.ml-account-page .ml-account-status > div {
    min-width: 0;
}

body.ml-account-page .ml-account-status strong,
body.ml-account-page .ml-account-status span {
    display: block;
}

body.ml-account-page .ml-account-status strong {
    color: var(--ml-ink-deep);
    font-weight: 900;
}

body.ml-account-page .ml-account-status span {
    margin-top: .18rem;
    color: var(--ml-ink-soft);
    font-size: .85rem;
}

body.ml-account-page .ml-account-status > i {
    color: var(--ml-orange-deep);
    font-size: 1.15rem;
}

html[data-theme="dark"] body.ml-account-page .ml-account-status > i {
    color: var(--ml-gold-soft);
}

body.ml-account-page .ml-account-status--warning {
    border-color: rgba(202,119,39,.30);
    background: rgba(255,194,79,.09);
}

body.ml-account-page .ml-account-note {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-top: 1rem;
    padding: .85rem .95rem;
    border: 1px solid rgba(220,116,56,.20);
    border-left: 4px solid var(--ml-orange);
    border-radius: 11px;
    background: rgba(220,116,56,.07);
    color: var(--ml-ink);
    font-size: .88rem;
    line-height: 1.55;
}

body.ml-account-page .ml-account-note > i {
    margin-top: .16rem;
    color: var(--ml-orange-deep);
}

html[data-theme="dark"] body.ml-account-page .ml-account-note > i {
    color: var(--ml-gold-soft);
}

body.ml-account-page .ml-account-note--warning {
    border-color: rgba(202,119,39,.26);
    border-left-color: var(--ml-gold);
    background: rgba(255,194,79,.08);
}

body.ml-account-page .ml-account-form {
    margin-top: 1rem;
}

body.ml-account-page .ml-account-form-group {
    margin-top: 1rem;
}

body.ml-account-page .ml-account-form-label {
    display: block;
    margin-bottom: .5rem;
    color: var(--ml-ink-deep);
    font-size: .88rem;
    font-weight: 900;
}

body.ml-account-page .ml-account-input {
    width: 100%;
    min-height: 46px;
    padding: .78rem .9rem;
    border: 1px solid var(--ml-line-strong);
    border-radius: 11px;
    background: var(--ml-paper-2);
    color: var(--ml-ink-deep);
    font: inherit;
    outline: none;
    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

body.ml-account-page .ml-account-input::placeholder {
    color: var(--ml-ink-soft);
    opacity: .72;
}

body.ml-account-page .ml-account-input:focus {
    border-color: var(--ml-orange);
    background: var(--ml-paper);
    box-shadow: 0 0 0 3px rgba(220,116,56,.12);
}

body.ml-account-page .ml-account-mono,
body.ml-account-page .ml-account-link-meta {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.ml-account-page .ml-account-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1rem;
}

body.ml-account-page .ml-account-action-bar form {
    margin: 0;
}

body.ml-account-page .ml-action-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    padding: .68rem .9rem;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-size: .88rem;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform .15s ease,
        filter .15s ease,
        background .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

body.ml-account-page .ml-action-button:hover,
body.ml-account-page .ml-action-button:focus-visible {
    transform: translateY(-1px);
}

body.ml-account-page .ml-action-button--gold {
    border-color: rgba(155,80,29,.42);
    background:
        linear-gradient(180deg, #ffd36b 0%, var(--ml-gold) 100%);
    color: #4a2818;
    box-shadow:
        0 3px 0 #b65a29,
        inset 0 1px 0 rgba(255,255,255,.42);
}

body.ml-account-page .ml-action-button--gold:hover,
body.ml-account-page .ml-action-button--gold:focus-visible {
    color: #3d2014;
    filter: brightness(1.025);
    box-shadow:
        0 4px 0 #a84d22,
        0 8px 16px rgba(111,55,28,.12),
        inset 0 1px 0 rgba(255,255,255,.42);
}

body.ml-account-page .ml-action-button--secondary {
    border-color: var(--ml-line);
    background: var(--ml-paper-3);
    color: var(--ml-ink-deep);
}

body.ml-account-page .ml-action-button--secondary:hover,
body.ml-account-page .ml-action-button--secondary:focus-visible {
    border-color: var(--ml-line-strong);
    background: var(--ml-paper-2);
    color: var(--ml-ink-deep);
}

body.ml-account-page .ml-action-button--danger {
    border-color: rgba(173,55,47,.30);
    background: rgba(194,65,55,.12);
    color: #a52f2a;
}

html[data-theme="dark"] body.ml-account-page .ml-action-button--danger {
    color: #ff9b92;
}

body.ml-account-page .ml-action-button--danger:hover,
body.ml-account-page .ml-action-button--danger:focus-visible {
    border-color: rgba(173,55,47,.42);
    background: rgba(194,65,55,.18);
}

body.ml-account-page .ml-flash {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .8rem;
    padding: .82rem .95rem;
    border: 1px solid var(--ml-line);
    border-radius: 11px;
    background: var(--ml-paper);
    color: var(--ml-ink);
    box-shadow: 0 8px 18px var(--ml-shadow);
}

body.ml-account-page .ml-flash > i {
    margin-top: .12rem;
}

body.ml-account-page .ml-flash--success {
    border-color: rgba(45,139,92,.26);
}

body.ml-account-page .ml-flash--success > i {
    color: #2d8b5c;
}

html[data-theme="dark"] body.ml-account-page .ml-flash--success > i {
    color: #7cddb0;
}

body.ml-account-page .ml-flash--error {
    border-color: rgba(184,57,49,.28);
}

body.ml-account-page .ml-flash--error > i {
    color: #b83931;
}

html[data-theme="dark"] body.ml-account-page .ml-flash--error > i {
    color: #ff9b92;
}

body.ml-account-page .ml-flash--info {
    border-color: rgba(220,116,56,.26);
}

body.ml-account-page .ml-flash--info > i {
    color: var(--ml-orange-deep);
}

html[data-theme="dark"] body.ml-account-page .ml-flash--info > i {
    color: var(--ml-gold-soft);
}

body.ml-account-page .ml-account-danger-panel {
    border-color: rgba(181,67,55,.24);
}

body.ml-account-page .ml-account-data-summary {
    display: grid;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--ml-line);
    border-radius: 13px;
    background: var(--ml-paper-2);
    color: var(--ml-ink);
    line-height: 1.62;
}

body.ml-account-page .ml-account-data-summary p {
    margin: 0;
}

body.ml-account-page .ml-account-data-summary strong {
    color: var(--ml-ink-deep);
}

body.ml-account-page .ml-account-pending-box {
    padding: 1rem;
    border: 1px solid rgba(202,119,39,.28);
    border-radius: 13px;
    background: rgba(255,194,79,.08);
    color: var(--ml-ink);
}

body.ml-account-page .ml-account-pending-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .45rem;
    color: var(--ml-orange-deep);
    font-weight: 900;
}

html[data-theme="dark"] body.ml-account-page .ml-account-pending-title {
    color: var(--ml-gold-soft);
}

body.ml-account-page .ml-account-countdown {
    margin: .7rem 0 1rem;
    color: var(--ml-ink-deep);
    font-size: 1.02rem;
    font-weight: 900;
}

body.ml-account-page .ml-account-muted-note {
    margin: .65rem 0 0;
    color: var(--ml-ink-soft);
    font-size: .82rem;
}

body.ml-account-page .ml-account-acknowledge {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: 1rem;
    color: var(--ml-ink);
    line-height: 1.5;
}

body.ml-account-page .ml-account-acknowledge input {
    margin-top: .22rem;
    accent-color: var(--ml-orange);
}

body.ml-account-page .ml-account-confirm-word {
    color: var(--ml-orange-deep);
}

html[data-theme="dark"] body.ml-account-page .ml-account-confirm-word {
    color: var(--ml-gold-soft);
}

body.ml-account-page .ml-account-modal {
    max-width: 660px;
    border-radius: 16px;
    overflow: hidden;
}

body.ml-account-page .ml-account-space-top {
    margin-top: 1rem;
}

/* Discord del perfil: misma estructura visual que la tarjeta de Minecraft. */
body.ml-profile-page .minecraft-profile-section.discord-info-section {
    padding: 1.35rem !important;
    margin-bottom: 2rem !important;
    overflow: hidden !important;
    border: 1px solid var(--ml-line) !important;
    border-radius: 16px !important;
    background: var(--ml-paper) !important;
    box-shadow: 0 10px 24px var(--ml-shadow) !important;
}

body.ml-profile-page .minecraft-profile-section.discord-info-section .discord-info-content {
    padding: 0 !important;
    background: transparent !important;
}

body.ml-profile-page .minecraft-profile-section.discord-info-section .discord-roles-block {
    padding: 0 0 1rem !important;
    border-bottom: 1px solid var(--ml-line) !important;
}

body.ml-profile-page .minecraft-profile-section.discord-info-section .stats-grid {
    margin: 1rem 0 0 !important;
}

body.ml-profile-page .minecraft-profile-section.discord-info-section .stat-card {
    min-height: 104px !important;
    background: var(--ml-paper-2) !important;
    border: 1px solid var(--ml-line) !important;
}

@media screen and (max-width: 720px) {
    body.ml-account-page .ml-account-shell {
        width: min(calc(100% - 1rem), 1080px);
        padding-top: 0;
    }

    body.ml-account-page .ml-account-hero {
        align-items: flex-start;
        padding: 1.15rem;
        border-radius: 15px;
    }

    body.ml-account-page .ml-account-hero-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 14px;
        font-size: 1.25rem;
    }

    body.ml-account-page .ml-account-panel {
        padding: 1rem;
        border-radius: 14px;
    }

    body.ml-account-page .ml-account-compare-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 520px) {
    body.ml-account-page .ml-account-hero-icon {
        display: none;
    }

    body.ml-account-page .ml-account-section-heading {
        align-items: flex-start;
    }

    body.ml-account-page .ml-account-action-bar {
        flex-direction: column;
    }

    body.ml-account-page .ml-account-action-bar form,
    body.ml-account-page .ml-action-button {
        width: 100%;
    }

    body.ml-account-page .ml-account-service-tile {
        padding: .85rem;
    }
}


/* =========================================================
   IA / ADMINISTRACIÓN — componentes globales
   ========================================================= */
body.ml-ai-admin-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--ml-ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 222, 169, .62), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(205, 92, 39, .13), transparent 30%),
        linear-gradient(180deg, #f7d1a5 0%, var(--ml-page) 42%, #ecb77e 100%) !important;
}

html[data-theme="dark"] body.ml-ai-admin-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(181, 91, 43, .16), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(255, 194, 79, .05), transparent 28%),
        linear-gradient(180deg, #21140f 0%, var(--ml-page) 45%, #120b08 100%) !important;
}

body.ml-ai-admin-page .ml-ai-page-shell {
    flex: 1;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto 2.5rem;
}

body.ml-ai-admin-page .ml-ai-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 1rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(255, 210, 151, .22);
    border-radius: 18px;
    color: #fff7ec;
    background:
        radial-gradient(circle at 92% 14%, rgba(255, 194, 79, .15), transparent 28%),
        linear-gradient(135deg, #3b1f15 0%, #66361f 58%, #8b4c2a 100%);
    box-shadow: 0 14px 34px rgba(76, 37, 20, .18);
}

body.ml-ai-admin-page .ml-ai-hero--embedded {
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 219, 163, .18);
    border-radius: 17px 17px 0 0;
    box-shadow: none;
}

body.ml-ai-admin-page .ml-ai-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body.ml-ai-admin-page .ml-ai-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

body.ml-ai-admin-page .ml-ai-hero-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #4a2819;
    background: linear-gradient(180deg, #ffd877, var(--ml-gold));
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 4px 0 rgba(157, 77, 30, .55), inset 0 1px 0 rgba(255,255,255,.48);
    font-size: 1.35rem;
}

body.ml-ai-admin-page .ml-ai-kicker {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    margin-bottom: .35rem;
    color: #ffd98c;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .065em;
    text-transform: uppercase;
}

body.ml-ai-admin-page .ml-ai-hero-title {
    margin: 0;
    color: #fff7ed;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-weight: 900;
    line-height: 1.08;
}

body.ml-ai-admin-page .ml-ai-hero-subtitle {
    max-width: 760px;
    margin: .45rem 0 0;
    color: rgba(255, 239, 220, .78);
    font-size: .92rem;
    line-height: 1.55;
}

body.ml-ai-admin-page .ml-ai-panel {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--ml-line);
    border-radius: 17px;
    color: var(--ml-ink);
    background: var(--ml-paper);
    box-shadow: 0 10px 26px var(--ml-shadow);
}

body.ml-ai-admin-page .ml-ai-panel--flush {
    padding: 0;
    overflow: hidden;
}

body.ml-ai-admin-page .ml-ai-section-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    color: var(--ml-ink-deep);
    font-size: 1.05rem;
    font-weight: 900;
}

body.ml-ai-admin-page .ml-ai-section-title i {
    color: var(--ml-orange);
}

body.ml-ai-admin-page .ml-ai-muted {
    color: var(--ml-ink-soft);
}

body.ml-ai-admin-page .ml-ai-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

body.ml-ai-admin-page .ml-ai-stat-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--ml-line);
    border-radius: 13px;
    background: var(--ml-paper-2);
}

body.ml-ai-admin-page .ml-ai-stat-label {
    color: var(--ml-ink-soft);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body.ml-ai-admin-page .ml-ai-stat-value {
    margin-top: .25rem;
    color: var(--ml-ink-deep);
    font-size: 1.35rem;
    font-weight: 900;
}

body.ml-ai-admin-page .ml-ai-control {
    width: 100%;
    border: 1px solid var(--ml-line-strong);
    border-radius: 10px;
    outline: none;
    color: var(--ml-ink-deep);
    background: var(--ml-paper-2);
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.ml-ai-admin-page .ml-ai-control:focus {
    border-color: rgba(220, 116, 56, .72);
    box-shadow: 0 0 0 3px rgba(220, 116, 56, .12);
}

body.ml-ai-admin-page .ml-ai-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    min-height: 40px;
    padding: .68rem .95rem;
    border: 1px solid rgba(164, 86, 34, .48);
    border-radius: 10px;
    color: #4b291b;
    background: linear-gradient(180deg, #ffd36a, #ffb63f);
    box-shadow: 0 3px 0 rgba(172, 80, 28, .58);
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

body.ml-ai-admin-page .ml-ai-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.025);
    color: #3d2116;
    box-shadow: 0 4px 0 rgba(172, 80, 28, .58);
}

body.ml-ai-admin-page .ml-ai-button--soft {
    color: var(--ml-ink-deep);
    background: var(--ml-paper-2);
    border-color: var(--ml-line-strong);
    box-shadow: 0 2px 0 rgba(111, 58, 31, .16);
}

body.ml-ai-admin-page .ml-ai-button--danger {
    color: #fff5ef;
    background: linear-gradient(180deg, #d95d4f, #b74137);
    border-color: rgba(111, 35, 30, .52);
    box-shadow: 0 3px 0 rgba(92, 29, 25, .48);
}

body.ml-ai-admin-page .ml-ai-button:disabled {
    opacity: .48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.ml-ai-admin-page .ml-ai-notice {
    padding: .85rem 1rem;
    border: 1px solid var(--ml-line);
    border-radius: 11px;
    color: var(--ml-ink);
    background: var(--ml-paper-2);
    line-height: 1.5;
}

body.ml-ai-admin-page .ml-ai-notice--success {
    border-color: rgba(34, 139, 88, .28);
    background: rgba(43, 160, 101, .09);
}

body.ml-ai-admin-page .ml-ai-notice--error {
    border-color: rgba(189, 62, 62, .28);
    background: rgba(201, 70, 70, .08);
}

body.ml-ai-admin-page .ml-ai-notice--warning {
    border-color: rgba(200, 128, 36, .32);
    background: rgba(236, 159, 48, .09);
}

html[data-theme="dark"] body.ml-ai-admin-page .ml-ai-button--soft {
    color: var(--ml-ink);
    background: var(--ml-paper-3);
}

html[data-theme="dark"] body.ml-ai-admin-page .ml-ai-control {
    background: #211711;
}

@media (max-width: 820px) {
    body.ml-ai-admin-page .ml-ai-page-shell {
        width: min(100% - 1rem, 1180px);
    }

    body.ml-ai-admin-page .ml-ai-hero-row {
        align-items: flex-start;
        flex-direction: column;
    }

    body.ml-ai-admin-page .ml-ai-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    body.ml-ai-admin-page .ml-ai-hero {
        padding: 1.05rem;
        border-radius: 14px;
    }

    body.ml-ai-admin-page .ml-ai-hero-icon {
        display: none;
    }

    body.ml-ai-admin-page .ml-ai-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MineLatino — páginas internas / comunidad / gestión
   ========================================================= */
body.ml-portal-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--ml-ink);
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 226, 174, .62), transparent 29%),
        radial-gradient(circle at 88% 16%, rgba(211, 102, 48, .13), transparent 31%),
        linear-gradient(180deg, #f7d1a5 0%, var(--ml-page) 44%, #ebb57c 100%) !important;
}

html[data-theme="dark"] body.ml-portal-page {
    background:
        radial-gradient(circle at 12% 6%, rgba(218, 116, 58, .12), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(255, 194, 79, .055), transparent 32%),
        linear-gradient(180deg, #21140f 0%, var(--ml-page) 46%, var(--ml-page-deep) 100%) !important;
}

body.ml-portal-page .ml-portal-shell {
    flex: 1;
    width: min(1180px, calc(100% - 2rem));
    margin: .15rem auto 2.5rem;
}

body.ml-portal-page .ml-portal-shell--narrow {
    width: min(960px, calc(100% - 2rem));
}

body.ml-portal-page .ml-portal-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 1rem;
    padding: 1.35rem 1.45rem;
    border: 1px solid rgba(255, 210, 151, .22);
    border-radius: 18px;
    color: #fff7ec;
    background:
        radial-gradient(circle at 91% 12%, rgba(255, 194, 79, .15), transparent 28%),
        linear-gradient(135deg, #3b1f15 0%, #66361f 58%, #8b4c2a 100%);
    box-shadow: 0 14px 34px rgba(76, 37, 20, .18);
}

body.ml-portal-page .ml-portal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .19;
    background:
        linear-gradient(135deg, transparent 0 42%, rgba(255,255,255,.08) 42% 43%, transparent 43% 100%);
    background-size: 34px 34px;
}

body.ml-portal-page .ml-portal-hero-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body.ml-portal-page .ml-portal-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

body.ml-portal-page .ml-portal-hero-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #4a2819;
    background: linear-gradient(180deg, #ffd877, var(--ml-gold));
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 4px 0 rgba(157, 77, 30, .55), inset 0 1px 0 rgba(255,255,255,.48);
    font-size: 1.35rem;
}

body.ml-portal-page .ml-portal-kicker {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    margin-bottom: .35rem;
    color: #ffd98c;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .065em;
    text-transform: uppercase;
}

body.ml-portal-page .ml-portal-title {
    margin: 0;
    color: #fff7ed;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-weight: 900;
    line-height: 1.08;
}

body.ml-portal-page .ml-portal-subtitle {
    max-width: 780px;
    margin: .45rem 0 0;
    color: rgba(255, 239, 220, .79);
    font-size: .92rem;
    line-height: 1.55;
}

body.ml-portal-page .ml-portal-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
}

body.ml-portal-page .ml-portal-panel {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--ml-line);
    border-radius: 17px;
    color: var(--ml-ink);
    background: var(--ml-paper);
    box-shadow: 0 10px 26px var(--ml-shadow);
}

body.ml-portal-page .ml-portal-panel--soft {
    background: var(--ml-paper-2);
}

body.ml-portal-page .ml-portal-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--ml-line);
}

body.ml-portal-page .ml-portal-section-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    color: var(--ml-ink-deep);
    font-size: 1.05rem;
    font-weight: 900;
}

body.ml-portal-page .ml-portal-section-title i {
    color: var(--ml-orange);
}

body.ml-portal-page .ml-portal-section-copy,
body.ml-portal-page .ml-portal-muted {
    color: var(--ml-ink-soft);
}

body.ml-portal-page .ml-portal-section-copy {
    margin: .25rem 0 0;
    font-size: .86rem;
    line-height: 1.55;
}

body.ml-portal-page .ml-portal-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

body.ml-portal-page .ml-portal-stat-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--ml-line);
    border-radius: 13px;
    background: var(--ml-paper-2);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body.ml-portal-page .ml-portal-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(220,116,56,.35);
    box-shadow: 0 7px 16px rgba(91,45,23,.08);
}

body.ml-portal-page .ml-portal-stat-label {
    color: var(--ml-ink-soft);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body.ml-portal-page .ml-portal-stat-value {
    margin-top: .2rem;
    color: var(--ml-ink-deep);
    font-size: 1.35rem;
    font-weight: 900;
}

body.ml-portal-page .ml-portal-control {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--ml-line-strong);
    border-radius: 10px;
    outline: none;
    color: var(--ml-ink-deep);
    background: var(--ml-paper-2);
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.ml-portal-page input.ml-portal-control,
body.ml-portal-page textarea.ml-portal-control {
    padding: .72rem .85rem;
}

body.ml-portal-page select.ml-portal-control {
    padding: 0 2.1rem 0 .75rem;
}

body.ml-portal-page .ml-portal-control:focus {
    border-color: rgba(220,116,56,.72);
    box-shadow: 0 0 0 3px rgba(220,116,56,.12);
}

body.ml-portal-page .ml-portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    min-height: 40px;
    padding: .68rem .95rem;
    border: 1px solid rgba(164, 86, 34, .48);
    border-radius: 10px;
    color: #4b291b;
    background: linear-gradient(180deg, #ffd36a, #ffb63f);
    box-shadow: 0 3px 0 rgba(172, 80, 28, .58);
    font: inherit;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

body.ml-portal-page .ml-portal-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.025);
    color: #3d2116;
    box-shadow: 0 4px 0 rgba(172, 80, 28, .58);
}

body.ml-portal-page .ml-portal-button--soft {
    color: var(--ml-ink-deep);
    background: var(--ml-paper-2);
    border-color: var(--ml-line-strong);
    box-shadow: 0 2px 0 rgba(111, 58, 31, .16);
}

body.ml-portal-page .ml-portal-button--danger {
    color: #fff5ef;
    background: linear-gradient(180deg, #d95d4f, #b74137);
    border-color: rgba(111, 35, 30, .52);
    box-shadow: 0 3px 0 rgba(92, 29, 25, .48);
}

body.ml-portal-page .ml-portal-button--success {
    color: #f3fff8;
    background: linear-gradient(180deg, #37966a, #267951);
    border-color: rgba(22, 91, 58, .58);
    box-shadow: 0 3px 0 rgba(20, 78, 51, .46);
}

body.ml-portal-page .ml-portal-button:disabled,
body.ml-portal-page .ml-portal-button[disabled] {
    opacity: .48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.ml-portal-page .ml-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: .34rem;
    padding: .28rem .58rem;
    border: 1px solid var(--ml-line);
    border-radius: 999px;
    color: var(--ml-ink-soft);
    background: var(--ml-paper-2);
    font-size: .7rem;
    font-weight: 850;
    line-height: 1.2;
}

body.ml-portal-page .ml-portal-badge--warning {
    color: #92520f;
    border-color: rgba(190, 116, 19, .28);
    background: rgba(245, 171, 51, .12);
}

body.ml-portal-page .ml-portal-badge--success {
    color: #187b55;
    border-color: rgba(24,123,85,.24);
    background: rgba(38,160,107,.09);
}

body.ml-portal-page .ml-portal-badge--danger {
    color: #b94141;
    border-color: rgba(185,65,65,.24);
    background: rgba(201,70,70,.08);
}

body.ml-portal-page .ml-portal-badge--info {
    color: #25658a;
    border-color: rgba(37,101,138,.23);
    background: rgba(50,135,183,.08);
}

html[data-theme="dark"] body.ml-portal-page .ml-portal-badge--warning { color: #ffd48a; }
html[data-theme="dark"] body.ml-portal-page .ml-portal-badge--success { color: #7be0b0; }
html[data-theme="dark"] body.ml-portal-page .ml-portal-badge--danger { color: #ff9a96; }
html[data-theme="dark"] body.ml-portal-page .ml-portal-badge--info { color: #8cc9ef; }

body.ml-portal-page .ml-portal-empty {
    padding: 2.3rem 1rem;
    border: 1px dashed var(--ml-line-strong);
    border-radius: 14px;
    text-align: center;
    color: var(--ml-ink-soft);
    background: var(--ml-paper-2);
}

body.ml-portal-page .ml-portal-empty i {
    display: block;
    margin-bottom: .65rem;
    color: var(--ml-orange);
    font-size: 2rem;
}

body.ml-portal-page .pagination {
    margin-top: 1.25rem;
}

body.ml-portal-page .pagination-link,
body.ml-portal-page .pagination-previous,
body.ml-portal-page .pagination-next {
    border-color: var(--ml-line-strong);
    color: var(--ml-ink-deep);
    background: var(--ml-paper-2);
    font-weight: 800;
}

body.ml-portal-page .pagination-link:hover,
body.ml-portal-page .pagination-previous:hover,
body.ml-portal-page .pagination-next:hover {
    border-color: rgba(220,116,56,.45);
    color: var(--ml-orange-deep);
}

body.ml-portal-page .pagination-link.is-current {
    border-color: rgba(164, 86, 34, .52);
    color: #4b291b;
    background: linear-gradient(180deg, #ffd36a, #ffb63f);
}

body.ml-portal-page .pagination-previous[disabled],
body.ml-portal-page .pagination-next[disabled] {
    opacity: .42;
}

body.ml-portal-page .ml-portal-notice {
    padding: .85rem 1rem;
    border: 1px solid var(--ml-line);
    border-radius: 11px;
    color: var(--ml-ink);
    background: var(--ml-paper-2);
    line-height: 1.5;
}

body.ml-portal-page .ml-portal-notice--success {
    border-color: rgba(34,139,88,.28);
    background: rgba(43,160,101,.09);
}

body.ml-portal-page .ml-portal-notice--danger {
    border-color: rgba(189,62,62,.28);
    background: rgba(201,70,70,.08);
}

body.ml-portal-page .ml-portal-notice--warning {
    border-color: rgba(200,128,36,.32);
    background: rgba(236,159,48,.09);
}

body.ml-portal-page .modal-card {
    overflow: hidden;
    border: 1px solid var(--ml-line-strong);
    border-radius: 16px;
    color: var(--ml-ink);
    background: var(--ml-paper);
    box-shadow: 0 24px 60px rgba(48, 24, 14, .3);
}

body.ml-portal-page .modal-card-head,
body.ml-portal-page .modal-card-foot {
    border-color: var(--ml-line);
    background: var(--ml-paper-2);
}

body.ml-portal-page .modal-card-title,
body.ml-portal-page .modal-card-body {
    color: var(--ml-ink-deep);
}

body.ml-portal-page .modal-background {
    background: rgba(29, 16, 11, .72);
    backdrop-filter: blur(4px);
}

html[data-theme="dark"] body.ml-portal-page .ml-portal-control,
html[data-theme="dark"] body.ml-portal-page .ml-portal-button--soft {
    background: #211711;
}

@media (max-width: 820px) {
    body.ml-portal-page .ml-portal-shell,
    body.ml-portal-page .ml-portal-shell--narrow {
        width: min(100% - 1rem, 1180px);
    }

    body.ml-portal-page .ml-portal-hero-row,
    body.ml-portal-page .ml-portal-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    body.ml-portal-page .ml-portal-actions {
        width: 100%;
        justify-content: flex-start;
    }

    body.ml-portal-page .ml-portal-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    body.ml-portal-page .ml-portal-hero {
        padding: 1.05rem;
        border-radius: 14px;
    }

    body.ml-portal-page .ml-portal-hero-icon {
        display: none;
    }

    body.ml-portal-page .ml-portal-stat-grid {
        grid-template-columns: 1fr;
    }
}
