:root {
    --account-navy: #111827;
    --account-navy-soft: #1f2937;
    --account-red: #dc2626;
    --account-red-dark: #b91c1c;
    --account-green: #15803d;
    --account-text: #111827;
    --account-muted: #64748b;
    --account-border: #e2e8f0;
    --account-surface: #ffffff;
    --account-background: #f4f6f8;
}

.account-manage-page {
    min-height: calc(100vh - 150px);
    padding: 48px 20px 64px;
    background:
        radial-gradient(circle at 8% 4%, rgba(220, 38, 38, .11), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, var(--account-background) 100%);
}

.account-manage-shell {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 26px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.account-sidebar {
    position: sticky;
    top: 22px;
    display: flex;
    flex-direction: column;
    align-self: start;
    min-height: 610px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, .045), transparent 35%),
        var(--account-navy);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.account-sidebar-accent {
    height: 5px;
    background: linear-gradient(90deg, #7f1d1d, #ef4444, #7f1d1d);
}

.account-sidebar-header {
    padding: 30px 24px 26px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 29px;
    font-weight: 900;
    background: linear-gradient(145deg, #ef4444, #991b1b);
    border: 4px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(220, 38, 38, .31);
}

.account-sidebar-title {
    font-size: 20px;
    font-weight: 850;
}

.account-sidebar-email {
    margin-top: 6px;
    overflow: hidden;
    color: #aeb8c7;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-sidebar-nav {
    padding: 18px 14px;
}

.account-sidebar .nav {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 10px 13px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.account-nav-icon {
    display: grid;
    flex: 0 0 26px;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #dbe3ee;
    font-size: 11px;
    font-weight: 900;
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
}

.account-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .075);
    transform: translateX(2px);
}

.account-sidebar .nav-link.active {
    color: #fff;
    background: rgba(220, 38, 38, .19);
    border-color: rgba(248, 113, 113, .2);
}

.account-sidebar .nav-link.active .account-nav-icon {
    color: #fff;
    background: var(--account-red);
}

.account-store-link {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: auto 14px 18px;
    padding: 13px 15px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    transition: background-color .2s ease, color .2s ease;
}

.account-store-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .11);
}

.account-main {
    min-width: 0;
    min-height: 610px;
    padding: 38px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .09);
}

.account-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--account-border);
}

.account-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--account-red);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.account-page-header h1,
.account-result-card h1 {
    margin: 0;
    color: var(--account-text);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.2;
}

.account-page-header p {
    max-width: 680px;
    margin: 9px 0 0;
    color: var(--account-muted);
    font-size: 15px;
    line-height: 1.65;
}

.account-header-badge,
.account-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 12px;
    color: #166534;
    font-size: 12px;
    font-weight: 800;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
}

.account-status-badge.is-warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

a.account-status-badge {
    text-decoration: none;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(260px, .72fr);
    gap: 20px;
}

.account-layout-single {
    max-width: 760px;
}

