/* ==========================================================================
   ORTAK PROFİL, HESAP AYARLARI VE GÜVENLİK
   ========================================================================== */

.nf-user-avatar.has-image {
    overflow: hidden;
    padding: 0;
}

.nf-user-avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.account-page {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: 34px 0 70px;
}

.account-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.account-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E50914;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-hero h1 {
    margin: 6px 0 6px;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.account-hero p {
    margin: 0;
    color: #A1A1AA;
    font-size: 0.86rem;
    line-height: 1.6;
    max-width: 680px;
}

.account-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.account-nav {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #111116;
    border: 1px solid #282834;
    border-radius: 14px;
    padding: 10px;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #A1A1AA;
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
    min-height: 42px;
    transition: background 150ms ease, color 150ms ease;
}

.account-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.account-nav a.is-active {
    background: rgba(229, 9, 20, 0.12);
    color: #fff;
    box-shadow: inset 3px 0 0 #E50914;
}

.account-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.account-card {
    background: #141414;
    border: 1px solid #282834;
    border-radius: 16px;
    padding: 22px;
    min-width: 0;
}

.account-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.account-card h2 {
    margin: 0 0 5px;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

.account-card p.account-desc {
    margin: 0;
    color: #8B8B94;
    font-size: 0.8rem;
    line-height: 1.55;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.account-badge--on {
    background: rgba(35, 165, 90, 0.14);
    border-color: rgba(35, 165, 90, 0.35);
    color: #63D69A;
}

.account-badge--off {
    background: rgba(161, 161, 170, 0.1);
    border-color: rgba(161, 161, 170, 0.26);
    color: #B4B4BC;
}

.account-badge--warn {
    background: rgba(245, 197, 24, 0.13);
    border-color: rgba(245, 197, 24, 0.3);
    color: #F5C518;
}

.account-profile-top {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.account-avatar {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #3A3A42, #222228);
    border: 3px solid #2C2C35;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-identity {
    min-width: 0;
}

.account-identity h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.account-identity__meta {
    color: #8B8B94;
    font-size: 0.76rem;
    line-height: 1.5;
}

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

.account-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

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

.account-field label {
    color: #D4D4D8;
    font-size: 0.75rem;
    font-weight: 650;
}

.account-input,
.account-textarea,
.account-select {
    width: 100%;
    background: #0B0B0D;
    border: 1px solid #30303A;
    border-radius: 9px;
    color: #fff;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.account-input:focus,
.account-textarea:focus,
.account-select:focus {
    border-color: #E50914;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}

.account-input[readonly],
.account-input:disabled {
    background: #17171C;
    color: #8B8B94;
    cursor: not-allowed;
}

.account-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

.account-hint {
    color: #6B675F;
    font-size: 0.7rem;
    line-height: 1.5;
}

.account-counter {
    color: #8B8B94;
    font-size: 0.7rem;
    text-align: right;
}

.account-counter.is-over {
    color: #FF6B72;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 16px;
}

.account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #34343E;
    background: #1C1C21;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

.account-btn:hover {
    background: #25252C;
    border-color: #4A4A55;
}

.account-btn--primary {
    background: #E50914;
    border-color: #E50914;
}

.account-btn--primary:hover {
    background: #B20710;
    border-color: #B20710;
}

.account-btn--danger {
    background: rgba(229, 9, 20, 0.12);
    border-color: rgba(229, 9, 20, 0.4);
    color: #FF8F95;
}

.account-btn--ghost {
    background: transparent;
}

.account-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.account-status-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.account-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #24242C;
    font-size: 0.82rem;
}

.account-status-row:last-child {
    border-bottom: 0;
}

.account-status-row > span:first-child {
    color: #9A9AA3;
}

.account-status-row strong {
    text-align: right;
    color: #fff;
}

.account-reauth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: #0F0F13;
    border: 1px solid #2A2A33;
    border-radius: 10px;
    padding: 13px;
    margin: 12px 0;
}

.account-reauth .account-field--full {
    grid-column: 1 / -1;
}

.account-qr {
    width: fit-content;
    margin: 14px auto;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
}

.account-secret {
    background: #0B0B0D;
    border: 1px solid #2A2A33;
    border-radius: 8px;
    padding: 10px 12px;
    color: #9FD7B0;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.8rem;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    background: #0B0B0D;
    border: 1px solid #2A2A33;
    border-radius: 10px;
    padding: 14px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.82rem;
    color: #F5DE9B;
}

.account-events {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.account-event {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #22222B;
    font-size: 0.76rem;
}

.account-event:last-child {
    border-bottom: 0;
}

.account-event__type {
    color: #D4D4D8;
    font-weight: 600;
}

.account-event__meta {
    color: #6B675F;
    text-align: right;
    white-space: nowrap;
}

.account-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.account-alert--ok {
    background: rgba(35, 165, 90, 0.12);
    border: 1px solid rgba(35, 165, 90, 0.32);
    color: #8CE2B4;
}

.account-alert--bad {
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.36);
    color: #FF9AA0;
}

.account-tabs-mobile {
    display: none;
}

/* Public profile */
.profile-page {
    width: min(860px, 94%);
    margin: 0 auto;
    padding: 40px 0 80px;
}

.profile-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1A1A1F 0%, #111116 70%);
    border: 1px solid #2A2A33;
    border-radius: 20px;
    padding: 34px;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(520px 220px at 20% -10%, rgba(229, 9, 20, 0.16), transparent 65%);
    pointer-events: none;
}

.profile-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #3A3A42, #222228);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    flex: 0 0 auto;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: -0.03em;
}

.profile-meta {
    color: #A1A1AA;
    font-size: 0.82rem;
}

.profile-bio {
    position: relative;
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #D4D4D8;
    font-size: 0.93rem;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.profile-bio--empty {
    color: #6B675F;
    font-style: italic;
}

.profile-actions {
    position: relative;
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (max-width: 900px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        scrollbar-width: none;
    }

    .account-nav::-webkit-scrollbar {
        display: none;
    }

    .account-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .account-nav a.is-active {
        box-shadow: inset 0 -3px 0 #E50914;
    }
}

@media (max-width: 680px) {
    .account-page {
        padding-top: 24px;
    }

    .account-card {
        padding: 18px 15px;
    }

    .account-form-grid,
    .account-reauth {
        grid-template-columns: 1fr;
    }

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

    .account-avatar {
        width: 84px;
        height: 84px;
    }

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

    .profile-card {
        padding: 24px 18px;
    }

    .profile-head {
        gap: 16px;
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
    }

    .account-event {
        flex-direction: column;
        gap: 3px;
    }

    .account-event__meta {
        text-align: left;
    }
}

@media (max-height: 620px) {
    .nf-auth-wrap {
        align-items: flex-start;
        padding-top: 18px;
    }
}
