:root {
    --tor-font-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
    --tor-font-body: "Tajawal", "Cairo", "Segoe UI", Tahoma, sans-serif;
    --tor-ink: #10231f;
    --tor-muted: #5f716c;
    --tor-soft: #edf5f1;
    --tor-paper: rgba(255, 255, 255, .82);
    --tor-paper-strong: rgba(255, 255, 255, .94);
    --tor-border: rgba(34, 84, 72, .14);
    --tor-emerald: #0f8b6f;
    --tor-mint: #16b89a;
    --tor-teal: #0ea5a4;
    --tor-gold: #d9a441;
    --tor-coral: #e35d5b;
    --tor-indigo: #4056b5;
    --tor-shadow: 0 24px 70px rgba(20, 55, 48, .15);
    --tor-shadow-soft: 0 14px 34px rgba(20, 55, 48, .10);
    --tor-radius: 8px;
    --tor-ease: cubic-bezier(.2, .8, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    background: #f4f8f5;
    scroll-behavior: smooth;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--tor-ink);
    background:
        linear-gradient(145deg, rgba(244, 248, 245, .98), rgba(234, 244, 239, .92) 46%, rgba(249, 246, 238, .96));
    font-family: var(--tor-font-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -4;
    background:
        linear-gradient(118deg, rgba(15, 139, 111, .16), transparent 30%, rgba(217, 164, 65, .14) 52%, transparent 70%, rgba(64, 86, 181, .12)),
        linear-gradient(28deg, transparent, rgba(227, 93, 91, .09) 46%, transparent 68%);
    background-size: 230% 230%, 190% 190%;
    animation: torAmbientShift 18s var(--tor-ease) infinite alternate;
}

body::after {
    z-index: -3;
    opacity: .36;
    background-image:
        linear-gradient(rgba(15, 139, 111, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 86, 181, .10) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .78), transparent 86%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .78), transparent 86%);
    animation: torGridDrift 28s linear infinite;
}

.tor-animated-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.tor-bg-wash {
    position: absolute;
    top: 8%;
    left: -12%;
    width: 82%;
    height: 34%;
    background: linear-gradient(104deg, transparent, rgba(255, 255, 255, .5), rgba(15, 139, 111, .17), rgba(217, 164, 65, .11), transparent);
    filter: blur(30px);
    transform: rotate(-9deg);
    animation: torWashDrift 16s var(--tor-ease) infinite alternate;
}

.tor-bg-line {
    position: absolute;
    width: 54%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 139, 111, .28), rgba(217, 164, 65, .38), transparent);
    transform: rotate(-22deg);
    opacity: .7;
    animation: torLightRail 13s linear infinite;
}

.tor-bg-line-a {
    top: 18%;
    right: -16%;
}

.tor-bg-line-b {
    top: 56%;
    left: -18%;
    animation-delay: -4s;
}

.tor-bg-line-c {
    bottom: 13%;
    right: 2%;
    width: 38%;
    animation-delay: -8s;
}

.tor-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    opacity: .42;
    pointer-events: none;
    animation: torOrbDrift 22s var(--tor-ease) infinite alternate;
}

.tor-bg-orb-1 {
    width: min(52vw, 420px);
    height: min(52vw, 420px);
    top: -8%;
    inset-inline-end: -6%;
    background: radial-gradient(circle at 30% 30%, rgba(15, 139, 111, .55), rgba(217, 164, 65, .22), transparent 68%);
    animation-delay: -3s;
}

.tor-bg-orb-2 {
    width: min(44vw, 360px);
    height: min(44vw, 360px);
    bottom: 5%;
    inset-inline-start: -10%;
    background: radial-gradient(circle at 70% 70%, rgba(64, 86, 181, .38), rgba(15, 139, 111, .20), transparent 70%);
    animation-delay: -9s;
}

.tor-page-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 22px !important;
    padding-bottom: 42px !important;
    padding-inline: 12px !important;
}

