body.attendia-body {
    background:
        radial-gradient(circle at 18% 10%, rgba(140, 216, 255, 0.34), transparent 26%),
        radial-gradient(circle at 80% 4%, rgba(255, 183, 108, 0.22), transparent 26%),
        linear-gradient(180deg, #071328 0%, #132b52 42%, #f1e3bb 42%, #f6efd8 100%);
    color: #17213a;
}

body.attendia-body::before {
    opacity: 0.06;
}

body.attendia-body .public-main {
    padding-bottom: 0;
}

body.attendia-body .public-header {
    background: rgba(11, 25, 48, 0.86);
    border-bottom-color: rgba(255, 232, 164, 0.28);
}

body.attendia-body .public-footer {
    background: #0b1930;
    border-top-color: rgba(255, 232, 164, 0.24);
}

.attendia-page {
    --ro-navy: #0b1930;
    --ro-blue: #22568f;
    --ro-sky: #83ddff;
    --ro-gold: #f2c96d;
    --ro-bronze: #9b6327;
    --ro-rose: #e8547e;
    --ro-paper: #fff7dd;
    --ro-ink: #17213a;
    background:
        linear-gradient(180deg, rgba(8, 20, 42, 0.08), rgba(255, 247, 221, 0.98) 72%),
        #fff7dd;
    color: var(--ro-ink);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.attendia-page::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(34, 86, 143, 0.07) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    inset: 0;
    opacity: 0.48;
    pointer-events: none;
    position: absolute;
}

.attendia-page > * {
    position: relative;
    z-index: 1;
}

.attendia-hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(7, 19, 40, 0.92) 0%, rgba(13, 38, 74, 0.82) 48%, rgba(13, 38, 74, 0.24) 100%),
        radial-gradient(circle at 80% 28%, rgba(131, 221, 255, 0.42), transparent 24%),
        linear-gradient(135deg, #0a1730, #1f4b7e 48%, #f5d58a);
    display: grid;
    gap: clamp(28px, 4vw, 58px);
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.86fr);
    min-height: min(820px, calc(100vh - 84px));
    overflow: hidden;
    padding: clamp(34px, 5.5vw, 84px);
}

.attendia-hero::after {
    background:
        radial-gradient(circle, rgba(255, 247, 221, 0.8) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(131, 221, 255, 0.78) 0 1px, transparent 2px);
    background-size: 180px 180px, 96px 96px;
    content: "";
    inset: 0;
    opacity: 0.28;
    pointer-events: none;
    position: absolute;
}

.attendia-hero-copy {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.ro-kicker {
    color: var(--ro-gold);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.attendia-hero h1,
.attendia-section h2,
.register-lore h2,
.attendia-cta h2 {
    color: inherit;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
    margin: 0;
    text-transform: uppercase;
}

.attendia-hero h1 {
    color: #fff8d9;
    font-size: clamp(2.6rem, 6.3vw, 6.7rem);
    max-width: 980px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 36px rgba(131, 221, 255, 0.32);
}

.attendia-hero-copy > p:not(.ro-kicker) {
    color: rgba(246, 251, 255, 0.86);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.72;
    max-width: 760px;
}

.attendia-actions,
.ro-server-strip {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.ro-button {
    align-items: center;
    border: 1px solid rgba(255, 232, 164, 0.58);
    border-radius: 8px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    text-transform: uppercase;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ro-button:hover {
    border-color: #fff0ad;
    box-shadow: 0 0 28px rgba(131, 221, 255, 0.28);
    transform: translateY(-2px);
}

.ro-button.primary {
    background: linear-gradient(135deg, #fff0ad, #d9933e 48%, #e8547e);
    color: #11182a;
}

.ro-button.ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff8d9;
}

.ro-server-strip span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 232, 164, 0.28);
    border-radius: 999px;
    color: #fff8d9;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 9px 13px;
    text-transform: uppercase;
}

.rune-panel {
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 240, 173, 0.2), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(8, 18, 35, 0.86));
    border: 1px solid rgba(255, 232, 164, 0.44);
    border-radius: 8px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34), inset 0 0 60px rgba(131, 221, 255, 0.13);
    display: grid;
    gap: 20px;
    justify-items: center;
    min-height: 560px;
    overflow: hidden;
    padding: clamp(24px, 4vw, 44px);
    position: relative;
}

.rune-panel::before {
    background: url('/images/attendiaro-emblem.svg') center 38% / min(84%, 470px) no-repeat;
    content: "";
    inset: 0;
    opacity: 0.95;
    position: absolute;
}

.rune-panel::after {
    border: 1px solid rgba(255, 232, 164, 0.44);
    border-radius: 8px;
    content: "";
    inset: 16px;
    pointer-events: none;
    position: absolute;
}

.rune-core,
.rune-rates {
    position: relative;
    z-index: 1;
}

