/* ARTBUILD Role Gateway v2.1 — scoped frontend only */

.artbuild-plugin.abp-rg,
.artbuild-plugin.abp-rg * {
    box-sizing: border-box;
}

.artbuild-plugin.abp-rg {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31,111,255,.22), transparent 34%),
        linear-gradient(135deg, #071b2b, #061827);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 28px;
    overflow: hidden;
}

.abp-rg a {
    text-decoration: none !important;
}

.abp-rg-hero,
.abp-rg-login {
    padding: 28px;
    margin-bottom: 18px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        #092033;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
}

.abp-rg-login {
    max-width: 720px;
    margin: 0 auto;
}

.abp-rg-kicker {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(31,111,255,.12);
    color: #7db6ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.abp-rg-hero h1,
.abp-rg-login h2 {
    margin: 14px 0 10px;
    color: #ffffff;
    font-size: clamp(36px,5vw,64px);
    line-height: .94;
    font-weight: 950;
    letter-spacing: -.05em;
}

.abp-rg-hero p,
.abp-rg-login p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 16px;
    line-height: 1.55;
}

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

.abp-rg-card {
    position: relative;
    display: block;
    min-height: 230px;
    padding: 22px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        #092033;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.abp-rg-card:hover,
.abp-rg-card.abp-rg-selected {
    transform: translateY(-3px);
    border-color: rgba(77,163,255,.82);
    box-shadow: 0 0 0 4px rgba(31,111,255,.20), 0 28px 90px rgba(31,111,255,.14);
}

.abp-rg-radio {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 24px !important;
    height: 24px !important;
    opacity: 1 !important;
    accent-color: #1f6fff;
    cursor: pointer;
    z-index: 3;
}

.abp-rg-check {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.35);
    background: rgba(2,12,22,.72);
    pointer-events: none;
}

.abp-rg-radio:checked + .abp-rg-check {
    border-color: #4da3ff;
    background:
        radial-gradient(circle at center, #4da3ff 0 38%, transparent 40%),
        rgba(31,111,255,.20);
}

.abp-rg-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(31,111,255,.12);
    color: #7db6ff;
    font-size: 12px;
    font-weight: 900;
}

.abp-rg-tone-green .abp-rg-pill {
    background: rgba(35,195,120,.12);
    color: #7ff0b7;
}

.abp-rg-tone-gold .abp-rg-pill {
    background: rgba(242,183,5,.12);
    color: #f2d36b;
}

.abp-rg-card strong {
    display: block;
    margin-bottom: 10px;
    padding-right: 34px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -.02em;
}

.abp-rg-card em {
    display: block;
    color: rgba(255,255,255,.66);
    font-size: 14px;
    line-height: 1.5;
    font-style: normal;
}

.abp-rg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.abp-rg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 20px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1f6fff, #0f58d6);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease;
}

.abp-rg-button:hover {
    transform: translateY(-2px);
}

.abp-rg-button-secondary {
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.12);
}

.abp-rg-alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(255,79,63,.10);
    color: #ffaaa4;
    border: 1px solid rgba(255,79,63,.24);
    font-weight: 900;
}

@media (max-width: 980px) {
    .abp-rg-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .artbuild-plugin.abp-rg {
        padding: 18px;
        border-radius: 22px;
    }

    .abp-rg-grid {
        grid-template-columns: 1fr;
    }

    .abp-rg-actions,
    .abp-rg-button {
        width: 100%;
    }

    .abp-rg-actions {
        flex-direction: column;
    }
}
