#yk-auth-root {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: none;
}

#yk-auth-root.is-open {
    display: block;
}

#yk-auth-root * {
    box-sizing: border-box;
}

#yk-auth-root .yk-auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#yk-auth-root .yk-auth-shell {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 540px);
    max-height: min(90vh, 820px);
    overflow: auto;
    padding: 22px 22px 16px;
    border-radius: 34px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .18);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
}

#yk-auth-root .rtl {
    direction: rtl;
    text-align: right;
}

#yk-auth-root .yk-auth-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

#yk-auth-root .yk-auth-headcopy {
    min-width: 0;
    flex: 1 1 auto;
}

#yk-auth-root .yk-auth-brand {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #0f766e;
}

#yk-auth-root .yk-auth-title {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -.04em;
    color: #0f172a;
}

#yk-auth-root .yk-auth-subtitle {
    margin: 0;
    max-width: 420px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    color: #64748b;
}

#yk-auth-root .yk-auth-close {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

#yk-auth-root .yk-auth-progressbar {
    position: relative;
    height: 8px;
    margin: 0 0 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

#yk-auth-root .yk-auth-progressbar span {
    display: block;
    height: 100%;
    width: 33.333%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2ec7be 0%, #3d9fff 100%);
    transition: width .22s ease;
}

#yk-auth-root .yk-auth-progress {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
    color: #64748b;
}

#yk-auth-root .yk-auth-step {
    display: none;
}

#yk-auth-root .yk-auth-step.is-active {
    display: block;
}

#yk-auth-root .yk-auth-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 900;
    color: #0f172a;
}

/* ===== PHONE LAYOUT ===== */

#yk-auth-root .yk-auth-phone-row {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
    gap: 12px;
    align-items: center;
}

/* Anderes Land: Dropdown + Vorwahl + Telefonnummer */
#yk-auth-root .yk-auth-phone-row.other-country {
    grid-template-columns: minmax(0, .9fr) 110px minmax(0, 1.5fr);
    gap: 10px;
    align-items: center;
}

#yk-auth-root .yk-auth-phone-row > * {
    min-width: 0;
}

#yk-auth-root .yk-auth-grid {
    display: grid;
    gap: 12px;
}

#yk-auth-root .yk-auth-select,
#yk-auth-root .yk-auth-input,
#yk-auth-root .yk-auth-otp-box {
    width: 100%;
    border: 1.5px solid rgba(15, 23, 42, .08);
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#yk-auth-root .yk-auth-select {
    height: 60px;
    min-width: 0;
    padding: 0 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 850;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 24px) calc(50% - 3px),
        calc(100% - 18px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
}

#yk-auth-root .yk-auth-input {
    height: 60px;
    min-width: 0;
    padding: 0 18px;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 800;
}

#yk-auth-root .yk-auth-input::placeholder {
    color: #94a3b8;
    font-weight: 700;
}

#yk-auth-root .yk-auth-input-dial {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    text-align: center;
    letter-spacing: .02em;
    font-size: 16px;
    padding-left: 10px;
    padding-right: 10px;
}

#yk-auth-root .yk-auth-input-phone {
    width: 100%;
    min-width: 0;
}

#yk-auth-root .yk-auth-select:focus,
#yk-auth-root .yk-auth-input:focus,
#yk-auth-root .yk-auth-otp-box:focus {
    border-color: #1db7ad;
    box-shadow: 0 0 0 4px rgba(24, 158, 154, .10);
    background: #ffffff;
}

#yk-auth-root .yk-auth-help {
    margin: 10px 2px 0;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 600;
    color: #64748b;
}

#yk-auth-root .yk-auth-error {
    display: none;
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(220, 38, 38, .10);
    background: #fff1f2;
    color: #be123c;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 800;
}

#yk-auth-root .yk-auth-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

#yk-auth-root .yk-auth-btn {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    border: 0;
    border-radius: 22px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.01em;
    color: #fff;
    background: linear-gradient(90deg, #2ec7be 0%, #3d9fff 100%);
    box-shadow: 0 16px 30px rgba(61, 159, 255, .18);
}

#yk-auth-root .yk-auth-btn.secondary {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

#yk-auth-root .yk-auth-btn.link {
    min-height: auto;
    padding: 2px 2px 0;
    border-radius: 0;
    background: transparent;
    color: #0f766e;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 900;
    text-align: left;
}

#yk-auth-root .rtl .yk-auth-btn.link {
    text-align: right;
}

#yk-auth-root .yk-auth-otp-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

#yk-auth-root .yk-auth-otp-box {
    flex: 1 1 0;
    width: calc((100% - 40px) / 6);
    height: 58px;
    border-radius: 18px;
    padding: 0;
    text-align: center;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

#yk-auth-root .yk-auth-success {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 6px 0 4px;
}

#yk-auth-root .yk-auth-success-icon {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 6px auto 14px;
    border-radius: 999px;
    background: #eefaf8;
    color: #14877d;
    font-size: 44px;
    font-weight: 900;
}

#yk-auth-root .yk-auth-success-title {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.03em;
    color: #0f172a;
}

#yk-auth-root .yk-auth-success-text {
    margin: 0 0 18px;
    max-width: 380px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
    color: #64748b;
}

#yk-auth-root .yk-auth-foot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, .06);
    font-size: 11px;
    line-height: 1.5;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 720px) {
    #yk-auth-root .yk-auth-shell {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        width: 100%;
        max-height: 88vh;
        padding: 16px 16px 14px;
        border-radius: 30px 30px 0 0;
    }

    #yk-auth-root .yk-auth-shell::before {
        content: "";
        display: block;
        width: 48px;
        height: 6px;
        margin: 0 auto 12px;
        border-radius: 999px;
        background: rgba(15, 23, 42, .14);
    }

    #yk-auth-root .yk-auth-title {
        font-size: 25px;
    }

    #yk-auth-root .yk-auth-subtitle {
        max-width: none;
        font-size: 13px;
    }

    #yk-auth-root .yk-auth-phone-row,
    #yk-auth-root .yk-auth-phone-row.other-country {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #yk-auth-root .yk-auth-input-dial {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    #yk-auth-root .yk-auth-select,
    #yk-auth-root .yk-auth-input {
        height: 56px;
        border-radius: 18px;
        font-size: 16px;
    }

    #yk-auth-root .yk-auth-btn {
        min-height: 54px;
        border-radius: 20px;
        font-size: 16px;
    }

    #yk-auth-root .yk-auth-otp-box {
        height: 54px;
        border-radius: 16px;
        font-size: 22px;
    }
}