/* QRP Identity
   Ortak authentication tasarım sistemi. Tamamen yerel kaynaklarla çalışır,
   JavaScript olmadan kullanılabilir ve hareket azaltma tercihini destekler. */

:root {
    color-scheme: light;
    --identity-brand: #e69500;
    --identity-brand-bright: #ffb21a;
    --identity-brand-dark: #b86f00;
    --identity-brand-soft: #fff5df;
    --identity-ink: #142033;
    --identity-ink-strong: #09111f;
    --identity-muted: #647084;
    --identity-line: #dce3ec;
    --identity-surface: rgba(255, 255, 255, 0.94);
    --identity-surface-muted: #f6f8fb;
    --identity-canvas: #f6f8fb;
    --identity-success: #087a55;
    --identity-success-soft: #e8f8f1;
    --identity-danger: #c53b37;
    --identity-danger-soft: #fff0ef;
    --identity-radius-sm: 12px;
    --identity-radius-lg: 28px;
    --identity-shadow: 0 32px 80px rgba(20, 32, 51, 0.13), 0 8px 24px rgba(20, 32, 51, 0.07);
    --identity-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--identity-canvas);
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: var(--identity-ink);
    background: var(--identity-canvas);
    font-family: var(--identity-font);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--identity-ink-strong); background: rgba(230, 149, 0, 0.3); }

.identity-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: var(--identity-ink-strong);
    background: #fff;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 750;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.identity-skip-link:focus { transform: translateY(0); }

.identity-app {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    overflow: hidden;
}

.identity-backdrop {
    position: fixed;
    z-index: -3;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(230, 149, 0, 0.14), transparent 30%),
        radial-gradient(circle at 84% 78%, rgba(255, 178, 26, 0.1), transparent 28%),
        linear-gradient(135deg, #fffdf8 0%, #f7f9fc 52%, #eef2f7 100%);
}

.identity-backdrop::before {
    position: absolute;
    content: "";
    inset: 0;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(20, 32, 51, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 32, 51, 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.identity-backdrop::after {
    position: absolute;
    content: "";
    width: min(46vw, 720px);
    aspect-ratio: 1;
    top: -30%;
    right: -12%;
    border: 1px solid rgba(230, 149, 0, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(230, 149, 0, 0.032), 0 0 0 180px rgba(230, 149, 0, 0.02);
}

.identity-glow {
    position: absolute;
    z-index: -2;
    width: 360px;
    aspect-ratio: 1;
    left: 42%;
    bottom: -220px;
    border-radius: 50%;
    background: rgba(230, 149, 0, 0.13);
    filter: blur(90px);
    pointer-events: none;
}

.identity-topbar {
    display: flex;
    width: min(1180px, calc(100% - 48px));
    min-height: 92px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.identity-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--identity-ink-strong);
    text-decoration: none;
}

.identity-logo {
    display: block;
    width: 112px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(230, 149, 0, 0.18));
}

.identity-brand-divider { width: 1px; height: 28px; background: rgba(20, 32, 51, 0.16); }

.identity-brand-name {
    color: #4e5c70;
    font-size: 0.83rem;
    font-weight: 720;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.identity-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    color: #59667a;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 32, 51, 0.1);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.06);
}

.identity-security-badge svg { width: 15px; height: 15px; color: var(--identity-brand-bright); }

.identity-shell {
    display: grid;
    width: min(1180px, calc(100% - 48px));
    margin: auto;
    padding: 32px 0 56px;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 500px);
    align-items: center;
    gap: clamp(56px, 8vw, 124px);
}

/* Showcase (soldaki tanıtım paneli) olmayan sayfalar (ör. /login/,
   /forgot-password/ — bkz. authentication/views.py `hide_showcase`):
   grid tek sütuna düşer ve form ortalanır. */
.identity-shell--centered { grid-template-columns: minmax(0, 1fr); width: min(520px, calc(100% - 48px)); }

/* Hesap sayfası gibi zengin/iki-sütunlu içerik için — showcase yok ama
   dar (520px) form genişliği yerine bir dashboard panosu kadar geniş. */
.identity-shell--centered.identity-shell--centered-wide { width: min(1040px, calc(100% - 48px)); }

.identity-showcase { position: relative; max-width: 620px; color: var(--identity-ink); }