/* شريط علوي مضغوط — بديل الهيرو الكامل */
.tor-top-bar {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--tor-radius);
    padding: 16px 22px;
    margin-bottom: 18px;
    background:
        linear-gradient(132deg, rgba(9, 42, 37, .97), rgba(13, 86, 77, .95) 48%, rgba(79, 63, 31, .94)),
        linear-gradient(90deg, rgba(15, 139, 111, .28), rgba(217, 164, 65, .18));
    box-shadow: 0 18px 48px rgba(8, 35, 31, .22);
}

.tor-top-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, transparent 0%, rgba(255, 255, 255, .14) 22%, transparent 45%);
    opacity: .55;
    animation: torHeroSheen 11s var(--tor-ease) infinite;
    pointer-events: none;
}

.tor-top-bar .tor-brand-name {
    color: #fff;
}

.tor-top-bar .tor-brand-sub {
    color: rgba(255, 255, 255, .74);
}

.tor-register-layout {
    margin-top: 4px;
}

/* في LTR: عكس ترتيب الأعمدة ليبقى عمود الدعوة على يمين النموذج */
html[dir="ltr"] .tor-register-layout {
    flex-direction: row-reverse;
}

.tor-invite-sidebar {
    position: relative;
}

@media (min-width: 992px) {
    .tor-invite-sidebar {
        position: sticky;
        top: 18px;
        align-self: flex-start;
        z-index: 5;
    }
}

.tor-invite-sidebar-inner {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--tor-radius) + 2px);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: 22px 20px 24px;
    background:
        linear-gradient(155deg, rgba(9, 52, 44, .96) 0%, rgba(16, 92, 78, .94) 42%, rgba(62, 52, 28, .92) 100%),
        linear-gradient(90deg, rgba(15, 139, 111, .22), rgba(217, 164, 65, .14));
    box-shadow:
        0 26px 70px rgba(6, 28, 24, .35),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
    animation: torSidebarGlow 7s var(--tor-ease) infinite alternate;
}

.tor-invite-sidebar-inner::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 210deg, transparent 20%, rgba(255, 255, 255, .07), transparent 55%);
    animation: torSidebarRotate 28s linear infinite;
    pointer-events: none;
}

.tor-invite-sidebar-inner > * {
    position: relative;
    z-index: 1;
}

.tor-invite-art-elevated {
    margin-bottom: 18px;
}

.tor-invite-moon {
    display: inline-block;
    vertical-align: -0.12em;
    margin-inline-start: 4px;
    color: #f6cf65 !important;
    animation: torMoonPulse 3.2s var(--tor-ease) infinite;
}

.tor-lead {
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--tor-radius);
    border: 1px solid rgba(34, 84, 72, .12);
    background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(237, 247, 243, .65));
    color: var(--tor-muted);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.75;
    box-shadow: var(--tor-shadow-soft);
    animation: torLeadFade .55s var(--tor-ease) both;
}

.form-hero {
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--tor-radius);
    background:
        linear-gradient(132deg, rgba(9, 42, 37, .97), rgba(13, 86, 77, .95) 48%, rgba(79, 63, 31, .94)),
        linear-gradient(90deg, rgba(15, 139, 111, .28), rgba(217, 164, 65, .18));
    box-shadow: 0 34px 90px rgba(8, 35, 31, .28);
}

.form-hero::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background:
        linear-gradient(112deg, transparent 0%, rgba(255, 255, 255, .18) 18%, transparent 36%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 18px);
    filter: none;
    opacity: .72;
    transform: translateX(-45%);
    animation: torHeroSheen 9s var(--tor-ease) infinite;
}

.form-hero::after {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 32%),
        linear-gradient(0deg, rgba(255, 255, 255, .07), transparent 42%);
    filter: none;
    opacity: .7;
}

.form-hero-content {
    position: relative;
    z-index: 2;
}

