.ibiza-auth-modal {
    width: min(92vw, 420px);
    border: 1px solid rgba(255, 174, 66, 0.45);
    border-radius: 10px;
    padding: 28px;
    color: #fff;
    background: linear-gradient(180deg, rgba(26, 11, 46, 0.98), rgba(8, 5, 14, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}

.ibiza-auth-modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.ibiza-auth-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 22px;
    line-height: 1;
}

.ibiza-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

.ibiza-auth-tabs button,
.ibiza-auth-form button {
    border: 1px solid rgba(255, 174, 66, 0.55);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(255, 174, 66, 0.12);
    font-weight: 700;
}

.ibiza-auth-tabs button.is-active,
.ibiza-auth-form button {
    color: #1a0b2e;
    background: #ffae42;
}

.ibiza-auth-form {
    display: grid;
    gap: 12px;
}

.ibiza-auth-form input {
    min-height: 44px;
    border: 1px solid rgba(255, 174, 66, 0.35);
    border-radius: 8px;
    padding: 0 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.32);
}

.ibiza-auth-message,
.ibiza-site-message,
.ibiza-empty {
    color: #ffc107;
}

.ibiza-site-message {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2000;
    max-width: min(360px, calc(100vw - 36px));
    padding: 12px 16px;
    border: 1px solid rgba(255, 174, 66, 0.4);
    border-radius: 8px;
    background: rgba(16, 8, 22, 0.94);
}

.ibiza-guild-logo {
    width: 120px;
    aspect-ratio: 1;
    margin: 0 auto;
    border: 1px solid rgba(255, 174, 66, 0.35);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 174, 66, 0.28), rgba(26, 11, 46, 0.3) 58%, rgba(0, 0, 0, 0.45));
}

.card-modules .table-responsive {
    min-height: 240px;
}

.card-modules table {
    margin-bottom: 0;
}

.nicolas-credit {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 2147483647;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(148, 163, 184, .75);
    box-shadow: 0 12px 30px -16px rgba(15, 23, 42, .55);
    color: #1f2937;
    font: 600 11px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
}

body > a.nicolas-credit[data-nx-credit] {
    position: fixed !important;
    left: auto !important;
}

.nicolas-credit span {
    color: #64748b;
    font-weight: 500;
}

.nicolas-credit strong {
    color: #1f2937;
}

