/* =====================================================================
   Profil / Ayarlar sayfasi (2026-09-29 yeniden tasarim - mockup)
   ===================================================================== */
.pf-wrap { display: flex; flex-direction: column; gap: 16px; }
.pf-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); }

/* Profil Bilgileri */
.pf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pf-head-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text-primary); }
.pf-head-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.pf-edit { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--accent2); font-weight: 700; font-size: 13px; cursor: pointer; }
.pf-edit svg { width: 15px; height: 15px; }

.pf-profile { display: flex; align-items: center; gap: 26px; }
.pf-id { display: flex; align-items: center; gap: 14px; flex-shrink: 0; padding-right: 26px; border-right: 1px solid var(--border); }
.pf-avatar { position: relative; width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), var(--accent-dim)); color: #07221b; font-weight: 800; font-size: 28px; }
.pf-avatar.has-photo { background: none; }
label.pf-avatar { cursor: pointer; }
.pf-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pf-avatar.has-photo .pf-avatar-ini { display: none; }
.pf-avatar-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #06221b; display: grid; place-items: center; cursor: pointer; border: 2px solid var(--bg-surface); }
.pf-avatar-cam svg { width: 14px; height: 14px; }
.pf-id-name { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--text-primary); }
.pf-id-email { font-size: 13px; color: var(--text-muted); margin: 2px 0 7px; }
.pf-role { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent-bright); }

