.qa-root {
    /* Tema ana rengi (--fs-auth-accent sayfada "r g b" üçlüsüdür — renk olarak kullanılamaz) */
    --qa-accent: var(--th-primary, var(--sf-accent, #4f46e5));
    --qa-on-accent: var(--th-primary-text, #fff);
    --qa-bg: #fff;
    --qa-text: #0f172a;
    --qa-muted: #64748b;
    --qa-line: #e2e8f0;
    --qa-soft: #f1f5f9;
    --qa-danger: #dc2626;
    --qa-danger-soft: #fef2f2;
    --qa-ok: #047857;
    --qa-ok-soft: #ecfdf5;
    --qa-info-soft: #eff6ff;
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: none;
    font-family: inherit;
    color: var(--qa-text);
    -webkit-font-smoothing: antialiased;
}
.dark .qa-root {
    --qa-bg: #0f172a;
    --qa-text: #f8fafc;
    --qa-muted: #94a3b8;
    --qa-line: #334155;
    --qa-soft: #1e293b;
    --qa-danger: #f87171;
    --qa-danger-soft: rgba(248, 113, 113, .12);
    --qa-ok: #34d399;
    --qa-ok-soft: rgba(52, 211, 153, .12);
    --qa-info-soft: rgba(96, 165, 250, .12);
}
.qa-root.is-open { display: block; }
.qa-root *, .qa-root *::before, .qa-root *::after { box-sizing: border-box; }
.qa-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    opacity: 0;
    transition: opacity .24s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.qa-root.is-visible .qa-backdrop { opacity: 1; }
.qa-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: var(--qa-bg);
    color: var(--qa-text);
    box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
    outline: none;
    overflow: hidden;
}
.qa--drawer .qa-panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    transform: translateX(104%);
    transition: transform .24s cubic-bezier(.22, .8, .24, 1);
    will-change: transform;
}
.qa--drawer.is-visible .qa-panel { transform: none; }
.qa--modal .qa-panel {
    top: 50%;
    left: 50%;
    width: min(440px, calc(100% - 32px));
    max-height: min(740px, calc(100% - 32px));
    border-radius: 20px;
    opacity: 0;
    transform: translate(-50%, -46%) scale(.97);
    transition: transform .28s cubic-bezier(.22, .8, .24, 1), opacity .22s ease;
}
.qa--modal.is-visible .qa-panel { opacity: 1; transform: translate(-50%, -50%); }
.qa-grip { display: none; }
@media (max-width: 639px) {
    .qa--drawer .qa-panel,
    .qa--modal .qa-panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 22px 22px 0 0;
        opacity: 1;
        transform: translateY(104%);
        transition: transform .24s cubic-bezier(.22, .8, .24, 1);
    }
    .qa-root.is-visible .qa-panel { transform: none; }
    .qa-grip { display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: var(--qa-line); flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .qa-panel, .qa-backdrop { transition: none !important; }
}
.qa-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 4px; flex-shrink: 0; }
.qa-head__text { flex: 1; min-width: 0; }
.qa-title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.qa-sub { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--qa-muted); }
.qa-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 0;
    border-radius: 12px;
    background: var(--qa-soft);
    color: var(--qa-text);
    cursor: pointer;
    transition: background-color .15s ease;
}
.qa-icon-btn:hover { background: var(--qa-line); }
.qa-icon-btn svg { width: 18px; height: 18px; }
.qa-icon-btn[hidden] { display: none; }
.qa-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 14px 20px 0; padding: 4px; border-radius: 14px; background: var(--qa-soft); flex-shrink: 0; }
.qa-tabs[hidden] { display: none; }
.qa-tab {
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--qa-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.qa-tab[aria-selected="true"] { background: var(--qa-bg); color: var(--qa-text); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.qa-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 20px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.qa-view[hidden] { display: none; }
.qa-field { margin-bottom: 14px; }
.qa-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.qa-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--qa-text); }
.qa-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--qa-line);
    border-radius: 12px;
    background: var(--qa-bg);
    color: var(--qa-text);
    font: inherit;
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.qa-input::placeholder { color: var(--qa-muted); opacity: .8; }
.qa-input:focus { outline: none; border-color: var(--qa-accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .16); box-shadow: 0 0 0 3px color-mix(in srgb, var(--qa-accent) 20%, transparent); }
.qa-input[aria-invalid="true"] { border-color: var(--qa-danger); }
.qa-pw { position: relative; }
.qa-pw .qa-input { padding-right: 50px; }
.qa-eye {
    position: absolute;
    top: 50%;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--qa-muted);
    cursor: pointer;
    transform: translateY(-50%);
}
.qa-eye svg { width: 19px; height: 19px; }
.qa-err { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--qa-danger); }
.qa-err[hidden] { display: none; }
.qa-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--qa-muted); }
.qa-center { text-align: center; }
.qa-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--qa-accent);
    color: var(--qa-on-accent);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease, transform .1s ease, opacity .15s ease;
}
.qa-btn:hover:not(:disabled) { filter: brightness(1.06); }
.qa-btn:active:not(:disabled) { transform: scale(.99); }
.qa-btn:disabled { opacity: .65; cursor: default; }
.qa-btn--ghost { background: transparent; color: var(--qa-text); border: 1.5px solid var(--qa-line); }
.qa-btn + .qa-btn { margin-top: 10px; }
.qa-btn.is-busy { color: transparent; }
.qa-btn.is-busy::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid var(--qa-on-accent);
    border-right-color: transparent;
    border-radius: 50%;
    animation: qa-spin .7s linear infinite;
}
.qa-btn--ghost.is-busy::after { border-color: var(--qa-text); border-right-color: transparent; }
@keyframes qa-spin { to { transform: rotate(360deg); } }
.qa-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--qa-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.qa-link:hover { text-decoration: underline; }
.qa-link:disabled { color: var(--qa-muted); cursor: default; text-decoration: none; }
.qa-link--sm { font-size: 13px; }
.qa-link--block { display: block; margin: 14px auto 0; }
.qa-switch { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--qa-muted); }
.qa-alert { margin: 0 0 14px; padding: 11px 13px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.qa-alert[hidden] { display: none; }
.qa-alert--error { background: var(--qa-danger-soft); color: var(--qa-danger); }
.qa-alert--ok { background: var(--qa-ok-soft); color: var(--qa-ok); }
.qa-alert--info { background: var(--qa-info-soft); color: var(--qa-text); }
.qa-alert .qa-link { font-size: inherit; }
.qa-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font-size: 13px; color: var(--qa-muted); }
.qa-divider::before, .qa-divider::after { content: ""; flex: 1; height: 1px; background: var(--qa-line); }
.qa-social { display: grid; gap: 10px; }
.qa-social--grid { grid-template-columns: 1fr 1fr; }
.qa-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 12px;
    border: 1.5px solid var(--qa-line);
    border-radius: 12px;
    color: var(--qa-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.qa-social a:hover { background: var(--qa-soft); }
.qa-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.qa-meta { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--qa-muted); }
.qa-meta strong { color: var(--qa-text); font-weight: 600; word-break: break-all; }
.qa-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; }
.qa-otp input {
    width: 100%;
    height: 56px;
    padding: 0;
    border: 1.5px solid var(--qa-line);
    border-radius: 12px;
    background: var(--qa-bg);
    color: var(--qa-text);
    font: inherit;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.qa-otp input:focus { outline: none; border-color: var(--qa-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--qa-accent) 20%, transparent); }
