/* ============================================================
   Partner (İş Ortağı) alanı - bağımsız stil
   Ana site temasından tamamen ayrıdır.
   ============================================================ */

:root {
    --pt-bg: #f4f6fb;
    --pt-surface: #ffffff;
    --pt-border: #e2e8f0;
    --pt-text: #1e293b;
    --pt-muted: #64748b;
    --pt-primary: #229fff;
    --pt-primary-dark: #1a85d6;
    --pt-primary-soft: #eaf4ff;
    --pt-accent: #229fff;
    --pt-danger: #dc2626;
    --pt-ok-bg: #ecfdf5;
    --pt-ok-border: #a7f3d0;
    --pt-ok-text: #065f46;
    --pt-err-bg: #fef2f2;
    --pt-err-border: #fecaca;
    --pt-err-text: #991b1b;
    --pt-radius: 14px;
    --pt-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

.pt-body {
    margin: 0;
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--pt-text);
    background: var(--pt-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--pt-primary); }

.pt-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Topbar + Header ---------- */
.pt-topbar { height: 6px; background: #1f2937; }

.pt-header {
    background: var(--pt-surface);
    border-bottom: 1px solid var(--pt-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.pt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
}

.pt-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--pt-text);
    line-height: 1;
}

.pt-brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

.pt-brand-divider {
    width: 1px;
    height: 24px;
    background: var(--pt-border);
    flex: none;
    align-self: center;
}

.pt-brand-text {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: .85rem;
    letter-spacing: .01em;
    line-height: 1;
    color: var(--pt-muted);
}

.pt-nav { display: flex; align-items: center; gap: 16px; }
.pt-nav-link { text-decoration: none; color: var(--pt-muted); font-weight: 500; font-size: 14px; }
.pt-nav-link:hover { color: var(--pt-primary); }
.pt-nav-user { font-size: 13px; color: var(--pt-muted); }
.pt-inline-form { margin: 0; }

/* ---------- Buttons ---------- */
.pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--pt-primary);
    border: 1px solid var(--pt-primary);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .05s, border-color .15s;
}

.pt-btn:hover { background: var(--pt-primary-dark); border-color: var(--pt-primary-dark); }
.pt-btn:active { transform: translateY(1px); }
.pt-btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.pt-btn--lg { padding: 13px 26px; font-size: 15px; }
.pt-btn--block { width: 100%; }
.pt-btn--ghost { background: #fff; color: var(--pt-primary); border-color: var(--pt-border); }
.pt-btn--ghost:hover { background: var(--pt-primary-soft); border-color: var(--pt-primary); color: var(--pt-primary); }

/* ---------- Flash ---------- */
.pt-flash {
    margin: 18px auto 0;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 500;
    font-size: 14px;
}
.pt-flash--ok { background: var(--pt-ok-bg); border: 1px solid var(--pt-ok-border); color: var(--pt-ok-text); }
.pt-flash--err { background: var(--pt-err-bg); border: 1px solid var(--pt-err-border); color: var(--pt-err-text); }

/* ---------- Landing / hero ---------- */
.pt-hero-wrap { background: linear-gradient(180deg, #f8fafc 0%, var(--pt-bg) 100%); border-bottom: 1px solid var(--pt-border); }

.pt-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
    padding: 64px 20px;
}

.pt-eyebrow { margin: 0 0 10px; color: var(--pt-muted); font-size: .95rem; }

.pt-hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.pt-accent { color: var(--pt-primary); }

.pt-lead { margin: 0 0 26px; color: var(--pt-muted); font-size: 1.05rem; max-width: 520px; }

.pt-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.pt-hero-art { display: flex; justify-content: center; }
.pt-hero-art svg { width: 100%; max-width: 360px; height: auto; }

/* ---------- Sections ---------- */
.pt-section { padding: 56px 0 72px; }
.pt-section-title { text-align: center; font-size: 1.6rem; margin: 0 0 36px; font-weight: 700; }

.pt-howto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    background: var(--pt-surface);
    overflow: hidden;
}

.pt-howto-card { padding: 32px 28px; text-align: center; border-right: 1px solid var(--pt-border); }
.pt-howto-card:last-child { border-right: 0; }
.pt-howto-icon { font-size: 2rem; }
.pt-howto-card h3 { margin: 12px 0 10px; font-size: 1.15rem; }
.pt-howto-card p { color: var(--pt-muted); font-size: .92rem; margin: 0 0 12px; }
.pt-howto-card a { font-weight: 600; text-decoration: none; }

.pt-cta { text-align: center; margin-top: 36px; }

/* ---------- Auth pages ---------- */
.pt-auth-wrap { padding: 48px 0 72px; display: flex; justify-content: center; }

.pt-auth-card {
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    box-shadow: var(--pt-shadow);
    padding: 34px;
    width: 100%;
    max-width: 420px;
}

.pt-auth-card--wide { max-width: 720px; }
.pt-auth-card--center { text-align: center; }

.pt-auth-title { margin: 0 0 6px; font-size: 1.5rem; font-weight: 700; }
.pt-auth-sub { margin: 0 0 22px; color: var(--pt-muted); font-size: .92rem; }
.pt-auth-foot { margin: 18px 0 0; text-align: center; font-size: .9rem; }
.pt-big-icon { font-size: 3rem; line-height: 1; margin-bottom: 8px; }

/* ---------- Form fields ---------- */
.pt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }

.pt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.pt-field--full { grid-column: 1 / -1; }
.pt-grid .pt-field { margin-bottom: 0; }

.pt-field label { font-size: .86rem; font-weight: 600; }
.pt-req { color: var(--pt-danger); }

.pt-field input,
.pt-field select,
.pt-field textarea {
    font: inherit;
    color: var(--pt-text);
    background: #fff;
    border: 1px solid var(--pt-border);
    border-radius: 10px;
    padding: 11px 13px;
    outline: none;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}

.pt-field input:focus,
.pt-field select:focus,
.pt-field textarea:focus {
    border-color: var(--pt-primary);
    box-shadow: 0 0 0 3px var(--pt-primary-soft);
}

.pt-field textarea { resize: vertical; min-height: 100px; }

/* Şifre göster / gizle */
.pt-pass-wrap { position: relative; display: block; }
.pt-pass-wrap input { padding-right: 42px; }
.pt-pass-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pt-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.pt-pass-toggle:hover { color: var(--pt-text); background: var(--pt-primary-soft); }
.pt-pass-toggle svg { width: 18px; height: 18px; display: block; }
.pt-pass-toggle .pt-eye-off { display: none; }
.pt-pass-toggle.is-on .pt-eye-on { display: none; }
.pt-pass-toggle.is-on .pt-eye-off { display: block; }

.pt-check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--pt-muted); }
.pt-grid .pt-check { grid-column: 1 / -1; }
.pt-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.pt-check--inline { align-items: center; }
.pt-check--inline input { margin-top: 0; }

.pt-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; font-size: .88rem; }
.pt-row-between a { text-decoration: none; }

.pt-error { color: var(--pt-danger); font-size: .82rem; }
.pt-error--block { display: block; grid-column: 1 / -1; margin-bottom: 6px; }
.pt-error--block ul { margin: 0; padding-left: 18px; }

.pt-actions { grid-column: 1 / -1; margin-top: 4px; }

/* ---------- Panel ---------- */
.pt-panel { padding: 28px 20px 72px; }
.pt-panel-head { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pt-panel-head h1 { margin: 0 0 4px; font-size: 1.5rem; }
.pt-muted-text { color: var(--pt-muted); margin: 0; font-size: .92rem; }
.pt-small { font-size: .82rem; }

/* tab bar */
.pt-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--pt-border);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.pt-tab {
    padding: 12px 16px;
    text-decoration: none;
    color: var(--pt-muted);
    font-weight: 600;
    font-size: .92rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
    border-top: 0; border-left: 0; border-right: 0;
    cursor: pointer;
    font-family: inherit;
}

.pt-tab:hover { color: var(--pt-primary); }
.pt-tab--active { color: var(--pt-primary); border-bottom-color: var(--pt-primary); }
.pt-tabs-logout { margin: 0 0 0 auto; }
.pt-tab--logout { color: var(--pt-danger); }

