/* ═══════════════════════════════════════════════════════════════
   DsLab Panel — v3 tasarım katmanı
   styles.css + dashboard.css'in ÜZERİNE yüklenir; yalnızca görünümü
   değiştirir, hiçbir id/class'a dokunmaz (dashboard.js aynen çalışır).
   Marka: zümrüt (#10b981) + turuncu (#ff7a1a) — landing ile aynı dil.
   ═══════════════════════════════════════════════════════════════ */

:root,
[data-theme="dark"] {
    --bg-primary: #06080b;
    --bg-secondary: #0a0e13;
    --bg-tertiary: #11161e;
    --bg-card: #0f141b;
    --bg-card-hover: #131a23;
    --text-primary: #eef2f5;
    --text-secondary: #9aa6b5;
    --text-tertiary: #6b7788;
    --text-muted: #4b5563;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --border-crystal: rgba(255, 255, 255, 0.1);

    --accent-primary: #10b981;
    --accent-secondary: #34d399;
    --accent-tertiary: #ff7a1a;
    --accent-linear: #10b981;
    --accent-gradient: linear-gradient(135deg, #34d399 0%, #10b981 55%, #0d9488 100%);
    --accent-gradient-hover: linear-gradient(135deg, #6ee7b7 0%, #34d399 60%, #10b981 100%);
    --accent-gradient-subtle: rgba(16, 185, 129, 0.08);

    --brand: #10b981;
    --brand-2: #34d399;
    --brand-ink: #03140d;
    --brand-soft: rgba(16, 185, 129, 0.12);
    --orange: #ff7a1a;
    --orange-soft: rgba(255, 122, 26, 0.12);
    --success: #10b981;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #38bdf8;

    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --font-display: "Bricolage Grotesque", "Inter", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -28px rgba(0, 0, 0, 0.8);
}

[data-theme="light"] {
    --bg-primary: #f6f7f4;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1ec;
    --bg-card: #ffffff;
    --bg-card-hover: #fbfcfa;
    --text-primary: #0a1210;
    --text-secondary: #4b5752;
    --text-tertiary: #7a8580;
    --border-color: rgba(10, 20, 15, 0.08);
    --border-hover: rgba(10, 20, 15, 0.16);
    --border-crystal: rgba(10, 20, 15, 0.1);
    --accent-primary: #059669;
    --accent-secondary: #047857;
    --brand: #059669;
    --brand-2: #047857;
    --brand-ink: #ffffff;
    --brand-soft: rgba(5, 150, 105, 0.1);
    --orange: #ea580c;
    --orange-soft: rgba(234, 88, 12, 0.1);
    --warning: #b45309;
    --danger: #dc2626;
    --card-shadow: 0 1px 2px rgba(15, 40, 30, 0.04), 0 16px 32px -24px rgba(15, 40, 30, 0.18);
}

body { background: var(--bg-primary); font-family: "Inter", -apple-system, sans-serif; }

/* ── Başlık ──────────────────────────────────────────────────── */
.dash-header {
    background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border-color);
}
[data-theme="light"] .dash-header { background: rgba(255, 255, 255, 0.85); }
.brand-v3 { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-v3 img { width: 36px; height: auto; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--text-primary); }
.brand-word b { color: var(--brand); font-weight: 700; }
.plan-pill {
    margin-left: 4px; padding: 3px 9px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.plan-pill[data-plan="Free"] { background: var(--bg-tertiary); color: var(--text-secondary); border-color: var(--border-color); }
.plan-pill[data-plan="Guru"] {
    background: linear-gradient(90deg, rgba(16,185,129,.16), rgba(255,122,26,.16));
    color: var(--text-primary); border-color: rgba(255, 122, 26, 0.35);
}
.budget-badge, .dash-header select, .dash-header .dash-btn, .dash-header .theme-toggle {
    border-radius: 10px !important; border: 1px solid var(--border-color) !important; background: transparent !important;
}

/* ── Kenar çubuğu ────────────────────────────────────────────── */
.dash-sidebar { background: var(--bg-primary); border-right-color: var(--border-color); }
.dash-sidebar .view-tabs .tab-btn {
    border-radius: 10px; font-weight: 500; color: var(--text-secondary);
    transition: background .15s, color .15s;
}
.dash-sidebar .view-tabs .tab-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dash-sidebar .view-tabs .tab-btn.active {
    background: var(--brand-soft) !important; color: var(--brand) !important; font-weight: 600;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent);
}
.dash-sidebar .view-tabs .tab-btn.active::before { background: var(--brand) !important; }
.dash-sidebar .view-tabs .tab-btn.active svg { color: var(--brand); }

/* ── Karşılama şeridi ────────────────────────────────────────── */
.welcome-bar h1, .wb-baslik {
    font-family: var(--font-display) !important; font-weight: 700 !important; letter-spacing: -0.03em !important;
}
.wb-baslik { font-size: clamp(26px, 3vw, 34px) !important; }
.wb-rozet { background: var(--brand-soft) !important; color: var(--brand) !important; border-color: transparent !important; border-radius: 999px !important; }
.view-content-pane .welcome-bar h1 { font-size: clamp(24px, 2.6vw, 30px) !important; }

/* ── Kartlar ve paneller ─────────────────────────────────────── */
.settings-panel, .stat-card, .kpi-card, .action-card, .results-section, .u-surface, .kanban-column,
.plan-card, .bill-current, .bill-usage {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--card-shadow) !important;
}
.settings-panel::before, .stat-card::before { display: none !important; }
.settings-panel h3, .results-header h3, .results-header h2 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 700; }
.stat-card:hover, .kpi-card:hover { border-color: var(--border-hover) !important; transform: translateY(-2px); }
.stat-value, .kpi-card .stat-value, .kpi-govde strong, .u-display-num {
    font-family: var(--font-display) !important; letter-spacing: -0.03em !important; font-feature-settings: "tnum";
}
.kpi-ikon-mor { background: var(--brand-soft) !important; color: var(--brand) !important; }
.kpi-ikon-turuncu { background: var(--orange-soft) !important; color: var(--orange) !important; }

