@keyframes drift {

    0%,
    to {
        transform: translate(0, 0) rotate(0deg)
    }

    33% {
        transform: translate(2%, 2%) rotate(1deg)
    }

    66% {
        transform: translate(-1%, 1%) rotate(-1deg)
    }
}

@keyframes float {

    0%,
    to {
        transform: translateY(0) scale(1)
    }

    50% {
        transform: translateY(-20px) scale(1.05)
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes shake {

    0%,
    to {
        transform: translateX(0)
    }

    25% {
        transform: translateX(-5px)
    }

    75% {
        transform: translateX(5px)
    }
}

@keyframes checkPop {
    0% {
        transform: rotate(45deg) scale(0) translateY(-1px)
    }

    50% {
        transform: rotate(45deg) scale(1.2) translateY(-1px)
    }

    to {
        transform: rotate(45deg) scale(1) translateY(-1px)
    }
}

@keyframes pulse {

    0%,
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: .6
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: .9
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

body,
html {
    min-height: 100%
}

body {
    overflow-y: auto
}

@media (min-width:1024px) {
    .app {
        grid-template-columns: 45% 1fr
    }
}

@media (min-width:1024px) {
    .hero {
        position: sticky;
        top: 0;
        height: 100vh;
        background: linear-gradient(160deg, rgba(255, 255, 255, .8)0, rgba(241, 245, 249, .6) 100%);
        backdrop-filter: blur(20px);
        border-right: 1px solid var(--border)
    }
}

@media (min-width:1024px) {
    .hero-features {
        display: flex;
        flex-direction: column
    }
}

@media (min-width:1024px) {
    .content {
        padding: 3rem;
        max-width: 520px
    }
}

.card-header.tertiary {
    background: linear-gradient(135deg, #0f766e, #115e59);
    color: #fff;
    border-bottom: none
}

@media (max-width:480px) {
    .name-grid {
        grid-template-columns: 1fr
    }
}

.token-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .03em
}

.scanner-panel {
    margin: 1.25rem 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(15, 118, 110, .08), rgba(255, 255, 255, .95));
    border: 1px solid rgba(15, 118, 110, .14);
    border-radius: var(--radius-xl)
}

.scanner-header {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-bottom: .9rem
}

.feature-text strong,
.scanner-header strong {
    font-size: .95rem;
    color: var(--text-primary)
}

.scanner-header span {
    color: var(--text-secondary);
    font-size: .85rem
}

.scanner-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: .9rem
}

.btn-accent,
.btn-ghost {
    color: #fff
}

.btn-ghost {
    background: linear-gradient(135deg, #0f172a, #1f2937);
    box-shadow: 0 4px 14px 0 rgba(17, 24, 39, .25)
}

.btn-accent {
    background: linear-gradient(135deg, #0f766e, #115e59);
    box-shadow: 0 4px 14px 0 rgba(15, 118, 110, .28)
}

.btn-file {
    width: 100%
}

.visually-hidden-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.scanner-stage {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #08131a;
    margin-bottom: .9rem
}

.scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.scanner-reader {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1
}

.scanner-reader canvas,
.scanner-reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: inherit
}

.scanner-reader>div,
html {
    height: 100%
}

.scanner-overlay {
    position: absolute;
    inset: 0;
    border: 1.5rem solid rgba(8, 19, 26, .35);
    pointer-events: none
}

.scanner-overlay::after {
    content: "";
    position: absolute;
    inset: 18% 20%;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 20px;
    box-shadow: 0 0 0 999px rgba(8, 19, 26, .2)
}

.scanner-result {
    font-size: .86rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: var(--radius-lg);
    padding: .85rem 1rem
}

.scanner-result.is-success {
    color: #065f46;
    border-color: rgba(16, 185, 129, .25);
    background: rgba(236, 253, 245, .95)
}

.scanner-result.is-error {
    color: #b91c1c;
    border-color: rgba(248, 113, 113, .25);
    background: rgba(254, 242, 242, .96)
}

@media (max-width:640px) {
    .hero {
        padding: 2rem 1.5rem;
        min-height: auto
    }

    .logo-container {
        width: 100px;
        height: 100px
    }

    .card {
        border-radius: var(--radius-lg)
    }

    .card-header {
        padding: 1rem 1.25rem
    }

    .card-body {
        padding: 1.25rem
    }

    .scanner-actions {
        grid-template-columns: 1fr
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    ::after,
    ::before {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}

@media (max-width:1023px) {
    .hero {
        position: relative;
        min-height: auto;
        height: auto;
        padding: 1rem 1rem 1.5rem;
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid var(--border)
    }
}

@media (max-width:1023px) {
    .hero-content {
        margin-top: 0
    }

    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: .5rem
    }

    .hero-content p {
        font-size: .9375rem;
        line-height: 1.5
    }
}

@media (max-width:1023px) {
    .logo-container {
        width: 50%;
        max-width: 150px;
        min-height: 100px;
        margin-bottom: .75rem
    }
}

@media (max-width:1023px) {
    .logo:hover {
        transform: none;
        filter: drop-shadow(0 4px 20px rgba(99, 102, 241, .2))
    }
}

@media (max-width:1023px) {
    .logo-glow {
        width: 200%;
        height: 200%
    }
}

@media (max-width:1023px) {
    .hero-features {
        display: none
    }
}

.feature-text strong {
    display: block;
    font-weight: 600
}

@media (max-width:1023px) {
    .app {
        grid-template-columns: 1fr
    }
}

@media (max-width:1023px) {
    .content {
        padding: 1.5rem 1rem 3rem;
        max-width: 100%
    }
}

@media (max-width:640px) {
    .content {
        padding: 1rem
    }
}

@media (max-width:1500px) {
    .logo {
        width: 120%;
        height: 120%
    }
}

@media (max-width:1160px) {
    .logo {
        width: 130%;
        height: 130%
    }
}

@media (max-width:1023px) {
    .logo {
        width: 180%;
        height: 180%
    }
}

@media (max-width:595px) {
    .logo {
        width: 140%;
        height: 140%
    }
}

@media (max-width:1023px) {
    .content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        min-height: auto;
        padding-top: .5rem
    }

    .divider {
        margin: .5rem 0
    }

    .card {
        width: 100%;
        flex-shrink: 0
    }

    .card,
    .card.collapsed {
        margin-bottom: 0
    }

    .card:not(.collapsed) {
        margin-bottom: .75rem
    }

    .card-header {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        padding-right: 3rem
    }

    .card-header::after {
        content: "›";
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
        font-size: 1.5rem;
        font-weight: 300;
        color: rgba(255, 255, 255, .8);
        transition: transform .3s ease
    }

    .card.collapsed .card-header::after {
        transform: translateY(-50%) rotate(0deg)
    }

    .card-body {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height .55s cubic-bezier(0, 0, .2, 1), opacity .4s ease .05s, padding .45s ease;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }

    .card:not(.collapsed) .card-body {
        max-height: 900px;
        opacity: 1;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem
    }

    #registerClassCard:not(.collapsed) .card-body {
        max-height: 2000px
    }

    .card-header.primary .gast-label,
    .card-header.secondary .login-label {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        margin-left: auto;
        font-size: .75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .05em;
        background: rgba(255, 255, 255, .2);
        padding: .25rem .75rem;
        border-radius: var(--radius-full);
        backdrop-filter: blur(10px)
    }
}

@media (min-width:1024px) {
    .card {
        max-height: 1200px;
        transform-origin: top center
    }

    .divider {
        max-height: 48px;
        transition: max-height .35s ease, opacity .28s ease, margin .28s ease
    }

    .card-header {
        cursor: default
    }

    .card-header .gast-label,
    .card-header .login-label,
    .card-header::after {
        display: none
    }

    .card.desktop-hidden {
        max-height: 0;
        opacity: 0;
        transform: translateY(-14px) scale(.985);
        pointer-events: none;
        overflow: hidden;
        margin-bottom: 0;
        border-width: 0
    }

    .divider.desktop-hidden {
        max-height: 0;
        opacity: 0;
        margin: 0;
        overflow: hidden
    }

    #qrAuthCard>.card-header {
        cursor: pointer;
        position: relative;
        padding-right: 3.5rem
    }

    #qrAuthCard>.card-header::after {
        display: block;
        content: "›";
        position: absolute;
        right: 1.35rem;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
        font-size: 1.55rem;
        font-weight: 300;
        color: rgba(255, 255, 255, .88);
        transition: transform .3s ease
    }

    #qrAuthCard.desktop-collapsed>.card-header::after {
        transform: translateY(-50%) rotate(0deg)
    }

    #qrAuthCard.desktop-collapsed .card-body {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0
    }

    #qrAuthCard:not(.desktop-collapsed) .card-body {
        max-height: 900px;
        opacity: 1;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem
    }

    /* Register-Card: identisches Verhalten, grüner Pfeil */
    #registerClassCard>.card-header {
        cursor: pointer;
        position: relative;
        padding-right: 3.5rem
    }

    #registerClassCard>.card-header::after {
        display: block;
        content: "›";
        position: absolute;
        right: 1.35rem;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
        font-size: 1.55rem;
        font-weight: 300;
        color: #10b981;
        transition: transform .3s ease
    }

    #registerClassCard.desktop-collapsed>.card-header::after {
        transform: translateY(-50%) rotate(0deg)
    }

    #registerClassCard.desktop-collapsed .card-body {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0
    }

    #registerClassCard:not(.desktop-collapsed) .card-body {
        max-height: 1400px;
        opacity: 1;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem
    }
}