.tor-brand-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.form-hero-content > .d-flex {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 768px) {
    .form-hero-content > .d-flex {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.tor-site-logo {
    height: 58px;
    max-width: 210px;
    padding: 7px 10px;
    border-radius: var(--tor-radius);
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

.tor-site-logo-fallback {
    width: 56px;
    height: 56px;
    border-radius: var(--tor-radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 30px rgba(0, 0, 0, .16);
}

.tor-brand-name,
.tor-invite-copy h2,
.step-card-head h6,
.step-label .s-name {
    font-family: var(--tor-font-display);
    letter-spacing: 0;
}

.tor-brand-name {
    font-size: 1.08rem;
    font-weight: 900;
}

.tor-brand-sub {
    color: rgba(255, 255, 255, .74);
    font-size: .8rem;
    letter-spacing: 0;
}

.tor-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: var(--tor-radius) !important;
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    padding: 10px 18px !important;
    font-family: var(--tor-font-body);
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    backdrop-filter: blur(14px);
    transition: transform .25s var(--tor-ease), background .25s var(--tor-ease), box-shadow .25s var(--tor-ease);
}

.tor-home-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 28px rgba(0, 0, 0, .16);
}

.tor-invite-panel {
    border-radius: var(--tor-radius);
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .065));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 50px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

.tor-invite-panel .row,
#wizardForm .row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 16px;
    margin-inline: -8px;
}

.tor-invite-panel .row > *,
#wizardForm .row > * {
    width: 100%;
    max-width: 100%;
    padding-inline: 8px;
}

.tor-invite-panel .col-lg-5,
.tor-invite-panel .col-lg-7,
#wizardForm .col-12,
#wizardForm .col-md-6,
#wizardForm .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    #wizardForm .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #wizardForm .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 992px) {
    .tor-invite-panel .col-lg-5 {
        flex: 0 0 41.6667%;
        max-width: 41.6667%;
    }

    .tor-invite-panel .col-lg-7 {
        flex: 0 0 58.3333%;
        max-width: 58.3333%;
    }
}

.form-hero-badge {
    border-radius: var(--tor-radius);
    border-color: rgba(255, 255, 255, .20);
    background: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .9);
    font-family: var(--tor-font-body);
    letter-spacing: 0;
}

.form-hero-badge i {
    color: #f6cf65;
}

.tor-invite-copy h2 {
    max-width: 690px;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.75;
}

.tor-invite-copy p {
    color: rgba(255, 255, 255, .86);
    font-size: .94rem;
    font-weight: 500;
}

.tor-invite-copy strong {
    color: #fff3c2;
}

.form-hero-sub {
    color: rgba(255, 255, 255, .74);
    font-size: .92rem;
    line-height: 1.85;
}

.tor-invite-art-wrap {
    position: relative;
    border-radius: var(--tor-radius);
    border: 1px solid rgba(255, 255, 255, .20);
    background: linear-gradient(140deg, #f4fbf6, #eef7f3);
    box-shadow: 0 24px 46px rgba(4, 34, 29, .22);
    animation: torArtFloat 7s var(--tor-ease) infinite alternate;
}

.tor-invite-art-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, transparent 18%, rgba(255, 255, 255, .55) 42%, transparent 62%);
    transform: translateX(-115%);
    animation: torImageSheen 6s var(--tor-ease) infinite;
}

.tor-invite-art-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    transform: scale(1.015);
    filter: saturate(1.06) contrast(1.03);
}

.tor-invite-flyer-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: inherit;
}

.wizard-stepper {
    position: sticky;
    top: 12px;
    z-index: 20;
    border: 1px solid var(--tor-border);
    border-radius: var(--tor-radius);
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--tor-shadow-soft);
    backdrop-filter: blur(18px);
}

.wizard-stepper::before {
    height: 100%;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(15, 139, 111, .14), rgba(217, 164, 65, .12), rgba(64, 86, 181, .12));
    opacity: .5;
}

.wizard-step {
    min-width: 0;
    padding: 4px;
}

