.profilePage {
    width: 100%;
    min-height: 100vh;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.72), #fafafa 330px),
        url('/img/background/home.jpg');
    background-size: 100% 330px;
    background-repeat: no-repeat;
    background-position: top center;
    font-family: 'Josefin Sans', sans-serif;
    padding: 42px 0 55px;
}

.profileHeader {
    width: min(86%, 1500px);
    margin: 0 auto 34px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.profileHeaderIcon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    color: #ff5b00;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    font-size: 24px;
}

.profileHeader h1 {
    color: #111827;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.profileHeader p {
    color: #6b7280;
    font-size: 16px;
    font-weight: 700;
}

.profileContainer {
    width: min(86%, 1500px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 30px;
    align-items: stretch;
}

/* LEFT CARD */

.profilePreviewCard,
.profileFormCard,
.securityStrip {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 24, 39, 0.07);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.profilePreviewCard {
    border-radius: 26px;
    padding: 34px;
    text-align: center;
    /* Fotoğrafın ortalanması için eklendi */
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.profileAvatarBox {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    /* margin: 0 auto 18px; satırını değiştiriyoruz */
    margin-bottom: 18px; 
    position: relative;
}

.profileAvatarBox img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 7px solid #f6f6f6;
    object-fit: cover;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
}

.profileAvatarBox span {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: 36px;
    height: 36px;
    background: #ff5b00;
    color: #fff;
    border: 4px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profilePreviewCard h2 {
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.4px;
    margin-bottom: 7px;
}

.profileUsername {
    color: #6b7280;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
}

.verifiedBadge {
    width: fit-content;
    height: 34px;
    margin: 0 auto 22px;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
}

.profileBioPreview {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 600;
    margin-bottom: 26px;
}

.profileStats {
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    padding: 18px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.profileStats div {
    border-right: 1px solid rgba(17, 24, 39, 0.08);
}

.profileStats div:last-child {
    border-right: none;
}

.profileStats strong {
    display: block;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 4px;
}

.profileStats span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.imageUploadButton {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    background: #ff5b00;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(255, 91, 0, 0.24);
    transition: 0.22s ease;
}

.imageUploadButton:hover {
    background: #e85200;
    transform: translateY(-2px);
}

.uploadInfo {
    color: #8b8f98;
    font-size: 13px;
    font-weight: 700;
    margin-top: 14px;
}

/* FORM CARD */

.profileFormCard {
    border-radius: 26px;
    padding: 34px;
}

.profileCardTitle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.profileCardTitle > i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 91, 0, 0.08);
    color: #ff5b00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.profileCardTitle h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
}

.profileCardTitle p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.profileInputRow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.profileGroup {
    margin-bottom: 20px;
    position: relative;
}

.profileGroup label {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 9px;
}

.profileGroup input,
.profileGroup textarea {
    width: 100%;
    border-radius: 13px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    color: #111827;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.profileGroup input {
    height: 48px;
    padding: 0 15px;
}

.profileGroup textarea {
    min-height: 105px;
    resize: vertical;
    padding: 15px;
    line-height: 1.6;
}

.profileGroup input:focus,
.profileGroup textarea:focus {
    border-color: rgba(255, 91, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 91, 0, 0.09);
}

.profileGroup small {
    display: block;
    margin-top: 7px;
    color: #8b8f98;
    font-size: 13px;
    font-weight: 700;
}

.readonlyInput {
    position: relative;
}

.readonlyInput input {
    padding-right: 120px;
    background: #fafafa;
}

.readonlyInput span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
}

.profileLinksTitle h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    margin: 6px 0 18px;
}

.profileSocialGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.socialInput input {
    padding-left: 43px;
}

.socialInput i {
    position: absolute;
    left: 15px;
    bottom: 15px;
    color: #6b7280;
    font-size: 16px;
}

.profileSaveButton {
    width: fit-content;
    min-width: 235px;
    height: 50px;
    border: none;
    border-radius: 999px;
    background: #ff5b00;
    color: #fff;
    cursor: pointer;
    padding: 0 28px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(255, 91, 0, 0.24);
    transition: 0.22s ease;
}

.profileSaveButton:hover {
    background: #e85200;
    transform: translateY(-2px);
}

.profileMessage {
    margin-top: 16px;
    height: fit-content; /* KUTUNUN AŞAĞI DOĞRU ESNEMESİNİ ENGELLER */
}

#profileMessage {
    display: none;
    width: 100%;
    min-height: 44px;
    height: fit-content; /* SADECE İÇİNDEKİ YAZI KADAR YER KAPLAMASINI SAĞLAR */
    padding: 12px 16px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#profileMessage.show {
    display: flex;
}