@media (max-width:1023px) {
    .app {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        min-height: 100vh;
        align-items: start
    }

    .content,
    .hero {
        justify-content: flex-start
    }

    .hero {
        position: relative;
        min-height: auto;
        height: auto;
        padding: 1.25rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border)
    }

    .content {
        padding: 1rem 1rem 2rem;
        max-width: 100%;
        display: flex;
        flex-direction: column
    }
}

@media (min-width:1024px) {
    html {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden
    }

    .app,
    body {
        min-height: 100vh
    }

    body {
        min-height: 100%;
        overflow-y: visible
    }

    .app {
        grid-template-columns: minmax(380px, 45%) minmax(0, 1fr);
        align-items: stretch;
        overflow: visible
    }

    .content,
    .hero {
        align-self: stretch
    }

    .hero {
        height: 100vh;
        min-height: 100vh
    }

    .content {
        box-sizing: border-box;
        min-height: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
        overflow-anchor: none;
        justify-content: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem
    }

    .content>:last-child {
        margin-bottom: 0
    }

    .card:hover {
        box-shadow: var(--shadow-xl)
    }

    .btn-accent:hover,
    .btn-ghost:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .card:hover {
        transform: none
    }
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-lighter: #e0e7ff;
    --primary-dark: #4f46e5;
    --surface: #ffffff;
    --surface-elevated: #fafaff;
    --surface-hover: #f5f5ff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: rgba(99, 102, 241, 0.08);
    --border-strong: rgba(99, 102, 241, 0.15);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.02);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.02), 0 2px 4px -2px rgb(0 0 0 / 0.02);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.03), 0 4px 6px -4px rgb(0 0 0 / 0.03);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.04), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing System (T-Shirt Sizes) */
    --sp-05: 0.125rem;
    /* 2px */
    --sp-1: 0.25rem;
    /* 4px */
    --sp-2: 0.5rem;
    /* 8px */
    --sp-3: 0.75rem;
    /* 12px */
    --sp-4: 1rem;
    /* 16px */
    --sp-6: 1.5rem;
    /* 24px */
    --sp-8: 2rem;
    /* 32px */
    --sp-12: 3rem;
    /* 48px */
    --sp-24: 6rem;
    /* 144px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0, #f1f5f9 50%, #fafaff 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

.bg-pattern,
.orb {
    position: fixed;
    pointer-events: none;
    z-index: 0
}

.bg-pattern {
    inset: 0;
    overflow: hidden
}

.bg-pattern::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, .08)0, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 92, 246, .06)0, transparent 50%), radial-gradient(circle at 40% 40%, rgba(99, 102, 241, .04)0, transparent 40%);
    animation: drift 20s ease-in-out infinite
}

.orb {
    border-radius: 50%;
    filter: blur(60px);
    opacity: .4
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .2), rgba(139, 92, 246, .1));
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(139, 92, 246, .15), rgba(99, 102, 241, .1));
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse
}

@media (min-width:1024px) {
    .app {
        grid-template-columns: 45% 1fr
    }
}

@media (min-width:1024px) {
    .hero {
        position: sticky;
        top: 0;
        height: 100vh;
        background: linear-gradient(160deg, rgba(255, 255, 255, .8)0, rgba(241, 245, 249, .6) 100%);
        backdrop-filter: blur(20px);
        border-right: 1px solid var(--border)
    }
}

.logo-glow {
    inset: -20px;
    background: radial-gradient(circle, rgba(99, 102, 241, .3)0, transparent 70%)
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 500
}

.hero-features {
    display: none
}

@media (min-width:1024px) {
    .hero-features {
        display: flex;
        flex-direction: column
    }
}

@media (min-width:1024px) {
    .content {
        padding: 3rem;
        max-width: 520px
    }
}

.alert,
.alert-icon {
    display: flex;
    align-items: center
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    font-size: .9375rem;
    font-weight: 500;
    gap: .75rem;
    animation: shake .5s ease-out;
    background: linear-gradient(135deg, #fef2f2, #fff5f5);
    border: 1px solid #fecaca;
    color: #dc2626
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    justify-content: center;
    font-weight: 700;
    font-size: .75rem
}

.card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    margin-bottom: 1.5rem
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-strong)
}

.card:not(.collapsed) .card-body {
    max-height: 800px;
    opacity: 1;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem
}

.card-header,
.card-icon {
    display: flex;
    align-items: center
}

.card-header {
    padding: 1.25rem 1.5rem;
    gap: .875rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -.01em;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to right, var(--surface-elevated), white);
    color: var(--text-primary)
}

.card-header.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-bottom: none
}

.card-header.secondary {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    border-bottom: none
}

.card-icon {
    width: 32px;
    height: 32px;
    justify-content: center;
    background: rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    backdrop-filter: blur(10px)
}

.card-body {
    padding: 1.5rem
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative
}

.form-group:last-of-type {
    margin-bottom: 0
}

.form-label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: .5rem;
    text-transform: uppercase;
    letter-spacing: .05em
}

.input-wrapper {
    position: relative
}

.form-input {
    padding: .875rem 1rem
}

.form-input,
.form-select {
    width: 100%;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--surface-elevated);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all .2s ease;
    outline: 0
}

.form-input:hover,
.form-select:hover {
    background: var(--surface-hover)
}

.form-input:focus,
.form-select:focus {
    background: var(--surface);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .1)
}

.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 400
}

.form-select {
    appearance: none;
    cursor: pointer;
    padding: .875rem 2.75rem .875rem 1rem
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: transform .3s ease, color .2s
}

.form-select:focus+.select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary)
}

.name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

@media (max-width:480px) {
    .name-grid {
        grid-template-columns: 1fr
    }
}

.checkbox-wrapper {
    margin: 1.25rem 0
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    cursor: pointer;
    font-size: .9375rem;
    color: var(--text-secondary);
    user-select: none;
    transition: color .2s
}

.checkbox-label:hover {
    color: var(--text-primary)
}

.checkbox-input {
    display: none
}

.checkbox-box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    background: var(--surface);
    flex-shrink: 0
}

.checkbox-input:checked+.checkbox-box {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05)
}

.checkbox-input:checked+.checkbox-box::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
    animation: checkPop .3s cubic-bezier(.4, 0, .2, 1)
}

.btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    letter-spacing: -.01em;
    position: relative;
    overflow: hidden
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, .2), transparent);
    transform: translateX(-100%);
    transition: transform .6s
}

.btn:hover::before {
    transform: translateX(100%)
}

.btn:active {
    transform: scale(.98)
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, .4)
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(99, 102, 241, .5)
}

.btn-secondary {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, .3)
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px 0 rgba(15, 23, 42, .4)
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform .3s ease
}

.btn:hover .btn-icon {
    transform: translateX(4px)
}

.divider,
.hint {
    color: var(--text-muted);
    font-weight: 500
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    font-size: .875rem
}

.divider::after,
.divider::before {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-strong), transparent)
}

.divider span {
    padding: 0 1rem;
    background: 0 0
}

.hint {
    text-align: center;
    font-size: .8125rem;
    margin-top: .875rem
}

.hidden {
    display: none !important
}

.btn:focus-visible,
.checkbox-label:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

@media (max-width:640px) {
    .hero {
        padding: 2rem 1.5rem;
        min-height: auto
    }

    .logo-container {
        width: 100px;
        height: 100px
    }

    .card {
        border-radius: var(--radius-lg)
    }

    .card-header {
        padding: 1rem 1.25rem
    }

    .card-body {
        padding: 1.25rem
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    ::after,
    ::before {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: linear-gradient(160deg, rgba(255, 255, 255, .8)0, rgba(241, 245, 249, .6) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border)
}

@media (max-width:1023px) {
    .hero {
        position: relative;
        min-height: auto;
        height: auto;
        padding: 1rem 1rem 1.5rem;
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid var(--border)
    }
}

.hero-content {
    text-align: center;
    max-width: 400px;
    animation: fadeInUp .8s ease-out;
    width: 100%
}

@media (max-width:1023px) {
    .hero-content {
        margin-top: 0
    }

    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: .5rem
    }

    .hero-content p {
        font-size: .9375rem;
        line-height: 1.5
    }
}

.logo-container {
    position: relative;
    width: 90%;
    max-width: 300px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 200px
}

@media (max-width:1023px) {
    .logo-container {
        width: 50%;
        max-width: 150px;
        min-height: 100px;
        margin-bottom: .75rem
    }
}

.logo,
.logo-glow {
    pointer-events: none
}

.logo {
    width: 200%;
    height: 200%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transform-origin: center center;
    filter: drop-shadow(0 4px 20px rgba(99, 102, 241, .2));
    transition: transform .3s ease, filter .3s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 8px 30px rgba(99, 102, 241, .4))
}

@media (max-width:1023px) {
    .logo:hover {
        transform: none;
        filter: drop-shadow(0 4px 20px rgba(99, 102, 241, .2))
    }
}

.logo-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, .25)0, rgba(139, 92, 246, .15) 30%, transparent 60%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: 1
}

@media (max-width:1023px) {
    .logo-glow {
        width: 200%;
        height: 200%
    }
}

.hero-features {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
    gap: 1.5rem
}

@media (max-width:1023px) {
    .hero-features {
        display: none
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all .3s ease;
    opacity: 0;
    animation: slideIn .6s ease-out forwards;
    z-index: 10
}

.feature-item:nth-child(1) {
    animation-delay: .2s
}

.feature-item:nth-child(2) {
    animation-delay: .4s
}

.feature-item:nth-child(3) {
    animation-delay: .6s
}

.feature-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, .9);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg)
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-lighter), white);
    border-radius: var(--radius);
    color: var(--primary);
    flex-shrink: 0
}

.feature-text {
    text-align: left
}

.feature-text span {
    color: var(--text-muted);
    font-size: .875rem
}

.app,
body,
html {
    max-width: 100vw
}

.app,
body {
    overflow-x: hidden
}

.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 0
}

@media (max-width:1023px) {
    .app {
        grid-template-columns: 1fr
    }
}

.content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
    width: 100%
}

@media (max-width:1023px) {
    .content {
        padding: 1.5rem 1rem 3rem;
        max-width: 100%
    }
}

@media (max-width:640px) {
    .content {
        padding: 1rem
    }
}

@media (max-width:1500px) {
    .logo {
        width: 150%;
        height: 150%
    }
}

@media (max-width:1160px) {
    .logo {
        width: 130%;
        height: 130%
    }
}

@media (max-width:1023px) {
    .logo {
        width: 300%;
        height: 300%
    }
}

@media (max-width:595px) {
    .logo {
        width: 200%;
        height: 200%
    }
}

@media (max-width:1023px) {
    .content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        min-height: auto;
        padding-top: .5rem
    }

    .divider {
        margin: .5rem 0
    }

    .card {
        width: 100%;
        flex-shrink: 0
    }

    .card,
    .card.collapsed {
        margin-bottom: 0
    }

    .card:not(.collapsed) {
        margin-bottom: .75rem
    }

    .card-header {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        padding-right: 3rem
    }

    .card-header::after {
        content: "›";
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
        font-size: 1.5rem;
        font-weight: 300;
        color: rgba(255, 255, 255, .8);
        transition: transform .3s ease
    }

    .card.collapsed .card-header::after {
        transform: translateY(-50%) rotate(0deg)
    }

    .card-body {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height .55s cubic-bezier(0, 0, .2, 1), opacity .4s ease .05s, padding .45s ease;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }

    .card:not(.collapsed) .card-body {
        max-height: 900px;
        opacity: 1;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem
    }

    .card-header.primary .gast-label,
    .card-header.secondary .login-label {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        margin-left: auto;
        font-size: .75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .05em;
        background: rgba(255, 255, 255, .2);
        padding: .25rem .75rem;
        border-radius: var(--radius-full);
        backdrop-filter: blur(10px)
    }
}

@media (min-width:1024px) {
    .card-header {
        cursor: default
    }

    .card-header .gast-label,
    .card-header .login-label,
    .card-header::after {
        display: none
    }
}

@media (max-width:1023px) {
    .app {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        min-height: 100vh;
        align-items: start
    }

    .content,
    .hero {
        justify-content: flex-start
    }

    .hero {
        position: relative;
        min-height: auto;
        height: auto;
        padding: 1.25rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border)
    }

    .content {
        padding: 1rem 1rem 2rem;
        max-width: 100%;
        display: flex;
        flex-direction: column
    }
}

.login-level-warning {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    animation: fadeIn .3s ease-out
}

.login-level-warning-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: #f59e0b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .875rem
}

.login-level-warning-text {
    font-size: .9375rem;
    color: #92400e;
    line-height: 1.5;
    font-weight: 500
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none
}

.btn-primary:disabled::before {
    display: none
}

html {
    overflow-y: auto;
    overflow-x: hidden
}

/* =========================================================
   ULTIMATIVER FIX: Keine doppelten Scrollbars & kein Springen
   ========================================================= */