.wizard-step:not(:last-child)::after {
    height: 2px;
    background: linear-gradient(90deg, rgba(15, 139, 111, .18), rgba(64, 86, 181, .12));
}

.wizard-step.done::after,
.wizard-step.active::after {
    background: linear-gradient(90deg, var(--tor-emerald), var(--tor-gold));
}

.step-dot {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(34, 84, 72, .14);
    border-radius: var(--tor-radius);
    background: rgba(255, 255, 255, .94);
    color: #7a8c86;
    box-shadow: 0 10px 24px rgba(34, 84, 72, .10);
}

.wizard-step.active .step-dot {
    background: linear-gradient(135deg, var(--tor-emerald), var(--tor-teal));
    box-shadow: 0 14px 32px rgba(15, 139, 111, .32);
}

.wizard-step.done .step-dot {
    background: linear-gradient(135deg, #15a17f, var(--tor-gold));
    box-shadow: 0 12px 28px rgba(217, 164, 65, .28);
}

.step-label .s-num {
    color: #7e908a;
    font-family: var(--tor-font-body);
}

.step-label {
    min-width: 0;
}

.step-label .s-name {
    color: var(--tor-ink);
    font-weight: 900;
}

.wizard-step.active .step-label .s-name {
    color: var(--tor-emerald);
}

.wizard-step.done .step-label .s-name {
    color: #8c6a1f;
}

.wizard-panel {
    animation: torPanelEnter .42s var(--tor-ease) both;
}

.step-card {
    border: 1px solid var(--tor-border);
    border-radius: var(--tor-radius);
    background: var(--tor-paper-strong);
    box-shadow: var(--tor-shadow-soft);
    backdrop-filter: blur(14px);
    animation: torCardRise .55s var(--tor-ease) both;
    transition: transform .28s var(--tor-ease), box-shadow .28s var(--tor-ease), border-color .28s var(--tor-ease);
}

.step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 139, 111, .20);
    box-shadow: var(--tor-shadow);
}

.step-card-head {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(34, 84, 72, .10);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(241, 248, 245, .92)),
        linear-gradient(90deg, rgba(15, 139, 111, .06), transparent);
}

.step-card-head::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 112px;
    height: 2px;
    background: linear-gradient(90deg, var(--tor-emerald), var(--tor-gold), transparent);
}

.step-head-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--tor-radius);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .14);
}

.step-card-head h6 {
    color: var(--tor-ink);
    font-size: 1rem;
    font-weight: 900;
}

.step-card-head p {
    color: var(--tor-muted);
    font-size: .82rem;
    line-height: 1.65;
}

.form-label {
    color: #253b35;
    font-family: var(--tor-font-body);
    font-size: .88rem;
    font-weight: 800;
}

.form-control,
.form-select {
    min-height: 44px;
    border: 1px solid rgba(34, 84, 72, .16);
    border-radius: var(--tor-radius);
    background: rgba(255, 255, 255, .90);
    color: var(--tor-ink);
    font-family: var(--tor-font-body);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
    transition: border-color .22s var(--tor-ease), box-shadow .22s var(--tor-ease), transform .22s var(--tor-ease), background .22s var(--tor-ease);
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(15, 139, 111, .32);
    background: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tor-emerald);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 139, 111, .13), 0 10px 22px rgba(15, 139, 111, .09);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #9badA7;
}

.form-control-info {
    min-height: 44px;
    border: 1px solid rgba(15, 139, 111, .18);
    border-radius: var(--tor-radius);
    background: linear-gradient(135deg, rgba(232, 248, 241, .96), rgba(255, 249, 230, .72));
    color: #145c4d;
    font-weight: 700;
}

.form-control-info code {
    color: #8a5d00;
    font-weight: 800;
}

.repeater-row {
    animation: torPanelEnter .25s var(--tor-ease) both;
}

