.g2k-rar {
    --g2k-rar-red: #ff2b23;
    --g2k-rar-red-2: #ff665c;
    --g2k-rar-bg: #080a0f;
    --g2k-rar-panel: #0d1118;
    --g2k-rar-line: rgba(255, 255, 255, 0.14);
    --g2k-rar-text: #f8fafc;
    --g2k-rar-muted: #a9b2c0;
    --g2k-rar-green: #19c37d;
    direction: rtl;
    margin: 28px auto;
    max-width: 980px;
    color: var(--g2k-rar-text);
    font-family: Tajawal, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.g2k-rar *,
.g2k-rar *::before,
.g2k-rar *::after {
    box-sizing: border-box;
}

.g2k-rar__card {
    position: relative;
    width: min(100%, 430px);
    min-height: 560px;
    margin: 0 auto;
    padding: 28px 22px;
    overflow: hidden;
    border: 1px solid var(--g2k-rar-line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 43, 35, 0.34), transparent 31%),
        linear-gradient(160deg, #08090d 0%, #101722 48%, #07080c 100%);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.g2k-rar__card::before {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
}

.g2k-rar__card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 22px;
    left: 22px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--g2k-rar-red), #fff, transparent);
    box-shadow: 0 0 34px rgba(255, 43, 35, 0.8);
}

.g2k-rar__online {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    color: #c7d2e3;
}

.g2k-rar__online i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #32e69d;
    box-shadow: 0 0 12px rgba(50, 230, 157, 0.9);
}

.g2k-rar__screen {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 500px;
    align-content: center;
    gap: 22px;
    animation: g2k-rar-fade 0.28s ease both;
}

.g2k-rar__screen[hidden] {
    display: none;
}

.g2k-rar__head {
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.g2k-rar__head h2,
.g2k-rar__screen h2 {
    margin: 0;
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.18;
    letter-spacing: 0;
}

.g2k-rar__head h2 span {
    display: block;
    color: var(--g2k-rar-red);
    text-shadow: 0 0 20px rgba(255, 43, 35, 0.45);
}

.g2k-rar__head h2 strong {
    display: block;
    color: #fff;
    font-weight: 900;
}

.g2k-rar__image {
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 28px rgba(255, 43, 35, 0.24);
}

.g2k-rar__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g2k-rar__image span {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
}

.g2k-rar__form {
    display: grid;
    gap: 12px;
}

.g2k-rar__form label {
    color: var(--g2k-rar-text);
    font-size: 13px;
    font-weight: 800;
}

.g2k-rar__form small {
    color: var(--g2k-rar-muted);
    font-weight: 700;
}

.g2k-rar__input,
.g2k-rar__form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.34);
    color: var(--g2k-rar-text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.g2k-rar__input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
}

.g2k-rar__input span {
    color: var(--g2k-rar-red-2);
    font-weight: 900;
}

.g2k-rar__input input,
.g2k-rar__form textarea {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.g2k-rar__input input {
    width: 100%;
    height: 48px;
}

.g2k-rar__form textarea {
    min-height: 88px;
    padding: 12px 14px;
    resize: vertical;
}

.g2k-rar__input input::placeholder,
.g2k-rar__form textarea::placeholder {
    color: rgba(248, 250, 252, 0.45);
}

.g2k-rar__check {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--g2k-rar-muted) !important;
    font-size: 12px !important;
    line-height: 1.6;
}

.g2k-rar__check input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--g2k-rar-red);
}

.g2k-rar__ad-note {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--g2k-rar-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.65;
    text-align: center;
}

.g2k-rar__hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    opacity: 0;
    white-space: nowrap;
}

.g2k-rar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #ff1710, #ff665c);
    color: #fff;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(255, 43, 35, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.g2k-rar__button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.g2k-rar__button:not(:disabled):hover,
.g2k-rar__button:not(:disabled):focus-visible {
    box-shadow: 0 18px 36px rgba(255, 43, 35, 0.36), 0 0 0 3px rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.g2k-rar__button:not(:disabled):active {
    box-shadow: 0 10px 22px rgba(255, 43, 35, 0.28);
    transform: translateY(1px) scale(0.99);
}

.g2k-rar__button.is-loading {
    cursor: wait;
}

.g2k-rar__button--ghost {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.g2k-rar__button--lookup {
    min-height: 46px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.g2k-rar__account {
    display: grid;
    gap: 10px;
}

.g2k-rar__account[hidden],
.g2k-rar__account-card[hidden],
.g2k-rar__account-actions[hidden] {
    display: none;
}

.g2k-rar__account-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(123, 92, 255, 0.2), transparent 34%),
        rgba(255, 255, 255, 0.06);
}

.g2k-rar__account-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.g2k-roblox-avatar {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid rgba(123, 92, 255, 0.8);
    background: #11131b;
}

.g2k-roblox-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    color: transparent;
    font-size: 0;
}

.g2k-roblox-avatar img.g2k-avatar-fallback {
    background: #11131b;
}