/* 1. Globales Scrollen: Wir zwingen den Browser, nur EINE Scrollbar zu zeigen */
html {
    height: -webkit-fill-available;
    /* Fix für Mobile Browser */
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Nur hier darf gescrollt werden! */
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: auto !important;
    /* WICHTIG: Darf nicht auf 100% stehen */
    overflow: visible !important;
    /* Verhindert die zweite Scrollbar */
}

/* 2. Das Layout-Grid */
@media (min-width: 1024px) {
    .app {
        display: grid !important;
        grid-template-columns: 45% 55% !important;
        align-items: start !important;
        /* Verhindert das Quetschen der Elemente */
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    /* Der linke weiße Bereich (Hero) */
    .hero {
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        /* Bleibt exakt so hoch wie der Bildschirm */
        overflow: hidden !important;
        /* Hier darf NIEMALS eine Scrollbar erscheinen */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        z-index: 10;
    }

    /* Der rechte Bereich (Formulare) */
    .content {
        min-height: 100vh !important;
        height: auto !important;
        /* Wächst mit dem Inhalt nach unten */
        overflow: visible !important;
        /* Nutzt die Scrollbar vom Browser/Body */
        padding: 4rem 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
}

/* 3. Behebt das "Schnalzen" in Chrome beim Hovern */
.card,
.form-control,
button,
input {
    /* Verhindert, dass Chrome das Layout beim Hovern/Fokus neu berechnet und springt */
    overflow-anchor: none !important;
    /* Verhindert Layout-Verschiebungen durch Transitions */
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 4. Hintergrund-Fix: Die Animationen dürfen das Scrollen nicht beeinflussen */
.bg-animations {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

/* =========================================================
   PASSWORT VERGESSEN MODAL STYLES (Passend zu style-home)
   ========================================================= */

/* Overlay filtert den Hintergrund mit Milchglas-Effekt */
.pw-reset-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    /* Dunkler, transparenter Hintergrund */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999;
    /* Über allem anderen Inhalt */
    animation: fadeIn 0.3s ease-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

/* Die eigentliche Modal-Box */
.pw-reset-card {
    background: var(--surface);
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header mit dem lila/blauen Verlauf der Hauptbuttons */
.pw-reset-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.pw-reset-header h1 {
    font-size: 1.25rem !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff !important;
    margin: 0 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.pw-reset-icon {
    font-size: 1.25rem;
}

/* Content-Bereich */
.pw-reset-body {
    padding: 2rem;
}

.pw-reset-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Warnbox (Gelb/Amber wie dein login-level-warning) */
.pw-reset-warning {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pw-reset-warning-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: #f59e0b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.pw-reset-warning-text {
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

/* Button-Anordnung */
.pw-reset-actions {
    display: flex;
    gap: 0.75rem;
}

.pw-btn-cancel {
    flex: 1;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0) !important;
    color: #475569 !important;
    box-shadow: none !important;
}

.pw-btn-cancel:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1) !important;
    transform: translateY(-2px);
}

.pw-btn-submit {
    flex: 2;
}

/* Wenn das Modal die Klasse per JS bekommt: Sichtbar machen */
.pw-reset-overlay.pw-reset-show {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Container vorbereiten */
.card {
    position: relative;
    overflow: hidden;
    /* Verhindert, dass der Glow über die abgerundeten Ecken hinausgeht */
    border: none;
    /* Wir nutzen den Shimmer-Border */
}

/* Der magische Hintergrund-Glow (folgt der Maus) */
.card-glow-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Kombinierter radialer Gradient für Tiefe */
    background:
        radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(99, 102, 241, 0.1),
            rgba(168, 85, 247, 0.05) 40%,
            transparent 80%);
    z-index: 1;
}

/* Das harte Glanzlicht / Highlight (bewegt sich entgegengesetzt für 3D-Effekt) */
.card-highlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    /* Ein sehr harter, weißer Radial-Gradient */
    background: radial-gradient(150px circle at var(--highlight-x) var(--highlight-y),
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
}

/* Der leuchtende 3D-Rand */
.card-border-glow {
    position: absolute;
    inset: -1px;
    /* Leicht größer als die Card */
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    background: radial-gradient(250px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.6) 0%,
            rgba(99, 102, 241, 0.2) 60%,
            transparent 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Sichtbar machen bei Hover über die Card */
.card:hover .card-glow-bg,
.card:hover .card-highlight,
.card:hover .card-border-glow {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   KLASSE REGISTRIEREN – Card-Header & Formular-Styles
   ═══════════════════════════════════════════════════════════════ */

.card-header.register {
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.18) 0%,
            rgba(5, 150, 105, 0.10) 100%);
    border-bottom-color: rgba(16, 185, 129, 0.18);
}

.card-header.register .card-icon {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
}

.card-header.register span {
    color: #10b981;
}

/* Zweispaltiges Vorname/Nachname-Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Kleiner Hinweistext neben Labels */
.reg-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Rolle-Toggle */
.reg-role-toggle {
    display: flex;
    gap: 0.75rem;
}

.reg-role-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s, border-color 0.2s;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex: 1;
    justify-content: center;
    user-select: none;
}

.reg-role-option:has(input:checked) {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.reg-role-option input[type="radio"] {
    display: none;
}

/* Info-Box */
.reg-info-box {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.reg-info-box span {
    display: block;
}

.reg-info-box strong {
    color: var(--text-primary);
    font-weight: 600;
}

.reg-info-box svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #818cf8;
}

/* Registrieren-Button (grün akzentiert) */
.btn.btn-register {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    transition: all 0.3s ease;
}

.btn.btn-register:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════════════
   CLASS-ONBOARDING WIZARD  (class-onboarding.php)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Keyframes ─────────────────────────────────────────────────────────── */
@keyframes ob-step-enter {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ob-fade-in {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ob-ring-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

@keyframes ob-check-pop {
    0% {
        transform: scale(0) rotate(-15deg);
    }

    65% {
        transform: scale(1.15) rotate(4deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes ob-progress-grow {
    from {
        width: 0%;
    }
}

@keyframes ob-dot-pop {
    0% {
        transform: scale(0.6);
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* ── Shell / Layout ─────────────────────────────────────────────────────── */
.ob-shell {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem 4rem;
    position: relative;
    z-index: 1;
}

.ob-center-wrap,
.ob-wizard-wrap {
    width: 100%;
    max-width: 800px;
    animation: ob-fade-in 0.5s ease both;
}

.ob-center-wrap {
    margin-top: 8vh;
    display: flex;
    justify-content: center;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.ob-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.ob-logo-row {
    margin-bottom: 1rem;
}

.ob-logo {
    height: 44px;
    width: auto;
}

.ob-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.ob-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ob-school-badge {
    display: inline-block;
    background: var(--primary-lighter);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.1rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Progress ────────────────────────────────────────────────────────────── */
.ob-progress-wrap {
    margin-bottom: 1.75rem;
}

.ob-progress-track {
    height: 5px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ob-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #818cf8 100%);
    border-radius: 999px;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    animation: ob-progress-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ob-step-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.ob-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    border: 2px solid rgba(99, 102, 241, 0.15);
    color: var(--text-muted);
    background: var(--surface);
    transition: all 0.3s ease;
}

.ob-dot svg {
    width: 13px;
    height: 13px;
}

.ob-dot.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-lighter);
    transform: scale(1.12);
    animation: ob-dot-pop 0.35s ease both;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.ob-dot.done {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.ob-step-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.ob-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.ob-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.ob-step-card {
    animation: ob-step-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ob-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.ob-lead {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.ob-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.25rem 0 0.75rem;
}

.ob-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* ── Card Icon ───────────────────────────────────────────────────────────── */
.ob-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.ob-card-icon svg {
    width: 24px;
    height: 24px;
}

.ob-icon-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

.ob-icon-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.ob-icon-violet {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.ob-icon-teal {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
}

.ob-icon-orange {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

.ob-icon-green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

/* ── Highlight & Info Boxes ─────────────────────────────────────────────── */
.ob-highlight-box,
.ob-info-box {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ob-highlight-box .ob-highlight-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ob-highlight-green {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--text-secondary);
}

.ob-highlight-indigo {
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--text-secondary);
}

.ob-info-box {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    color: var(--text-secondary);
}

.ob-info-box.ob-info-green {
    background: rgba(16, 185, 129, 0.07);
    border-color: rgba(16, 185, 129, 0.18);
}

.ob-info-box svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-light);
}

/* ── Tier Grid ───────────────────────────────────────────────────────────── */
.ob-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

@media (max-width: 520px) {
    .ob-tier-grid {
        grid-template-columns: 1fr;
    }
}

.ob-tier-card {
    border-radius: var(--radius);
    padding: 1rem 0.9rem;
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
}

.ob-tier-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.ob-tier-price {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.ob-tier-list {
    list-style: none;
    padding: 0;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ob-tier-list li::before {
    content: '· ';
}

.ob-tier-basic {
    background: rgba(100, 116, 139, 0.06);
    border-color: rgba(100, 116, 139, 0.15);
}

.ob-tier-basic .ob-tier-badge {
    color: #64748b;
}

.ob-tier-plus {
    background: rgba(99, 102, 241, 0.07);
    border-color: rgba(99, 102, 241, 0.2);
}

.ob-tier-plus .ob-tier-badge {
    color: var(--primary);
}

.ob-tier-ultimate {
    background: rgba(245, 158, 11, 0.07);
    border-color: rgba(245, 158, 11, 0.2);
}

.ob-tier-ultimate .ob-tier-badge {
    color: #d97706;
}

/* ── Slider ──────────────────────────────────────────────────────────────── */
.ob-slider-wrap {
    margin: 1rem 0;
}

.ob-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.ob-muted {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.ob-slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ob-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(99, 102, 241, 0.15) 0%);
    outline: none;
    cursor: pointer;
    transition: background 0.1s;
}

.ob-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ob-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.45);
}

.ob-slider-val {
    min-width: 2.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.ob-slider-hints {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ── Toggle ──────────────────────────────────────────────────────────────── */
.ob-toggle-row {
    margin: 1rem 0;
}

.ob-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
}

.ob-toggle-check {
    display: none;
}

.ob-toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 999px;
    flex-shrink: 0;
    position: relative;
    transition: background 0.25s;
}

.ob-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ob-toggle-check:checked+.ob-toggle-switch {
    background: var(--primary);
}

.ob-toggle-check:checked+.ob-toggle-switch::after {
    transform: translateX(20px);
}

/* ── Radio Cards ─────────────────────────────────────────────────────────── */
.ob-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1rem 0;
}

.ob-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-strong);
    background: var(--surface-elevated);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
}

.ob-radio-card input[type=radio] {
    display: none;
}

.ob-radio-card:hover {
    border-color: var(--primary-light);
    background: var(--surface-hover);
}

.ob-radio-card.active {
    border-color: var(--primary);
    background: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ob-radio-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ob-radio-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.ob-radio-card div strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.ob-radio-card div span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Form Group / Input ──────────────────────────────────────────────────── */
.ob-form-group {
    margin-bottom: 1rem;
}

.ob-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ob-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ob-input::placeholder {
    color: var(--text-muted);
}

/* ── Summary ─────────────────────────────────────────────────────────────── */
.ob-summary {
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.ob-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    font-size: 0.87rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.ob-summary-row:last-child {
    border-bottom: none;
}

.ob-summary-row:nth-child(even) {
    background: var(--surface-elevated);
}

.ob-summary-label {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.ob-summary-val {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.ob-badge-green {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ob-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.ob-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ob-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.3);
}

.ob-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(99, 102, 241, 0.4);
}

.ob-btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
}

.ob-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(16, 185, 129, 0.4);
}

.ob-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-strong);
}

.ob-btn-ghost:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.ob-btn-outline {
    background: var(--surface);
    color: var(--primary);
    border: 1.5px solid var(--primary-light);
}

.ob-btn-outline:hover {
    background: var(--primary-lighter);
}

.ob-btn-full {
    width: 100%;
    justify-content: center;
}

.ob-btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius);
}

/* ── Nav Bar ─────────────────────────────────────────────────────────────── */
.ob-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 0.25rem;
}

/* ── Alert ───────────────────────────────────────────────────────────────── */
.ob-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    font-size: 0.87rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ob-alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ob-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* ── Fatal Error Card ────────────────────────────────────────────────────── */
.ob-fatal-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.15);
    box-shadow: var(--shadow-xl);
    max-width: 420px;
}

.ob-fatal-icon {
    width: 56px;
    height: 56px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #dc2626;
}

.ob-fatal-icon svg {
    width: 26px;
    height: 26px;
}

.ob-fatal-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ob-fatal-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ── Success Card ────────────────────────────────────────────────────────── */
.ob-success-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: var(--shadow-xl);
    max-width: 520px;
    width: 100%;
    animation: ob-fade-in 0.5s ease both;
}