.pf-form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-field label { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.pf-input { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 12px; background: var(--bg-surface-2); border: 1px solid var(--border); transition: border-color .15s; }
.pf-input:focus-within { border-color: var(--accent-dim); }
.pf-input svg { width: 17px; height: 17px; color: var(--text-muted); flex-shrink: 0; }
.pf-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text-primary); font-size: 14px; font-family: inherit; }
.pf-input input:disabled, .pf-input input[readonly] { color: var(--text-secondary); cursor: default; }
.pf-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.pf-btn-ghost { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 11px; background: var(--bg-surface-2); border: 1px solid var(--border); color: var(--text-secondary); font-weight: 600; font-size: 13px; cursor: pointer; }
.pf-btn-ghost:hover { border-color: var(--border-strong); color: var(--text-primary); }
.pf-btn-ghost svg { width: 16px; height: 16px; }
.pf-btn-primary { display: inline-flex; align-items: center; gap: 7px; padding: 11px 24px; border-radius: 11px; background: var(--accent); border: 0; color: #06221b; font-weight: 800; font-size: 14px; cursor: pointer; transition: filter .15s, opacity .15s; }
.pf-btn-primary:hover { filter: brightness(1.05); }
.pf-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.pf-btn-primary svg { width: 16px; height: 16px; }

/* Uclu kart satiri - kartlar esit yukseklik (Plan ve Kullanim en uzun olani belirler) */
.pf-row3 { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; align-items: stretch; }
.pf-row3 > .pf-card { display: flex; flex-direction: column; min-width: 0; }   /* ızgara öğesi içeriğinden geniş olamasın */
@media (max-width: 380px) {
    .pf-card { padding: 16px; }
    .pf-wallet-meta { flex-wrap: wrap; }
}
/* Kisa kartlarda son ogeyi alta yasla (esit yukseklikte dengeli dursun) */
.pf-row3 .pf-wallet-market, .pf-row3 .pf-theme { margin-top: auto; }
.pf-row3 .pf-plan { flex: 1; }
.pf-mini-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.pf-mini-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.pf-mini-ic svg { width: 20px; height: 20px; }
.pf-mini-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 800; color: var(--text-primary); }
.pf-mini-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.pf-plan { background: var(--bg-surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.pf-plan-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pf-plan-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.pf-plan-ic svg { width: 22px; height: 22px; }
.pf-plan-txt { min-width: 0; }
.pf-plan-name { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.pf-plan-price { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.pf-plan-link { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; text-decoration: none; }
.pf-plan-link:hover { color: var(--accent-bright); }
.pf-plan-link svg { width: 13px; height: 13px; }
.pf-usage { display: flex; flex-direction: column; gap: 11px; }
.pf-usage-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.pf-usage-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.pf-usage-lbl svg { width: 14px; height: 14px; color: var(--accent-bright); }
.pf-usage-val { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.pf-bar { height: 7px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; }
.pf-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); min-width: 5px; transition: width .5s ease; }

.pf-wallet-bal { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 8px; line-height: 1; }
.pf-coin { font-size: 22px; }
.pf-wallet-meta { display: flex; gap: 12px; margin: 14px 0; }
.pf-wallet-col { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pf-wallet-col + .pf-wallet-col { border-left: 1px solid var(--border); padding-left: 12px; }
.pf-wallet-k { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-muted); }
.pf-wallet-k svg { width: 13px; height: 13px; }
.pf-wallet-col b { font-size: 15px; color: var(--text-primary); }
.pf-wallet-market { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 11px; background: var(--bg-surface-2); border: 1px solid var(--border); color: var(--text-secondary); font-weight: 600; font-size: 13px; text-decoration: none; }
.pf-wallet-market:hover { border-color: var(--border-strong); color: var(--text-primary); }
.pf-wallet-market span { display: inline-flex; align-items: center; gap: 7px; }
.pf-wallet-market svg { width: 16px; height: 16px; }

/* Tema (görünüm) seçimi: küçük önizlemeli iki kart — AtmoSpace / Windows 11 (41-win11.css) */
.pf-skin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-skin-btn { display: flex; flex-direction: column; gap: 7px; padding: 8px; border-radius: 12px; background: var(--bg-surface-2); border: 1.5px solid var(--border); color: var(--text-secondary); font-weight: 700; font-size: 13px; cursor: pointer; transition: all .15s; text-align: center; }
.pf-skin-btn:hover { border-color: var(--border-strong); }
.pf-skin-btn.active { border-color: var(--accent); color: var(--accent-bright); background: var(--accent-soft); }
.pf-skin-prev { position: relative; display: block; height: 52px; border-radius: 8px; overflow: hidden; }
.pf-skin-prev i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; }
.pf-skin-prev b { position: absolute; left: 38%; right: 8%; height: 12px; }
.pf-skin-prev b:nth-of-type(1) { top: 10px; }
.pf-skin-prev b:nth-of-type(2) { top: 28px; right: 30%; }
.sk-atmo { background: #0e1a28; }
.sk-atmo i { background: linear-gradient(180deg, #142436, #0a1420); border-right: 1px solid rgba(255, 255, 255, .06); }
.sk-atmo b { background: #18293d; border-radius: 5px; }
.sk-atmo b:nth-of-type(2) { background: linear-gradient(135deg, #2dd4a7, #1f9d7c); }
.sk-win11 { background: #f3f3f3; border: 1px solid rgba(0, 0, 0, .06); }
.sk-win11 i { background: transparent; }
.sk-win11 i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 9px; border-radius: 3px; background: rgba(0, 0, 0, .06); box-shadow: -4px 0 0 -1px #005fb8; }
.sk-win11 b { background: #fbfbfb; border: 1px solid rgba(0, 0, 0, .08); border-radius: 3px; }
.sk-win11 b:nth-of-type(2) { background: #005fb8; border-color: transparent; }
:root[data-theme="dark"] .sk-win11 { background: #202020; border-color: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .sk-win11 i::after { background: rgba(255, 255, 255, .07); box-shadow: -4px 0 0 -1px #60cdff; }
:root[data-theme="dark"] .sk-win11 b { background: #2b2b2b; border-color: rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .sk-win11 b:nth-of-type(2) { background: #60cdff; }
#gorunum { scroll-margin-top: 90px; }
.pf-flash { animation: pfFlash 1.6s ease; }
@keyframes pfFlash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }

.pf-theme { display: flex; gap: 10px; }
.pf-theme-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 13px; border-radius: 12px; background: var(--bg-surface-2); border: 1.5px solid var(--border); color: var(--text-secondary); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .15s; }
.pf-theme-btn svg { width: 17px; height: 17px; }
.pf-theme-btn:hover { border-color: var(--border-strong); }
.pf-theme-btn.active { border-color: var(--accent); color: var(--accent-bright); background: var(--accent-soft); }
/* Dil seçimi (Görünüm kartı) — tema butonlarıyla aynı görünüm */
.pf-lang-lbl { display: flex; align-items: center; gap: 6px; margin: 14px 0 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.pf-lang-lbl svg { width: 14px; height: 14px; }
.pf-lang { display: flex; gap: 8px; }
.pf-lang-btn { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; padding: 11px 6px; border-radius: 12px; background: var(--bg-surface-2); border: 1.5px solid var(--border); color: var(--text-secondary); font-weight: 700; font-size: 13px; white-space: nowrap; transition: all .15s; }
.pf-lang-btn:hover { border-color: var(--border-strong); }
.pf-lang-btn.active { border-color: var(--accent); color: var(--accent-bright); background: var(--accent-soft); }

.pf-sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pf-sec { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 13px; background: var(--bg-surface-2); border: 1px solid var(--border); text-decoration: none; text-align: left; cursor: pointer; transition: all .15s; width: 100%; font-family: inherit; }
.pf-sec:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.pf-sec-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.pf-sec-ic svg { width: 19px; height: 19px; }
.pf-sec-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-sec-t { font-size: 13.5px; font-weight: 700; color: var(--text-primary); display: inline-flex; align-items: center; gap: 6px; }
.pf-sec-s { font-size: 11.5px; color: var(--text-muted); line-height: 1.3; }
.pf-sec-go { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.pf-sec-soon { cursor: default; }
.pf-sec-soon:hover { transform: none; border-color: var(--border); box-shadow: none; }
.pf-soon { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--accent2-soft); color: var(--accent2); text-transform: uppercase; letter-spacing: .3px; }
.pf-modal-note { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.pf-modal-note a { color: var(--accent-bright); }
.pf-field-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
/* Hesabı sil penceresi */
.pf-del-warn { font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); background: rgba(240, 85, 109, 0.08); border: 1px solid rgba(240, 85, 109, 0.35); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.pf-del-warn b { color: var(--danger); }
.pf-del-warn ul { margin: 6px 0 8px; padding-left: 18px; }
.pf-btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.pf-btn-danger:hover { filter: brightness(1.08); }
.pf-del-resend { margin-top: 8px; text-align: center; }

/* Oturumlar ve giriş geçmişi (Güvenlik Testi 5) */
.pf-sess-list { display: flex; flex-direction: column; gap: 10px; }
.pf-sess { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 13px; background: var(--bg-surface-2); border: 1px solid var(--border); }
.pf-sess.is-current { border-color: var(--accent); }
.pf-sess-txt { flex: 1; min-width: 0; }
.pf-sess-t { font-size: 13.5px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-sess-s { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; overflow-wrap: anywhere; }
.pf-sess-badge { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-bright); text-transform: uppercase; letter-spacing: .3px; }
.pf-sess-empty { font-size: 12.5px; color: var(--text-muted); }
.pf-sess-all { margin-top: 12px; }
.pf-hist-title { margin: 18px 0 8px; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .3px; }
.pf-hist { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pf-hist-row { display: grid; grid-template-columns: 18px 130px 1fr 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; font-size: 12.5px; color: var(--text-secondary); border-top: 1px solid var(--border); }
.pf-hist-row:first-child { border-top: 0; }
.pf-hist-row svg { width: 15px; height: 15px; color: var(--accent-bright); }
.pf-hist-row.is-fail svg, .pf-hist-row.is-fail .pf-hist-r { color: var(--warning); }
.pf-hist-ip { overflow-wrap: anywhere; }
.pf-hist-r { font-weight: 600; }

/* E-posta doğrulama (güvenlik: e-postaya bağlı davetler için gerekli) */
.pf-verified { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--accent-bright); }
.pf-verified svg { width: 13px; height: 13px; }
.pf-verify { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--warning);
    background: color-mix(in srgb, var(--warning) 10%, transparent); }
.pf-verify-txt { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1 1 260px; }
.pf-verify-txt > svg { width: 20px; height: 20px; color: var(--warning); flex-shrink: 0; margin-top: 1px; }
.pf-verify-t { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.pf-verify-s { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.pf-verify-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-verify-form { display: flex; gap: 8px; }
.pf-verify-form input { width: 150px; max-width: 100%; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border);
    background: var(--bg-surface); color: var(--text-primary); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

@media (max-width: 1000px) {
    .pf-row3 { grid-template-columns: 1fr; }
    .pf-sec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .pf-profile { flex-direction: column; align-items: stretch; gap: 16px; }
    .pf-id { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 16px; }
    .pf-fields { grid-template-columns: 1fr; }
    .pf-sec-grid { grid-template-columns: 1fr; }
    .pf-sess { flex-wrap: wrap; }
    .pf-hist-row { grid-template-columns: 18px 1fr auto; }
    .pf-hist-ip, .pf-hist-p { grid-column: 2 / -1; }
}

/* ---- Ayarlar → Atmos AI WhatsApp'ta (#whatsapp — js/pages/settings-whatsapp.js) ---- */
.wa-body { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.wa-number { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-elevated); }
.wa-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #25d366; color: #fff; flex: none; }
.wa-ic svg { width: 22px; height: 22px; }
.wa-number > div { flex: 1; min-width: 0; }
.wa-name { font-weight: 700; }
.wa-linked { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 14px; background: var(--accent-soft); color: var(--text-primary); }
.wa-linked svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.wa-tips, .wa-note { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.wa-note { display: flex; gap: 8px; align-items: flex-start; }
.wa-note svg { width: 18px; height: 18px; flex: none; }
.wa-steps { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.wa-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.wa-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-acts .danger:hover { color: var(--danger); }
.wa-code-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px dashed var(--accent); border-radius: 14px; }
.wa-code { font: 700 20px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; user-select: all; word-break: break-all; }
.wa-sim { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.wa-sim summary { cursor: pointer; font-size: 13px; color: var(--text-secondary); display: flex; gap: 6px; align-items: center; }
.wa-sim summary svg { width: 16px; height: 16px; }
.wa-sim-log { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; margin: 10px 0; padding: 8px; border-radius: 12px; background: var(--bg-elevated); }
.wa-sim-log:empty { display: none; }
.wa-msg { max-width: 85%; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; white-space: normal; word-break: break-word; }
.wa-msg.in { align-self: flex-end; background: #d9fdd3; color: #111b21; }
.wa-msg.out { align-self: flex-start; background: var(--bg-surface); border: 1px solid var(--border); }
.wa-msg.err { align-self: center; color: var(--danger); font-size: 12.5px; }
.wa-msg.note { align-self: center; color: var(--text-muted); font-size: 12.5px; text-align: center; }
.wa-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wa-choices button { border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.wa-sim-row { display: flex; gap: 6px; margin-bottom: 8px; }
.wa-sim-row input { flex: 1; min-width: 0; }