/* ── Butonlar ────────────────────────────────────────────────── */
.btn-primary, .dash-btn.primary {
    background: var(--brand) !important; color: var(--brand-ink) !important; border: 0 !important;
    border-radius: 12px !important; font-weight: 600 !important;
    box-shadow: 0 10px 26px -14px var(--brand) !important;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease !important;
}
.btn-primary:hover:not(:disabled), .dash-btn.primary:hover:not(:disabled) {
    background: var(--brand-2) !important; transform: translateY(-1px);
    box-shadow: 0 14px 32px -14px var(--brand) !important;
}
[data-theme="light"] .btn-primary:hover:not(:disabled), [data-theme="light"] .dash-btn.primary:hover:not(:disabled) { background: #047857 !important; }
.btn-ghost, .btn-secondary, .dash-btn:not(.primary) {
    border-radius: 12px !important; border: 1px solid var(--border-color) !important;
    background: transparent !important; color: var(--text-primary) !important;
}
.btn-ghost:hover, .btn-secondary:hover, .dash-btn:not(.primary):hover { border-color: var(--border-hover) !important; background: var(--bg-tertiary) !important; }
.btn:disabled, .dash-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.tablo-sil-btn, .delete-product-btn { border-radius: 10px !important; }

/* ── Form öğeleri ────────────────────────────────────────────── */
.dashboard-main input[type="text"], .dashboard-main input[type="number"], .dashboard-main input[type="password"],
.dashboard-main input[type="date"], .dashboard-main input[type="url"], .dashboard-main select, .dashboard-main textarea, .form-girdi {
    background: var(--bg-secondary) !important; border: 1px solid var(--border-color) !important;
    border-radius: 12px !important; color: var(--text-primary) !important;
    transition: border-color .15s, box-shadow .15s;
}
.dashboard-main input:focus, .dashboard-main select:focus, .dashboard-main textarea:focus, .form-girdi:focus {
    outline: none !important; border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent) !important;
}
.form-group label, .settings-panel label { letter-spacing: .06em; }
.toggle-switch input:checked + .toggle-track { background: var(--brand) !important; }

/* ── Yükleme alanı ───────────────────────────────────────────── */
.upload-zone {
    border: 1.5px dashed color-mix(in srgb, var(--brand) 35%, var(--border-color)) !important;
    border-radius: 16px !important; background:
        radial-gradient(500px 160px at 50% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
        var(--bg-secondary) !important;
    transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.dragover, .upload-zone.drag-over { border-color: var(--brand) !important; }
.upload-icon { color: var(--brand) !important; }
.action-mode-tab.active { background: var(--brand-soft) !important; color: var(--brand) !important; border-color: transparent !important; }
/* ── Analiz ilerleme kartı (landing'deki canlı demo taramasıyla aynı) ── */
.progress-container {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--card-shadow);
    padding: 2rem 1.5rem 1.5rem !important;
    text-align: center !important;
}
.progress-container.active:not([style*="none"]) { display: grid !important; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.1rem; }
.scan-radar {
    width: 92px; height: 92px; border-radius: 50%; position: relative; overflow: hidden;
    border: 1px solid var(--border-hover);
    background: radial-gradient(circle, transparent 30%, var(--border-color) 31%, transparent 32%,
                                transparent 60%, var(--border-color) 61%, transparent 62%);
}
.scan-radar::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 75%, color-mix(in srgb, var(--brand) 60%, transparent) 100%);
    animation: ilerleme-don 1.1s linear infinite;
}
.scan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem;
              color: var(--text-tertiary); min-width: min(260px, 100%); text-align: left; }
.scan-steps li { display: flex; align-items: center; gap: 10px; transition: color .2s; }
.scan-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%;
                         border: 2px solid var(--border-hover); flex-shrink: 0; box-sizing: border-box; }
.scan-steps li.on { color: var(--text-primary); }
.scan-steps li.on::before { border-color: var(--brand); border-top-color: transparent; animation: ilerleme-don .7s linear infinite; }
.scan-steps li.ok { color: var(--text-secondary); }
.scan-steps li.ok::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--bg-card); }
.ilerleme-alt { display: flex; align-items: center; gap: .6rem; width: min(100%, 520px); margin-top: .3rem; }
.ilerleme-alt .progress-text { flex: 1; text-align: left; font-size: .82rem; color: var(--text-tertiary);
                               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ilerleme-yuzde { font-family: var(--font-mono); font-weight: 600; font-size: .9rem; color: var(--brand); }
.ilerleme-uyari { font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px;
                  background: var(--orange-soft); color: var(--orange); white-space: nowrap; cursor: help; }
.ilerleme-uyari[hidden] { display: none; }
.progress-container .progress-bar-track { width: min(100%, 520px) !important; height: 4px !important; margin: 0 !important;
    background: var(--bg-tertiary) !important; border-radius: 999px !important; }
.progress-bar-fill { border-radius: 999px !important; background: var(--brand) !important; }
@keyframes ilerleme-don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .scan-radar::after, .scan-steps li.on::before { animation: none; } }

/* ── Sonuç tablosu ───────────────────────────────────────────── */
.results-table th { font-size: 11px !important; letter-spacing: .08em !important; color: var(--text-tertiary) !important; }
.results-table tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, transparent) !important; }
.cell-product-name { font-weight: 600 !important; }
.col-roas { font-family: var(--font-mono); font-weight: 600; }
.score-badge { font-family: var(--font-mono); font-weight: 600 !important; border-radius: 9px !important; }
.score-badge.high { background: var(--brand-soft) !important; color: var(--brand) !important; border-color: color-mix(in srgb, var(--brand) 35%, transparent) !important; }
.score-badge.medium { background: rgba(251, 191, 36, .12) !important; color: var(--warning) !important; border-color: rgba(251, 191, 36, .3) !important; }
.score-badge.low { background: rgba(248, 113, 113, .12) !important; color: var(--danger) !important; border-color: rgba(248, 113, 113, .3) !important; }
.filter-chip.active, .trend-chip.active { background: var(--brand) !important; color: var(--brand-ink) !important; border-color: transparent !important; }
.filter-chip, .trend-chip { border-radius: 999px !important; }
.filter-chip:hover, .trend-chip:hover { border-color: var(--brand) !important; color: var(--text-primary) !important; }
.table-search-box input { border-radius: 999px !important; }