.account-card {
    padding: 26px;
    background: var(--account-surface);
    border: 1px solid var(--account-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}

.account-card + .account-card {
    margin-top: 18px;
}

.account-card h2 {
    margin: 0;
    color: var(--account-text);
    font-size: 19px;
    font-weight: 850;
}

.account-card-description {
    margin: 7px 0 22px;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.6;
}

.account-group {
    margin-bottom: 18px;
}

.account-group label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.account-input-wrap {
    position: relative;
}

.account-group input,
.account-main .form-control {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--account-text);
    font: inherit;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.account-group input:focus,
.account-main .form-control:focus {
    border-color: var(--account-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .1);
}

.account-group input:disabled,
.account-group input[readonly],
.account-main .form-control:disabled {
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.account-field-hint {
    display: block;
    margin-top: 7px;
    color: #7c8798;
    font-size: 12px;
    line-height: 1.45;
}

.account-btn,
.account-main .btn-primary,
.account-main .btn-danger,
.account-main .btn-secondary {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 11px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.account-btn:hover,
.account-main .btn-primary:hover {
    color: #fff;
    background: var(--account-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(220, 38, 38, .2);
}

.account-btn-primary,
.account-main .btn-primary {
    background: var(--account-red);
}

.account-btn-block {
    width: 100%;
}

.account-btn-secondary,
.account-main .btn-secondary {
    color: #334155;
    background: #eef2f6;
    border: 1px solid #dbe3ec;
}

.account-btn-secondary:hover,
.account-main .btn-secondary:hover {
    color: var(--account-text);
    background: #e2e8f0;
}

.account-btn-danger,
.account-main .btn-danger {
    background: #b91c1c;
}

.account-actions {
    display: grid;
    gap: 11px;
    margin-top: 20px;
}

.account-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: center;
    min-height: 58px;
    padding: 12px 14px;
    color: #334155;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid var(--account-border);
    border-radius: 11px;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.account-action strong {
    font-size: 14px;
    font-weight: 800;
}

.account-action small {
    grid-column: 1;
    color: var(--account-muted);
    font-size: 12px;
}

.account-action > span {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #94a3b8;
    font-size: 20px;
}

.account-action:hover {
    color: var(--account-red);
    border-color: #fecaca;
    transform: translateX(3px);
}

.account-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 22px;
    padding: 13px 15px;
    color: #166534;
    font-size: 14px;
    line-height: 1.55;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 11px;
}

.account-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.account-alert-info {
    color: #1e3a5f;
    background: #f0f7ff;
    border-color: #bfdbfe;
}

.account-alert-icon {
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: var(--account-green);
    border-radius: 50%;
}

.account-alert-error .account-alert-icon {
    background: var(--account-red);
}

.account-alert-info .account-alert-icon {
    background: #2563eb;
}

.account-validation,
.account-main .validation-summary-errors {
    margin-bottom: 18px;
    padding: 12px 14px;
    color: #991b1b;
    font-size: 13px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.account-validation.validation-summary-valid {
    display: none;
}

.account-validation ul,
.account-main .validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

.field-validation-error,
.text-danger {
    display: block;
    margin-top: 6px;
    color: #b91c1c !important;
    font-size: 12px;
    font-weight: 650;
}

.account-note {
    margin-top: 18px;
    padding: 15px 16px;
    color: #526071;
    font-size: 13px;
    line-height: 1.6;
    background: #f8fafc;
    border-left: 4px solid var(--account-red);
    border-radius: 9px;
}

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

.account-security-card {
    padding: 21px;
    background: #fff;
    border: 1px solid var(--account-border);
    border-radius: 14px;
}

.account-security-card h2 {
    margin: 0 0 8px;
    color: var(--account-text);
    font-size: 17px;
}

.account-security-card p {
    min-height: 65px;
    margin: 0 0 18px;
    color: var(--account-muted);
    font-size: 13px;
    line-height: 1.55;
}

.account-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-button-row-spaced {
    margin-top: 22px;
}

.account-code {
    padding: 16px 18px;
    overflow-wrap: anywhere;
    color: #7f1d1d;
    font-family: Consolas, "Courier New", monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
    background: #fff7f7;
    border: 1px dashed #fca5a5;
    border-radius: 10px;
    user-select: all;
}

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

.account-recovery-grid code {
    display: block;
    padding: 12px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    background: #f8fafc;
    border: 1px solid var(--account-border);
    border-radius: 9px;
    user-select: all;
}

.account-result-page {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 52px 18px;
    background:
        radial-gradient(circle at 12% 10%, rgba(220, 38, 38, .11), transparent 30%),
        linear-gradient(180deg, #f8fafc, #eef2f5);
}

.account-result-card {
    width: min(570px, 100%);
    overflow: hidden;
    padding: 0 42px 40px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--account-border);
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .14);
}

.account-result-accent {
    height: 6px;
    margin: 0 -42px 30px;
    background: linear-gradient(90deg, #7f1d1d, #ef4444, #7f1d1d);
}

.account-result-brand {
    margin-bottom: 23px;
    color: var(--account-text);
    font-size: 25px;
    font-weight: 950;
    letter-spacing: .09em;
}

.account-result-brand span {
    color: var(--account-red);
}

.account-result-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: 0 auto 23px;
    color: var(--account-green);
    font-size: 42px;
    font-weight: 900;
    background: #dcfce7;
    border: 8px solid #f0fdf4;
    border-radius: 50%;
}

.account-result-icon.is-error {
    color: var(--account-red);
    background: #fee2e2;
    border-color: #fef2f2;
}

.account-result-card p {
    margin: 13px 0 24px;
    color: var(--account-muted);
    font-size: 15px;
    line-height: 1.7;
}

.account-result-actions {
    display: grid;
    gap: 10px;
}

.account-auth-page {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 56px 18px 72px;
    background:
        radial-gradient(circle at 10% 8%, rgba(220, 38, 38, .12), transparent 29%),
        radial-gradient(circle at 90% 90%, rgba(15, 23, 42, .08), transparent 27%),
        linear-gradient(180deg, #f8fafc 0%, #edf1f5 100%);
}

.account-auth-card {
    width: min(520px, 100%);
    overflow: hidden;
    padding: 0 42px 38px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--account-border);
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .14);
}

.account-auth-accent {
    height: 6px;
    margin: 0 -42px 32px;
    background: linear-gradient(90deg, #7f1d1d, #ef4444, #7f1d1d);
}

.account-auth-header {
    text-align: center;
}

.account-auth-mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 17px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.04em;
    background:
        linear-gradient(145deg, #ef4444, #991b1b);
    border: 7px solid #fee2e2;
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(220, 38, 38, .24);
}

.account-auth-mark.is-recovery {
    background:
        linear-gradient(145deg, #1f2937, #07152b);
    border-color: #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .2);
}

.account-auth-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--account-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.account-auth-header h1 {
    margin: 0;
    color: var(--account-text);
    font-size: clamp(27px, 5vw, 34px);
    font-weight: 950;
    line-height: 1.2;
}

.account-auth-header p {
    max-width: 420px;
    margin: 11px auto 0;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.65;
}

.account-auth-form {
    margin-top: 27px;
}

.account-auth-code input {
    min-height: 58px;
    padding-left: 20px;
    color: #111827;
    font-family: Consolas, "Courier New", monospace;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: .24em;
    text-align: center;
}

.account-auth-code input::placeholder {
    color: #a9b2bf;
    letter-spacing: .18em;
}

.account-auth-recovery input {
    min-height: 54px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: .08em;
    text-align: center;
}

.account-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 3px 0 22px;
    padding: 13px 14px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid var(--account-border);
    border-radius: 11px;
    cursor: pointer;
}

.account-auth-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--account-red);
}

.account-auth-check span,
.account-auth-check strong,
.account-auth-check small {
    display: block;
}

.account-auth-check strong {
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.account-auth-check small {
    margin-top: 3px;
    color: #7c8798;
    font-size: 11px;
    line-height: 1.45;
}

.account-auth-divider {
    position: relative;
    margin: 25px 0 17px;
    text-align: center;
}

.account-auth-divider::before {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--account-border);
    content: "";
}

.account-auth-divider span {
    position: relative;
    padding: 0 12px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    background: #fff;
    text-transform: uppercase;
}

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

.account-auth-links-single {
    grid-template-columns: 1fr;
    margin-top: 18px;
}

.account-auth-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 11px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid var(--account-border);
    border-radius: 9px;
    transition:
        color .2s ease,
        border-color .2s ease,
        background-color .2s ease;
}

