/* Çevik Web müşteri portalı. Marka tokenları: /assets/css/tokens.css */
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:200 800; font-display:swap; src:url('/assets/fonts/jakarta-latin-ext.woff2') format('woff2'); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:200 800; font-display:swap; src:url('/assets/fonts/jakarta-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
    --bg:var(--cw-gray-100); --surface:#fff; --surface-2:var(--cw-gray-50); --line:var(--cw-gray-200);
    --text:var(--cw-gray-900); --muted:var(--cw-gray-500); --brand:var(--cw-orange-500); --brand-strong:var(--cw-orange-600); --brand-soft:var(--cw-orange-50);
    --ok:#047857; --ok-soft:#ECFDF5; --warn:#B45309; --warn-soft:#FFFBEB; --bad:#B91C1C; --bad-soft:#FEF2F2; --info:#1D4ED8; --info-soft:#EFF6FF;
    --radius:14px; --shadow:0 1px 2px rgba(15,23,42,.05),0 8px 24px rgba(15,23,42,.05);
}
@media (prefers-color-scheme: dark) {
    .p-avatar img { outline-color:oklch(1 0 0 / .1); }
    :root {
        --bg:#0A0E14; --surface:#121722; --surface-2:#0F141D; --line:#252D3D; --text:#F1F4F8; --muted:#94A3B8; --brand-soft:#2A1A10;
        --ok:#6EE7B7; --ok-soft:#102A23; --warn:#FCD34D; --warn-soft:#3A2A0E; --bad:#FCA5A5; --bad-soft:#3A171B; --info:#93C5FD; --info-soft:#152238; --shadow:none;
    }
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.55 'Plus Jakarta Sans',system-ui,-apple-system,sans-serif; min-height:100vh; display:flex; flex-direction:column; }
h1,h2,h3 { margin:0; line-height:1.2; letter-spacing:-.01em; text-wrap:balance; }
p { text-wrap:pretty; }
.p-table, .p-stat strong, .p-count, .p-mail-dates, .p-msg small, .p-notif time, .p-kv dd { font-variant-numeric:tabular-nums; }
a { color:var(--brand-strong); }
img { max-width:100%; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
:focus-visible { outline:2px solid var(--cw-focus); outline-offset:2px; }

.p-preview-bar { position:sticky; top:0; z-index:30; display:flex; flex-wrap:wrap; gap:.5rem 1rem; align-items:center; justify-content:center; padding:.55rem 1rem; background:#111827; color:#fff; font-size:.85rem; font-weight:700; }
.p-preview-bar a { color:#FDBA74; }

.p-header { background:var(--surface); border-bottom:1px solid var(--line); }
.p-header-inner { max-width:1120px; margin:0 auto; padding:.75rem clamp(1rem,4vw,2rem); display:flex; align-items:center; gap:1rem; }
.p-brand img { height:34px; width:auto; display:block; }
.p-nav { display:flex; gap:.25rem; margin-left:1rem; flex:1; flex-wrap:wrap; }
.p-nav a { padding:.5rem .8rem; border-radius:10px; color:var(--muted); text-decoration:none; font-weight:700; font-size:.92rem; }
.p-nav a:hover { background:var(--surface-2); color:var(--text); }
.p-nav a[aria-current="page"] { background:var(--brand-soft); color:var(--brand-strong); }
.p-user { display:flex; align-items:center; gap:.6rem; }
.p-user form { margin:0; }
.p-avatar { width:36px; height:36px; border-radius:50%; background:var(--brand-soft); color:var(--brand-strong); display:grid; place-items:center; font-weight:800; overflow:hidden; flex:none; }
.p-avatar img { width:100%; height:100%; object-fit:cover; display:block; border-radius:50%; outline:1px solid oklch(0 0 0 / .1); outline-offset:-1px; }
.p-user-name { font-weight:700; font-size:.9rem; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.p-main { width:100%; max-width:1120px; margin:0 auto; padding:1.75rem clamp(1rem,4vw,2rem) 3rem; flex:1; display:grid; gap:1.25rem; align-content:start; }
.p-title { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.5rem 1rem; }
.p-title h1 { font-size:clamp(1.5rem,3.2vw,2rem); }
.p-title p { margin:0; color:var(--muted); }

.p-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1.25rem; box-shadow:var(--shadow); min-width:0; }
.p-card > header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.p-card h2 { font-size:1.1rem; }
.p-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1rem; }
.p-stat { display:flex; align-items:center; gap:.9rem; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1rem 1.1rem; box-shadow:var(--shadow); }
.p-stat-icon { width:42px; height:42px; border-radius:12px; background:var(--brand-soft); color:var(--brand-strong); display:grid; place-items:center; flex:none; }
.p-stat small { display:block; color:var(--muted); font-weight:700; font-size:.78rem; }
.p-stat strong { font-size:1.2rem; }

.p-notice { display:flex; gap:.75rem; align-items:flex-start; padding:.9rem 1rem; border-radius:12px; border:1px solid var(--line); background:var(--info-soft); color:var(--info); }
.p-notice.is-update { background:var(--brand-soft); color:var(--brand-strong); }
.p-notice.is-warning { background:var(--warn-soft); color:var(--warn); }
.p-notice.is-error { background:var(--bad-soft); color:var(--bad); }
.p-notice.is-success { background:var(--ok-soft); color:var(--ok); }
.p-notice-body { flex:1; min-width:0; }
.p-notice-body strong { display:block; }
.p-notice-body p { margin:.15rem 0 0; color:var(--text); font-size:.92rem; white-space:pre-line; overflow-wrap:anywhere; }
.p-notice-close { position:relative; background:none; border:0; color:inherit; cursor:pointer; padding:.5rem; border-radius:8px; line-height:0; margin:-.35rem -.35rem 0 0; }

.p-table-wrap { overflow-x:auto; }
.p-table { width:100%; border-collapse:collapse; font-size:.93rem; }
.p-table th { text-align:left; color:var(--muted); font-size:.76rem; text-transform:uppercase; letter-spacing:.04em; padding:.5rem .7rem; border-bottom:1px solid var(--line); white-space:nowrap; }
.p-table td { padding:.75rem .7rem; border-bottom:1px solid var(--line); vertical-align:middle; }
.p-table tr:last-child td { border-bottom:0; }
.p-badge { display:inline-flex; align-items:center; gap:.3rem; padding:.2rem .6rem; border-radius:999px; font-size:.76rem; font-weight:800; background:var(--surface-2); color:var(--muted); white-space:nowrap; }
.p-badge.is-ok { background:var(--ok-soft); color:var(--ok); }
.p-badge.is-warn { background:var(--warn-soft); color:var(--warn); }
.p-badge.is-bad { background:var(--bad-soft); color:var(--bad); }
.p-muted { color:var(--muted); }
.p-mono { font-family:'JetBrains Mono',ui-monospace,monospace; font-size:.9rem; overflow-wrap:anywhere; }

.p-mail-list { display:grid; gap:.75rem; }
.p-mail { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto; gap:.75rem 1.25rem; align-items:center; padding:1rem; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); }
.p-mail.is-passive { opacity:.85; }
.p-mail-addr { display:flex; flex-direction:column; gap:.2rem; min-width:0; }
.p-mail-addr strong { overflow-wrap:anywhere; }
.p-mail-dates { color:var(--muted); font-size:.85rem; }
.p-mail-note { grid-column:1 / -1; margin:0; padding:.6rem .8rem; border-radius:10px; background:var(--warn-soft); color:var(--warn); font-size:.9rem; font-weight:600; }
.p-secret { display:inline-flex; align-items:center; gap:.4rem; flex-wrap:wrap; }
.p-secret-value { font-family:'JetBrains Mono',ui-monospace,monospace; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:.4rem .7rem; min-width:9rem; overflow-wrap:anywhere; }
.p-actions { display:flex; gap:.4rem; flex-wrap:wrap; justify-content:flex-end; }

.p-btn { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; min-height:40px; padding:.5rem 1rem; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--text); font:inherit; font-weight:700; font-size:.9rem; cursor:pointer; text-decoration:none; }
.p-btn:hover { background:var(--surface-2); }
.p-btn.is-primary { background:var(--brand); border-color:var(--brand); color:#fff; }
.p-btn.is-primary:hover { background:var(--brand-strong); }
.p-btn.is-small { position:relative; min-height:34px; padding:.3rem .7rem; font-size:.82rem; }
/* Küçük kontrollerin dokunma alanı görünür boyuttan 3 px taşar (en az 40×40). */
.p-btn.is-small::after, .p-copy::after, .p-notice-close::after { content:''; position:absolute; inset:-3px; }
.p-btn[disabled], .p-btn.is-disabled { opacity:.5; pointer-events:none; }

.p-field { display:grid; gap:.35rem; }
.p-field label { font-weight:700; font-size:.88rem; }
.p-field input { min-height:46px; padding:.6rem .85rem; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--text); font:inherit; width:100%; }
.p-field input:focus { outline:2px solid var(--cw-focus); border-color:var(--brand); }
.p-field-pw { position:relative; }
.p-field-pw input { padding-right:3.2rem; }
.p-field-pw button { position:absolute; right:.3rem; top:50%; transform:translateY(-50%); width:40px; height:40px; border:0; border-radius:8px; background:transparent; color:var(--muted); cursor:pointer; display:grid; place-items:center; }
.p-form { display:grid; gap:1rem; max-width:440px; }

