/* ==========================================================================
   SEO Temel | Project Manager — Müşteri Paneli (v2.0.0)
   Temadan bağımsız tam sayfa arayüz. Görev pop-up'ı, yorum ve not formları
   pm.css'ten gelir; bu dosya panel iskeleti ve sekmeleri içindir.

   Renkler SEO Temel kimliğinden: lacivert #012345 (e-posta şablonları),
   turuncu #FF8A1F/#FFA84D (vurgu, okunmamış), mor #640094 (yalnızca etiketler).
========================================================================== */

:root {
    --stp-navy:      #012345;
    --stp-navy-2:    #0B3157;
    --stp-navy-3:    #1D4A73;
    --stp-orange:    #FF8A1F;
    --stp-orange-lt: #FFE7CF;
    --stp-ink:       #0F2238;
    --stp-text:      #26384D;
    --stp-muted:     #5D6F84;
    --stp-line:      #DCE3EB;
    --stp-paper:     #F2F5F9;
    --stp-white:     #FFFFFF;
    --stp-green:     #0E9F6E;
    --stp-red:       #D92D20;
    --stp-amber:     #B45309;
    --stp-radius:    10px;
    --stp-sidebar:   248px;
    --stp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* pm.css değişkenleri panel renklerine uyarlanır (pop-up başlığı vb.) */
    --pm-navy: #012345;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body.stp-body {
    margin: 0;
    min-height: 100vh;
    background: var(--stp-paper);
    color: var(--stp-text);
    font-family: var(--stp-font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.stp-body a { color: var(--stp-navy-3); }
.stp-body img { max-width: 100%; height: auto; }
.stp-body button { font-family: inherit; }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--stp-orange); outline-offset: 2px; }

.stp-skip {
    position: absolute; left: 12px; top: -60px; z-index: 1000;
    background: var(--stp-white); color: var(--stp-navy); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.stp-skip:focus { top: 12px; }

.stp-icon { flex: 0 0 auto; }

/* ---------- Tipografi ---------- */
.stp-h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--stp-ink); letter-spacing: -.01em; }
.stp-h2 { margin: 0 0 14px; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--stp-ink); }
.stp-h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 650; color: var(--stp-ink); }
.stp-h3 a { color: inherit; text-decoration: none; }
.stp-h3 a:hover { text-decoration: underline; }
.stp-lead { margin: 6px 0 0; color: var(--stp-muted); max-width: 68ch; }
.stp-muted { color: var(--stp-muted); }
.stp-small { font-size: 13px; }
.stp-loading { color: var(--stp-muted); margin: 20px 0; }

/* ==========================================================================
   İSKELET
========================================================================== */
.stp-sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--stp-sidebar); z-index: 60;
    display: flex; flex-direction: column;
    background: var(--stp-navy); color: #C9D6E5;
    padding: 20px 14px 18px;
    overflow-y: auto;
}
.stp-main {
    margin-left: var(--stp-sidebar);
    padding: 36px 40px 64px;
    max-width: calc(1120px + var(--stp-sidebar));
    outline: none;
}

