/* ============================================================
   Tablo editörü — kompakt toolbar + sağdan açılan araç çekmecesi
   ============================================================ */
.s-toolbar-spacer { flex: 1; min-width: 0; }
.s-tools-toggle {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    background: var(--accent-soft); border: 1px solid var(--accent-dim);
    color: var(--accent-bright); padding: 7px 13px; border-radius: 9px;
    font-size: 13px; font-weight: 700; cursor: pointer;
}
.s-tools-toggle:hover { filter: brightness(1.1); }
.s-tools-toggle svg { width: 16px; height: 16px; }

.tool-drawer-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
    z-index: 150;
}
.tool-drawer-backdrop.open { opacity: 1; visibility: visible; }

.tool-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(340px, 86vw);
    background: var(--bg-elevated); border-left: 1px solid var(--border-strong);
    box-shadow: -14px 0 44px rgba(0,0,0,.42);
    transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 160; display: flex; flex-direction: column;
}
.tool-drawer.open { transform: translateX(0); }
.tool-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.tool-drawer-head h3 { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-primary); }
.tool-drawer-head h3 svg { width: 19px; height: 19px; color: var(--accent2); }
.tool-drawer-body { flex: 1; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }
.tool-sec { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); margin: 16px 0 8px; }
.tool-sec:first-child { margin-top: 2px; }