@media (max-width: 640px) {
    body:not(.ibiza-system-body) {
        overflow-x: hidden !important;
        padding-bottom: 74px;
        background-position: center top !important;
    }

    body:not(.ibiza-system-body) #contenidoWeb > .navbar {
        position: sticky !important;
        top: 0;
        z-index: 1200;
        min-height: 68px;
        padding: 8px 12px;
        border-bottom: 1px solid rgba(255, 224, 139, .2);
        background: linear-gradient(180deg, rgba(26, 11, 46, .96), rgba(26, 11, 46, .72)) !important;
        backdrop-filter: blur(14px);
    }

    body:not(.ibiza-system-body) .navbar-brand img {
        width: 66px !important;
        height: auto;
        filter: drop-shadow(0 0 14px rgba(123, 66, 246, .55));
    }

    body:not(.ibiza-system-body) .navbar-toggler {
        width: 58px;
        height: 48px;
        display: inline-grid;
        place-items: center;
        border: 1px solid rgba(255, 224, 139, .35) !important;
        border-radius: 14px;
        background: rgba(8, 4, 12, .52);
        box-shadow: 0 0 20px rgba(123, 66, 246, .22);
    }

    body:not(.ibiza-system-body) .navbar-toggler-icon {
        width: 30px;
        height: 30px;
        background-size: 28px 28px;
    }

    body:not(.ibiza-system-body) #navbarSupportedContent {
        margin-top: 12px;
        padding: 14px;
        border: 1px solid rgba(255, 224, 139, .24);
        border-radius: 16px;
        background: rgba(8, 4, 14, .94);
        box-shadow: 0 20px 48px rgba(0, 0, 0, .42);
    }

    body:not(.ibiza-system-body) #navbarSupportedContent .nav-link {
        min-height: 40px;
        display: flex;
        align-items: center;
        padding: 7px 10px !important;
        color: rgba(247, 239, 255, .88) !important;
        font-size: 14px;
        line-height: 1.15;
    }

    body:not(.ibiza-system-body) #navbarSupportedContent .nav-link:hover {
        color: #ffe08b !important;
    }

    body:not(.ibiza-system-body) .panel {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    body:not(.ibiza-system-body) .panel.main-section {
        min-height: calc(100svh - 68px) !important;
        align-items: flex-start;
        padding-top: 18px !important;
        padding-bottom: 92px !important;
    }

    body:not(.ibiza-system-body) .main-section .panel-content {
        width: 100%;
        display: grid;
        justify-items: center;
    }

    body:not(.ibiza-system-body) .main-section .panel-content .img-fluid {
        width: min(250px, 72vw) !important;
        margin-bottom: 6px;
    }

    body:not(.ibiza-system-body) .text-main-section {
        max-width: 340px;
        margin: 6px auto 14px;
        font-size: clamp(18px, 5.4vw, 23px);
        line-height: 1.14;
        text-wrap: balance;
    }

    body:not(.ibiza-system-body) .stats-container {
        width: min(340px, 100%);
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 0 auto 14px;
    }

    body:not(.ibiza-system-body) .stat-box,
    body:not(.ibiza-system-body) .stat-online {
        width: 100%;
        min-width: 0;
        height: 64px;
        min-height: 64px;
        padding: 8px 6px;
        border-radius: 12px;
    }

    body:not(.ibiza-system-body) .stat-online {
        border-radius: 12px;
        border-color: rgba(255, 224, 139, .35);
        animation: none;
    }

    body:not(.ibiza-system-body) .stat-number {
        font-size: 18px;
    }

    body:not(.ibiza-system-body) .stat-label {
        font-size: 9px;
        letter-spacing: 0;
    }

    body:not(.ibiza-system-body) .buttons {
        width: min(340px, 100%);
        flex-direction: column;
        gap: 10px;
        margin-top: 2px;
    }

    body:not(.ibiza-system-body) .buttons a,
    body:not(.ibiza-system-body) .buttons a:nth-child(2) {
        width: 100%;
        max-width: none;
        min-height: 84px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: 12px 14px;
        overflow: hidden;
        border: 1px solid rgba(255, 224, 139, .22);
        border-radius: 16px;
        background:
            linear-gradient(110deg, rgba(123, 66, 246, .22), rgba(255, 47, 104, .12)),
            url("../img/bg_box_active.webp") center / cover no-repeat;
        box-shadow: 0 14px 36px rgba(0, 0, 0, .34);
        filter: hue-rotate(256deg) saturate(1.05);
    }

    body:not(.ibiza-system-body) .buttons a:nth-child(2) {
        background:
            linear-gradient(110deg, rgba(26, 11, 46, .58), rgba(255, 174, 66, .14)),
            url("../img/bg_box.webp") center / cover no-repeat;
    }

    body:not(.ibiza-system-body) .buttons a span {
        min-width: 0;
        padding: 0;
        text-align: left;
        font-size: 12px;
        line-height: 1.22;
    }

    body:not(.ibiza-system-body) .buttons a span strong {
        font-size: 18px;
        line-height: 1.05;
    }

    body:not(.ibiza-system-body) .buttons a span img {
        width: 54px;
        min-width: 54px;
    }

    body:not(.ibiza-system-body) .rrss-icon {
        display: none;
    }

    .nicolas-credit {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        left: auto !important;
        max-width: calc(100vw - 20px);
        padding: 6px 9px;
        gap: 0;
        font-size: 9px;
        letter-spacing: .035em;
    }

    .nicolas-credit span {
        display: none;
    }
}