.ob-success-burst {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.ob-success-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.4);
    animation: ob-ring-pulse 1.8s ease-out infinite;
}

.ob-ring-1 {
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.ob-ring-2 {
    width: 80px;
    height: 80px;
    animation-delay: 0.5s;
}

.ob-ring-3 {
    width: 80px;
    height: 80px;
    animation-delay: 1s;
}

.ob-success-icon {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: ob-check-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.ob-success-icon svg {
    width: 28px;
    height: 28px;
}

.ob-success-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ob-success-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.ob-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin: 1.25rem 0;
}

/* ── Hidden ──────────────────────────────────────────────────────────────── */
.ob-shell .hidden {
    display: none !important;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .ob-card {
        padding: 1.5rem 1.2rem;
    }

    .ob-title {
        font-size: 1.4rem;
    }

    .ob-success-actions {
        flex-direction: column;
    }

    .ob-success-actions .ob-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Mobile Feature Carousel ────────────────────────────────────────────── */
.mobile-feature-section {
    display: none;
}

@media (max-width: 1023px) {
    .mobile-feature-section {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    /* Carousel Container */
    .feature-carousel-container {
        position: relative;
        height: 50px;
        overflow: hidden;
        background: rgba(99, 102, 241, 0.05);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-carousel-track {
        display: flex;
        flex-direction: column;
        transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
        width: 100%;
    }

    .feature-carousel-item {
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        flex-shrink: 0;
        font-weight: 700;
        color: var(--primary);
        font-size: 1.1rem;
        letter-spacing: -0.01em;
        text-align: center;
        padding: 0 1rem;
    }

    .feature-carousel-item svg {
        width: 20px;
        height: 20px;
        stroke-width: 2.5;
        color: var(--primary);
    }
}

/* ── Mobile Legal at bottom ────────────────────────────────────────────── */
.mobile-legal-footer {
    display: none;
}

@media (max-width: 1023px) {
    .mobile-legal-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 3rem;
        padding-bottom: 2rem;
        width: 100%;
    }

    .mobile-legal-links {
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-legal-links a {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        opacity: 0.7;
        transition: opacity 0.2s;
    }

    .mobile-legal-links a:hover {
        opacity: 1;
    }
}