.g2k-rar__account-main {
    display: grid;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.g2k-rar__account-main strong {
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
}

.g2k-rar__account-main em {
    overflow-wrap: anywhere;
    color: var(--g2k-rar-muted);
    font-style: normal;
    font-size: 13px;
}

.g2k-rar__account-main i {
    display: inline-flex;
    margin-right: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(25, 195, 125, 0.14);
    color: #b9f8d7;
    font-style: normal;
    font-weight: 900;
}

.g2k-rar__profile-link {
    display: inline-flex;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
}

.g2k-rar__profile-link[hidden] {
    display: none;
}

.g2k-rar__account-close {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.g2k-rar__account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.g2k-rar__account-stats span {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-width: 0;
    padding: 10px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.g2k-rar__account-stats strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.g2k-rar__account-stats em {
    color: var(--g2k-rar-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.g2k-rar__account-meta {
    display: grid;
    gap: 8px;
    margin: 0;
}

.g2k-rar__account-meta div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.g2k-rar__account-meta dt,
.g2k-rar__account-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.45;
}

.g2k-rar__account-meta dt {
    color: var(--g2k-rar-muted);
    font-weight: 800;
}

.g2k-rar__account-meta dd {
    color: #fff;
    font-weight: 900;
}

.g2k-rar__account-description {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--g2k-rar-muted);
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.g2k-rar__account-description[hidden] {
    display: none;
}

.g2k-rar__account-actions {
    display: grid;
    gap: 8px;
}

.g2k-rar__account.is-confirmed .g2k-rar__account-card {
    border-color: rgba(25, 195, 125, 0.42);
    background: rgba(25, 195, 125, 0.1);
}

.g2k-rar__message,
.g2k-rar__modal-status,
.g2k-rar__account > p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(25, 195, 125, 0.12);
    color: #b9f8d7;
    font-size: 13px;
    line-height: 1.55;
}

.g2k-rar__message.is-error,
.g2k-rar__modal-status.is-error,
.g2k-rar__account > p.is-error {
    background: rgba(255, 43, 35, 0.12);
    color: #ffd6d3;
}

.g2k-rar__spinner {
    justify-self: center;
    width: 76px;
    height: 76px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--g2k-rar-red);
    border-radius: 999px;
    animation: g2k-rar-spin 1s linear infinite;
}

.g2k-rar__success-mark {
    justify-self: center;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    border: 1px solid rgba(25, 195, 125, 0.45);
    background: rgba(25, 195, 125, 0.12);
    box-shadow: 0 0 28px rgba(25, 195, 125, 0.2);
}

.g2k-rar__success-mark span {
    width: 34px;
    height: 18px;
    border-right: 4px solid var(--g2k-rar-green);
    border-bottom: 4px solid var(--g2k-rar-green);
    transform: rotate(45deg);
}

.g2k-rar__screen[data-g2k-rar-screen="processing"],
.g2k-rar__screen[data-g2k-rar-screen="success"] {
    text-align: center;
}

.g2k-rar__screen > p {
    margin: 0;
    color: var(--g2k-rar-muted);
    line-height: 1.75;
}

.g2k-rar__request-id {
    color: #b9f8d7 !important;
    font-weight: 800;
}

.g2k-rar__modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.72);
}

.g2k-rar__modal[hidden] {
    display: none;
}

.g2k-rar__modal-panel {
    width: min(100%, 390px);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: linear-gradient(160deg, #10141d, #07080c);
    color: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.g2k-rar__modal-panel h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: 0;
}

.g2k-rar__modal-panel p {
    margin: 0 0 14px;
    color: var(--g2k-rar-muted);
    line-height: 1.75;
}

.g2k-rar__modal-actions {
    display: grid;
    gap: 10px;
}

.g2k-rar__related {
    margin: 28px auto 0;
    max-width: 920px;
    color: #121722;
}

.g2k-rar__related[hidden] {
    display: none;
}

.g2k-rar__related h3 {
    margin: 0 0 16px;
    color: #121722;
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: 0;
}

.g2k-rar__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.g2k-rar__related-card {
    overflow: hidden;
    border: 1px solid #e7ecf3;
    border-radius: 8px;
    background: #fff;
}

.g2k-rar__related-card a {
    display: grid;
    color: inherit;
    text-decoration: none;
}

.g2k-rar__related-card img {
    display: block;
    width: 100%;
    height: 158px;
    object-fit: contain;
    object-position: center;
    background: #f3f6fb;
}

.g2k-rar__related-card span {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.g2k-rar__related-card strong {
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
}

.g2k-rar__related-card em {
    color: #5b6676;
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.g2k-rar__related-card b,
.g2k-rar__more {
    color: var(--g2k-rar-red);
    font-size: 13px;
    font-weight: 900;
}

.g2k-rar__more {
    display: inline-flex;
    margin-top: 16px;
    text-decoration: none;
}

@keyframes g2k-rar-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes g2k-rar-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes g2k-rar-nudge {
    0%,
    100% {
        outline-color: rgba(255, 255, 255, 0);
        transform: translateY(0);
    }
    35% {
        outline-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-2px);
    }
    70% {
        outline-color: rgba(255, 43, 35, 0.45);
        transform: translateY(0);
    }
}

.g2k-rar .is-g2k-rar-nudged {
    outline: 3px solid rgba(255, 255, 255, 0);
    outline-offset: 4px;
    animation: g2k-rar-nudge 1.25s ease both;
}

@media (min-width: 760px) {
    .g2k-rar__account-actions {
        grid-template-columns: 1fr auto;
    }

    .g2k-rar__account-actions .g2k-rar__button--ghost {
        width: auto;
        min-width: 130px;
    }

    .g2k-rar__modal-actions {
        grid-template-columns: 1fr auto;
    }

    .g2k-rar__modal-actions .g2k-rar__button--ghost {
        width: auto;
        min-width: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .g2k-rar__screen,
    .g2k-rar__spinner,
    .g2k-rar .is-g2k-rar-nudged {
        animation: none;
    }

    .g2k-rar__button {
        transition: none;
    }
}
