/* ==========================================================================
   SEO Temel | Yayıncılar ve Backlinkler — Yayıncı Paneli iskeleti

   Bu dosya, SEO Temel | Project Manager v2.1.4 "Müşteri Paneli" stil dosyasının
   (assets/css/panel.css) birebir kopyasıdır; iki panelin aynı görünmesi için
   kurallar değiştirilmemiştir. Tek fark sınıf ön ekidir: "stp-" yerine "ypn-".
   Siparişlerim kısa kodu kendi içinde "stp-" sınıfları kullandığı için ön ek
   değiştirilerek çakışma önlenmiştir.

   Müşteri Paneli'nin görünümü güncellenirse bu dosya da aynı şekilde
   güncellenmelidir (stp- → ypn- değişimiyle).
========================================================================== */

/* ==========================================================================
   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 {
    --ypn-navy:      #012345;
    --ypn-navy-2:    #0B3157;
    --ypn-navy-3:    #1D4A73;
    --ypn-orange:    #FF8A1F;
    --ypn-orange-lt: #FFE7CF;
    --ypn-ink:       #0F2238;
    --ypn-text:      #26384D;
    --ypn-muted:     #5D6F84;
    --ypn-line:      #DCE3EB;
    --ypn-paper:     #F2F5F9;
    --ypn-white:     #FFFFFF;
    --ypn-green:     #0E9F6E;
    --ypn-red:       #D92D20;
    --ypn-amber:     #B45309;
    --ypn-radius:    10px;
    --ypn-sidebar:   248px;
    --ypn-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.ypn-body {
    margin: 0;
    min-height: 100vh;
    background: var(--ypn-paper);
    color: var(--ypn-text);
    font-family: var(--ypn-font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.ypn-body a { color: var(--ypn-navy-3); }
.ypn-body img { max-width: 100%; height: auto; }
.ypn-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(--ypn-orange); outline-offset: 2px; }

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

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

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

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

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

/* Menü */
.ypn-nav ul, .ypn-foot-links { list-style: none; margin: 0; padding: 0; }
.ypn-nav li + li { margin-top: 2px; }
.ypn-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;
}
.ypn-body .ypn-nav-link { color: #C9D6E5; }
.ypn-nav-link:hover { background: var(--ypn-navy-2); color: #fff; }
.ypn-nav-link.is-active { background: var(--ypn-navy-2); color: #fff; }
.ypn-nav-link.is-active::before {
    content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--ypn-orange);
}
.ypn-nav-link.is-active .ypn-icon { color: var(--ypn-orange); }
.ypn-nav-link .ypn-badge { margin-left: auto; }

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

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

.ypn-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;
}
.ypn-avatar--sm { width: 26px; height: 26px; font-size: 11px; margin-left: -6px; border: 2px solid #fff; }
.ypn-avatar--sm:first-child { margin-left: 0; }
.ypn-avatar--more { background: #94A3B8; }

/* Mobil üst çubuk */
.ypn-topbar { display: none; }
.ypn-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;
}
.ypn-backdrop { position: fixed; inset: 0; background: rgba(1, 35, 69, .45); z-index: 55; }
.ypn-backdrop[hidden] { display: none; }

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

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

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

.ypn-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;
}
.ypn-btn .ypn-icon { width: 18px; height: 18px; }
.ypn-btn--primary { background: var(--ypn-orange); color: var(--ypn-navy); }
.ypn-body .ypn-btn--primary { color: var(--ypn-navy); }
.ypn-btn--primary:hover { background: #F07A0E; }
.ypn-btn--ghost { background: var(--ypn-white); border-color: var(--ypn-line); color: var(--ypn-ink); }
.ypn-body .ypn-btn--ghost { color: var(--ypn-ink); }
.ypn-btn--ghost:hover { border-color: #A9B7C7; }
.ypn-btn[disabled] { opacity: .6; cursor: default; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (max-width: 960px) {
    .ypn-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(--ypn-navy); color: #fff;
    }
    .ypn-topbar .ypn-brand { align-items: center; flex: 1; text-align: center; }
    .ypn-topbar .ypn-brand-sub { display: none; }
    .ypn-topbar .ypn-brand-logo { max-height: 30px; margin: 0 auto; }
    .ypn-body .ypn-topbar .ypn-icon-btn { color: #fff; }
    .ypn-topbar-bell .ypn-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; font-size: 11px; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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