.btn-repeater-add,
.btn-remove-row,
.btn-wizard-back,
.btn-wizard-next,
.btn-wizard-submit {
    border-radius: var(--tor-radius);
    font-family: var(--tor-font-body);
}

.btn-repeater-add {
    min-height: 42px;
    border: 1px dashed rgba(15, 139, 111, .34);
    background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(237, 247, 243, .84));
    color: #3a5a51;
    font-weight: 800;
}

.btn-repeater-add:hover {
    border-color: var(--tor-emerald);
    background: linear-gradient(135deg, rgba(234, 248, 242, .98), rgba(255, 248, 224, .82));
    color: var(--tor-emerald);
    transform: translateY(-1px);
}

.btn-remove-row {
    border-color: rgba(227, 93, 91, .28);
    background: rgba(255, 246, 246, .92);
    color: var(--tor-coral);
}

.wizard-nav {
    align-items: center;
    gap: 14px;
    padding: 18px 0 30px;
}

.wizard-progress-text {
    color: #748781;
    font-family: var(--tor-font-body);
    font-weight: 800;
}

.wizard-progress-text strong {
    color: var(--tor-ink);
}

.btn-wizard-back,
.btn-wizard-next,
.btn-wizard-submit {
    position: relative;
    min-height: 46px;
    overflow: hidden;
    font-weight: 900;
}

.btn-wizard-back {
    border: 1px solid rgba(34, 84, 72, .16);
    background: rgba(255, 255, 255, .88);
    color: #3b504a;
}

.btn-wizard-back:hover {
    border-color: rgba(15, 139, 111, .30);
    color: var(--tor-emerald);
    transform: translateY(-1px);
}

.btn-wizard-next {
    background: linear-gradient(135deg, var(--tor-indigo), var(--tor-emerald));
    box-shadow: 0 16px 34px rgba(64, 86, 181, .20), 0 12px 26px rgba(15, 139, 111, .18);
}

.btn-wizard-submit {
    background: linear-gradient(135deg, var(--tor-emerald), var(--tor-mint), var(--tor-gold));
    box-shadow: 0 16px 34px rgba(15, 139, 111, .26);
}

.btn-wizard-next::after,
.btn-wizard-submit::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .46), transparent);
    transform: translateX(-160%) skewX(-16deg);
}

.btn-wizard-next:hover,
.btn-wizard-submit:hover {
    transform: translateY(-2px);
}

.btn-wizard-next:hover::after,
.btn-wizard-submit:hover::after {
    animation: torButtonSheen .85s var(--tor-ease);
}

.alert {
    border-radius: var(--tor-radius) !important;
    box-shadow: var(--tor-shadow-soft);
    backdrop-filter: blur(12px);
}

@keyframes torAmbientShift {
    from { background-position: 0% 50%, 100% 50%; }
    to { background-position: 100% 50%, 0% 50%; }
}

@keyframes torGridDrift {
    from { background-position: 0 0; }
    to { background-position: 88px 44px; }
}

@keyframes torWashDrift {
    from { transform: translate3d(-2%, 0, 0) rotate(-9deg); opacity: .68; }
    to { transform: translate3d(28%, 18%, 0) rotate(-4deg); opacity: .92; }
}

@keyframes torLightRail {
    from { transform: translateX(-12%) rotate(-22deg); opacity: .15; }
    35% { opacity: .75; }
    to { transform: translateX(24%) rotate(-22deg); opacity: .18; }
}

@keyframes torHeroSheen {
    from { transform: translateX(-55%); }
    52% { transform: translateX(12%); }
    to { transform: translateX(45%); }
}

@keyframes torImageSheen {
    from { transform: translateX(-115%); opacity: 0; }
    36% { opacity: .65; }
    to { transform: translateX(115%); opacity: 0; }
}

@keyframes torArtFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

@keyframes torPanelEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes torCardRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes torButtonSheen {
    from { transform: translateX(-160%) skewX(-16deg); }
    to { transform: translateX(220%) skewX(-16deg); }
}