.account-auth-links a:hover {
    color: var(--account-red);
    background: #fff7f7;
    border-color: #fecaca;
}

.account-auth-note {
    margin-top: 19px;
    padding: 13px 14px;
    color: #526071;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
    background: #f8fafc;
    border-left: 3px solid var(--account-red);
    border-radius: 8px;
}

/* Scaffold edilmemiş Identity alt sayfaları için ortak görünüm. */
.account-main > h3 {
    margin: 0 0 22px;
    color: var(--account-text);
    font-size: 28px;
}

.account-main > .row {
    display: block;
    margin: 0;
}

.account-main .col-md-6 {
    width: min(100%, 720px);
    padding: 0;
}

.account-main .form-floating {
    margin-bottom: 16px;
}

.account-main .form-floating label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.account-main .form-floating > label {
    position: static;
    transform: none;
}

.account-main .btn-link {
    display: inline-block;
    padding: 7px 0;
    color: var(--account-red);
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 920px) {
    .account-manage-shell {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
        min-height: auto;
    }

    .account-sidebar .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-store-link {
        margin-top: 4px;
    }
}

@media (max-width: 700px) {
    .account-manage-page {
        padding: 25px 12px 40px;
    }

    .account-main {
        min-height: 0;
        padding: 24px 17px;
        border-radius: 17px;
    }

    .account-layout,
    .account-security-grid {
        grid-template-columns: 1fr;
    }

    .account-page-header {
        display: block;
    }

    .account-header-badge {
        margin-top: 15px;
    }

    .account-sidebar .nav {
        grid-template-columns: 1fr;
    }

    .account-security-card p {
        min-height: 0;
    }

    .account-recovery-grid {
        grid-template-columns: 1fr;
    }

    .account-result-card {
        padding: 0 22px 28px;
        border-radius: 18px;
    }

    .account-result-accent {
        margin-right: -22px;
        margin-left: -22px;
    }

    .account-auth-page {
        padding: 28px 12px 44px;
    }

    .account-auth-card {
        padding: 0 20px 26px;
        border-radius: 18px;
    }

    .account-auth-accent {
        margin-right: -20px;
        margin-left: -20px;
    }

    .account-auth-links {
        grid-template-columns: 1fr;
    }
}