/* Tablonun altındaki akordeon kopya: aynı bilgi "Detaylar" penceresinde tam hâliyle var */
.product-cards { display: none !important; }

/* ── Kanban ──────────────────────────────────────────────────── */
.kanban-column { padding: 14px !important; min-height: 420px; }
.kanban-column::before { height: 3px !important; border-radius: 3px !important; }
.kanban-column:nth-child(1)::before { background: var(--info) !important; }
.kanban-column:nth-child(2)::before { background: var(--orange) !important; }
.kanban-column:nth-child(3)::before { background: var(--brand) !important; }
.kanban-column:nth-child(4)::before { background: var(--danger) !important; }
.kanban-card {
    background: var(--bg-secondary) !important; border: 1px solid var(--border-color) !important;
    border-radius: 12px !important; transition: transform .15s, border-color .15s, box-shadow .15s !important;
}
.kanban-card:hover { border-color: var(--border-hover) !important; transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(0,0,0,.6); }
.kanban-card > div:first-child > div { color: var(--text-primary) !important; }
.kanban-roas { font-family: var(--font-mono); font-weight: 600; font-size: 11.5px; color: var(--orange); }
.col-count { background: var(--bg-tertiary) !important; border-radius: 999px !important; }

/* ── Ajan rozeti ─────────────────────────────────────────────── */
.agent-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.agent-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.agent-pill[data-state="on"] { background: var(--brand-soft); color: var(--brand); }
.agent-pill[data-state="on"]::before { animation: pillPing 1.8s infinite; }
.agent-pill[data-state="off"] { background: var(--bg-tertiary); color: var(--text-tertiary); }
@keyframes pillPing { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } }

/* ── Abonelik ────────────────────────────────────────────────── */
.bill-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.bill-current, .bill-usage { padding: 24px !important; }
.bill-current {
    background:
        radial-gradient(420px 200px at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
        radial-gradient(360px 200px at 100% 100%, color-mix(in srgb, var(--orange) 10%, transparent), transparent 70%),
        var(--bg-card) !important;
}
.bill-current-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bill-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); }
.bill-status { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.bill-status.free { background: var(--bg-tertiary); color: var(--text-secondary); }
.bill-plan-name { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 4px; color: var(--text-primary); }
.bill-renew { color: var(--text-secondary); font-size: 14px; min-height: 20px; margin: 0; }
.bill-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.bill-actions .dash-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; }
.bill-manage-hint { font-size: 12.5px; color: var(--text-tertiary); }
.bill-usage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.bill-usage-num { font-family: var(--font-mono); font-size: 15px; color: var(--text-primary); }
.bill-meter { height: 10px; margin: 14px 0 16px; border-radius: 99px; background: var(--bg-tertiary); overflow: hidden; }
.bill-meter > div { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bill-meter > div[data-level="warn"] { background: linear-gradient(90deg, #f59e0b, var(--warning)); }
.bill-meter > div[data-level="danger"] { background: linear-gradient(90deg, #ef4444, var(--danger)); }
.bill-meter > div[data-level="unlimited"] { background: linear-gradient(90deg, var(--brand), var(--brand-2) 60%, var(--orange)); }
.bill-limits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bill-limits li { padding: 10px 12px; border-radius: 12px; background: var(--bg-secondary); border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 2px; }
.bill-limits span { font-size: 11.5px; color: var(--text-tertiary); }
.bill-limits b { font-family: var(--font-display); font-size: 18px; color: var(--text-primary); }
.bill-note { font-size: 12.5px; color: var(--text-tertiary); margin: 12px 0 0; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; align-items: stretch; }
.plan-card { position: relative; padding: 28px 24px !important; display: flex; flex-direction: column; gap: 0 !important; }
.plan-card.popular {
    border: 1.5px solid transparent !important;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(160deg, var(--brand-2), var(--brand) 45%, var(--orange)) border-box !important;
}
.plan-card.current { box-shadow: 0 0 0 2px var(--brand), var(--card-shadow) !important; }
.plan-card.current::after {
    content: "✓"; position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: 13px; font-weight: 800;
}
.plan-badge-popular {
    position: absolute !important; top: -12px !important; left: 50% !important; transform: translateX(-50%) !important;
    background: linear-gradient(90deg, var(--brand), var(--orange)) !important; color: #fff !important;
    border: 0 !important; border-radius: 999px !important; padding: 4px 12px !important;
    font-size: 11px !important; font-weight: 700 !important; letter-spacing: .04em; white-space: nowrap;
}
.plan-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.plan-for { font-size: 13.5px; color: var(--text-secondary); margin-top: 4px; min-height: 38px; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin: 16px 0 18px; color: var(--text-primary); }
.plan-price .cur { font-size: 20px; color: var(--text-secondary); font-weight: 600; }
.plan-price .n { font-family: var(--font-display); font-size: 50px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.plan-price .c { font-size: 20px; font-weight: 700; }
.plan-price .per { font-size: 14px; color: var(--text-secondary); margin-left: 4px; }
.plan-btn { width: 100%; height: 44px; justify-content: center; margin-bottom: 20px; }
.plan-feature-list { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 10px; }
.plan-feature-list li {
    position: relative; padding-left: 26px !important; font-size: 14px; color: var(--text-secondary);
    border: 0 !important; margin: 0 !important;
}
.plan-feature-list li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
    background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.bill-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bill-info {
    display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px;
    border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-secondary); font-size: 13.5px; line-height: 1.5;
}
.bill-info svg { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.bill-info b { display: block; color: var(--text-primary); font-size: 14px; margin-bottom: 2px; }
.bill-info a { color: var(--brand); }

/* ── Bildirimler (toast) ─────────────────────────────────────── */
#toastStack { position: fixed; right: 20px; bottom: 20px; z-index: 20000; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast-v3 {
    display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start;
    padding: 12px 12px 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45;
    background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-hover);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
    animation: toastIn .3s cubic-bezier(.2,.8,.2,1);
}
.toast-v3 svg { margin-top: 1px; }
.toast-v3.success svg { color: var(--brand); }
.toast-v3.error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.toast-v3.error svg { color: var(--danger); }
.toast-v3.info svg { color: var(--info); }
.toast-v3 button { background: none; border: 0; color: var(--text-tertiary); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.toast-v3.out { opacity: 0; transform: translateY(8px); transition: all .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Kaydırma çubuğu ─────────────────────────────────────────── */
.dashboard-main ::-webkit-scrollbar, .dash-sidebar::-webkit-scrollbar { width: 10px; height: 10px; }
.dashboard-main ::-webkit-scrollbar-thumb, .dash-sidebar::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ── Duyarlı ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .bill-top, .plan-grid { grid-template-columns: 1fr; }
    .plan-card.popular { order: -1; }
    .bill-foot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .bill-limits { grid-template-columns: 1fr 1fr 1fr; }
    .bill-plan-name { font-size: 26px; }
    #toastStack { right: 16px; left: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .toast-v3, .agent-pill::before { animation: none !important; }
}

/* ── Mobil taşma düzeltmeleri ────────────────────────────────────
   Grid öğeleri varsayılan olarak min-width:auto alır; geniş bir tablo
   içeriği tüm ana alanı 750px'e itiyor ve sayfa yatay kayıyordu. */
.dashboard-main, .view-content-pane, .settings-panel, .results-section { min-width: 0; }
.results-table-wrap, .tablo-cerceveli, .settings-panel:has(> table), .settings-panel:has(.results-table) { overflow-x: auto; }
@media (max-width: 900px) {
    .dash-header { gap: 8px; padding-left: 12px !important; padding-right: 12px !important; }
    .dash-header-left, .dash-header-actions { min-width: 0; gap: 6px !important; }
    .dash-header .budget-badge { display: none !important; }
    .dash-sidebar .view-tabs .tab-btn.active { background: var(--brand-soft) !important; }
    .kpi-row, .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .results-table { min-width: 640px; }
    .kanban-board { grid-template-columns: repeat(4, minmax(240px, 1fr)) !important; overflow-x: auto; padding-bottom: 8px; }
}
@media (max-width: 560px) {
    .dash-header .dash-btn span, .dash-header #globalCurrencySelect { display: none !important; }
    .dash-header .dash-btn { padding: 0 9px !important; }
    .brand-word { font-size: 18px; }
    .dash-header select { padding: 0 6px !important; }
    .welcome-bar, .wb-alt { flex-wrap: wrap; }
    .action-mode-nav { flex-wrap: wrap; }
    .bill-limits { grid-template-columns: 1fr; }
}

/* ── Açık tema düzeltmeleri ──────────────────────────────────────
   dashboard.css başlıkları #fff sabitliyordu; açık temada görünmüyordu. */
.welcome-bar h1, .wb-baslik, .settings-panel h3, .results-header h3 { color: var(--text-primary) !important; }
[data-theme="light"] .dash-sidebar .view-tabs .tab-btn.active,
[data-theme="dark"] .dash-sidebar .view-tabs .tab-btn.active {
    background: var(--brand-soft) !important; color: var(--brand) !important;
}
[data-theme="light"] .dash-sidebar { background: #ffffff; }

[hidden] { display: none !important; }

/* Detay penceresi sekmeleri */
#modalTabsContainer .tab-btn { border-radius: 10px !important; color: var(--text-secondary) !important; background: transparent !important; border: 1px solid transparent !important; }
#modalTabsContainer .tab-btn:hover { color: var(--text-primary) !important; background: var(--bg-tertiary) !important; }
#modalTabsContainer .tab-btn.active { background: var(--brand-soft) !important; color: var(--brand) !important; border-color: color-mix(in srgb, var(--brand) 30%, transparent) !important; }

/* ── Yönetici izleri (admin-bar.js) ─────────────────────────── */
.admin-menu-link { display: block; width: 100%; font-size: 0.85rem; padding: 0.5rem; text-align: left; border: none !important; color: var(--orange) !important; text-decoration: none; font-weight: 600; }
@media (max-width: 720px) { .dash-header .admin-link { display: none !important; } }
.dash-header .admin-link { color: var(--orange) !important; border-color: color-mix(in srgb, var(--orange) 35%, transparent) !important; background: var(--orange-soft) !important; }
.imp-bar {
    position: fixed; left: 16px; bottom: 16px; z-index: 5000;
    display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
    padding: 9px 9px 9px 14px; border-radius: 999px;
    background: var(--orange); color: #fff; font-size: 13px; font-weight: 500;
    box-shadow: 0 12px 30px -8px rgba(255, 122, 26, 0.55);
}
.imp-bar b { font-weight: 700; }
.imp-bar svg { width: 16px; height: 16px; flex: none; }
.imp-bar .imp-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-bar button {
    flex: none; border: 0; border-radius: 999px; padding: 6px 13px; cursor: pointer;
    background: #fff; color: #9a3a00; font-weight: 700; font-size: 12.5px;
}
.imp-bar button:hover { background: #fff3ea; }
@media (max-width: 640px) {
    .imp-bar { left: 8px; right: 8px; bottom: 8px; border-radius: 14px; }
    .imp-bar .imp-txt { white-space: normal; font-size: 12px; }
}

/* ── Kalan analiz hakkı (yükle düğmesinin yanı) ───────────────── */
.quota-hint {
    display: inline-flex; align-items: center; gap: 8px; align-self: center;
    font-size: 0.8rem; font-weight: 500; color: var(--text-secondary);
    padding: 0.35rem 0.4rem 0.35rem 0.75rem; border-radius: 999px;
    background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.quota-hint[data-level="warn"] { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }
.quota-hint[data-level="danger"] { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); color: var(--danger); }
.quota-hint .quota-upgrade {
    border: 0; border-radius: 999px; padding: 0.2rem 0.65rem; cursor: pointer;
    background: var(--orange); color: #fff; font-weight: 700; font-size: 0.75rem;
}
.quota-hint[hidden] { display: none !important; }

/* ── Free plan: kilitli (bulanık) bölümler ────────────────────── */
.kilit-kutu { position: relative; border-radius: 12px; overflow: hidden; min-height: 150px; margin-top: 0.5rem; }
.kilit-kutu.kucuk { min-height: 0; margin-top: 0; overflow: visible; }
.kilit-icerik { filter: blur(6px); user-select: none; pointer-events: none; opacity: 0.75; max-height: 340px; overflow: hidden; }
.kilit-kutu.kucuk .kilit-icerik { filter: blur(5px); }
.kilit-perde {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 6px; padding: 2.25rem 1rem 1rem; text-align: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-primary) 35%, transparent), color-mix(in srgb, var(--bg-primary) 70%, transparent));
    color: var(--text-primary);
}
.kilit-perde svg { color: var(--orange); }
.kilit-perde b { font-size: 0.95rem; }
.kilit-perde span { font-size: 0.8rem; color: var(--text-secondary); max-width: 420px; }
.kilit-btn {
    margin-top: 4px; border: 0; border-radius: 999px; padding: 0.45rem 1.1rem; cursor: pointer;
    background: var(--orange); color: #fff; font-weight: 700; font-size: 0.82rem;
    box-shadow: 0 8px 22px -10px rgba(255, 122, 26, 0.7);
}
.kilit-btn:hover { filter: brightness(1.08); }
.kilit-kutu.kucuk .kilit-perde { position: static; flex-direction: row; justify-content: flex-start; padding: 0.15rem 0 0; gap: 6px; background: none; }
.kilit-kutu.kucuk .kilit-perde b { font-size: 0.7rem; font-weight: 500; color: var(--text-tertiary); }
.kilit-kutu.kucuk .kilit-perde svg { width: 13px; height: 13px; }
.kilit-kutu.kucuk .kilit-btn { padding: 0.15rem 0.6rem; font-size: 0.7rem; margin: 0; box-shadow: none; }
.kilitli-modal .copy-btn, .kilitli-modal [onclick^="copyText"] { display: none !important; }
.plan-pill[data-plan="Trial"] { background: rgba(167, 139, 250, 0.14); color: #a78bfa; border-color: rgba(167, 139, 250, 0.35); }

/* ── Kilitli bölümler: İş Akışı / Trend Keşfi / Rakip Takibi ─────── */
.view-content-pane.pane-kilitli { position: relative; min-height: 520px; }
.pane-kilitli > :not(.pane-perde) { filter: blur(5px); opacity: 0.6; pointer-events: none; user-select: none; }
.pane-perde {
    position: absolute; z-index: 20; top: 110px; left: 50%; transform: translateX(-50%);
    width: min(440px, calc(100% - 32px));
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
    padding: 1.5rem 1.4rem; border-radius: 18px;
    background: color-mix(in srgb, var(--bg-card, #0f141b) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.pane-perde svg { color: var(--orange); }
.pane-perde b { font-size: 1.05rem; color: var(--text-primary); }
.pane-perde span { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.pane-perde .kilit-btn { margin-top: 6px; padding: 0.55rem 1.4rem; font-size: 0.88rem; }
.sekme-kilitli { position: relative; }
.sekme-kilitli::after {
    content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%;
    background: var(--orange); box-shadow: 0 0 0 2px var(--bg-primary);
}

/* ── Giriş eğitimi (egitim.js) ─────────────────────────────────── */
.tur-katman { position: fixed; inset: 0; z-index: 9000; background: transparent; }
.tur-isik {
    position: fixed; z-index: 9001; pointer-events: none; border-radius: 14px;
    box-shadow: 0 0 0 9999px rgba(3, 6, 10, 0.72), 0 0 0 2px var(--brand), 0 0 30px rgba(16, 185, 129, 0.45);
    transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease;
}
.tur-isik.bos { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(3, 6, 10, 0.72); }
.tur-kart {
    position: fixed; z-index: 9002; width: min(380px, calc(100vw - 32px));
    background: var(--bg-card, #0f141b); color: var(--text-primary);
    border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 18px;
    padding: 1.1rem 1.2rem 1rem; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
    transition: left .3s ease, top .3s ease;
}
.tur-kart.orta { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); }
.tur-kart h3 { margin: 0.5rem 0 0.35rem; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.tur-kart p { margin: 0; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }
.tur-ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tur-sayac { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); }
.tur-atla { background: none; border: 0; color: var(--text-tertiary); font-size: 0.78rem; cursor: pointer; padding: 4px 0; }
.tur-atla:hover { color: var(--text-primary); text-decoration: underline; }
.tur-noktalar { display: flex; gap: 4px; margin: 0.9rem 0 0.8rem; flex-wrap: wrap; }
.tur-noktalar i { width: 6px; height: 6px; border-radius: 99px; background: var(--border-hover); transition: width .2s; }
.tur-noktalar i.on { width: 18px; background: var(--brand); }
.tur-alt { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tur-sag { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tur-alt button { border-radius: 10px; padding: 0.5rem 0.95rem; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.tur-geri { background: transparent; border: 1px solid var(--border-hover); color: var(--text-primary); }
.tur-ileri { background: var(--brand); border: 0; color: var(--brand-ink, #03140d); }
.tur-ornek { background: var(--orange); border: 0; color: #fff; }
.tur-ileri:hover, .tur-ornek:hover { filter: brightness(1.08); }
.tur-menu { width: 100%; font-size: 0.85rem; padding: 0.5rem; text-align: left; border: none !important; }
.dikkat-cek { animation: dikkat 1s ease-in-out 3; }
@keyframes dikkat { 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.35); transform: scale(1.03); } }
@media (max-width: 639px) {
    .tur-kart:not(.orta) { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .tur-isik, .tur-kart { transition: none; }
    .dikkat-cek { animation: none; }
}

/* ── Profil penceresi ──────────────────────────────────────────── */
.profil-arka { position: fixed; inset: 0; z-index: 4000; background: rgba(3, 6, 10, 0.65); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; }
.profil-kutu { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: 18px; padding: 1.4rem; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8); }
.profil-kapat { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--text-tertiary); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.profil-bas { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.profil-bas img, .profil-harf { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; flex: none; }
.profil-bas b { display: block; font-size: 1.05rem; }
.profil-bas span { font-size: 0.82rem; color: var(--text-tertiary); word-break: break-all; }
.profil-bilgi { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 1.1rem; font-size: 0.88rem; }
.profil-bilgi dt { color: var(--text-tertiary); }
.profil-bilgi dd { margin: 0; text-align: right; font-weight: 600; }
.profil-eylem { display: flex; gap: 8px; flex-wrap: wrap; }
.profil-eylem .btn { flex: 1; justify-content: center; }
.profil-tehlike { margin-top: 1.2rem; border-top: 1px solid var(--border-color); padding-top: 0.9rem; }
.profil-tehlike summary { cursor: pointer; color: var(--danger); font-size: 0.85rem; font-weight: 600; }
.profil-tehlike p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; margin: 0.6rem 0; }
.profil-tehlike input { width: 100%; margin-bottom: 0.6rem; }
.profil-sil { width: 100%; justify-content: center; background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.profil-sil:disabled { opacity: 0.45; cursor: not-allowed; }
.profil-sil:not(:disabled):hover { background: rgba(248, 113, 113, 0.1); }

.profil-tercih { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; }
.profil-tercih label { display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; color: var(--text-tertiary); }
.profil-tercih select { width: 100%; padding: 0.45rem 0.5rem; border-radius: 10px; border: 1px solid var(--border-hover); background: var(--bg-secondary); color: var(--text-primary); font-size: 0.85rem; }

/* Mobil üst çubuk: plan rozeti dil seçiminin üstüne biniyordu, tema/profil
   düğmeleri eziliyordu. Dil ve para birimi profil penceresine taşındı. */
@media (max-width: 560px) {
    .dash-header .brand-v3 { flex: none; }
    .dash-header #langSelect, .dash-header #globalCurrencySelect,
    .dash-header-actions > a.dash-btn:not(.admin-link) { display: none !important; }
    .dash-header .plan-pill { font-size: 10px; padding: 2px 7px; }
    .dash-header-actions > * { flex: none; }
    #userAvatarImg { width: 30px !important; height: 30px !important; flex: none; }
}

/* ── Trend Keşfi kartları (gerçek veri) ───────────────────────── */
.trend-chip.on { background: var(--brand-soft) !important; color: var(--brand) !important; border-color: color-mix(in srgb, var(--brand) 40%, transparent) !important; }
.trend-durum { margin-top: 0.75rem; font-size: 0.78rem; color: var(--text-tertiary); }
.trend-kart { flex-direction: column !important; align-items: stretch !important; padding: 0 !important; gap: 0 !important; overflow: hidden; }
.trend-gorsel { position: relative; height: 170px; background: linear-gradient(135deg, var(--brand-soft), var(--orange-soft)); }
.trend-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trend-platform, .trend-video {
    position: absolute; top: 10px; font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
    background: rgba(0, 0, 0, 0.62); color: #fff; backdrop-filter: blur(4px);
}
.trend-platform { left: 10px; }
.trend-video { right: 10px; background: var(--orange); }
.trend-govde { padding: 0.95rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.trend-ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.trend-ust h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
.trend-skor { flex: none; min-width: 38px; text-align: center; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; padding: 4px 7px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.trend-alt { font-size: 0.75rem; color: var(--text-tertiary); }
.trend-sayilar { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 4px; padding: 0.55rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); text-align: center; }
.trend-sayilar b { display: block; font-size: 0.85rem; color: var(--text-primary); }
.trend-sayilar span { display: block; font-size: 0.62rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-eylem { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.trend-eylem .dash-btn { min-height: 36px; white-space: nowrap; padding: 0 0.8rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.trend-eylem .dash-btn.primary { flex: 1 1 auto; font-weight: 700; }

/* ── Rakip Takibi (gerçek veri) ───────────────────────────────── */
.rakip-izgara { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .rakip-izgara { grid-template-columns: minmax(0, 1fr); } }
.rakip-ipucu { font-size: 0.75rem; color: var(--text-tertiary); margin: 0 0 1rem; line-height: 1.5; }
.rakip-liste { display: flex; flex-direction: column; gap: 0.6rem; max-height: 520px; overflow-y: auto; }
.rakip-bos { text-align: center; color: var(--text-tertiary); font-size: 0.85rem; padding: 2rem 0.5rem; line-height: 1.6; }
.rakip-magaza { padding: 0.75rem 0.85rem; border-radius: 12px; background: var(--bg-secondary); border: 1px solid var(--border-color); cursor: pointer; transition: border-color .15s; }
.rakip-magaza:hover { border-color: var(--border-hover); }
.rakip-magaza.secili { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rakip-magaza-ust { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.rakip-magaza-ust b { font-size: 0.9rem; word-break: break-all; }
.rakip-sil { background: none; border: 0; color: var(--text-tertiary); font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0 4px; }
.rakip-sil:hover { color: var(--danger); }
.rakip-etiketler { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0.4rem 0 0.25rem; }
.rakip-etiketler span { font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--bg-tertiary); color: var(--text-secondary); }
.rakip-etiketler .tag-y { background: var(--brand-soft); color: var(--brand); }
.rakip-etiketler .tag-t { background: var(--orange-soft); color: var(--orange); }
.rakip-etiketler .tag-m { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.rakip-not { display: block; font-size: 0.72rem; color: var(--text-tertiary); line-height: 1.45; }
.rakip-link { display: inline-block; margin-top: 0.35rem; font-size: 0.75rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.rakip-sekmeler { display: inline-flex; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 11px; padding: 3px; }
.rakip-sekmeler button { border: 0; background: none; padding: 0.4rem 0.95rem; border-radius: 8px; font-weight: 600; font-size: 0.82rem; color: var(--text-secondary); cursor: pointer; }
.rakip-sekmeler button.on { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.rakip-secili { font-size: 0.78rem; color: var(--text-tertiary); }
.rakip-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.9rem; max-height: 640px; overflow-y: auto; padding-right: 2px; }
.rakip-urun, .rakip-reklam { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--bg-secondary); border: 1px solid var(--border-color); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.rakip-urun:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.rakip-urun-gorsel { position: relative; height: 150px; background: var(--bg-tertiary); }
.rakip-urun-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rakip-rozet { position: absolute; top: 8px; font-size: 0.65rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; color: #fff; }
.rakip-rozet.yeni { left: 8px; background: var(--brand); }
.rakip-rozet.fiyat { right: 8px; background: var(--orange); }
.rakip-urun-govde { padding: 0.7rem 0.8rem 0.8rem; display: flex; flex-direction: column; gap: 0.3rem; }
.rakip-urun-govde b { font-size: 0.85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rakip-fiyat { font-weight: 700; color: var(--text-primary); font-size: 0.9rem; }
.rakip-fiyat s { color: var(--text-tertiary); font-weight: 500; margin-right: 4px; }
.rakip-reklam-metin { margin: 0; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Gizlilik paneli (Ayarlar) ─────────────────────────────── */
.gizlilik-izin { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.1rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-secondary); }
.gizlilik-izin b { display: block; margin-bottom: 4px; }
.gizlilik-izin span { font-size: 0.85rem; color: var(--text-secondary); }
#destekDurum[data-acik="1"] { color: var(--warning); font-weight: 600; }
.gizlilik-eylem { display: flex; gap: 8px; flex-wrap: wrap; }
.gizlilik-eylem select { min-width: 110px; }
.gizlilik-gecmis { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.gizlilik-satir { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem;
  padding: 0.55rem 0.75rem; border-radius: 8px; background: var(--bg-secondary); }
.gizlilik-satir span:last-child { color: var(--text-tertiary); }
.gizlilik-alt { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.gizlilik-alt a { font-size: 0.85rem; color: var(--brand); text-decoration: none; }
.gizlilik-alt a:hover { text-decoration: underline; }

/* ── Ürün detayı: içerik hazırlanıyor ───────────────────────── */
.detay-bekliyor { display: flex; align-items: center; gap: 10px; padding: 1rem 1.1rem; border-radius: 10px;
  background: var(--bg-secondary); border: 1px dashed var(--border-color); color: var(--text-secondary); font-size: 0.88rem; }
.detay-donen { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-color);
  border-top-color: var(--brand); animation: detayDon 0.8s linear infinite; flex: none; }
@keyframes detayDon { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .detay-donen { animation: none; } }

/* ── Manuel ürün girişi ─────────────────────────────────────── */
.manuel-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; margin-top: 1rem; }
.manuel-genis { grid-column: 1 / -1; }
.manuel-alan { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; color: var(--text-secondary); }
.manuel-alan > span { font-weight: 600; color: var(--text-primary); }
.manuel-alan input, .manuel-alan textarea, .manuel-alan select {
  padding: 0.65rem 0.75rem; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  background: var(--bg-secondary); color: var(--text-primary); font: inherit; font-size: 0.9rem; min-width: 0; }
.manuel-alan textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.manuel-alan small { font-size: 0.75rem; color: var(--text-tertiary); line-height: 1.45; }
.manuel-fiyat { display: flex; gap: 0.5rem; }
.manuel-fiyat input { flex: 1; }
.manuel-fiyat select { width: 84px; flex: none; }
@media (max-width: 640px) { .manuel-form { grid-template-columns: 1fr; } }
.manuel-form > * { min-width: 0; }
.manuel-alan input, .manuel-alan textarea { width: 100%; box-sizing: border-box; }
.manuel-fiyat input { width: 100%; min-width: 0; }
.manuel-fiyat select { box-sizing: border-box; }

/* ── Yükleme: doğru sonuçlar için tabloda olması gerekenler ─── */
.dogru-sonuc { margin: 1rem 0 1.1rem; padding: 0.9rem 1.05rem; border-radius: 12px; font-size: 0.84rem; line-height: 1.55;
  background: color-mix(in srgb, var(--brand) 9%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
  color: var(--text-secondary); }
.dogru-sonuc strong { display: block; color: var(--text-primary); margin-bottom: 0.45rem; font-size: 0.88rem; }
.dogru-sonuc ul { margin: 0 0 0.55rem; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.dogru-sonuc code { font-size: 0.78rem; padding: 1px 6px; border-radius: 6px; background: var(--bg-secondary); color: var(--text-primary); }
.dogru-sonuc b { color: var(--text-primary); font-weight: 600; }
.dogru-sonuc a { color: var(--brand); font-weight: 600; text-decoration: none; }
.dogru-sonuc a:hover { text-decoration: underline; }

/* ── Analiz edilemeyen ürünler ────────────────────────────────── */
.basarisiz-bolum { margin-top: 1rem; background: var(--bg-card); border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--border-color));
    border-radius: var(--radius-xl); box-shadow: var(--card-shadow); padding: 1.25rem 1.5rem; }
.basarisiz-bolum[hidden] { display: none; }
.basarisiz-baslik h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: .5rem; }
.basarisiz-sayi { font-family: var(--font-mono); font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: var(--orange-soft); color: var(--orange); }
.basarisiz-baslik p { margin: .3rem 0 0; font-size: .85rem; color: var(--text-secondary); }
.basarisiz-liste { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.basarisiz-liste li { padding: .75rem .9rem; border-radius: var(--radius-md); background: var(--bg-tertiary); border: 1px solid var(--border-color); }
.basarisiz-ad { font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
.basarisiz-fiyat { font-family: var(--font-mono); font-weight: 500; font-size: .8rem; color: var(--text-tertiary); margin-left: .35rem; }
.basarisiz-neden { margin-top: .25rem; font-size: .85rem; color: var(--orange); }
.basarisiz-oneri { margin-top: .15rem; font-size: .82rem; color: var(--text-secondary); }
.roas-uyari { color: var(--warning); cursor: help; font-family: inherit; }

/* ── eBay / Etsy bağlantısı ───────────────────────────────────── */
.pazaryeri-butonlar { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.pazaryeri-butonlar .btn { flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.pazaryeri-butonlar .btn:disabled { opacity: .65; cursor: not-allowed; }
.pazaryeri-yakinda { font-size: .7rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; background: var(--orange-soft); color: var(--orange); }
.pazaryeri-yakinda[hidden] { display: none; }
.pazaryeri-liste { display: grid; gap: .6rem; margin-top: 1.25rem; }
.pazaryeri-satir { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: var(--radius-md);
    background: var(--bg-secondary); border: 1px solid var(--border-color); }
.pazaryeri-rozet { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.pazaryeri-ad { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.pazaryeri-sil { color: var(--danger) !important; font-size: .8rem !important; padding: .25rem .5rem !important; }
.pazaryeri-ibare { margin-top: 1rem; font-size: .72rem; color: var(--text-tertiary); line-height: 1.4; }
.pazaryeri-ibare[hidden] { display: none; }

/* ── Analizi durdur ───────────────────────────────────────────── */
.ilerleme-durdur {
    font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 8px; cursor: pointer;
    background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
    white-space: nowrap; transition: background .15s;
}
.ilerleme-durdur:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.ilerleme-durdur:disabled { opacity: .6; cursor: progress; }
.ilerleme-durdur[hidden] { display: none; }

/* ── eBay'de yayınla penceresi ────────────────────────────────── */
.ebay-ilan-ortu { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .7); display: grid; place-items: center; padding: 16px; }
.ebay-ilan-ortu[hidden] { display: none; }
.ebay-ilan-kutu { width: min(760px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--card-shadow); }
.ebay-ilan-kutu h3 { margin: 0 0 .75rem; font-size: 1.15rem; }
.ebay-ilan-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; margin-top: .75rem; }
.ebay-ilan-form label { display: grid; gap: .3rem; font-size: .8rem; color: var(--text-secondary); }
.ebay-ilan-form .genis { grid-column: 1 / -1; }
.ebay-ilan-form input, .ebay-ilan-form select, .ebay-ilan-form textarea { width: 100%; background: var(--bg-tertiary); color: var(--text-primary);
    border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: .5rem .6rem; font: inherit; font-size: .85rem; }
.ebay-yeni-konum { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.ebay-yeni-konum[hidden] { display: none; }
.ebay-gorseller { display: flex; flex-wrap: wrap; gap: .5rem; }
.ebay-gorsel { position: relative; display: block; }
.ebay-gorsel img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); }
.ebay-gorsel input { position: absolute; top: 4px; left: 4px; width: auto; }
.ebay-ilan-not { font-size: .78rem; color: var(--text-tertiary); margin: .6rem 0 0; }
.ebay-ilan-uyari { font-size: .82rem; color: var(--warning); margin: .8rem 0 0; }
.ebay-ilan-uyari a { color: var(--accent-primary); }
.ebay-ilan-mesaj { color: var(--text-secondary); margin: .25rem 0 1rem; }
.ebay-ilan-butonlar { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
@media (max-width: 560px) { .ebay-ilan-form { grid-template-columns: 1fr; } .ebay-yeni-konum { grid-template-columns: 1fr; } }

/* Hesap güvenliği (iki aşamalı doğrulama) */
.guvenlik-kutu { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1px dashed var(--border-color, rgba(148,163,184,.35)); }
.guvenlik-kutu p { font-size: 0.88rem; margin: 0 0 0.6rem; }
.guvenlik-sir { display: block; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.95rem; letter-spacing: .06em; padding: .6rem .8rem; margin: 0 0 .8rem; border-radius: 8px; background: rgba(148,163,184,.12); word-break: break-all; white-space: pre-wrap; }
#guvenlikPanel input[type=text], #guvenlikPanel input[type=password] { min-width: 150px; }

/* Destek butonu ve formu */
.destek-fab { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-color, rgba(148,163,184,.3));
  background: var(--bg-secondary, #111827); color: var(--text-primary, #f8fafc); font-weight: 600; font-size: 0.88rem;
  cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); transition: transform .2s, border-color .2s; }
.destek-fab:hover { transform: translateY(-2px); border-color: var(--brand, #10b981); }
.destek-kutu { background: var(--bg-primary); padding: 2rem; border-radius: 14px; width: 480px; max-width: 92%; border: 1px solid var(--border-color); }
.destek-kutu h2 { margin: 0 0 .4rem; }
.destek-kutu textarea { width: 100%; resize: vertical; min-height: 120px; font: inherit; }
.destek-kutu select, .destek-kutu input { width: 100%; }
.destek-eposta { font-size: 0.82rem; color: var(--text-secondary); }
@media (max-width: 640px) { .destek-fab span { display: none; } .destek-fab { padding: 12px; } }
.ebay-politika-kur { border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: .9rem 1rem; margin: .75rem 0 .25rem; background: var(--bg-tertiary); }
.ebay-politika-kur .ebay-ilan-uyari { margin-top: 0; }
.ebay-politika-kur .ebay-ilan-butonlar { margin-top: .6rem; }

/* Açıklama kutusu + sağ üstte kopyalama simgesi */
.kod-kutu { position: relative; }
.kod-kutu .code-block { padding-right: 3rem; }
.kod-kopyala { position: absolute; top: .55rem; right: .55rem; width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary); cursor: pointer;
    transition: color .15s, border-color .15s, background .15s; z-index: 1; }
.kod-kopyala:hover { color: var(--text-primary); border-color: var(--accent-primary); }
.kod-kopyala:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
.kod-kopyala.kopyalandi { color: var(--success); border-color: var(--success); }
.pazar-etiket { margin: 0 0 .6rem; font-size: .8rem; color: var(--text-secondary); }
.magaza-baslik { margin: 0 0 .75rem; font-size: .92rem; font-weight: 600; color: var(--text-primary); }
.magaza-baslik span { font-weight: 500; color: var(--text-secondary); }