/* Araçları dikey tam-genişlik satırlara çevir */
.tool-drawer .s-tools { flex-direction: column; align-items: stretch; gap: 8px; overflow: visible; flex: none; min-width: 0; }
.tool-drawer .s-btn { width: 100%; justify-content: flex-start; gap: 11px; padding: 13px 15px; border-radius: 12px; font-size: 15px; }
.tool-drawer .s-btn svg { width: 18px; height: 18px; }
.tool-drawer .s-color-lbl { justify-content: flex-start; }
.tool-drawer .s-color-lbl .s-color-a { width: 18px; text-align: center; }
.tool-drawer .s-grp-wide { display: flex; gap: 8px; padding: 0; background: none; border: none; }
.tool-drawer .s-grp-wide button { flex: 1; padding: 13px; border-radius: 12px; font-size: 16px; background: var(--bg-surface-2); border: 1px solid var(--border-strong); color: var(--text-secondary); }
.tool-drawer .s-grp-wide button:hover { color: var(--text-primary); border-color: var(--text-muted); background: var(--bg-surface-2); }
.tool-drawer .s-grp-wide button.on { background: var(--accent); color: #07221b; border-color: transparent; }

/* ============================================================
   Çek İskonto
   ============================================================ */
.chk-suffix { color: var(--text-muted); font-size: 16px; font-weight: 700; flex-shrink: 0; }
.chk-vade-row { display: flex; gap: 10px; align-items: stretch; }
.chk-vade-row .krd-input { flex: 1; }
.chk-date-btn { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 0 16px; border-radius: 13px; background: var(--accent2-soft); border: 1px solid var(--accent2); color: var(--accent2); font-size: 14px; font-weight: 700; cursor: pointer; }
.chk-date-btn:hover { filter: brightness(1.08); }
.chk-date-btn svg { width: 17px; height: 17px; }
.chk-date-input { margin-top: 10px; width: 100%; padding: 12px 14px; border-radius: 13px; background: var(--bg-surface-2); border: 1px solid var(--border); color: var(--text-primary); font-size: 15px; }

.chk-result { padding: 18px; border-radius: 20px; background: var(--bg-surface); border: 1px solid var(--border); margin: 22px 0; }
.chk-result-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.chk-result-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: #22c55e; color: #fff; flex-shrink: 0; }
.chk-result-ic svg { width: 24px; height: 24px; }
.chk-result-lbl { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.chk-result-empty { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-muted); }
.chk-result-empty svg { width: 17px; height: 17px; }
.chk-result-val { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: #22c55e; letter-spacing: -.5px; }
.chk-detail { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.chk-drow { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--text-secondary); }
.chk-drow em { font-style: normal; font-size: 12px; color: var(--text-muted); }
.chk-drow b { color: var(--text-primary); font-weight: 700; }
.chk-drow b.cost { color: #f59e0b; }

.chk-formula { position: relative; display: flex; gap: 13px; padding: 16px 18px 16px 20px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); overflow: hidden; }
.chk-formula::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #8b5cf6; }
.chk-formula-ic { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: #8b5cf6; line-height: 1.1; flex-shrink: 0; }
.chk-formula-body { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   Belge Tarayıcı
   ============================================================ */
.scan-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px; border-radius: 22px; background: var(--bg-surface); border: 1px solid var(--border); }
.scan-card[hidden] { display: none; }
.scan-card-ic { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 24px; background: var(--accent2); color: #fff; margin-bottom: 18px; box-shadow: 0 8px 28px rgba(74,147,255,.42); }
.scan-card-ic svg { width: 42px; height: 42px; }
.scan-card h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.scan-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 22px; max-width: 420px; }
.scan-btn { width: 100%; max-width: 440px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 16px; border-radius: 15px; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.scan-btn + .scan-btn { margin-top: 11px; }
.scan-btn svg { width: 19px; height: 19px; }
.scan-btn.primary { border: 0; background: linear-gradient(135deg, var(--accent2), #6aa9ff); color: #fff; box-shadow: 0 6px 18px rgba(74,147,255,.32); }
.scan-btn.ghost { background: var(--bg-surface-2); border: 1px solid var(--border-strong); color: var(--text-primary); }
.scan-btn.ghost:hover { border-color: var(--accent2); }

.scan-collected[hidden] { display: none; }
.scan-count { display: inline-block; margin-left: 6px; font-family: var(--font-display); color: var(--accent2); }
.scan-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scan-page { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-surface-2); border: 1px solid var(--border); aspect-ratio: 3 / 4; }
.scan-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-page-no { position: absolute; left: 8px; top: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.scan-page-del { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; border: none; }
.scan-page-del:hover { background: var(--danger); }
.scan-page-del svg { width: 15px; height: 15px; }

.scan-bottom { position: sticky; bottom: 16px; display: flex; gap: 12px; margin-top: 24px; }
.scan-bottom-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; border-radius: 15px; font-size: 15px; font-weight: 700; cursor: pointer; }
.scan-bottom-btn svg { width: 18px; height: 18px; }
.scan-bottom-btn.ghost { background: var(--bg-surface); border: 1px solid var(--border-strong); color: var(--text-primary); }
.scan-bottom-btn.primary { border: 0; background: linear-gradient(135deg, var(--accent2), #6aa9ff); color: #fff; box-shadow: 0 6px 18px rgba(74,147,255,.32); }
.scan-bottom-btn.primary:disabled { opacity: .5; box-shadow: none; cursor: default; }
@media (max-width: 860px) { .scan-bottom { position: fixed; left: 16px; right: 16px; bottom: calc(var(--bottomnav-h, 72px) + 12px); margin: 0; z-index: 60; } }

/* ============================================================
   Sorun Bildir
   ============================================================ */
.sr-info { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 24px; border-radius: 20px; background: var(--bg-surface); border: 1px solid var(--border); margin-bottom: 24px; }
.sr-info-ic { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 18px; background: var(--accent2); color: #fff; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(74,147,255,.38); }
.sr-info-ic svg { width: 32px; height: 32px; }
.sr-info h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.sr-info p { font-size: 14px; color: var(--text-muted); line-height: 1.55; max-width: 440px; }

.sr-group { position: relative; padding: 14px 16px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border); overflow: hidden; }
.sr-group::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent2); }

.sr-opt { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--border); cursor: pointer; transition: .12s; }
.sr-opt + .sr-opt { margin-top: 10px; }
.sr-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.sr-opt-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; flex-shrink: 0; }
.sr-opt-ic svg { width: 22px; height: 22px; }
.sr-red { background: #ef4444; } .sr-amber { background: #f59e0b; } .sr-green { background: #22c55e; } .sr-purple { background: #8b5cf6; }
.sr-opt-label { flex: 1; font-size: 16px; font-weight: 600; color: var(--text-primary); }
.sr-opt-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; display: grid; place-items: center; color: transparent; transition: .12s; }
.sr-opt-radio svg { width: 15px; height: 15px; stroke-width: 3; }
.sr-opt:has(input:checked) { border-color: var(--accent2); background: var(--accent2-soft); }
.sr-opt:has(input:checked) .sr-opt-radio { background: var(--accent2); border-color: var(--accent2); color: #fff; }

.sr-count { text-align: right; font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   Taleplerim (My Support Tickets)
   ============================================================ */
.tm-sub-desc { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.tm-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary); flex-shrink: 0; transition: .12s; text-decoration: none; }
.tm-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.tm-icon-btn svg { width: 19px; height: 19px; }

.tk-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 26px; border-radius: 22px; background: var(--bg-surface); border: 1px solid var(--border); margin-top: 8px; }
.tk-empty-ic { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 22px; background: var(--accent2); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 28px rgba(74,147,255,.4); }
.tk-empty-ic svg { width: 36px; height: 36px; }
.tk-empty h2 { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 1px; color: var(--text-primary); margin-bottom: 9px; }
.tk-empty p { font-size: 14px; color: var(--text-muted); line-height: 1.55; max-width: 400px; }

.tk-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; padding-bottom: 90px; }
.tk-card { padding: 16px 16px 15px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border); }
.tk-top { display: flex; align-items: flex-start; gap: 12px; }
.tk-cat-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; flex-shrink: 0; }
.tk-cat-ic svg { width: 21px; height: 21px; }
.tk-head { flex: 1; min-width: 0; }
.tk-subj { font-size: 15.5px; font-weight: 700; color: var(--text-primary); line-height: 1.35; word-break: break-word; }
.tk-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.tk-badge { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; }
.tk-badge-open { background: rgba(245,158,11,.16); color: #f59e0b; }
.tk-badge-ok { background: rgba(34,197,94,.16); color: #22c55e; }
.tk-badge-mut { background: var(--bg-elevated); color: var(--text-muted); }
.tk-msg { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin-top: 12px; white-space: pre-wrap; word-break: break-word; }
.tk-reply { margin-top: 13px; padding: 13px 14px; border-radius: 14px; background: var(--accent2-soft); border: 1px solid rgba(74,147,255,.25); }
.tk-reply-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--accent2); margin-bottom: 7px; }
.tk-reply-head svg { width: 15px; height: 15px; }
.tk-reply-body { font-size: 14px; color: var(--text-primary); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }

/* ============================================================
   Değerlendirme (Görüşleriniz)
   ============================================================ */
.rv-info { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 24px; border-radius: 22px; background: var(--bg-surface); border: 1px solid var(--border); margin-bottom: 26px; }
.rv-info-ic { display: inline-flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 22px; background: #16b364; color: #fff; margin-bottom: 16px; box-shadow: 0 10px 28px rgba(22,179,100,.4); }
.rv-info-ic svg { width: 36px; height: 36px; }
.rv-info h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .5px; color: var(--text-primary); margin-bottom: 9px; }
.rv-info p { font-size: 14px; color: var(--text-muted); line-height: 1.55; max-width: 420px; }

.rv-card { position: relative; padding: 18px 18px 20px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border); overflow: hidden; margin-bottom: 16px; }
.rv-card.rv-accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent2); }
.rv-q { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin-bottom: 16px; }

.rv-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.rv-head-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent2-soft); color: var(--accent2); flex-shrink: 0; }
.rv-head-ic svg { width: 23px; height: 23px; }
.rv-head-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.rv-head-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }

.rv-stars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rv-star { display: flex; align-items: center; justify-content: center; height: 62px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-muted); cursor: pointer; transition: .12s; }
.rv-star svg { width: 30px; height: 30px; stroke-width: 1.6; fill: none; }
.rv-star:hover { border-color: var(--accent2); }
.rv-star.on { border-color: #f5a623; color: #f5a623; }
.rv-star.on svg { fill: #f5a623; }

.rv-card textarea { width: 100%; min-height: 150px; resize: vertical; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 14px; color: var(--text-primary); font-size: 15px; line-height: 1.55; font-family: inherit; }
.rv-card textarea:focus { outline: none; border-color: var(--accent2); }
.rv-count { text-align: right; font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }

.rv-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; }
.rv-past { padding: 16px 16px 15px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); }
.rv-past-top { display: flex; align-items: center; justify-content: space-between; }
.rv-past-stars { display: inline-flex; gap: 3px; color: var(--text-muted); }
.rv-past-stars svg { width: 17px; height: 17px; fill: none; }
.rv-past-stars svg.on { color: #f5a623; fill: #f5a623; }
.rv-past-date { font-size: 12.5px; color: var(--text-muted); }
.rv-past-comment { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin-top: 10px; white-space: pre-wrap; word-break: break-word; }

/* ============================================================
   Satın Alınanlar
   ============================================================ */
.pu-plan { display: flex; align-items: center; gap: 16px; padding: 18px 18px; border-radius: 20px; background: linear-gradient(135deg, rgba(74,147,255,.16), rgba(74,147,255,.04)); border: 1px solid var(--border); margin-bottom: 26px; box-shadow: 0 10px 30px rgba(74,147,255,.14); }
.pu-plan-ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; background: var(--bg-elevated); color: var(--text-secondary); flex-shrink: 0; }
.pu-plan-ic svg { width: 26px; height: 26px; }
.pu-plan-info { flex: 1; min-width: 0; }
.pu-plan-label { font-size: 13.5px; color: var(--text-muted); }
.pu-plan-name { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1.1; margin-top: 2px; }
.pu-plan-btn { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 13px; background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text-primary); font-size: 15px; font-weight: 600; text-decoration: none; flex-shrink: 0; transition: .12s; }
.pu-plan-btn:hover { border-color: var(--accent2); color: var(--accent2); }

.pu-list { border-radius: 20px; background: var(--bg-surface); border: 1px solid var(--border); overflow: hidden; }
.pu-card { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px 18px; }
.pu-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent2); }
.pu-card + .pu-card { border-top: 1px solid var(--border); }
.pu-card-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent2-soft); color: var(--accent2); flex-shrink: 0; }
.pu-card-ic svg { width: 22px; height: 22px; }
.pu-card-body { flex: 1; min-width: 0; }
.pu-card-name { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.pu-card-date { font-size: 14px; color: var(--text-muted); margin-top: 3px; }
.pu-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(34,197,94,.14); color: #22c55e; font-size: 12.5px; font-weight: 600; }
.pu-badge svg { width: 14px; height: 14px; }
.pu-card-price { font-size: 19px; font-weight: 800; color: var(--accent2); flex-shrink: 0; white-space: nowrap; }
.pu-foot { text-align: center; font-size: 13.5px; color: var(--text-muted); margin: 20px 0 40px; }

