/* 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--wide { padding: clamp(28px, 4vw, 40px); }
.identity-card-header { margin-bottom: 26px; }

.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-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-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: 66px;
    height: 66px;
    margin-bottom: 22px;
    place-items: center;
    border: 1px solid;
    border-radius: 20px;
}

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

.identity-status-icon svg { z-index: 1; width: 29px; height: 29px; }
.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; }

.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; gap: 10px; }

.identity-guidance-item {
    display: flex;
    padding: 12px 14px;
    align-items: center;
    gap: 12px;
    color: var(--identity-muted);
    background: var(--identity-surface-muted);
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.identity-guidance-number {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--identity-brand-dark);
    background: var(--identity-brand-soft);
    border-radius: 8px;
    font-size: 0.7rem;
    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: 14px;
    align-items: center;
    gap: 13px;
    background: var(--identity-surface-muted);
    border: 1px solid #e6eaf0;
    border-radius: 14px;
}

.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: 11px 13px;
    align-items: flex-start;
    gap: 10px;
    color: var(--identity-ink);
    background: #fff;
    border: 1px solid var(--identity-line);
    border-radius: 11px;
    font-size: 0.78rem;
    font-weight: 610;
}

.identity-permission svg { width: 17px; height: 17px; margin-top: 1px; flex: 0 0 auto; color: var(--identity-success); }
.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; }
}