@keyframes torOrbDrift {
    from { transform: translate3d(-3%, 2%, 0) scale(1); opacity: .34; }
    to { transform: translate3d(4%, -3%, 0) scale(1.06); opacity: .48; }
}

@keyframes torSidebarGlow {
    from { box-shadow: 0 22px 60px rgba(6, 28, 24, .30), inset 0 1px 0 rgba(255, 255, 255, .10); }
    to { box-shadow: 0 30px 78px rgba(6, 28, 24, .38), inset 0 1px 0 rgba(255, 255, 255, .16); }
}

@keyframes torSidebarRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes torMoonPulse {
    0%, 100% { transform: scale(1); opacity: .95; filter: drop-shadow(0 0 0 rgba(246, 207, 101, 0)); }
    50% { transform: scale(1.12); opacity: 1; filter: drop-shadow(0 0 10px rgba(246, 207, 101, .45)); }
}

@keyframes torLeadFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
    .tor-page-shell {
        padding-top: 14px !important;
    }

    .tor-top-bar {
        padding: 14px 16px;
        margin-bottom: 14px;
    }

    .form-hero {
        padding: 22px 20px 20px;
    }

    .tor-invite-sidebar-inner {
        padding: 18px 16px 20px;
    }

    .tor-invite-copy h2 {
        font-size: 1.08rem;
    }

    .wizard-stepper {
        position: relative;
        top: auto;
        padding: 14px 16px;
    }
}

@media (max-width: 767.98px) {
    .form-hero {
        padding: 16px;
        margin-bottom: 16px;
    }

    .tor-site-logo {
        height: 46px;
        max-width: 160px;
    }

    .tor-site-logo-fallback {
        width: 46px;
        height: 46px;
    }

    .tor-brand-row {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .tor-brand-meta {
        align-items: center;
    }

    .tor-brand-name {
        font-size: .98rem;
    }

    .tor-brand-sub {
        font-size: .73rem;
    }

    .tor-home-link {
        width: 100%;
    }

    .tor-invite-panel {
        padding: 14px;
    }

    .tor-invite-copy {
        text-align: center;
    }

    .tor-invite-panel .row {
        margin-inline: 0;
    }

    .tor-invite-panel .row > * {
        padding-inline: 0;
    }

    .tor-invite-art-wrap {
        max-width: 315px;
        margin-inline: auto;
    }

    .tor-invite-art-wrap img {
        transform: none;
    }

    .form-hero-badge {
        margin-inline: auto;
    }

    .tor-invite-copy h2,
    .tor-invite-copy p {
        max-width: 315px;
        margin-inline: auto;
        overflow-wrap: break-word;
    }

    .tor-invite-copy h2 {
        font-size: 1rem;
        line-height: 1.7;
        text-wrap: balance;
    }

    .tor-invite-copy p,
    .form-hero-sub {
        font-size: .86rem;
    }

    .wizard-stepper {
        padding: 10px;
        gap: 4px;
    }

    .wizard-stepper .step-label {
        display: none !important;
    }

    .wizard-step:not(:last-child)::after {
        width: calc(100% - 46px);
        margin-inline-start: 46px;
    }

    html[dir="rtl"] .wizard-step:not(:last-child)::after {
        margin-inline-start: 0;
        margin-inline-end: 46px;
    }

    .step-dot {
        width: 40px;
        height: 40px;
    }

    .step-card-head,
    .step-card-body {
        padding: 16px;
    }

    .wizard-nav {
        flex-wrap: wrap;
        padding-bottom: 24px;
    }

    .wizard-progress-text {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .btn-wizard-back,
    .btn-wizard-next,
    .btn-wizard-submit {
        flex: 1 1 145px;
        justify-content: center;
        padding-inline: 14px;
    }
}

@media (max-width: 480px) {
    .tor-page-shell {
        padding-inline: 10px !important;
    }

    .wizard-nav > button {
        width: 100%;
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