.pt-panel-card {
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    box-shadow: var(--pt-shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.pt-panel-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.pt-sub { margin: 20px 0 8px; font-size: .95rem; color: var(--pt-muted); }

.pt-block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.pt-block-title h2 { margin: 0; }

.pt-badge {
    display: inline-block;
    background: #1f2937;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.pt-two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 12px; }
.pt-two-col--top { align-items: start; }

.pt-copy-row { display: flex; gap: 10px; margin: 14px 0 8px; }
.pt-copy-row input {
    flex: 1;
    min-width: 0;
    font: inherit;
    border: 1px solid var(--pt-border);
    border-radius: 10px;
    padding: 11px 13px;
    background: #f8fafc;
    color: var(--pt-text);
}

.pt-inline-links { display: flex; gap: 18px; font-size: .88rem; }
.pt-inline-links a { text-decoration: none; }

.pt-note-box {
    background: var(--pt-primary-soft);
    border: 1px solid #cfe6ff;
    border-radius: 12px;
    padding: 16px 18px;
}
.pt-note-box h3 { margin: 0 0 6px; font-size: .95rem; }
.pt-note-box p { margin: 0; font-size: .86rem; color: var(--pt-muted); }

.pt-date-range { display: flex; align-items: center; gap: 8px; }
.pt-date-range input {
    font: inherit;
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    padding: 7px 10px;
    color: var(--pt-text);
    background: #fff;
}

.pt-stat-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: 1px solid var(--pt-border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 14px;
}
.pt-stat-row--2 { grid-template-columns: repeat(2, 1fr); }

.pt-stat { padding: 20px 18px; border-right: 1px solid var(--pt-border); }
.pt-stat:last-child { border-right: 0; }
.pt-stat-value { display: block; font-size: 1.7rem; font-weight: 700; }
.pt-stat-label { display: block; font-size: .8rem; color: var(--pt-muted); margin-top: 4px; }

.pt-empty {
    border: 1px dashed var(--pt-border);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    color: var(--pt-muted);
    font-size: .9rem;
    margin-top: 12px;
}

.pt-field--narrow { max-width: 320px; }

/* Tablo (Müşterilerim vb.) */
.pt-table-wrap { margin-top: 14px; overflow-x: auto; }
.pt-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pt-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--pt-border);
    color: var(--pt-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}
.pt-table td { padding: 11px 12px; border-bottom: 1px solid var(--pt-border); vertical-align: top; }
.pt-table tbody tr:hover td { background: #f8fafc; }
.pt-table tr:last-child td { border-bottom: 0; }

/* Kurallar / prose */
.pt-prose { line-height: 1.7; }
.pt-prose h3 { margin: 26px 0 10px; font-size: 1.1rem; }
.pt-prose p { margin: 0 0 12px; color: #334155; }
.pt-prose ul { margin: 0 0 12px; padding-left: 22px; color: #334155; }
.pt-prose li { margin: 4px 0; }
.pt-prose code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* ---------- Footer ---------- */
.pt-footer { border-top: 1px solid var(--pt-border); background: var(--pt-surface); padding: 36px 0; }

.pt-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 28px 40px;
    align-items: start;
}

.pt-footer-col { display: flex; flex-direction: column; gap: 8px; }
.pt-footer-col h4 { margin: 0 0 4px; font-size: .85rem; font-weight: 700; color: var(--pt-text); }
.pt-footer-col a { text-decoration: none; color: var(--pt-primary); font-size: .88rem; }
.pt-footer-col a:hover { text-decoration: underline; }

.pt-footer-col--end { align-items: flex-end; text-align: right; }
.pt-footer-col--end p { margin: 0; color: var(--pt-muted); font-size: .85rem; }
.pt-footer-col--end a { color: var(--pt-primary); text-decoration: none; }
.pt-footer-lang { font-size: .82rem; color: var(--pt-muted); }

.pt-footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--pt-border);
}
.pt-footer-bottom p {
    margin: 0;
    text-align: center;
    color: var(--pt-muted);
    font-size: .82rem;
}

@media (max-width: 720px) {
    .pt-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .pt-footer-col--end { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .pt-hero-grid { grid-template-columns: 1fr; padding: 44px 20px; }
    .pt-hero-art { order: -1; }
    .pt-howto { grid-template-columns: 1fr; }
    .pt-howto-card { border-right: 0; border-bottom: 1px solid var(--pt-border); }
    .pt-howto-card:last-child { border-bottom: 0; }
    .pt-two-col { grid-template-columns: 1fr; gap: 20px; }
    .pt-stat-row { grid-template-columns: repeat(2, 1fr); }
    .pt-stat:nth-child(2n) { border-right: 0; }
    .pt-stat { border-bottom: 1px solid var(--pt-border); }
}

@media (max-width: 560px) {
    .pt-grid { grid-template-columns: 1fr; }
    .pt-auth-card { padding: 24px; }
    .pt-stat-row, .pt-stat-row--2 { grid-template-columns: 1fr; }
    .pt-stat { border-right: 0; }
    .pt-nav { gap: 10px; }
    .pt-tabs { gap: 0; }
    .pt-tab { padding: 10px 11px; font-size: .85rem; }
    .pt-date-range { flex-wrap: wrap; }
}