.p-auth { flex:1; display:grid; place-items:center; padding:2rem 1rem; }
.p-auth-card { width:100%; max-width:420px; background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:2rem; box-shadow:var(--shadow); display:grid; gap:1.25rem; }
.p-auth-card .p-brand { justify-self:center; }
.p-auth-card .p-brand img { height:44px; }
.p-auth-card h1 { font-size:1.4rem; text-align:center; }
.p-auth-card p { margin:0; color:var(--muted); text-align:center; font-size:.92rem; }
.p-auth-card .p-form { max-width:none; }
.p-auth-links { display:flex; justify-content:center; font-size:.9rem; }

.p-tabs { display:flex; gap:.35rem; flex-wrap:wrap; border-bottom:1px solid var(--line); margin-bottom:1rem; }
.p-tab { border:0; background:none; font:inherit; font-weight:700; color:var(--muted); padding:.6rem .9rem; border-bottom:2px solid transparent; cursor:pointer; }
.p-tab[aria-selected="true"] { color:var(--brand-strong); border-bottom-color:var(--brand); }
.p-tab-panel[hidden] { display:none; }
.p-steps { margin:0 0 1rem; padding-left:1.2rem; display:grid; gap:.4rem; }
.p-kv { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:.75rem; margin:0; }
.p-kv > div { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.7rem .85rem; background:var(--surface-2); border:1px solid var(--line); border-radius:10px; }
.p-kv dt { color:var(--muted); font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.p-kv dd { margin:.1rem 0 0; font-weight:700; overflow-wrap:anywhere; }
.p-copy { position:relative; flex:none; width:34px; height:34px; border-radius:8px; border:1px solid var(--line); background:var(--surface); color:var(--muted); cursor:pointer; display:grid; place-items:center; }
.p-copy:hover { color:var(--brand-strong); }

.p-profile { display:grid; grid-template-columns:minmax(0,300px) minmax(0,1fr); gap:1.25rem; align-items:start; }
.p-profile-avatar { display:grid; justify-items:center; gap:.9rem; text-align:center; }
.p-profile-avatar .p-avatar { width:112px; height:112px; font-size:2.4rem; }
.p-footer { text-align:center; color:var(--muted); font-size:.82rem; padding:1rem; }
.p-empty { padding:1.5rem; text-align:center; color:var(--muted); border:1px dashed var(--line); border-radius:12px; }

@media (max-width:760px) {
    .p-header-inner { flex-wrap:wrap; }
    .p-btn, .p-btn.is-small { min-height:44px; }
    .p-secret { flex-wrap:nowrap; width:100%; }
    .p-secret-value { flex:1; min-width:0; }
    .p-bell, .p-copy { width:44px; height:44px; }
    .p-chat { grid-template-rows:clamp(260px,52dvh,520px) auto; }
    .p-nav { order:3; margin-left:0; flex-basis:100%; overflow-x:auto; flex-wrap:nowrap; }
    .p-nav a { white-space:nowrap; }
    .p-user-name { display:none; }
    .p-mail { grid-template-columns:minmax(0,1fr); }
    .p-actions { justify-content:flex-start; }
    .p-profile { grid-template-columns:minmax(0,1fr); }
    .p-table thead { display:none; }
    .p-table, .p-table tbody { display:block; }
    .p-table tr { display:grid; gap:.35rem .75rem; grid-template-columns:repeat(2,minmax(0,1fr)); padding:.8rem 0; border-bottom:1px solid var(--line); }
    .p-table tr:last-child { border-bottom:0; }
    .p-table td { display:block; padding:0; border:0; }
    .p-table td::before { content:attr(data-label); display:block; color:var(--muted); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
    .p-table td:first-child { grid-column:1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }

.p-count { display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 .3rem; border-radius:999px; background:var(--brand); color:#fff; font-size:.7rem; font-weight:800; line-height:1; margin-left:.3rem; }
.p-bell { position:relative; display:grid; place-items:center; width:38px; height:38px; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--text); }
.p-bell:hover { background:var(--surface-2); }
.p-bell .p-count { position:absolute; top:-6px; right:-6px; margin:0; }

.p-btn, .p-bell, .p-tab { transition:background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out, scale .12s ease-out; }
.p-btn:active:not([disabled]), .p-bell:active { scale:.96; }
.p-chat { display:grid; grid-template-rows:clamp(280px,56vh,560px) auto; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); overflow:hidden; }
.p-chat-log { overflow-y:auto; padding:1rem; display:flex; flex-direction:column; gap:.6rem; background:var(--surface-2); }
.p-msg { max-width:min(78%,560px); padding:.6rem .85rem; border-radius:14px; background:var(--surface); border:1px solid var(--line); overflow-wrap:anywhere; white-space:pre-wrap; }
.p-msg small { display:block; margin-top:.25rem; color:var(--muted); font-size:.72rem; font-weight:700; }
.p-msg.is-mine { align-self:flex-end; background:var(--brand-soft); border-color:transparent; }
.p-msg.is-admin { align-self:flex-start; }
.p-chat-empty { margin:auto; text-align:center; color:var(--muted); max-width:320px; }
.p-chat-form { display:flex; gap:.6rem; padding:.75rem; border-top:1px solid var(--line); background:var(--surface); align-items:flex-end; }
.p-chat-form textarea { flex:1; min-height:46px; max-height:140px; resize:vertical; padding:.6rem .8rem; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--text); font:inherit; }
.p-chat-form textarea:focus { outline:2px solid var(--cw-focus); border-color:var(--brand); }
.p-chat-error { color:var(--bad); font-size:.85rem; font-weight:700; padding:0 .85rem .6rem; }

.p-notif { display:flex; gap:.8rem; padding:.9rem 0; border-bottom:1px solid var(--line); }
.p-notif:last-child { border-bottom:0; }
.p-notif.is-unread { background:linear-gradient(90deg,var(--brand-soft),transparent 40%); margin:0 -1.25rem; padding-left:1.25rem; padding-right:1.25rem; }
.p-notif-icon { width:36px; height:36px; border-radius:10px; background:var(--brand-soft); color:var(--brand-strong); display:grid; place-items:center; flex:none; }
.p-notif strong { display:block; }
.p-notif p { margin:.15rem 0; color:var(--muted); font-size:.92rem; white-space:pre-line; overflow-wrap:anywhere; }
.p-notif time { color:var(--muted); font-size:.78rem; font-weight:700; }