.rune-core {
    aspect-ratio: 1;
    display: grid;
    min-height: 300px;
    place-items: center;
    width: min(100%, 460px);
}

.rune-core span {
    animation: ro-pulse 3.4s ease-in-out infinite;
    border: 1px solid rgba(131, 221, 255, 0.54);
    border-radius: 50%;
    inset: 17%;
    position: absolute;
}

.rune-core b {
    color: #fff8d9;
    font-size: clamp(3.4rem, 8vw, 6.3rem);
    text-shadow: 0 0 28px rgba(131, 221, 255, 0.62);
}

.rune-rates,
.ro-stat-grid,
.job-grid,
.ro-flow {
    display: grid;
    gap: 14px;
}

.rune-rates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.rune-rates article,
.ro-stat-grid article,
.job-card,
.ro-flow article {
    background: rgba(8, 18, 35, 0.76);
    border: 1px solid rgba(131, 221, 255, 0.28);
    border-radius: 8px;
}

.rune-rates article {
    padding: 14px;
}

.rune-rates span,
.ro-stat-grid span,
.job-card span,
.job-card small {
    color: rgba(255, 248, 217, 0.72);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rune-rates strong,
.ro-stat-grid strong {
    color: var(--ro-gold);
    display: block;
    font-size: 2.1rem;
    line-height: 1;
    margin-top: 7px;
}

.attendia-section,
.attendia-register-zone,
.attendia-cta {
    padding: clamp(36px, 5vw, 78px) clamp(18px, 5vw, 84px);
}

.rate-section {
    background:
        linear-gradient(180deg, rgba(255, 247, 221, 0.96), rgba(255, 247, 221, 0.88)),
        #fff7dd;
}

.job-section {
    background:
        linear-gradient(180deg, #102544, #071328),
        #071328;
    color: #f8fbff;
}

.section-copy {
    align-items: end;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
    margin-bottom: 28px;
}

.section-copy h2,
.register-lore h2,
.attendia-cta h2 {
    font-size: clamp(1.9rem, 3.6vw, 3.6rem);
}

.section-copy p,
.register-lore p,
.attendia-cta p,
.job-card p,
.ro-stat-grid p {
    color: rgba(23, 33, 58, 0.76);
    line-height: 1.66;
    margin: 0;
}

.job-section .section-copy p,
.job-card p,
.job-section .job-card small {
    color: rgba(230, 244, 255, 0.72);
}

.ro-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ro-stat-grid article {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 243, 205, 0.62)),
        #fff7dd;
    border-color: rgba(155, 99, 39, 0.22);
    box-shadow: 0 18px 44px rgba(79, 49, 12, 0.11);
    padding: 22px;
}

.ro-stat-grid span {
    color: rgba(23, 33, 58, 0.62);
}

.ro-stat-grid strong {
    color: var(--ro-bronze);
}

.ro-stat-grid p {
    margin-top: 12px;
}

.attendia-register-zone {
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(131, 221, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #102544, #071328);
    color: #f8fbff;
    display: grid;
    gap: clamp(26px, 4vw, 58px);
    grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 0.66fr);
}

.register-lore {
    max-width: 780px;
}

.register-lore p {
    color: rgba(230, 244, 255, 0.78);
}

.ro-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
}

.ro-flow article {
    padding: 17px;
}

.ro-flow b {
    color: var(--ro-rose);
    display: block;
    font-size: 1.9rem;
    line-height: 1;
}

.ro-flow span {
    color: #fff8d9;
    display: block;
    font-size: 0.9rem;
    font-weight: 900;
    margin-top: 8px;
    text-transform: uppercase;
}

.attendia-form {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(8, 18, 35, 0.94)),
        #0a1830;
    border: 1px solid rgba(255, 232, 164, 0.34);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    max-width: 540px;
    padding: clamp(22px, 4vw, 38px);
    width: 100%;
}

.attendia-form::before {
    background: linear-gradient(90deg, var(--ro-gold), var(--ro-sky), transparent);
}

.attendia-form .form-heading h2 {
    color: #fff8d9;
    font-size: clamp(1.5rem, 2.4vw, 2.5rem);
}

.attendia-form label {
    color: rgba(230, 244, 255, 0.8);
}

.attendia-form input,
.attendia-form select {
    background: rgba(3, 9, 20, 0.88);
    border: 1px solid rgba(131, 221, 255, 0.3);
    border-radius: 8px;
    color: #f8fbff;
    min-height: 48px;
    outline: none;
    padding: 12px 14px;
}

.attendia-form input:focus,
.attendia-form select:focus {
    border-color: var(--ro-gold);
    box-shadow: 0 0 0 3px rgba(242, 201, 109, 0.14), 0 0 26px rgba(131, 221, 255, 0.16);
}

.attendia-form .ro-button {
    width: 100%;
}

.job-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.job-card {
    min-height: 230px;
    overflow: hidden;
    padding: 19px;
    position: relative;
    transition: border-color 160ms ease, transform 160ms ease;
}