.identity-showcase::before {
    position: absolute;
    z-index: -1;
    content: "";
    width: 360px;
    aspect-ratio: 1;
    top: -92px;
    left: -116px;
    border: 1px solid rgba(230, 149, 0, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 58px rgba(230, 149, 0, 0.025);
}

.identity-eyebrow {
    display: inline-flex;
    margin: 0 0 22px;
    align-items: center;
    gap: 10px;
    color: var(--identity-brand-dark);
    font-size: 0.78rem;
    font-weight: 780;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.identity-eyebrow::before {
    width: 28px;
    height: 2px;
    content: "";
    background: currentColor;
    border-radius: 999px;
}

.identity-showcase-title {
    max-width: 600px;
    margin: 0;
    color: var(--identity-ink-strong);
    font-size: clamp(2.8rem, 5vw, 4.9rem);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 0.99;
    text-wrap: balance;
}

.identity-showcase-title span { color: var(--identity-brand); }

.identity-showcase-copy {
    max-width: 540px;
    margin: 26px 0 0;
    color: var(--identity-muted);
    font-size: 1.03rem;
    line-height: 1.75;
}

.identity-benefits {
    display: grid;
    margin: 36px 0 0;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
}

.identity-benefit {
    min-height: 104px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(20, 32, 51, 0.085);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(20, 32, 51, 0.045);
}

.identity-benefit-icon {
    display: grid;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    place-items: center;
    color: var(--identity-brand-bright);
    background: rgba(230, 149, 0, 0.12);
    border: 1px solid rgba(255, 178, 26, 0.18);
    border-radius: 9px;
}

.identity-benefit-icon svg { width: 15px; height: 15px; }
.identity-benefit strong, .identity-benefit span { display: block; }
.identity-benefit strong { color: var(--identity-ink); font-size: 0.8rem; font-weight: 720; }
.identity-benefit span { margin-top: 3px; color: #778397; font-size: 0.72rem; }
.identity-panel { width: 100%; }

.identity-card {
    position: relative;
    width: 100%;
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
    background: var(--identity-surface);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--identity-radius-lg);
    box-shadow: var(--identity-shadow);
    -webkit-backdrop-filter: blur(24px) saturate(125%);
    backdrop-filter: blur(24px) saturate(125%);
    animation: identity-card-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.identity-card::before {
    position: absolute;
    content: "";
    width: 160px;
    height: 5px;
    top: 0;
    left: 44px;
    background: linear-gradient(90deg, var(--identity-brand), var(--identity-brand-bright));
    border-radius: 0 0 999px 999px;
    box-shadow: 0 5px 24px rgba(230, 149, 0, 0.3);
}

.identity-card::after {
    position: absolute;
    z-index: -1;
    content: "";
    width: 260px;
    aspect-ratio: 1;
    top: -150px;
    right: -120px;
    background: radial-gradient(circle, rgba(230, 149, 0, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.identity-card--wide { padding: clamp(28px, 4vw, 40px); }
.identity-card-header { margin-bottom: 26px; }
.identity-card-header--center { text-align: center; }

.identity-card-kicker {
    display: inline-flex;
    margin: 0 0 14px;
    align-items: center;
    gap: 8px;
    color: var(--identity-brand-dark);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.identity-card-kicker svg { width: 16px; height: 16px; }

.identity-heading {
    margin: 0;
    color: var(--identity-ink-strong);
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    font-weight: 760;
    letter-spacing: -0.035em;
    line-height: 1.13;
    text-wrap: balance;
}

.identity-subheading {
    margin: 11px 0 0;
    color: var(--identity-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    text-wrap: pretty;
}

.identity-subheading strong { color: var(--identity-ink); font-weight: 720; }
.identity-form { display: flex; flex-direction: column; gap: 19px; }
.identity-field { display: flex; flex-direction: column; gap: 8px; }
.identity-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }

.identity-image-fields { display: flex; flex-direction: column; gap: 12px; }

.identity-cover-field {
    position: relative;
    display: flex;
    height: 128px;
    padding: 14px;
    align-items: flex-end;
    justify-content: flex-end;
    background: linear-gradient(135deg, var(--identity-brand-soft), var(--identity-surface-muted));
    border: 1px solid #e7ebf0;
    border-radius: 16px;
}

.identity-cover-field > .identity-file-badge--cover { position: relative; }

/* Kapak fotoğrafı KENDİ kırpma katmanında — .identity-cover-field'ın
   üzerinde overflow:hidden OLMAMALI, çünkü profil fotoğrafı (bkz.
   .identity-avatar-field, `bottom: -22px` ile kasıtlı olarak kutunun
   dışına taşıyor) o durumda kesilir/kaybolur. Bunun yerine kapak
   görseli ayrı bir, kendi border-radius'una sahip, overflow:hidden
   sarmalayıcı içine konur — profil fotoğrafından TAMAMEN bağımsız. */
.identity-cover-field-image-wrap,
.identity-account-cover-image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

/* Kapak fotoğrafı <img> olarak render edilir, inline style="background-
   image:..." OLARAK DEĞİL — sayfanın CSP'si (style-src 'self', unsafe-
   inline yok) inline style attribute'larını sessizce bloklar; bir <img>
   src'i bu kısıtlamaya tabi değildir. */
.identity-cover-field-image,
.identity-account-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.identity-avatar-field {
    position: absolute;
    z-index: 1;
    left: 18px;
    bottom: -22px;
}

.identity-avatar-field-preview {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--identity-brand-bright), var(--identity-brand-dark));
    border: 3px solid var(--identity-surface);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(230, 149, 0, 0.2);
    font-weight: 820;
    font-size: 1.2rem;
    text-transform: uppercase;
    object-fit: cover;
}

.identity-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: var(--identity-ink);
    background: var(--identity-surface);
    border: 1px solid #e7ebf0;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(20, 32, 51, 0.1);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
}

.identity-avatar-field .identity-file-badge {
    position: absolute;
    right: -6px;
    bottom: -6px;
    padding: 6px;
    border-radius: 999px;
}

.identity-file-badge svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* Gerçek <input type=file> — sadece identity-file-badge rozetlerinin
   `<label for=...>` bağlantısıyla native olarak tetiklenir, kullanıcıya
   ayrıca "Choose File" satırı olarak GÖSTERİLMEZ. display:none KULLANMAZ
   (bazı tarayıcılarda label-tetiklemesini bozabilir) — standart
   erişilebilir "visually hidden" tekniği. */
.identity-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.identity-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.identity-field label {
    color: var(--identity-ink);
    font-size: 0.82rem;
    font-weight: 730;
    letter-spacing: 0.01em;
}

.identity-control { position: relative; }

.identity-control > svg {
    position: absolute;
    z-index: 1;
    width: 19px;
    height: 19px;
    top: 50%;
    left: 16px;
    color: #8a96a8;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 160ms ease;
}

.identity-control:focus-within > svg { color: var(--identity-brand-dark); }

.identity-input {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px 13px 46px;
    color: var(--identity-ink-strong);
    background: var(--identity-surface-muted);
    border: 1px solid var(--identity-line);
    border-radius: var(--identity-radius-sm);
    font-size: 0.93rem;
    font-weight: 550;
    outline: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.identity-control--password .identity-input { padding-right: 48px; }
.identity-input::placeholder { color: #9aa4b3; }
.identity-input:hover { background: #fff; border-color: #c5ceda; }

.identity-input:focus {
    background: #fff;
    border-color: var(--identity-brand);
    box-shadow: 0 0 0 4px rgba(230, 149, 0, 0.13);
}

.identity-input:-webkit-autofill,
.identity-input:-webkit-autofill:hover,
.identity-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--identity-ink-strong);
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    caret-color: var(--identity-ink-strong);
}

.identity-password-toggle {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    top: 7px;
    right: 7px;
    padding: 0;
    place-items: center;
    color: #7a8799;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.identity-password-toggle:hover,
.identity-password-toggle:focus-visible { color: var(--identity-ink); background: #edf0f4; outline: none; }
.identity-password-toggle svg { width: 18px; height: 18px; }
.identity-password-toggle .identity-eye-off,
.identity-password-toggle.is-visible .identity-eye-on { display: none; }
.identity-password-toggle.is-visible .identity-eye-off { display: block; }
.identity-help-text { color: var(--identity-muted); font-size: 0.75rem; line-height: 1.5; }

.identity-field-errors {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 5px;
    list-style: none;
}

.identity-field-error {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--identity-danger);
    font-size: 0.76rem;
    font-weight: 620;
    line-height: 1.45;
}

.identity-field-error::before {
    width: 5px;
    height: 5px;
    margin-top: 0.48em;
    flex: 0 0 auto;
    content: "";
    background: currentColor;
    border-radius: 50%;
}

.identity-password-rules {
    padding: 13px 15px;
    color: var(--identity-muted);
    background: #f7f8fa;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    font-size: 0.73rem;
    line-height: 1.5;
}

.identity-password-rules p { margin: 0; }
.identity-password-rules ul { display: grid; margin: 0; padding-left: 18px; gap: 3px; }

.identity-button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--identity-brand) 0%, #d78700 100%);
    border: 1px solid rgba(124, 73, 0, 0.14);
    border-radius: var(--identity-radius-sm);
    box-shadow: 0 10px 24px rgba(230, 149, 0, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    font-size: 0.9rem;
    font-weight: 760;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.identity-button:hover {
    box-shadow: 0 14px 30px rgba(230, 149, 0, 0.31), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    filter: saturate(1.08);
    transform: translateY(-2px);
}

.identity-button:active { transform: translateY(0); }

.identity-button:focus-visible,
.identity-link:focus-visible,
.identity-brand:focus-visible { outline: 3px solid rgba(255, 178, 26, 0.4); outline-offset: 3px; }
.identity-button svg { width: 18px; height: 18px; flex: 0 0 auto; }

.identity-button--secondary {
    color: var(--identity-ink);
    background: #fff;
    border-color: var(--identity-line);
    box-shadow: 0 5px 14px rgba(20, 32, 51, 0.055);
}

.identity-button--secondary:hover { background: var(--identity-surface-muted); box-shadow: 0 8px 18px rgba(20, 32, 51, 0.08); }

.identity-button--danger-ghost {
    color: var(--identity-danger);
    background: transparent;
    border-color: #f0d2d0;
    box-shadow: none;
}

.identity-button--danger-ghost:hover { background: var(--identity-danger-soft); box-shadow: none; }
.identity-button--compact { min-height: 46px; }
.identity-button-stack { display: flex; flex-direction: column; gap: 10px; }

.identity-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--identity-brand-dark);
    font-size: 0.79rem;
    font-weight: 740;
    text-underline-offset: 3px;
    text-decoration-color: transparent;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.identity-link:hover { color: #8f5600; text-decoration-color: currentColor; }
.identity-link svg { width: 15px; height: 15px; }

.identity-links-row {
    display: flex;
    margin-top: 22px;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.identity-alert,
.identity-message {
    display: flex;
    padding: 12px 14px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
}

.identity-alert { margin-bottom: 20px; }
.identity-alert svg, .identity-message svg { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }

.identity-alert--error,
.identity-message--error { color: var(--identity-danger); background: var(--identity-danger-soft); border-color: #f3cecb; }

.identity-alert--success,
.identity-message--success { color: var(--identity-success); background: var(--identity-success-soft); border-color: #bee9d7; }

.identity-message--warning,
.identity-message--info { color: #8b5a05; background: var(--identity-brand-soft); border-color: #f0d8a9; }

.identity-alert--warning,
.identity-alert--info { color: #8b5a05; background: var(--identity-brand-soft); border-color: #f0d8a9; }

.identity-messages {
    display: flex;
    margin: 0 0 22px;
    padding: 0;
    flex-direction: column;
    gap: 9px;
    list-style: none;
}

.identity-divider { height: 1px; margin: 24px 0; background: var(--identity-line); border: 0; }

.identity-trust-note {
    display: flex;
    margin-top: 22px;
    padding-top: 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #778397;
    border-top: 1px solid #e7ebf0;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.015em;
    text-align: center;
}

.identity-trust-note svg { width: 14px; height: 14px; color: var(--identity-success); }

.identity-status-icon {
    position: relative;
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    place-items: center;
    border: 1px solid;
    border-radius: 22px;
    animation: identity-status-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.identity-status-icon::before {
    position: absolute;
    content: "";
    inset: -20px;
    background: radial-gradient(circle, currentColor 0%, transparent 68%);
    opacity: 0.14;
    border-radius: 50%;
    pointer-events: none;
}

.identity-status-icon::after {
    position: absolute;
    content: "";
    inset: 9px;
    border: 1px solid currentColor;
    border-radius: 16px;
    opacity: 0.18;
}

.identity-status-icon svg { width: 32px; height: 32px; }
.identity-status-icon--success { color: var(--identity-success); background: var(--identity-success-soft); border-color: #c3eadb; }
.identity-status-icon--error { color: var(--identity-danger); background: var(--identity-danger-soft); border-color: #f0cbc8; }
.identity-status-icon--brand { color: var(--identity-brand-dark); background: var(--identity-brand-soft); border-color: #efd39e; }

@keyframes identity-status-in {
    from { opacity: 0; transform: scale(0.78) rotate(-6deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.identity-step { display: flex; margin-bottom: 20px; align-items: center; gap: 10px; }
.identity-step-dots { display: flex; gap: 5px; }
.identity-step-dot { width: 20px; height: 4px; background: #e0e5ec; border-radius: 999px; }
.identity-step-dot.is-active, .identity-step-dot.is-complete { background: var(--identity-brand); }
.identity-step-label { color: var(--identity-muted); font-size: 0.7rem; font-weight: 720; }
.identity-guidance { display: grid; margin: 22px 0; padding: 0; gap: 14px; list-style: none; }

.identity-guidance-item {
    position: relative;
    display: flex;
    padding: 14px 16px;
    align-items: flex-start;
    gap: 14px;
    color: var(--identity-muted);
    background: var(--identity-surface-muted);
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    font-size: 0.8rem;
    line-height: 1.55;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.identity-guidance-item:hover {
    border-color: rgba(230, 149, 0, 0.28);
    box-shadow: 0 10px 24px rgba(20, 32, 51, 0.06);
    transform: translateY(-1px);
}

.identity-guidance-item:not(:last-child)::after {
    position: absolute;
    content: "";
    width: 1px;
    top: 100%;
    left: 31px;
    height: 14px;
    background: linear-gradient(var(--identity-brand-bright), transparent);
    opacity: 0.5;
}

.identity-guidance-number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--identity-brand-bright), var(--identity-brand-dark));
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(230, 149, 0, 0.28);
    font-size: 0.74rem;
    font-weight: 820;
}

.identity-account-cover {
    position: relative;
    margin-bottom: 26px;
    padding: 22px;
    background: linear-gradient(135deg, var(--identity-brand-soft), var(--identity-surface-muted));
    border: 1px solid #e7ebf0;
    border-radius: 20px;
}

.identity-account-cover > *:not(.identity-account-cover-image-wrap) { position: relative; }

.identity-account-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.identity-account-hero-actions { display: flex; flex-wrap: wrap; margin-top: 18px; gap: 10px; }
.identity-account-hero-actions .identity-button { width: auto; min-height: 42px; padding: 10px 18px; font-size: 0.82rem; }

.identity-avatar,
.identity-app-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--identity-brand-bright), var(--identity-brand-dark));
    border: 4px solid var(--identity-brand-soft);
    box-shadow: 0 8px 20px rgba(230, 149, 0, 0.2);
    font-weight: 820;
    text-transform: uppercase;
}

.identity-avatar { width: 62px; height: 62px; border-radius: 20px; font-size: 1.12rem; letter-spacing: 0.03em; }
.identity-avatar--image { border-color: var(--identity-surface); object-fit: cover; }
.identity-account-title { min-width: 0; }

.identity-account-badges { display: flex; flex-wrap: wrap; margin-top: 8px; gap: 8px; }

.identity-badge {
    display: inline-flex;
    padding: 4px 10px;
    align-items: center;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 720;
    letter-spacing: 0.02em;
}

.identity-badge--success { color: var(--identity-success); background: var(--identity-success-soft); }
.identity-badge--danger { color: var(--identity-danger); background: var(--identity-danger-soft); }
.identity-badge--brand { color: var(--identity-brand-dark); background: var(--identity-brand-soft); }

.identity-account-title .identity-heading {
    overflow: hidden;
    font-size: 1.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.identity-account-status {
    display: inline-flex;
    margin-top: 5px;
    align-items: center;
    gap: 7px;
    color: var(--identity-success);
    font-size: 0.74rem;
    font-weight: 710;
}

.identity-account-status::before {
    width: 7px;
    height: 7px;
    content: "";
    background: #18a776;
    border: 2px solid #c8f1e3;
    border-radius: 50%;
    box-sizing: content-box;
}

.identity-account-status--danger { color: var(--identity-danger); }
.identity-account-status--danger::before { background: var(--identity-danger); border-color: var(--identity-danger-soft); }

.identity-activity-list { display: flex; flex-direction: column; margin: 0; padding: 0; gap: 4px; list-style: none; }

.identity-activity-list li {
    display: flex;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--identity-surface);
    border: 1px solid #e7ebf0;
    border-radius: 12px;
}

.identity-activity-type { color: var(--identity-ink); font-size: 0.82rem; font-weight: 700; }
.identity-activity-meta { flex: 0 0 auto; color: var(--identity-muted); font-size: 0.72rem; white-space: nowrap; }

.identity-account-grid { display: grid; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.identity-account-field {
    min-width: 0;
    padding: 14px;
    background: var(--identity-surface-muted);
    border: 1px solid #e7ebf0;
    border-radius: 13px;
}

.identity-account-field--wide { grid-column: 1 / -1; }

.identity-account-field dt {
    display: flex;
    margin-bottom: 6px;
    align-items: center;
    gap: 7px;
    color: var(--identity-muted);
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.identity-account-field dt svg { width: 14px; height: 14px; color: var(--identity-brand-dark); }

.identity-account-field dd {
    margin: 0;
    overflow: hidden;
    color: var(--identity-ink);
    font-size: 0.86rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.identity-account-actions { display: grid; margin-top: 24px; gap: 10px; }
.identity-account-actions form { margin: 0; }

/* Hesap sayfası: sol "Kişisel Bilgiler", sağ (daha büyük kartlarla)
   "Erişebildiğiniz Ürünler" — iki panelli dashboard düzeni. */
.identity-account-layout {
    display: grid;
    margin-top: 24px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.identity-account-panel {
    padding: 20px;
    background: var(--identity-surface-muted);
    border: 1px solid #e7ebf0;
    border-radius: 16px;
}

.identity-account-panel-heading {
    margin: 0 0 14px;
    color: var(--identity-muted);
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.identity-account-panel .identity-account-field { background: var(--identity-surface); }

.identity-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.identity-product-grid--stacked { grid-template-columns: minmax(0, 1fr); gap: 12px; }

.identity-product-card {
    display: flex;
    min-width: 0;
    padding: 14px;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-align: left;
    text-decoration: none;
    background: var(--identity-surface);
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.identity-product-card--large { padding: 18px; gap: 16px; border-radius: 16px; }

a.identity-product-card:hover, a.identity-product-card:focus-visible {
    border-color: var(--identity-brand-bright);
    box-shadow: 0 10px 24px rgba(20, 32, 51, 0.08);
    transform: translateY(-2px);
}

.identity-product-card--disabled { cursor: default; opacity: 0.65; }

.identity-product-card-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--identity-brand-bright), var(--identity-brand-dark));
    border-radius: 11px;
    font-size: 0.85rem;
    font-weight: 820;
    text-transform: uppercase;
}

.identity-product-card--large .identity-product-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 1.1rem;
}

.identity-product-card-body { min-width: 0; }
.identity-product-card-body strong {
    display: block;
    overflow: hidden;
    color: var(--identity-ink);
    font-size: 0.85rem;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.identity-product-card-body span { display: block; margin-top: 2px; color: var(--identity-muted); font-size: 0.72rem; }

.identity-product-card--large .identity-product-card-body strong { font-size: 1rem; white-space: normal; }
.identity-product-card--large .identity-product-card-body span { margin-top: 4px; font-size: 0.78rem; }

.identity-account-panel-empty {
    padding: 20px;
    color: var(--identity-muted);
    text-align: center;
    background: var(--identity-surface);
    border: 1px dashed #d7dee8;
    border-radius: 14px;
    font-size: 0.82rem;
}

.identity-app-summary {
    display: flex;
    margin-bottom: 22px;
    padding: 16px;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--identity-surface-muted), #fff);
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(20, 32, 51, 0.04);
}

.identity-app-avatar { width: 46px; height: 46px; border-width: 3px; border-radius: 14px; font-size: 1rem; }
.identity-app-summary-copy { min-width: 0; }
.identity-app-summary-copy strong, .identity-app-summary-copy span { display: block; }

.identity-app-summary-copy strong {
    overflow: hidden;
    color: var(--identity-ink);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.identity-app-summary-copy span { margin-top: 2px; color: var(--identity-muted); font-size: 0.72rem; }

.identity-permissions {
    display: grid;
    margin: 0 0 24px;
    padding: 0;
    gap: 9px;
    list-style: none;
}

.identity-permission {
    display: flex;
    padding: 12px 14px;
    align-items: center;
    gap: 12px;
    color: var(--identity-ink);
    background: #fff;
    border: 1px solid var(--identity-line);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(20, 32, 51, 0.03);
    font-size: 0.79rem;
    font-weight: 620;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.identity-permission:hover {
    border-color: rgba(8, 122, 85, 0.28);
    box-shadow: 0 8px 20px rgba(20, 32, 51, 0.06);
    transform: translateY(-1px);
}

.identity-permission svg { width: 17px; height: 17px; margin-top: 1px; flex: 0 0 auto; color: var(--identity-success); }

.identity-permission-icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--identity-success);
    background: var(--identity-success-soft);
    border-radius: 50%;
}

.identity-permission-icon svg { width: 14px; height: 14px; margin-top: 0; color: inherit; }
.identity-form-actions { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 10px; }

.identity-footer {
    display: flex;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #7b8798;
    font-size: 0.7rem;
    font-weight: 570;
}

.identity-footer-dot { width: 3px; height: 3px; background: #b6bfcb; border-radius: 50%; }

@keyframes identity-card-in {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
    .identity-shell { width: min(560px, calc(100% - 36px)); grid-template-columns: 1fr; padding-top: 24px; }
    .identity-showcase { display: none; }
    .identity-topbar { width: min(560px, calc(100% - 36px)); }
    .identity-account-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .identity-topbar { min-height: 76px; }
    .identity-security-badge { width: 38px; height: 38px; padding: 0; justify-content: center; }

    .identity-security-badge span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .identity-shell { width: min(calc(100% - 24px), 520px); padding: 14px 0 28px; }
    .identity-card { padding: 28px 22px; border-radius: 22px; }
    .identity-card::before { width: 112px; left: 28px; }
    .identity-heading { font-size: 1.72rem; }
    .identity-account-grid, .identity-form-actions, .identity-field-row { grid-template-columns: 1fr; }
    .identity-account-field--wide { grid-column: auto; }
    .identity-footer { flex-wrap: wrap; }
}

@media (max-width: 380px) {
    .identity-brand-divider, .identity-brand-name { display: none; }
    .identity-card { padding-inline: 18px; }
    .identity-account-hero { align-items: flex-start; }
}

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

@media (forced-colors: active) {
    .identity-card, .identity-benefit, .identity-security-badge { border: 1px solid CanvasText; }
    .identity-card::before, .identity-backdrop::before, .identity-backdrop::after, .identity-glow { display: none; }
}


/* ===========================================================================
   PROFILE PAGE — Tam ekran hesap dashboard'u
   identity-profile-* namespace ile mevcut identity-account-* sınıflarından
   tamamen bağımsız.
   =========================================================================== */

.identity-profile {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
}

/* ── Toast / Messages ─────────────────────────────────────────── */

.identity-profile-toast-area {
    position: fixed;
    z-index: 50;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 48px);
    animation: ipToastIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.identity-profile-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: var(--identity-surface);
    border: 1px solid var(--identity-line);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(20, 32, 51, 0.15);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.5;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.identity-profile-toast svg { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
.identity-profile-toast--success { color: var(--identity-success); border-color: #bee9d7; }
.identity-profile-toast--error { color: var(--identity-danger); border-color: #f3cecb; }
.identity-profile-toast--warning,
.identity-profile-toast--info { color: #8b5a05; border-color: #f0d8a9; }

@keyframes ipToastIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Hero Banner ──────────────────────────────────────────────── */

.identity-profile-hero {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 60%, #0a0e14 100%);
}

.identity-profile-hero::before {
    position: absolute;
    content: "";
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(230, 149, 0, 0.18), transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 178, 26, 0.1), transparent 50%);
    pointer-events: none;
}

.identity-profile-hero::after {
    position: absolute;
    content: "";
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 60%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 60%, transparent);
    pointer-events: none;
}

.identity-profile-hero-cover {
    position: absolute;
    inset: 0;
}

.identity-profile-hero-cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ipHeroCoverIn 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.identity-profile-hero-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(10, 14, 20, 0.92) 0%,
        rgba(10, 14, 20, 0.6) 40%,
        rgba(10, 14, 20, 0.35) 100%);
}

@keyframes ipHeroCoverIn {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1); }
}

.identity-profile-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 36px;
    animation: ipHeroContentIn 600ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.identity-profile-hero-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.identity-profile-avatar {
    display: grid;
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--identity-brand-bright), var(--identity-brand-dark));
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    font-weight: 820;
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.identity-profile-avatar--image {
    object-fit: cover;
    border-color: rgba(255, 255, 255, 0.25);
}

.identity-profile-hero-meta { min-width: 0; }

.identity-profile-name {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 760;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.identity-profile-title {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    font-weight: 500;
}

.identity-profile-badges {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 8px;
}

.identity-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 720;
    letter-spacing: 0.02em;
}

.identity-profile-badge--success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.identity-profile-badge--danger {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.identity-profile-badge--brand {
    color: var(--identity-brand-bright);
    background: rgba(230, 149, 0, 0.12);
    border: 1px solid rgba(230, 149, 0, 0.2);
}

.identity-profile-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: ipPulse 2s ease-in-out infinite;
}

@keyframes ipPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.identity-profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── Buttons ──────────────────────────────────────────────────── */

.identity-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.identity-profile-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

.identity-profile-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--identity-brand) 0%, #d78700 100%);
    box-shadow: 0 8px 24px rgba(230, 149, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.identity-profile-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(230, 149, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.identity-profile-btn--glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.identity-profile-btn--glass:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.identity-profile-btn--compact {
    padding: 8px 16px;
    color: var(--identity-ink);
    background: var(--identity-surface);
    border: 1px solid var(--identity-line);
    font-size: 0.8rem;
}

.identity-profile-btn--compact:hover {
    background: var(--identity-surface-muted);
    border-color: var(--identity-brand);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 32, 51, 0.08);
}

.identity-profile-btn--danger {
    width: 100%;
    margin-top: 8px;
    padding: 10px 18px;
    color: var(--identity-danger);
    background: transparent;
    border: 1px solid #f0d2d0;
}

.identity-profile-btn--danger:hover {
    background: var(--identity-danger-soft);
    transform: translateY(-1px);
}

/* ── Container / Tabs ─────────────────────────────────────────── */

.identity-profile-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 56px;
    flex: 1;
}

.identity-profile-tabs {
    position: relative;
    display: flex;
    gap: 4px;
    margin: 28px 0 32px;
    padding: 4px;
    background: var(--identity-surface);
    border: 1px solid var(--identity-line);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(20, 32, 51, 0.04);
    width: fit-content;
}

.identity-profile-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--identity-muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 680;
    cursor: pointer;
    transition: color 200ms ease;
}

.identity-profile-tab svg { width: 17px; height: 17px; }
.identity-profile-tab:hover { color: var(--identity-ink); }

.identity-profile-tab.is-active {
    color: var(--identity-ink-strong);
}

.identity-profile-tab-indicator {
    position: absolute;
    z-index: 0;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: var(--identity-surface-muted);
    border: 1px solid rgba(20, 32, 51, 0.06);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(20, 32, 51, 0.06);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Tab Panels ───────────────────────────────────────────────── */

.identity-profile-tabpanel {
    animation: ipPanelIn 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.identity-profile-tabpanel[hidden] { display: none; }

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

/* ── Content Grid ─────────────────────────────────────────────── */

.identity-profile-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
}

/* ── Sections ─────────────────────────────────────────────────── */

.identity-profile-section {
    padding: 24px;
    background: var(--identity-surface);
    border: 1px solid var(--identity-line);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(20, 32, 51, 0.04);
    transition: box-shadow 200ms ease;
}

.identity-profile-section:hover {
    box-shadow: 0 8px 28px rgba(20, 32, 51, 0.07);
}

.identity-profile-section--products {
    margin-top: 20px;
    grid-column: 1 / -1;
}

.identity-profile-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.identity-profile-section-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--identity-brand-dark);
    background: var(--identity-brand-soft);
    border: 1px solid rgba(230, 149, 0, 0.15);
    border-radius: 12px;
}

.identity-profile-section-icon svg { width: 18px; height: 18px; }

.identity-profile-section-icon--brand {
    color: var(--identity-success);
    background: var(--identity-success-soft);
    border-color: rgba(8, 122, 85, 0.15);
}

.identity-profile-section-icon--accent {
    color: #6366f1;
    background: #eef2ff;
    border-color: rgba(99, 102, 241, 0.15);
}

.identity-profile-section-title {
    margin: 0;
    color: var(--identity-ink-strong);
    font-size: 1.05rem;
    font-weight: 740;
    letter-spacing: -0.01em;
}

/* ── Personal Info Fields ─────────────────────────────────────── */

.identity-profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.identity-profile-field {
    padding: 14px 16px;
    background: var(--identity-surface-muted);
    border: 1px solid transparent;
    border-radius: 14px;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.identity-profile-field:hover {
    border-color: var(--identity-line);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 32, 51, 0.04);
}

.identity-profile-field--wide { grid-column: 1 / -1; }

.identity-profile-field-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: var(--identity-muted);
    font-size: 0.7rem;
    font-weight: 740;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.identity-profile-field-label svg {
    width: 14px;
    height: 14px;
    color: var(--identity-brand-dark);
    transition: color 200ms ease;
}

.identity-profile-field:hover .identity-profile-field-label svg {
    color: var(--identity-brand-bright);
}

.identity-profile-field-value {
    display: block;
    overflow: hidden;
    color: var(--identity-ink);
    font-size: 0.9rem;
    font-weight: 640;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Account Info (right column) ──────────────────────────────── */

.identity-profile-account-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
    padding: 4px;
    background: var(--identity-surface-muted);
    border-radius: 14px;
}

.identity-profile-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background 160ms ease;
}

.identity-profile-account-row:hover { background: var(--identity-surface); }

.identity-profile-account-label {
    color: var(--identity-muted);
    font-size: 0.8rem;
    font-weight: 640;
}

.identity-profile-account-value {
    color: var(--identity-ink);
    font-size: 0.84rem;
    font-weight: 680;
}

.identity-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.identity-profile-status--active { color: var(--identity-success); }
.identity-profile-status--inactive { color: var(--identity-danger); }

.identity-profile-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px currentColor;
    opacity: 0.2;
    box-sizing: content-box;
    animation: ipStatusPulse 2s ease-in-out infinite;
}

.identity-profile-status--active .identity-profile-status-dot {
    background: #18a776;
    box-shadow: 0 0 0 3px rgba(24, 167, 118, 0.2);
    opacity: 1;
}

.identity-profile-status--inactive .identity-profile-status-dot {
    background: var(--identity-danger);
    box-shadow: 0 0 0 3px rgba(197, 59, 55, 0.2);
    opacity: 1;
}

@keyframes ipStatusPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(24, 167, 118, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(24, 167, 118, 0.08); }
}

/* ── Quick Links ──────────────────────────────────────────────── */

.identity-profile-quick-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.identity-profile-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--identity-ink);
    text-decoration: none;
    background: var(--identity-surface-muted);
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 650;
    transition: all 180ms ease;
}

.identity-profile-quick-link:hover {
    background: var(--identity-surface);
    border-color: var(--identity-line);
    transform: translateX(4px);
}

.identity-profile-quick-link svg:first-child {
    width: 18px;
    height: 18px;
    color: var(--identity-muted);
    flex: 0 0 auto;
}

.identity-profile-quick-link span { flex: 1; }

.identity-profile-quick-link-arrow {
    width: 16px;
    height: 16px;
    color: var(--identity-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.identity-profile-quick-link:hover .identity-profile-quick-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Product Count Badge ──────────────────────────────────────── */

.identity-profile-product-count {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: #6366f1;
    background: #eef2ff;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
}

/* ── Product Cards ────────────────────────────────────────────── */

.identity-profile-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.identity-profile-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    color: inherit;
    text-decoration: none;
    background: var(--identity-surface-muted);
    border: 1px solid transparent;
    border-radius: 16px;
    transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
    animation: ipProductIn 500ms calc(var(--i, 0) * 60ms + 200ms) cubic-bezier(0.22, 1, 0.36, 1) both;
}

a.identity-profile-product:hover {
    background: var(--identity-surface);
    border-color: var(--identity-brand-bright);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(230, 149, 0, 0.1), 0 4px 12px rgba(20, 32, 51, 0.06);
}

.identity-profile-product--disabled { cursor: default; opacity: 0.55; }

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

.identity-profile-product-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--identity-brand-bright), var(--identity-brand-dark));
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(230, 149, 0, 0.2);
    font-size: 1.1rem;
    font-weight: 820;
    text-transform: uppercase;
}

.identity-profile-product-body { min-width: 0; flex: 1; }

.identity-profile-product-body strong {
    display: block;
    overflow: hidden;
    color: var(--identity-ink);
    font-size: 0.92rem;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.identity-profile-product-body span {
    display: block;
    margin-top: 3px;
    color: var(--identity-muted);
    font-size: 0.76rem;
}

.identity-profile-product-go {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--identity-muted);
    background: var(--identity-surface);
    border-radius: 9px;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all 220ms ease;
}

.identity-profile-product-go svg { width: 16px; height: 16px; }

a.identity-profile-product:hover .identity-profile-product-go {
    opacity: 1;
    transform: translate(0, 0);
    color: var(--identity-brand-dark);
}

/* ── Empty State ──────────────────────────────────────────────── */

.identity-profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: var(--identity-muted);
    background: var(--identity-surface-muted);
    border: 1px dashed #d7dee8;
    border-radius: 16px;
    text-align: center;
}

.identity-profile-empty svg { width: 32px; height: 32px; opacity: 0.4; }
.identity-profile-empty p { margin: 0; font-size: 0.86rem; }

/* ── Security Tab ─────────────────────────────────────────────── */

.identity-profile-security-card {
    padding: 4px;
    background: var(--identity-surface-muted);
    border-radius: 14px;
    margin-bottom: 10px;
}

.identity-profile-security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
}

.identity-profile-security-row strong {
    display: block;
    color: var(--identity-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.identity-profile-security-row p {
    margin: 4px 0 0;
    color: var(--identity-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ── Activity List ────────────────────────────────────────────── */

.identity-profile-activity-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.identity-profile-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    background: var(--identity-surface-muted);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 160ms ease;
    animation: ipFieldIn 400ms calc(var(--i, 0) * 40ms + 100ms) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.identity-profile-activity-item:hover {
    background: var(--identity-surface);
    border-color: var(--identity-line);
}

.identity-profile-activity-type {
    color: var(--identity-ink);
    font-size: 0.84rem;
    font-weight: 680;
}

.identity-profile-activity-meta {
    flex: 0 0 auto;
    color: var(--identity-muted);
    font-size: 0.74rem;
    white-space: nowrap;
}

/* ── Staggered entrance animation ─────────────────────────────── */

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

.identity-profile-section[data-animate="section"] {
    animation: ipSectionIn 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.identity-profile-section--account { animation-delay: 80ms; }
.identity-profile-section--products { animation-delay: 160ms; }

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

/* ── Logout Form ──────────────────────────────────────────────── */

.identity-profile-logout-form { margin: 0; }

/* ── Footer ───────────────────────────────────────────────────── */

.identity-profile-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 20px;
    color: #7b8798;
    font-size: 0.72rem;
    font-weight: 570;
}

.identity-profile-footer-dot {
    width: 3px;
    height: 3px;
    background: #b6bfcb;
    border-radius: 50%;
}

/* ── Profile Page Responsive ──────────────────────────────────── */

@media (max-width: 980px) {
    .identity-profile-hero-inner { width: min(100%, calc(100% - 36px)); }
    .identity-profile-container { width: min(100%, calc(100% - 36px)); }
    .identity-profile-grid { grid-template-columns: 1fr; }
    .identity-profile-section--products { grid-column: auto; }
}

@media (max-width: 680px) {
    .identity-profile-hero { min-height: 240px; }
    .identity-profile-hero-inner { padding: 40px 0 28px; flex-direction: column; align-items: flex-start; }
    .identity-profile-hero-identity { flex-direction: column; align-items: flex-start; }
    .identity-profile-avatar { width: 72px; height: 72px; border-radius: 20px; font-size: 1.2rem; }
    .identity-profile-name { font-size: 1.45rem; }
    .identity-profile-hero-actions { width: 100%; }
    .identity-profile-hero-actions .identity-profile-btn { flex: 1; }
    .identity-profile-tabs { width: 100%; }
    .identity-profile-tab { flex: 1; justify-content: center; font-size: 0.8rem; padding: 10px 14px; }
    .identity-profile-fields { grid-template-columns: 1fr; }
    .identity-profile-field--wide { grid-column: auto; }
    .identity-profile-products { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .identity-profile-hero-inner { width: calc(100% - 24px); }
    .identity-profile-container { width: calc(100% - 24px); }
    .identity-profile-section { padding: 18px; border-radius: 16px; }
}

/* ============================================================================
   LIGHT MODE — Auth pages only (login, forgot-password, reset, authorize…)
   Scoped to body.qi--auth. Account shell (qi--app) keeps its own styles.
   ========================================================================== */

html:has(> body.qi.qi--auth) { background: #f8f7f4; }

body.qi.qi--auth {
    --qi-bg: #f8f7f4;
    --qi-bg-2: #f0eee9;
    --qi-surface: #ffffff;
    --qi-surface-2: #f5f4f1;
    --qi-surface-3: #edecea;
    --qi-line: rgba(0, 0, 0, 0.06);
    --qi-line-strong: rgba(0, 0, 0, 0.10);
    --qi-text: #1a1a2e;
    --qi-text-2: #5c5c6f;
    --qi-text-3: #8e8e9d;
    --qi-gold: #D4940A;
    --qi-gold-2: #E8A500;
    --qi-gold-deep: #B37A00;
    --qi-gold-ink: #ffffff;
    --qi-gold-glow: rgba(212, 148, 10, 0.12);
    --qi-success: #16a34a;
    --qi-success-bg: rgba(22, 163, 74, 0.08);
    --qi-danger: #dc2626;
    --qi-danger-bg: rgba(220, 38, 38, 0.06);
    --qi-info: #2563eb;
    --qi-info-bg: rgba(37, 99, 235, 0.06);
    --qi-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.03);
    --qi-ring: 0 0 0 3px rgba(212, 148, 10, 0.20);

    color-scheme: light;
    background: var(--qi-bg);
    color: var(--qi-text);
}

body.qi.qi--auth ::selection { background: rgba(212, 148, 10, 0.25); color: #1a1a2e; }

/* ── Ambient background (light) ─────────────────────────────────────────── */

body.qi.qi--auth .qi-bg__grid {
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 65%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 65%);
}

body.qi.qi--auth .qi-bg__glow {
    background: radial-gradient(circle, rgba(212, 148, 10, 0.07), transparent 60%);
    filter: blur(30px);
}

body.qi.qi--auth .qi-bg__art { display: none; }

/* ── Brand (light) ──────────────────────────────────────────────────────── */

body.qi.qi--auth .qi-brand { color: var(--qi-text); }
body.qi.qi--auth .qi-brand img { filter: none; }
body.qi.qi--auth .qi-brand__sep { background: var(--qi-line-strong); }
body.qi.qi--auth .qi-brand__name { color: var(--qi-text-3); }

body.qi.qi--auth .qi-emblem {
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--qi-line-strong), 0 8px 28px rgba(0, 0, 0, 0.08);
}
body.qi.qi--auth .qi-emblem::after { border-color: rgba(212, 148, 10, 0.25); }

/* ── Stage / showcase panel (light) ─────────────────────────────────────── */

body.qi.qi--auth .qi-stage {
    border-right-color: var(--qi-line);
    background:
        radial-gradient(ellipse at 20% 35%, rgba(212, 148, 10, 0.06), transparent 50%),
        linear-gradient(180deg, #f0eee9, #e8e6e1);
}

body.qi.qi--auth .qi-stage__art img {
    mix-blend-mode: normal;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.12));
    opacity: 0.82;
}

body.qi.qi--auth .qi-stage__copy h2 { color: var(--qi-text); }
body.qi.qi--auth .qi-stage__copy h2 em {
    background: linear-gradient(120deg, var(--qi-gold), #B37A00 45%, var(--qi-gold-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.qi.qi--auth .qi-stage__copy p { color: var(--qi-text-2); }

body.qi.qi--auth .qi-chip {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--qi-line-strong);
    color: var(--qi-text-2);
}
body.qi.qi--auth .qi-chip svg { color: var(--qi-gold); }

body.qi.qi--auth .qi-stage__facts li {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--qi-line);
}
body.qi.qi--auth .qi-stage__facts strong { color: var(--qi-text); }
body.qi.qi--auth .qi-stage__facts span { color: var(--qi-text-3); }

body.qi.qi--auth .qi-stage__foot { color: var(--qi-text-3); }

/* ── Kicker / headings (light) ──────────────────────────────────────────── */

body.qi.qi--auth .qi-kicker { color: var(--qi-gold); }
body.qi.qi--auth .qi-kicker::before { box-shadow: 0 0 8px currentColor; }
body.qi.qi--auth .qi-title { color: var(--qi-text); }
body.qi.qi--auth .qi-lead { color: var(--qi-text-2); }
body.qi.qi--auth .qi-lead strong { color: var(--qi-text); }

/* ── Card (light) ───────────────────────────────────────────────────────── */

body.qi.qi--auth .qi-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--qi-shadow);
}

body.qi.qi--auth .qi-card::before {
    background: linear-gradient(90deg, transparent, var(--qi-gold), transparent);
    opacity: 0.6;
}

/* ── Glyph (light) ──────────────────────────────────────────────────────── */

body.qi.qi--auth .qi-glyph {
    background: var(--qi-surface-2);
    border-color: var(--qi-line-strong);
    color: var(--qi-gold);
}
body.qi.qi--auth .qi-glyph svg { width: 28px; height: 28px; }
body.qi.qi--auth .qi-glyph--success { color: var(--qi-success); background: var(--qi-success-bg); border-color: rgba(22, 163, 74, 0.18); }
body.qi.qi--auth .qi-glyph--danger { color: var(--qi-danger); background: var(--qi-danger-bg); border-color: rgba(220, 38, 38, 0.18); }
body.qi.qi--auth .qi-glyph--brand { color: var(--qi-gold); background: rgba(212, 148, 10, 0.08); border-color: rgba(212, 148, 10, 0.18); box-shadow: none; }

/* ── Steps (light) ──────────────────────────────────────────────────────── */

body.qi.qi--auth .qi-step { color: var(--qi-text-3); }
body.qi.qi--auth .qi-step__dot { background: var(--qi-surface-2); border-color: var(--qi-line-strong); }
body.qi.qi--auth .qi-step + .qi-step::before { background: var(--qi-line-strong); }
body.qi.qi--auth .qi-step.is-current { color: var(--qi-text); }
body.qi.qi--auth .qi-step.is-current .qi-step__dot { background: var(--qi-gold); border-color: var(--qi-gold); color: #ffffff; box-shadow: 0 0 12px var(--qi-gold-glow); }
body.qi.qi--auth .qi-step.is-done .qi-step__dot { background: var(--qi-success-bg); border-color: rgba(22, 163, 74, 0.3); color: var(--qi-success); }
body.qi.qi--auth .qi-step.is-done + .qi-step::before { background: rgba(22, 163, 74, 0.3); }

/* ── Form inputs (light) ────────────────────────────────────────────────── */

body.qi.qi--auth .qi-field label { color: var(--qi-text); }
body.qi.qi--auth .qi-field__opt { color: var(--qi-text-3); }
body.qi.qi--auth .qi-field__hint { color: var(--qi-text-3); }

body.qi.qi--auth .qi-input__icon { color: var(--qi-text-3); }
body.qi.qi--auth .qi-input:focus-within .qi-input__icon { color: var(--qi-gold); }

body.qi.qi--auth .identity-input {
    background: var(--qi-surface-2);
    border: 1px solid rgba(0, 0, 0, 0.10);
    color: var(--qi-text);
}
body.qi.qi--auth .identity-input::placeholder { color: var(--qi-text-3); }
body.qi.qi--auth .identity-input:hover { border-color: rgba(0, 0, 0, 0.18); }
body.qi.qi--auth .identity-input:focus {
    outline: none;
    border-color: var(--qi-gold);
    box-shadow: var(--qi-ring);
    background: #ffffff;
}
body.qi.qi--auth .identity-input:-webkit-autofill,
body.qi.qi--auth .identity-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--qi-surface-2) inset;
    -webkit-text-fill-color: var(--qi-text);
    caret-color: var(--qi-text);
}

body.qi.qi--auth .qi-field.is-invalid .identity-input { border-color: rgba(220, 38, 38, 0.5); }
body.qi.qi--auth .qi-field.is-invalid .identity-input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }

/* Eye toggle */
body.qi.qi--auth .qi-eye { color: var(--qi-text-3); }
body.qi.qi--auth .qi-eye:hover { color: var(--qi-text); background: rgba(0, 0, 0, 0.04); }

/* Errors */
body.qi.qi--auth .qi-errors li { color: var(--qi-danger); }

/* Rules (password hints) */
body.qi.qi--auth .qi-rules { background: var(--qi-surface-2); border-color: var(--qi-line); }
body.qi.qi--auth .qi-rules ul { color: var(--qi-text-2); }
body.qi.qi--auth .qi-rules p { color: var(--qi-text-3); }

/* Links */
body.qi.qi--auth .qi-link { color: var(--qi-gold); }
body.qi.qi--auth .qi-link:hover { color: var(--qi-gold-deep); }
body.qi.qi--auth .qi-link--muted { color: var(--qi-text-2); }
body.qi.qi--auth .qi-link--muted:hover { color: var(--qi-text); }

/* ── Buttons (light) ────────────────────────────────────────────────────── */

body.qi.qi--auth .qi-btn--primary {
    background: linear-gradient(135deg, var(--qi-gold-2), var(--qi-gold) 55%, var(--qi-gold-deep));
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(212, 148, 10, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
body.qi.qi--auth .qi-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(212, 148, 10, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.qi.qi--auth .qi-btn--ghost {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.10);
    color: var(--qi-text);
}
body.qi.qi--auth .qi-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.16);
}