.qa-otp.is-invalid input { border-color: var(--qa-danger); }
.qa-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 0; font-size: 14px; color: var(--qa-muted); }
.qa-timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--qa-text); }
.qa-check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: 13px; line-height: 1.5; color: var(--qa-muted); cursor: pointer; }
.qa-check input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--qa-accent); cursor: pointer; }
.qa-check a { color: var(--qa-accent); font-weight: 600; text-decoration: none; }
.qa-check a:hover { text-decoration: underline; }
.qa-captcha:empty { display: none; }
.qa-captcha { margin: 4px 0 14px; min-height: 78px; }
.qa-notice { padding: 8px 0 4px; text-align: center; }
.qa-notice__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: var(--qa-ok-soft); color: var(--qa-ok); }
.qa-notice__icon svg { width: 26px; height: 26px; }
.qa-notice h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.qa-notice p { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--qa-muted); }
.qa-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--qa-line); text-align: center; flex-shrink: 0; }
.qa-foot[hidden] { display: none; }
.qa-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html.qa-lock, html.qa-lock body { overflow: hidden !important; }
html.qa-lock body { padding-right: var(--qa-sbw, 0px); }

/* Kimlik çipi (şifre / kayıt adımında hangi e-posta / telefonla devam edildiği) */
.qa-chip { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border: 1.5px solid var(--qa-line); border-radius: 12px; background: var(--qa-soft); font-size: 14px; }
.qa-chip[hidden] { display: none; }
.qa-chip__icon { display: inline-flex; color: var(--qa-muted); flex-shrink: 0; }
.qa-chip__icon svg { width: 18px; height: 18px; }
.qa-chip__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.qa-field[hidden], .qa-btn[hidden] { display: none; }
.qa-gap { margin-top: 12px; }
.qa-cattr { margin: 2px 0 6px; font-size: 14px; }
.qa-cattr .sf-cattr__field { margin-bottom: 12px; }
.qa-cattr .sf-cattr__label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.qa-cattr .sf-co-input { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--qa-line); border-radius: 12px; background: var(--qa-bg); color: var(--qa-text); font: inherit; font-size: 16px; }
.qa-sr[tabindex] { pointer-events: none; }

/* Sayfaya gömülü sunum (/login, /register): aynı bileşen, çekmece kabuğu yok */
.qa-root.qa--inline { position: static; inset: auto; z-index: auto; display: block; }
.qa--inline .qa-panel { position: static; box-shadow: none; overflow: visible; background: transparent; }
.qa--inline .qa-head { padding: 0 0 4px; align-items: center; }
.qa--inline .qa-body { padding: 16px 0 0; overflow: visible; }
.qa--inline .qa-title { font-size: 22px; }
.qa-mount { min-height: 300px; }
.qa-mount .sf-captcha { margin: 4px 0 14px; }
/* Mobil: kart üstten başlar (dikey ortalama boşluğu yok); klavye açılınca alan yukarıda kalır */
@media (max-width: 767px) {
    .store-auth-page--qa { align-items: flex-start; min-height: 0; padding-top: 12px; padding-bottom: 96px; }
    .store-auth-page--qa .store-auth-split__form { padding: 22px 18px; }
    .qa-mount { min-height: 260px; }
}

.qa-consent-title { margin: 12px 0 0; font-weight: 600; color: var(--qa-text); }