.job-card::before {
    background: linear-gradient(135deg, rgba(131, 221, 255, 0.12), transparent 52%, rgba(232, 84, 126, 0.1));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.job-card > * {
    position: relative;
}

.job-card:hover {
    border-color: rgba(242, 201, 109, 0.62);
    transform: translateY(-3px);
}

.job-card span {
    color: var(--ro-sky);
}

.job-card h3 {
    color: #fff8d9;
    font-size: 1.35rem;
    line-height: 1.05;
    margin: 13px 0 5px;
    text-transform: uppercase;
}

.job-card p {
    margin-top: 16px;
}

.attendia-cta {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(255, 240, 173, 0.18), rgba(255, 255, 255, 0.04)),
        #0b1930;
    color: #f8fbff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.attendia-cta div {
    max-width: 860px;
}

.attendia-cta p {
    color: rgba(230, 244, 255, 0.76);
    margin-top: 12px;
}

@keyframes ro-pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(131, 221, 255, 0), inset 0 0 0 rgba(131, 221, 255, 0);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 34px rgba(131, 221, 255, 0.28), inset 0 0 28px rgba(131, 221, 255, 0.11);
        transform: scale(1.04);
    }
}

@media (max-width: 1180px) {
    .attendia-hero,
    .attendia-register-zone,
    .section-copy {
        grid-template-columns: 1fr;
    }

    .rune-panel {
        min-height: 480px;
    }

    .ro-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .attendia-hero,
    .attendia-section,
    .attendia-register-zone,
    .attendia-cta {
        padding-inline: 18px;
    }

    .attendia-hero {
        min-height: auto;
    }

    .attendia-hero h1 {
        font-size: clamp(2.2rem, 13vw, 3.8rem);
    }

    .attendia-cta {
        align-items: start;
        flex-direction: column;
    }

    .rune-rates,
    .ro-stat-grid,
    .ro-flow {
        grid-template-columns: 1fr;
    }

    .rune-panel {
        min-height: 430px;
    }
}

/* =========================================================
   REGISTRATION SUCCESS MODAL
   ========================================================= */

.ro-modal-open {
    overflow: hidden;
}

.ro-success-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: grid;
    place-items: center;

    padding: 24px;

    visibility: hidden;
    opacity: 0;

    background: rgba(3, 7, 18, 0.84);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.ro-success-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.ro-success-modal-card {
    position: relative;

    width: min(100%, 520px);
    max-height: calc(100vh - 40px);

    padding: 44px 34px 34px;
    overflow-x: hidden;
    overflow-y: auto;

    text-align: center;

    border: 1px solid rgba(255, 214, 102, 0.38);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at top center,
            rgba(255, 201, 71, 0.2),
            transparent 46%
        ),
        linear-gradient(
            145deg,
            #182237,
            #0d1422
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.62),
        0 0 45px rgba(255, 193, 7, 0.08);

    transform: translateY(20px) scale(0.96);

    transition:
        transform 0.25s ease;
}

.ro-success-modal.is-open .ro-success-modal-card {
    transform: translateY(0) scale(1);
}

.ro-success-modal-card h2 {
    margin: 8px 0 14px;

    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.2;
}

.ro-success-modal-card p {
    max-width: 440px;
    margin: 0 auto 14px;

    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
}

.ro-success-modal-card .ro-success-message {
    color: #f8d477;
    font-weight: 700;
}

.ro-success-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    padding: 0;

    color: rgba(255, 255, 255, 0.68);
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    border: 0;
    border-radius: 50%;
    background: transparent;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.ro-success-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(5deg);
}

.ro-success-modal-close:focus-visible {
    color: #ffffff;
    outline: 2px solid #f8d477;
    outline-offset: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.ro-success-icon {
    display: grid;
    place-items: center;

    width: 84px;
    height: 84px;
    margin: 0 auto 22px;

    color: #111827;
    font-size: 43px;
    font-weight: 900;
    line-height: 1;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #ffe899,
            #f2b632
        );

    box-shadow:
        0 0 0 10px rgba(255, 209, 92, 0.08),
        0 14px 38px rgba(242, 182, 50, 0.3);
}

.ro-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;

    margin-top: 26px;
}

.ro-success-actions .ro-button {
    min-width: 165px;
}

@media (max-width: 560px) {
    .ro-success-modal {
        padding: 16px;
    }

    .ro-success-modal-card {
        max-height: calc(100vh - 32px);
        padding: 40px 22px 26px;
        border-radius: 18px;
    }

    .ro-success-modal-card h2 {
        font-size: 1.75rem;
    }

    .ro-success-icon {
        width: 72px;
        height: 72px;
        font-size: 36px;
    }

    .ro-success-actions {
        flex-direction: column;
    }

    .ro-success-actions .ro-button {
        width: 100%;
        min-width: 0;
    }
}