body.qi.qi--auth .qi-btn--danger {
    background: var(--qi-danger-bg);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--qi-danger);
}

/* ── Alerts (light) ─────────────────────────────────────────────────────── */

body.qi.qi--auth .qi-alert {
    background: var(--qi-surface-2);
    border-color: var(--qi-line);
    color: var(--qi-text-2);
}
body.qi.qi--auth .qi-alert strong { color: var(--qi-text); }
body.qi.qi--auth .qi-alert--error { background: rgba(220, 38, 38, 0.05); border-color: rgba(220, 38, 38, 0.14); color: #991b1b; }
body.qi.qi--auth .qi-alert--error svg { color: var(--qi-danger); }
body.qi.qi--auth .qi-alert--success { background: rgba(22, 163, 74, 0.06); border-color: rgba(22, 163, 74, 0.14); color: #166534; }
body.qi.qi--auth .qi-alert--success svg { color: var(--qi-success); }
body.qi.qi--auth .qi-alert--info { background: rgba(37, 99, 235, 0.05); border-color: rgba(37, 99, 235, 0.14); color: #1e40af; }
body.qi.qi--auth .qi-alert--info svg { color: var(--qi-info); }
body.qi.qi--auth .qi-alert--gold { background: rgba(212, 148, 10, 0.05); border-color: rgba(212, 148, 10, 0.14); color: #92400e; }
body.qi.qi--auth .qi-alert--gold svg { color: var(--qi-gold); }

/* ── Guide / Checks / Trust (light) ─────────────────────────────────────── */

body.qi.qi--auth .qi-guide li { background: var(--qi-surface-2); border-color: var(--qi-line); }
body.qi.qi--auth .qi-guide__n { background: rgba(212, 148, 10, 0.08); color: var(--qi-gold); }
body.qi.qi--auth .qi-guide strong { color: var(--qi-text); }
body.qi.qi--auth .qi-guide span span { color: var(--qi-text-3); }

body.qi.qi--auth .qi-checks li { color: var(--qi-text-2); }
body.qi.qi--auth .qi-checks svg { color: var(--qi-success); }

body.qi.qi--auth .qi-trust { color: var(--qi-text-3); }
body.qi.qi--auth .qi-trust svg { color: var(--qi-success); }

/* ── App summary (light) ────────────────────────────────────────────────── */

body.qi.qi--auth .qi-app-summary { background: var(--qi-surface-2); border-color: var(--qi-line); }
body.qi.qi--auth .qi-app-summary__avatar {
    background: linear-gradient(135deg, var(--qi-gold-2), var(--qi-gold-deep));
    color: #ffffff;
}
body.qi.qi--auth .qi-app-summary strong { color: var(--qi-text); }
body.qi.qi--auth .qi-app-summary span { color: var(--qi-text-3); }

/* ── Divider (light) ────────────────────────────────────────────────────── */

body.qi.qi--auth .qi-divider { color: var(--qi-text-3); }
body.qi.qi--auth .qi-divider::before,
body.qi.qi--auth .qi-divider::after { background: var(--qi-line); }

/* ── Footer (light) ─────────────────────────────────────────────────────── */

body.qi.qi--auth .qi-auth__foot { color: var(--qi-text-3); }
body.qi.qi--auth .qi-auth__foot i { background: var(--qi-text-3); }

/* ── Skip link (light) ──────────────────────────────────────────────────── */

body.qi.qi--auth .qi-skip { background: var(--qi-gold); color: #ffffff; }

/* ── Focus (light) ──────────────────────────────────────────────────────── */

body.qi.qi--auth :focus-visible { box-shadow: var(--qi-ring); }