/* Marka */
.stp-brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #fff; min-width: 0; }
.stp-body .stp-brand { color: #fff; }
.stp-brand-name { font-size: 18px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; }
.stp-brand-sub { font-size: 12px; color: #8FA6C0; }
.stp-brand-logo { max-height: 36px; width: auto; display: block; }
.stp-sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 2px 8px 22px; }
.stp-sidebar .stp-sidebar-close { display: none; }

/* Menü */
.stp-nav ul, .stp-foot-links { list-style: none; margin: 0; padding: 0; }
.stp-nav li + li { margin-top: 2px; }
.stp-nav-link {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: 8px;
    color: #C9D6E5; text-decoration: none; font-weight: 550; font-size: 15px;
}
.stp-body .stp-nav-link { color: #C9D6E5; }
.stp-nav-link:hover { background: var(--stp-navy-2); color: #fff; }
.stp-nav-link.is-active { background: var(--stp-navy-2); color: #fff; }
.stp-nav-link.is-active::before {
    content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--stp-orange);
}
.stp-nav-link.is-active .stp-icon { color: var(--stp-orange); }
.stp-nav-link .stp-badge { margin-left: auto; }

.stp-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--stp-orange); color: var(--stp-navy); font-size: 12px; font-weight: 700; line-height: 1;
}
.stp-badge[hidden] { display: none; }

/* Kullanıcı ve alt bağlantılar */
.stp-sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--stp-navy-3); }
.stp-user { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; min-width: 0; }
.stp-user-text { display: flex; flex-direction: column; min-width: 0; }
.stp-user-name { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stp-user-mail { color: #8FA6C0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stp-foot-links a {
    display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px;
    color: #C9D6E5; text-decoration: none; font-size: 14px;
}
.stp-body .stp-foot-links a { color: #C9D6E5; }
.stp-foot-links a:hover { background: var(--stp-navy-2); color: #fff; }
.stp-foot-links .stp-icon { width: 18px; height: 18px; }

.stp-avatar {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700;
}
.stp-avatar--sm { width: 26px; height: 26px; font-size: 11px; margin-left: -6px; border: 2px solid #fff; }
.stp-avatar--sm:first-child { margin-left: 0; }
.stp-avatar--more { background: #94A3B8; }

/* Mobil üst çubuk */
.stp-topbar { display: none; }
.stp-icon-btn {
    display: inline-flex; align-items: center; justify-content: center; position: relative;
    width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer;
    text-decoration: none;
}
.stp-backdrop { position: fixed; inset: 0; background: rgba(1, 35, 69, .45); z-index: 55; }
.stp-backdrop[hidden] { display: none; }

.stp-manager-note {
    margin: 0 0 22px; padding: 10px 14px; border-radius: 8px;
    background: #E8EEF6; color: var(--stp-navy-3); font-size: 13px;
}

/* ==========================================================================
   SAYFA BAŞLIĞI, BUTONLAR, ETİKETLER
========================================================================== */
.stp-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.stp-page-head-text { min-width: 0; flex: 1 1 420px; }
.stp-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stp-page-head .stp-project-chips { margin-bottom: 10px; }

.stp-back {
    display: inline-flex; align-items: center; gap: 4px; margin: 0 0 16px -4px;
    color: var(--stp-muted); text-decoration: none; font-size: 14px; font-weight: 550;
}
.stp-body .stp-back { color: var(--stp-muted); }
.stp-back:hover { color: var(--stp-ink); }
.stp-back .stp-icon { width: 18px; height: 18px; }

.stp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
    font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.stp-btn .stp-icon { width: 18px; height: 18px; }
.stp-btn--primary { background: var(--stp-orange); color: var(--stp-navy); }
.stp-body .stp-btn--primary { color: var(--stp-navy); }
.stp-btn--primary:hover { background: #F07A0E; }
.stp-btn--ghost { background: var(--stp-white); border-color: var(--stp-line); color: var(--stp-ink); }
.stp-body .stp-btn--ghost { color: var(--stp-ink); }
.stp-btn--ghost:hover { border-color: #A9B7C7; }
.stp-btn[disabled] { opacity: .6; cursor: default; }

.stp-link-btn {
    background: none; border: 0; padding: 6px 4px; cursor: pointer;
    color: var(--stp-navy-3); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.stp-link-btn:hover { color: var(--stp-ink); }
.stp-link-btn--danger { color: var(--stp-red); }

.stp-project-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stp-chip {
    display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
    background: #E8EEF6; color: var(--stp-navy-3); font-size: 12px; font-weight: 600; line-height: 1.4;
}
.stp-chip--warn { background: #FEF3C7; color: var(--stp-amber); }
.stp-chip--danger { background: #FEE4E2; color: var(--stp-red); }
.stp-chip--accent { background: var(--stp-orange-lt); color: #8A4300; }

.stp-section { margin-top: 34px; }
.stp-banner { margin: 0 0 8px; border-radius: var(--stp-radius); }

/* Durum seçici (Aktif / Tamamlanan) */
.stp-segment {
    display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px;
    background: #E3E9F0; border-radius: 10px; max-width: 100%; overflow-x: auto;
}
.stp-segment-item {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 7px;
    color: var(--stp-muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.stp-body .stp-segment-item { color: var(--stp-muted); }
.stp-segment-item:hover { color: var(--stp-ink); }
.stp-segment-item.is-active { background: var(--stp-white); color: var(--stp-ink); box-shadow: 0 1px 2px rgba(1, 35, 69, .12); }
.stp-count { font-size: 12px; font-weight: 700; color: var(--stp-muted); background: rgba(1,35,69,.07); border-radius: 999px; padding: 1px 7px; }

/* ==========================================================================
   PROJE KARTLARI — her kartın odağı ilerleme çubuğu
========================================================================== */
.stp-project-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stp-project-card { background: var(--stp-white); border: 1px solid var(--stp-line); border-radius: var(--stp-radius); transition: border-color .15s; }
.stp-project-card:hover { border-color: #9EB0C4; }
.stp-project-link {
    display: flex; flex-direction: column; gap: 10px; height: 100%;
    padding: 20px 20px 18px; color: inherit; text-decoration: none; border-radius: var(--stp-radius);
}
.stp-body .stp-project-link { color: inherit; }
.stp-project-chips:empty { display: none; }
.stp-project-name { font-size: 18px; font-weight: 700; color: var(--stp-ink); line-height: 1.3; }
.stp-project-desc {
    color: var(--stp-muted); font-size: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stp-progress { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.stp-progress-track { display: block; height: 8px; border-radius: 999px; background: #E6ECF2; overflow: hidden; }
.stp-progress-bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--stp-navy-3), var(--stp-orange)); min-width: 0; }
.stp-progress-text { font-size: 13px; color: var(--stp-muted); }
.stp-progress-text strong { color: var(--stp-ink); font-size: 15px; }

.stp-project-card.is-disabled { background: #F7F9FB; }
.stp-project-card.is-disabled:hover { border-color: var(--stp-line); }
.stp-project-card.is-disabled .stp-project-name { color: var(--stp-muted); }
.stp-card-cta { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 650; color: var(--stp-navy-3); }

/* ==========================================================================
   GÖREV LİSTELERİ
========================================================================== */
.stp-tasklist { background: var(--stp-white); border: 1px solid var(--stp-line); border-radius: var(--stp-radius); padding: 16px 18px 10px; margin-bottom: 14px; scroll-margin-top: 80px; }
.stp-tasklist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stp-tasklist-count { font-size: 13px; color: var(--stp-muted); font-variant-numeric: tabular-nums; }
.stp-tasklist-desc { margin: 4px 0 0; color: var(--stp-muted); font-size: 14px; white-space: pre-line; max-width: 75ch; }
.stp-tasks { list-style: none; margin: 10px 0 0; padding: 0; }
.stp-task + .stp-task { border-top: 1px solid #EDF1F5; }
.stp-task-btn {
    width: 100%; display: grid; grid-template-columns: 128px 1fr auto; align-items: center; gap: 4px 14px;
    padding: 12px 6px; background: none; border: 0; border-radius: 8px; text-align: left; cursor: pointer;
    color: var(--stp-text); font-size: 15px;
}
.stp-task-btn:hover { background: #F5F8FB; }
.stp-task-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--stp-muted); }
.stp-task-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--stp-status, #94A3B8); flex: 0 0 9px; }
.stp-task-name { font-weight: 600; color: var(--stp-ink); min-width: 0; overflow-wrap: anywhere; }
.stp-task-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; }
.stp-task-tags .st-pm-tag-chip { margin-left: 0; }
.stp-task-meta { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: 12px; justify-self: end; }
.stp-task-date { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--stp-muted); white-space: nowrap; }
.stp-task-date .stp-icon { width: 15px; height: 15px; }
.stp-task-avatars { display: inline-flex; }
.stp-task-empty { padding: 12px 6px; color: var(--stp-muted); font-size: 14px; }
.stp-tasks--done .stp-task-name { color: var(--stp-muted); font-weight: 500; }
.stp-tasklist .st-pm-toggle-completed { margin: 4px 0 6px; padding-left: 6px; }

/* ==========================================================================
   ÖDEMELER
========================================================================== */
.stp-pay-clear { margin: 0; padding: 14px 16px; background: var(--stp-white); border: 1px solid var(--stp-line); border-radius: var(--stp-radius); color: var(--stp-muted); }
.stp-pay-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.stp-pay { background: var(--stp-white); border: 1px solid var(--stp-line); border-left: 4px solid #F59E0B; border-radius: var(--stp-radius); padding: 18px 20px; }
.stp-pay.is-overdue { border-left-color: var(--stp-red); }
.stp-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.stp-pay-rows { margin: 0 0 12px; }
.stp-pay-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.stp-pay-rows dt { color: var(--stp-muted); }
.stp-pay-rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.stp-pay-total { border-top: 1px solid var(--stp-line); margin-top: 4px; padding-top: 9px !important; }
.stp-pay-total dt, .stp-pay-total dd { color: var(--stp-ink); font-weight: 700; font-size: 16px; }
.stp-pay-dates { margin: 0 0 14px; font-size: 13px; color: var(--stp-muted); }
.stp-iban { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--stp-line); font-size: 14px; }
.stp-iban-title { margin: 0 0 10px; }
.stp-iban-acc { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: #F6F8FB; border-radius: 8px; margin-bottom: 8px; }
.stp-iban-no { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stp-iban-no code { font-family: inherit; font-weight: 650; color: var(--stp-ink); letter-spacing: .02em; overflow-wrap: anywhere; }
.stp-copy { border: 1px solid var(--stp-line); background: #fff; border-radius: 6px; padding: 4px 9px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--stp-navy-3); }
.stp-copy.is-done { color: var(--stp-green); border-color: #A7F3D0; }

/* ==========================================================================
   NOTLARIM
========================================================================== */
.stp-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 18px; }
.stp-field--select { flex: 0 1 280px; }
.stp-field--search { flex: 1 1 260px; max-width: 420px; }
.stp-search { position: relative; display: block; }
.stp-search .stp-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--stp-muted); width: 18px; height: 18px; }
.stp-search .stp-input { padding-left: 38px; }

.stp-notes { display: flex; flex-direction: column; gap: 10px; }
.stp-note { background: var(--stp-white); border: 1px solid var(--stp-line); border-radius: var(--stp-radius); }
.stp-note.is-highlight { border-color: var(--stp-orange); box-shadow: 0 0 0 3px var(--stp-orange-lt); }
.stp-note-head { display: flex; align-items: flex-start; gap: 10px; }
.stp-note-toggle {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px;
    padding: 14px 16px; background: none; border: 0; text-align: left; cursor: pointer; border-radius: var(--stp-radius);
}
.stp-note-title { font-size: 16px; font-weight: 650; color: var(--stp-ink); overflow-wrap: anywhere; }
.stp-note-toggle::after { content: ""; }
.stp-note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--stp-muted); }
.stp-note-actions { display: flex; gap: 6px; padding: 10px 12px 0 0; flex: 0 0 auto; }
.stp-note-body { padding: 4px 16px 16px; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; max-width: 80ch; }
.stp-note-body[hidden] { display: none; }

.stp-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.stp-page-btn { min-width: 38px; height: 38px; border: 1px solid var(--stp-line); background: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--stp-ink); }
.stp-page-btn.is-active { background: var(--stp-navy); border-color: var(--stp-navy); color: #fff; }

/* ==========================================================================
   İSTATİSTİKLER
========================================================================== */
.stp-stats { background: var(--stp-white); border: 1px solid var(--stp-line); border-radius: var(--stp-radius); padding: 18px 20px 22px; }
.stp-period { display: inline-flex; gap: 4px; padding: 4px; background: #E3E9F0; border-radius: 10px; margin-bottom: 18px; }
.stp-period .st-pm-period-btn { border: 0; background: transparent; padding: 8px 14px; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--stp-muted); cursor: pointer; }
.stp-period .st-pm-period-btn.st-pm-period-active { background: #fff; color: var(--stp-ink); box-shadow: 0 1px 2px rgba(1,35,69,.12); }

/* ==========================================================================
   BİLDİRİMLER — her proje ayrı kart
========================================================================== */
.stp-notif-groups { display: flex; flex-direction: column; gap: 18px; }
.stp-notif-group { background: var(--stp-white); border: 1px solid var(--stp-line); border-radius: var(--stp-radius); padding: 16px 18px 18px; }
.stp-notif-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.stp-notif-group .st-pm-notif-item { border-color: #E8EDF2; }
.stp-notif-group .st-pm-notif-item.is-unread { border-color: #FFD3A5; }

/* ==========================================================================
   AYARLAR — form
========================================================================== */
.stp-form { max-width: 720px; }
.stp-fieldset { border: 0; margin: 0 0 22px; padding: 22px 22px 6px; background: var(--stp-white); border: 1px solid var(--stp-line); border-radius: var(--stp-radius); }
.stp-fieldset legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; }
.stp-fieldset legend + * { clear: both; }
.stp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.stp-field { margin-bottom: 16px; }
.stp-field-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--stp-ink); }
.stp-req { color: var(--stp-red); }
.stp-input {
    width: 100%; min-height: 44px; padding: 10px 12px;
    border: 1px solid #C7D2DE; border-radius: 8px; background: #fff;
    font: inherit; font-size: 15px; color: var(--stp-ink);
}
.stp-input:focus { border-color: var(--stp-navy-3); outline: none; box-shadow: 0 0 0 3px rgba(29, 74, 115, .18); }
select.stp-input { appearance: auto; }
.stp-help { margin: 6px 0 0; font-size: 13px; color: var(--stp-muted); }
.stp-form-actions { margin-top: 4px; }

.stp-notice { max-width: 720px; margin: 0 0 20px; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.stp-notice p { margin: 0; }
.stp-notice ul { margin: 0; padding-left: 18px; }
.stp-notice--success { background: #E7F7EF; color: #05603A; border: 1px solid #A6E3C4; }
.stp-notice--error { background: #FEF0EF; color: #9F1C14; border: 1px solid #F9C7C3; }

/* ==========================================================================
   BOŞ DURUMLAR
========================================================================== */
.stp-empty { padding: 28px 24px; background: var(--stp-white); border: 1px dashed #C3CFDC; border-radius: var(--stp-radius); color: var(--stp-muted); max-width: 720px; }
.stp-empty p { margin: 0; }
.stp-empty p + p { margin-top: 6px; }
.stp-empty-title { color: var(--stp-ink); font-weight: 650; font-size: 16px; }
.stp-empty--inline { padding: 18px 20px; }

/* ==========================================================================
   GİRİŞ EKRANI
========================================================================== */
.stp-body--login { display: flex; min-height: 100vh; background: var(--stp-navy); }
.stp-login { margin: auto; width: 100%; max-width: 440px; padding: 24px 16px; }
.stp-login-card { background: var(--stp-white); border-radius: 14px; padding: 30px 28px; }
.stp-login-card .stp-brand { color: var(--stp-navy); margin-bottom: 22px; }
.stp-body .stp-login-card .stp-brand { color: var(--stp-navy); }
.stp-login-card .stp-brand-sub { color: var(--stp-muted); }
.stp-login-title { margin: 0 0 6px; font-size: 22px; line-height: 1.3; color: var(--stp-ink); }
.stp-login-lead { margin: 0 0 20px; color: var(--stp-muted); font-size: 14px; }
.stp-login-card form p, .stp-login-card .form-row { margin: 0 0 14px; }
.stp-login-card label { display: block; font-size: 14px; font-weight: 600; color: var(--stp-ink); margin-bottom: 6px; }
.stp-login-card input[type="text"], .stp-login-card input[type="email"], .stp-login-card input[type="password"] {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #C7D2DE; border-radius: 8px; font: inherit; font-size: 15px;
}
.stp-login-card input[type="checkbox"] { margin-right: 6px; }
.stp-login-card .woocommerce-form-login__rememberme, .stp-login-card .login-remember label { display: inline-flex; align-items: center; font-weight: 500; }
.stp-login-card button[type="submit"], .stp-login-card input[type="submit"] {
    width: 100%; min-height: 46px; margin-top: 6px; border: 0; border-radius: 8px; cursor: pointer;
    background: var(--stp-orange); color: var(--stp-navy); font: inherit; font-weight: 700; font-size: 15px;
}
.stp-login-card .woocommerce-LostPassword, .stp-login-lost { margin: 12px 0 0; font-size: 14px; }
.stp-login-card .woocommerce-error, .stp-login-card .woocommerce-message { list-style: none; margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #FEF0EF; color: #9F1C14; font-size: 14px; }
.stp-login-back { margin: 18px 0 0; text-align: center; font-size: 13px; }

/* ==========================================================================
   POP-UP (pm.css) — panel içinde küçük uyarlamalar
========================================================================== */
.stp-body .st-pm-modal-header { background: var(--stp-navy); }
.stp-body .st-pm-overlay { background: rgba(1, 35, 69, .55); }
.stp-body .st-pm-btn-primary { background: var(--stp-navy-3); border-color: var(--stp-navy-3); }

/* ==========================================================================
   DUYARLI TASARIM
========================================================================== */
@media (max-width: 1180px) {
    .stp-main { padding: 30px 28px 56px; }
}

@media (max-width: 960px) {
    .stp-topbar {
        position: sticky; top: 0; z-index: 50;
        display: flex; align-items: center; justify-content: space-between; gap: 8px;
        padding: 6px 8px; padding-top: max(6px, env(safe-area-inset-top));
        background: var(--stp-navy); color: #fff;
    }
    .stp-topbar .stp-brand { align-items: center; flex: 1; text-align: center; }
    .stp-topbar .stp-brand-sub { display: none; }
    .stp-topbar .stp-brand-logo { max-height: 30px; margin: 0 auto; }
    .stp-body .stp-topbar .stp-icon-btn { color: #fff; }
    .stp-topbar-bell .stp-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; font-size: 11px; }

    .stp-sidebar {
        width: min(300px, 86vw);
        transform: translateX(-100%);
        transition: transform .22s ease;
        visibility: hidden;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
    .stp-nav-open .stp-sidebar { transform: none; visibility: visible; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
    .stp-nav-open { overflow: hidden; }
    .stp-sidebar .stp-sidebar-close { display: inline-flex; color: #fff; margin: -8px -6px 0 0; }

    .stp-main { margin-left: 0; padding: 22px 16px 48px; }
    .stp-h1 { font-size: 24px; }
}

@media (max-width: 640px) {
    body.stp-body { font-size: 15px; }
    .stp-page-head { margin-bottom: 20px; }
    .stp-page-actions { width: 100%; }
    .stp-page-actions .stp-btn { flex: 1 1 auto; }
    .stp-project-grid, .stp-pay-list { grid-template-columns: 1fr; }
    .stp-project-link { padding: 16px; }
    .stp-tasklist { padding: 14px 12px 8px; }
    .stp-task-btn { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 4px; }
    .stp-task-status { grid-column: 1; grid-row: 1; }
    .stp-task-name { grid-column: 1 / -1; grid-row: 2; }
    .stp-task-tags { grid-column: 1 / -1; grid-row: 3; }
    .stp-task-meta { grid-column: 2; grid-row: 1; }
    .stp-grid-2 { grid-template-columns: 1fr; }
    .stp-fieldset { padding: 18px 16px 4px; }
    .stp-form-actions .stp-btn { width: 100%; }
    .stp-segment { display: flex; }
    .stp-segment-item { flex: 1; justify-content: center; padding: 9px 10px; }
    .stp-note-head { flex-direction: column; gap: 0; }
    .stp-note-actions { padding: 0 12px 10px; }
    .stp-pay { padding: 16px; }
    .stp-notif-group { padding: 14px 12px; }
    .st-pm-notif-item { padding: 12px; }
    .stp-login-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .stp-sidebar { transition: none; }
}

/* Bildirim satırları bağlantı rengini almasın */
.stp-body .st-pm-notif-item { color: var(--stp-text); }
.stp-body .st-pm-notif-text strong { color: var(--stp-ink); }

/* ==========================================================================
   v2.1.0
========================================================================== */

/* Menü başlığı — tıklanamaz, ikonsuz */
.stp-nav-heading {
    margin: 0 0 8px; padding: 0 12px;
    font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #8FA6C0;
}

/* Gecikmiş ödeme rozeti */
.stp-badge--danger { background: #F04438; color: #fff; }
.stp-nav-link .stp-badge + .stp-badge { margin-left: 6px; }

/* Bölüm başlığı + sağda bağlantı */
.stp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.stp-section-head .stp-h2 { margin: 0; }
.stp-section-link { font-size: 14px; font-weight: 600; }
.stp-section--first { margin-top: 0; }

/* Ödeme kartı */
.stp-pay-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stp-pay-project { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--stp-muted); }
.stp-body .stp-pay-project { color: var(--stp-muted); }
.stp-pay-project:hover { color: var(--stp-ink); text-decoration: underline; }
.stp-pay-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Geçmiş ödemeler tablosu */
.stp-table-wrap { background: var(--stp-white); border: 1px solid var(--stp-line); border-radius: var(--stp-radius); overflow: hidden; }
.stp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stp-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--stp-muted); background: #F6F8FB; padding: 11px 16px; border-bottom: 1px solid var(--stp-line); }
.stp-table td { padding: 12px 16px; border-bottom: 1px solid #EDF1F5; color: var(--stp-text); }
.stp-table tr:last-child td { border-bottom: 0; }
.stp-table .stp-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Fatura adresi formu */
.stp-form--billing { margin-top: 8px; scroll-margin-top: 80px; }
.stp-fieldset-lead { margin: -8px 0 16px; }
.stp-form + .stp-form { margin-top: 30px; }

/* Giriş ekranı logosu */
.stp-login-card .stp-brand-logo { max-height: 44px; }

@media (max-width: 640px) {
    .stp-pay-actions .stp-btn { flex: 1 1 auto; }
    .stp-table thead { display: none; }
    .stp-table, .stp-table tbody, .stp-table tr, .stp-table td { display: block; width: 100%; }
    .stp-table tr { padding: 10px 14px; border-bottom: 1px solid #EDF1F5; }
    .stp-table tr:last-child { border-bottom: 0; }
    .stp-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; }
    .stp-table td::before { content: attr(data-label); color: var(--stp-muted); font-size: 13px; }
    .stp-table .stp-num { text-align: right; }
}

/* v2.1.2 — geçmiş ödeme durumları */
.stp-chip--paid { background: #E7F7EF; color: #05603A; }
.stp-chip--refund { background: #F3E8FF; color: #6B21A8; }

/* v2.1.3 — Giriş ekranı düzeni */
.stp-login-card .stp-login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 12px; font-size: 14px; }
.stp-login-card .stp-login-row label { display: inline-flex; align-items: center; margin: 0; font-weight: 500; cursor: pointer; }
.stp-login-card .stp-login-row label input { margin: 0 8px 0 0; }
.stp-login-card .stp-login-lost-link { color: var(--stp-navy-3); font-weight: 500; }
.stp-login-card .stp-login-verify { margin: 0 0 12px; }
.stp-login-card .g-recaptcha, .stp-login-card .h-captcha, .stp-login-card .cf-turnstile { margin: 0 0 12px; max-width: 100%; }
.stp-login-card .stp-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--stp-muted); font-size: 13px; }
.stp-login-card .stp-divider::before, .stp-login-card .stp-divider::after { content: ""; flex: 1; height: 1px; background: var(--stp-line); }
.stp-login-card .stp-social { display: grid; gap: 10px; }
.stp-login-card .stp-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 1px solid #C7D2DE; border-radius: 8px; background: var(--stp-white); color: var(--stp-ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s; }
.stp-login-card .stp-social-btn:hover { background: var(--stp-paper); border-color: #9FB0C3; }
.stp-login-card .stp-social-btn:focus-visible { outline: 2px solid var(--stp-orange); outline-offset: 2px; }
.stp-login-card .stp-social-btn svg { flex: none; }
@media (max-width: 380px) { .stp-login-card .g-recaptcha { transform: scale(.9); transform-origin: 0 0; } }
.stp-login-card .wc-block-components-notice-banner { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border: 0; border-radius: 8px; background: #FEF0EF; color: #9F1C14; font-size: 14px; }
.stp-login-card .wc-block-components-notice-banner > svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: currentColor; }
.stp-login-card .wc-block-components-notice-banner.is-success, .stp-login-card .wc-block-components-notice-banner.is-info { background: #EAF6F0; color: #0B6B4B; }

/* v2.1.4 — Trafik raporu başlıkları beyaz zeminde okunur */
.stp-body .st-pm-traffic-section-title,
.stp-body .st-pm-traffic-channel-title { color: #0F2238; }

/* v2.2.0 — Panelde düzenleme */
.stp-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.stp-btn--danger { color: var(--stp-red); }
.stp-body .stp-btn--danger { color: var(--stp-red); }
.stp-btn--danger:hover { border-color: var(--stp-red); background: #FEF3F2; }
.stp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.stp-section-head .stp-h2 { margin: 0; }
.stp-drag-hint { margin: -6px 0 12px; }
.stp-tasklist-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.stp-tasklist-actions { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.stp-drag { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 26px; color: #94A3B8; cursor: grab; border-radius: 6px; align-self: center; }
.stp-drag:hover { color: var(--stp-ink); background: #EEF2F7; }
.stp-drag .stp-icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.stp-task--draggable { display: flex; align-items: center; gap: 4px; }
.stp-task--draggable .stp-task-btn { flex: 1; min-width: 0; }
.stp-sort-placeholder { list-style: none; min-height: 48px; margin: 4px 0; border: 2px dashed #C7D2DE; border-radius: 8px; background: #F5F8FB; }
.stp-tasklist.ui-sortable-helper, .stp-task.ui-sortable-helper { box-shadow: 0 8px 24px rgba(1, 35, 69, .15); background: var(--stp-white); }
@media (max-width: 640px) {
    .stp-tasklist-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .stp-drag { display: none; } /* mobilde taşıma görev penceresindeki "Görev Listesi" alanıyla yapılır */
    .stp-drag-hint { display: none; }
}

/* v2.2.1 — Proje kartı ve proje sayfası yönetim butonları */
.stp-project-card { display: flex; flex-direction: column; }
.stp-project-card .stp-project-link { flex: 1; }
.stp-project-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid #EDF1F5; }
.stp-project-actions .stp-btn { min-height: 34px; padding: 5px 11px; font-size: 13px; }
.stp-page-actions .stp-btn { white-space: nowrap; }
@media (max-width: 640px) { .stp-project-actions { padding: 12px 16px 14px; } }

/* v2.4.0 — Trafik raporundaki bilgi mesajları beyaz zeminde okunur */
.stp-body .st-pm-traffic-panel-front .st-pm-empty { color: var(--stp-muted); }