#profileMessage.success {
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.18);
}

#profileMessage.error {
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.18);
}

/* SECURITY */

.securityStrip {
    width: min(86%, 1500px);
    margin: 30px auto 0;
    border-radius: 24px;
    padding: 26px 30px;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 30px;
    align-items: center;
}

.securityTitle {
    display: flex;
    align-items: center;
    gap: 16px;
}

.securityTitle > i {
    color: #ff5b00;
    font-size: 24px;
}

.securityTitle h2 {
    color: #111827;
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 4px;
}

.securityTitle p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.securityItems {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.securityItem {
    display: flex;
    align-items: center;
    gap: 13px;
}

.securityItem > i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 91, 0, 0.08);
    color: #ff5b00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.securityItem.success > i {
    background: rgba(22, 163, 74, 0.10);
    color: #16a34a;
}

.securityItem h3 {
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 3px;
}

.securityItem p {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .profileContainer,
    .securityStrip {
        width: 92%;
    }

    .profileContainer {
        grid-template-columns: 1fr;
    }

    .profilePreviewCard {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .securityStrip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .profileInputRow,
    .profileSocialGrid,
    .securityItems {
        grid-template-columns: 1fr;
    }

    .profileHeader {
        width: 92%;
    }

    .profileSaveButton {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .profilePage {
        padding-top: 28px;
    }

    .profileHeader {
        align-items: flex-start;
    }

    .profileHeader h1 {
        font-size: 34px;
    }

    .profilePreviewCard,
    .profileFormCard,
    .securityStrip {
        padding: 24px;
        border-radius: 20px;
    }

    .readonlyInput input {
        padding-right: 15px;
        height: 76px;
        padding-bottom: 26px;
    }

    .readonlyInput span {
        top: auto;
        bottom: 9px;
        right: 10px;
        transform: none;
    }
}

.selectedImageInfo {
    display: none;
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 91, 0, 0.08);
    border: 1px solid rgba(255, 91, 0, 0.16);
}

.selectedImageInfo.show {
    display: block;
}

.selectedImageInfo p {
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.selectedImageInfo i {
    color: #ff5b00;
}

.selectedImageInfo button {
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #ff5b00;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: 0.2s ease;
}

.selectedImageInfo button:hover {
    background: #ff5b00;
    color: #fff;
}


/* ============================= */
/* PROFILE IMAGE CROPPER */
/* ============================= */

.cropModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cropModal.show {
    display: flex;
}

.cropModalBox {
    width: min(92vw, 760px);
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.cropModalHeader {
    height: 68px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cropModalHeader h3 {
    color: #111827;
    font-size: 21px;
    font-weight: 900;
}

body.dark-mode .cropModalHeader h3 {
    color: #111827;
    font-size: 21px;
    font-weight: 900;
}

.cropModalHeader button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cropInfo {
    padding: 16px 24px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.cropArea {
    width: 100%;
    height: 460px;
    background: #111827;
}

.cropArea img {
    display: block;
    max-width: 100%;
}

.cropActions {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.cropActions button {
    height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
}

.cropCancel {
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    color: #111827;
}

.cropDone {
    border: none;
    background: #ff5b00;
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 91, 0, 0.24);
}

.selectedImageInfo {
    display: none;
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 91, 0, 0.08);
    border: 1px solid rgba(255, 91, 0, 0.16);
}

.selectedImageInfo.show {
    display: block;
}

.selectedImageInfo p {
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.selectedImageInfo i {
    color: #ff5b00;
}

.selectedImageInfo button {
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #ff5b00;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: 0.2s ease;
}

.selectedImageInfo button:hover {
    background: #ff5b00;
    color: #fff;
}

@media (max-width: 600px) {
    .cropArea {
        height: 360px;
    }

    .cropActions {
        flex-direction: column;
    }

    .cropActions button {
        width: 100%;
    }
}


/* ========================================= */
/* BUTON HİZALAMASI (KAYDET & ŞİFRE DEĞİŞTİR) */
/* ========================================= */
.formActionsArea {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 35px;
}

.changePasswordButton {
    height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s ease;
}

.changePasswordButton:hover {
    background: #e5e7eb;
    color: #111827;
}

/* ========================================= */
/* ŞİFRE DEĞİŞTİRME MODALI TASARIMI (GENİŞ & RAHAT) */
/* ========================================= */
.pwModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(17, 24, 39, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
}

.pwModal.show {
    display: flex;
}

.pwModalBox {
    background: #ffffff;
    width: min(96vw, 1050px); /* 850px'den 1050px'e çıkarıldı, daha geniş ve ferah */
    border-radius: 26px;
    position: relative;
    padding: 50px 60px; /* İç boşluklar artırıldı, sıkışıklık giderildi */
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(17, 24, 39, 0.07);
}

/* Sağ Üst Kapatma Tuşu */
.pwCloseBtn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 42px; /* Orantılı olarak biraz büyütüldü */
    height: 42px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.pwCloseBtn:hover {
    background: #e5e7eb;
    color: #ff5b00;
}

.pwModalGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px; /* Sütunlar arası boşluk 50px'den 80px'e çıkarıldı */
}

/* Sol Taraf (Uyarılar) */
.pwLeft h3 {
    color: #111827;
    font-size: 25px; /* 24px -> 27px (+3px) */
    font-weight: 900;
    margin-bottom: 26px;
}

.pwLeft ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Satırlar arası mesafe artırıldı */
}

.pwLeft li {
    color: #6b7280;
    font-size: 16px; /* 14.5px -> 17px (~+3px) */
    line-height: 1.65;
    font-weight: 600;
}

/* Kırmızı Uyarı Kutusu */
.pwLeft .pwWarning {
    color: #dc2626;
    font-weight: 800;
    background: rgba(220, 38, 38, 0.08);
    padding: 18px 22px; /* Kutu içi daha ferah */
    border-radius: 13px;
    border: 1px solid rgba(220, 38, 38, 0.15);
    margin-top: 5px;
}

/* Sağ Taraf (Form) */
.pwRight h3 {
    color: #111827;
    font-size: 26px; /* 24px -> 27px (+3px) */
    font-weight: 900;
    margin-bottom: 26px;
}

.pwGroup {
    margin-bottom: 24px; /* Inputlar arası mesafe artırıldı */
}

.pwGroup label {
    display: block;
    color: #111827;
    font-size: 17px; /* 14px -> 17px (+3px) */
    font-weight: 900;
    margin-bottom: 12px;
}

/* Inputlar Sitenin Kendi Inputları İle Uyumlu Ama Daha Büyük */
.pwGroup input {
    width: 100%;
    height: 54px; /* Yazılar büyüdüğü için kutu boyu da 48'den 54'e çıktı */
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 13px;
    color: #111827;
    font-family: inherit;
    padding: 0 18px;
    font-size: 18px; /* 15px -> 18px (+3px) */
    font-weight: 700;
    outline: none;
    transition: 0.2s ease;
}

.pwGroup input:focus {
    border-color: rgba(255, 91, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 91, 0, 0.09);
}

/* Kaydet Butonu */
.pwSubmitBtn {
    width: 100%;
    height: 54px; /* 50'den 54'e çıktı */
    background: #ff5b00;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 18px; /* 15px -> 18px (+3px) */
    font-weight: 900;
    cursor: pointer;
    transition: 0.22s ease;
    margin-top: 15px;
    box-shadow: 0 16px 32px rgba(255, 91, 0, 0.24);
}

.pwSubmitBtn:hover {
    background: #e85200;
    transform: translateY(-2px);
}

/* Alt Açıklama */
.pwFooterText {
    text-align: center;
    color: #8b8f98;
    font-size: 17px; /* 14px -> 17px (+3px) */
    font-weight: 700;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

/* Hata/Başarı Mesajı */
.pwMessage {
    text-align: center;
    margin-top: 20px;
    font-size: 17px; /* 14px -> 17px (+3px) */
    font-weight: 800;
    padding: 16px 20px;
    border-radius: 13px;
    display: none;
}

.pwMessage.show { display: block; }
.pwMessage.success { background: rgba(22, 163, 74, 0.10); color: #15803d; border: 1px solid rgba(22, 163, 74, 0.18); }
.pwMessage.error { background: rgba(220, 38, 38, 0.10); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.18); }

/* Mobil Uyumluluk */
@media (max-width: 950px) {
    .pwModalGrid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pwModalBox { padding: 40px 30px; }
}


/* ========================================= */
/* HESABI SİL BUTONU VE TASARIMI             */
/* ========================================= */
.deleteAccountButton {
    height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s ease;
    margin-right: auto; /* Silme butonunu en sola, diğerlerini sağa iter */
}

.deleteAccountButton:hover {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

@media (max-width: 950px) {
    .deleteAccountButton { 
        width: 100%; 
        justify-content: center; 
        margin-right: 0;
    }
}