/* ================================================================
   Beppe Meta Reklam — Stiller
   ================================================================ */


  :root {
    --bg: #0a0a0f;
    --surface: #111118;
    --surface2: #16161f;
    --surface3: #1c1c28;
    --border: #1e1e2e;
    --border2: #2a2a3e;
    --text: #e8e8f0;
    --text2: #8888aa;
    --text3: #555570;
    --accent: #6c63ff;
    --accent2: #8b83ff;
    --accent-glow: rgba(108,99,255,0.15);
    --meta: #1877F2;
    --meta-light: rgba(24,119,242,0.15);
    --meta2: #42a5f5;
    --green: #22c55e;
    --green-bg: rgba(34,197,94,0.1);
    --red: #ef4444;
    --red-bg: rgba(239,68,68,0.1);
    --yellow: #f59e0b;
    --yellow-bg: rgba(245,158,11,0.1);
    --blue: #3b82f6;
    --blue-bg: rgba(59,130,246,0.1);
    --purple: #a855f7;
    --purple-bg: rgba(168,85,247,0.1);
    --ai: #06b6d4;
    --ai-bg: rgba(6,182,212,0.1);
    --ai-glow: rgba(6,182,212,0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 32px rgba(0,0,0,0.5);
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  html, body { height: 100%; }
  body { font-family:'Inter',system-ui,-apple-system,sans-serif; background:var(--bg); color:var(--text); height:100vh; display:flex; overflow:hidden; }

  /* ── REKLAM OLUŞTURUCU ── */
  .format-chip {
    padding:6px 12px; border-radius:20px; font-size:12px; font-weight:500;
    background:var(--surface2); border:1px solid var(--border2); color:var(--text2);
    cursor:pointer; transition:all .15s;
  }
  .format-chip:hover { border-color:var(--meta); color:var(--meta2); }
  .format-chip.active { background:var(--meta-light); border-color:var(--meta); color:var(--meta2); }
  .preview-tab { transition:all .15s; }
  .preview-tab:hover { color:var(--text)!important; background:var(--surface2); }
  .preview-tab.active { color:var(--meta2)!important; border-bottom-color:var(--meta)!important; }

  /* FB Feed preview */
  .ad-preview-fb { background:#fff; border-radius:8px; overflow:hidden; color:#050505; font-family:'Helvetica Neue',Arial,sans-serif; box-shadow:0 1px 3px rgba(0,0,0,.2); }
  .ad-preview-fb .fb-header { padding:10px 12px; display:flex; align-items:center; gap:8px; }
  .fb-avatar { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,#1877f2,#42a5f5); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
  .fb-page-name { font-size:13px; font-weight:600; color:#050505; }
  .fb-sponsored { font-size:11px; color:#65676b; display:flex; align-items:center; gap:3px; }
  .fb-media { width:100%; background:#e4e6ea; min-height:160px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .fb-media img, .fb-media video { width:100%; object-fit:cover; display:block; }
  .fb-media .fb-media-placeholder { color:#bec3c9; font-size:40px; text-align:center; padding:30px; }
  .fb-body { padding:10px 12px; border-top:1px solid #e4e6ea; }
  .fb-headline { font-size:16px; font-weight:700; color:#050505; margin-bottom:2px; }
  .fb-desc { font-size:13px; color:#65676b; margin-bottom:8px; }
  .fb-cta-row { display:flex; justify-content:flex-end; margin-top:6px; }
  .fb-cta-btn { background:#e4e6eb; border:none; border-radius:6px; padding:7px 14px; font-size:13px; font-weight:600; color:#050505; cursor:pointer; }
  .fb-primary-text { padding:8px 12px 0; font-size:13px; color:#050505; line-height:1.5; white-space:pre-wrap; word-break:break-word; }

  /* IG Feed preview */
  .ad-preview-ig { background:#fff; border-radius:8px; overflow:hidden; color:#262626; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; box-shadow:0 1px 3px rgba(0,0,0,.2); }
  .ig-header { padding:9px 12px; display:flex; align-items:center; gap:8px; }
  .ig-avatar { width:32px; height:32px; border-radius:50%; background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7); display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
  .ig-username { font-size:13px; font-weight:600; color:#262626; flex:1; }
  .ig-sponsored-badge { font-size:11px; color:#8e8e8e; }
  .ig-media { width:100%; background:#fafafa; min-height:160px; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; }
  .ig-media img, .ig-media video { width:100%; object-fit:cover; display:block; }
  .ig-cta-banner { background:#fff; border-top:1px solid #dbdbdb; border-bottom:1px solid #dbdbdb; padding:9px 12px; display:flex; justify-content:space-between; align-items:center; }
  .ig-cta-left { font-size:12px; color:#8e8e8e; }
  .ig-cta-right { font-size:13px; font-weight:600; color:#262626; display:flex; align-items:center; gap:3px; }
  .ig-caption { padding:8px 12px; font-size:13px; color:#262626; line-height:1.5; }

  /* Story preview */
  .ad-preview-story { border-radius:12px; overflow:hidden; position:relative; background:#000; box-shadow:0 2px 12px rgba(0,0,0,.5); }
  .story-media { width:100%; min-height:220px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .story-media img, .story-media video { width:100%; height:100%; object-fit:cover; }
  .story-overlay { position:absolute; top:0; left:0; right:0; bottom:0; display:flex; flex-direction:column; justify-content:space-between; padding:12px; }
  .story-top { display:flex; align-items:center; gap:6px; }
  .story-avatar { width:28px; height:28px; border-radius:50%; background:#1877f2; border:2px solid #fff; display:flex; align-items:center; justify-content:center; font-size:12px; }
  .story-name { font-size:12px; font-weight:600; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.5); }
  .story-sponsored { font-size:10px; color:rgba(255,255,255,.8); }
  .story-cta { background:rgba(255,255,255,.9); border-radius:20px; padding:7px 16px; text-align:center; font-size:12px; font-weight:700; color:#050505; }

  /* SIDEBAR */
  .sidebar {
    width:240px; height:100vh; background:var(--surface);
    border-right:1px solid var(--border); display:flex; flex-direction:column; flex-shrink:0; z-index:10; overflow-y:auto;
  }
  .logo { padding:20px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:12px; }
  .logo-icon {
    width:36px; height:36px; background:linear-gradient(135deg,var(--meta),var(--accent));
    border-radius:10px; display:flex; align-items:center; justify-content:center;
    font-size:18px; flex-shrink:0;
  }
  .logo-text { font-size:14px; font-weight:700; }
  .logo-sub { font-size:11px; color:var(--text3); margin-top:1px; }
  nav { padding:12px 10px; flex:1; overflow-y:auto; min-height:0; }
  .nav-group { margin-bottom:18px; }
  .nav-label { font-size:10px; font-weight:600; color:var(--text3); text-transform:uppercase; letter-spacing:.08em; padding:0 10px; margin-bottom:6px; }
  .nav-item {
    display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:var(--radius-sm);
    cursor:pointer; transition:all .15s; color:var(--text2); font-size:13.5px; font-weight:500;
    margin-bottom:2px; user-select:none;
  }
  .nav-item:hover { background:var(--surface2); color:var(--text); }
  .nav-item.active { background:var(--meta-light); color:var(--meta2); }
  .nav-icon { font-size:15px; width:20px; text-align:center; }
  .nav-badge { margin-left:auto; background:var(--meta); color:#fff; font-size:10px; font-weight:700; padding:1px 6px; border-radius:20px; }
  .nav-badge.ai { background:var(--ai); }
  .sidebar-footer { padding:14px 10px; border-top:1px solid var(--border); }
  .api-status {
    display:flex; align-items:center; gap:8px; padding:8px 10px;
    background:var(--surface2); border-radius:var(--radius-sm); font-size:12px; cursor:pointer;
    border:1px solid var(--border2);
  }
  .api-dot { width:7px; height:7px; border-radius:50%; background:var(--text3); flex-shrink:0; }
  .api-dot.connected { background:var(--green); box-shadow:0 0 6px var(--green); }
  .api-dot.ai-connected { background:var(--ai); box-shadow:0 0 6px var(--ai); }

  /* MAIN */
  .main { flex:1; display:flex; flex-direction:column; overflow:hidden; min-height:0; }
  .topbar {
    height:58px; background:var(--surface); border-bottom:1px solid var(--border);
    display:flex; align-items:center; padding:0 24px; gap:16px; flex-shrink:0;
  }
  .page-title { font-size:15px; font-weight:700; }
  .page-sub { font-size:12px; color:var(--text3); margin-top:1px; }
  .topbar-right { margin-left:auto; display:flex; align-items:center; gap:10px; }

  .btn {
    display:inline-flex; align-items:center; gap:6px; padding:7px 14px;
    border-radius:var(--radius-sm); font-size:13px; font-weight:500;
    cursor:pointer; transition:all .15s; border:none;
  }
  .btn-primary { background:var(--meta); color:#fff; }
  .btn-primary:hover { background:#1565c0; }
  .btn-ai { background:linear-gradient(135deg,var(--ai),var(--accent)); color:#fff; }
  .btn-ai:hover { opacity:.9; box-shadow:0 0 20px var(--ai-glow); }
  .btn-ghost { background:transparent; color:var(--text2); border:1px solid var(--border2); }
  .btn-ghost:hover { background:var(--surface2); color:var(--text); }
  .btn-danger { background:var(--red-bg); color:var(--red); border:1px solid rgba(239,68,68,.2); }
  .btn-danger:hover { background:var(--red); color:#fff; }
  .btn-success { background:var(--green-bg); color:var(--green); border:1px solid rgba(34,197,94,.2); }
  .btn-sm { padding:5px 10px; font-size:12px; }
  .btn-xs { padding:3px 8px; font-size:11px; }

  .content { flex:1; overflow-y:auto; padding:24px; min-height:0; }
  .page { display:none; }
  .page.active { display:block; }

  /* KPI */
  .kpi-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:22px; }
  .kpi-card {
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    padding:16px 18px; position:relative; overflow:hidden;
  }
  .kpi-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; }
  .kpi-card.blue::before { background:linear-gradient(90deg,var(--meta),transparent); }
  .kpi-card.green::before { background:linear-gradient(90deg,var(--green),transparent); }
  .kpi-card.red::before { background:linear-gradient(90deg,var(--red),transparent); }
  .kpi-card.yellow::before { background:linear-gradient(90deg,var(--yellow),transparent); }
  .kpi-card.purple::before { background:linear-gradient(90deg,var(--purple),transparent); }
  .kpi-label { font-size:11px; color:var(--text3); font-weight:500; margin-bottom:6px; text-transform:uppercase; letter-spacing:.04em; }
  .kpi-value { font-size:22px; font-weight:700; letter-spacing:-0.5px; }
  .kpi-change { font-size:11px; margin-top:5px; color:var(--text3); }

  /* CARD */
  .card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
  .card-header {
    padding:14px 18px; border-bottom:1px solid var(--border);
    display:flex; align-items:center; justify-content:space-between;
  }
  .card-title { font-size:13px; font-weight:600; }
  .card-sub { font-size:11px; color:var(--text3); margin-top:2px; }
  .card-body { padding:18px; }

  /* TABLE */
  .table-wrap { overflow-x:auto; }
  table { width:100%; border-collapse:collapse; font-size:13px; }
  th { text-align:left; font-size:10.5px; font-weight:600; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; padding:9px 14px; border-bottom:1px solid var(--border); background:var(--surface2); }
  td { padding:11px 14px; border-bottom:1px solid var(--border); color:var(--text2); vertical-align:middle; }
  tr:last-child td { border-bottom:none; }
  tr:hover td { background:rgba(255,255,255,0.02); }
  .td-primary { color:var(--text); font-weight:500; }

  /* BADGE */
  .badge { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:20px; font-size:11px; font-weight:600; }
  .badge-green { background:var(--green-bg); color:var(--green); }
  .badge-red { background:var(--red-bg); color:var(--red); }
  .badge-yellow { background:var(--yellow-bg); color:var(--yellow); }
  .badge-blue { background:var(--blue-bg); color:var(--blue); }
  .badge-meta { background:var(--meta-light); color:var(--meta2); }
  .badge-purple { background:var(--purple-bg); color:var(--purple); }
  .badge-ai { background:var(--ai-bg); color:var(--ai); }

  /* FORM */
  .form-group { margin-bottom:14px; }
  label { font-size:12px; font-weight:500; color:var(--text2); display:block; margin-bottom:5px; }
  input, select, textarea {
    width:100%; background:var(--surface2); border:1px solid var(--border2);
    border-radius:var(--radius-sm); padding:8px 12px; color:var(--text);
    font-size:13px; font-family:inherit; transition:border-color .15s; outline:none;
  }
  input:focus, select:focus, textarea:focus { border-color:var(--meta); box-shadow:0 0 0 3px var(--meta-light); }
  select option { background:var(--surface2); }
  textarea { resize:vertical; min-height:80px; }
  .form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .form-row-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
  .range-wrap { display:flex; align-items:center; gap:10px; }
  .range-wrap input[type=range] { background:none; border:none; padding:0; box-shadow:none; }
  .range-val { font-size:13px; font-weight:600; color:var(--meta2); min-width:40px; }

  /* MODAL */
  .modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.75); backdrop-filter:blur(4px); z-index:100; display:none; align-items:center; justify-content:center; }
  .modal-overlay.open { display:flex; }
  .modal { background:var(--surface); border:1px solid var(--border2); border-radius:16px; width:100%; max-width:560px; max-height:90vh; overflow-y:auto; box-shadow:var(--shadow); animation:modalIn .2s ease; }
  .modal-lg { max-width:760px; }
  .modal-xl { max-width:960px; }
  @keyframes modalIn { from { opacity:0; transform:scale(.96) translateY(8px); } to { opacity:1; transform:none; } }
  .modal-header { padding:18px 22px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
  .modal-title { font-size:15px; font-weight:700; }
  .modal-close { width:28px; height:28px; border-radius:7px; background:var(--surface2); border:1px solid var(--border); cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--text2); font-size:14px; transition:all .15s; }
  .modal-close:hover { background:var(--red-bg); color:var(--red); }
  .modal-body { padding:22px; }
  .modal-footer { padding:14px 22px; border-top:1px solid var(--border); display:flex; gap:10px; justify-content:flex-end; }

  /* AI CHAT */
  .ai-panel {
    display:flex; flex-direction:column; height:calc(100vh - 58px - 48px);
  }
  .ai-messages {
    flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:16px;
  }
  .msg { display:flex; gap:12px; max-width:85%; }
  .msg.user { align-self:flex-end; flex-direction:row-reverse; }
  .msg-avatar {
    width:32px; height:32px; border-radius:50%; display:flex; align-items:center;
    justify-content:center; font-size:14px; flex-shrink:0; font-weight:700;
  }
  .msg.ai .msg-avatar { background:linear-gradient(135deg,var(--ai),var(--accent)); color:#fff; }
  .msg.user .msg-avatar { background:linear-gradient(135deg,var(--meta),var(--accent)); color:#fff; }
  .msg-bubble {
    padding:12px 16px; border-radius:14px; font-size:13px; line-height:1.6;
  }
  .msg.ai .msg-bubble { background:var(--surface2); border:1px solid var(--border2); border-radius:4px 14px 14px 14px; color:var(--text); }
  .msg.user .msg-bubble { background:var(--meta); color:#fff; border-radius:14px 4px 14px 14px; }
  .msg-time { font-size:10px; color:var(--text3); margin-top:4px; }
  .msg.user .msg-time { text-align:right; }

  .ai-input-area {
    padding:16px 20px; background:var(--surface); border-top:1px solid var(--border);
  }
  .ai-quick-btns { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
  .quick-btn {
    padding:5px 12px; background:var(--surface2); border:1px solid var(--border2);
    border-radius:20px; font-size:12px; color:var(--text2); cursor:pointer; transition:all .15s;
  }
  .quick-btn:hover { background:var(--ai-bg); border-color:var(--ai); color:var(--ai); }
  .ai-input-row { display:flex; gap:10px; }
  .ai-input-row input { border-color:var(--border2); }
  .ai-input-row input:focus { border-color:var(--ai); box-shadow:0 0 0 3px var(--ai-glow); }

  /* METRIC BAR */
  .metric-bar { height:6px; background:var(--surface2); border-radius:3px; overflow:hidden; margin-top:6px; }
  .metric-fill { height:100%; border-radius:3px; transition:width .6s ease; }

  /* GRID */
  .grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }

  /* STATUS INDICATOR */
  .status-dot { width:7px; height:7px; border-radius:50%; display:inline-block; margin-right:5px; }
  .status-dot.active { background:var(--green); box-shadow:0 0 6px var(--green); animation:pulse 2s infinite; }
  .status-dot.paused { background:var(--yellow); }
  .status-dot.stopped { background:var(--red); }
  .status-dot.draft { background:var(--text3); }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

  /* SCORE RING */
  .score-ring { position:relative; width:60px; height:60px; }
  .score-ring svg { transform:rotate(-90deg); }
  .score-ring .score-val { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; }

  /* AI SUGGESTIONS */
  .suggestion-card {
    background:var(--surface2); border:1px solid var(--border2); border-radius:var(--radius);
    padding:14px 16px; margin-bottom:10px; display:flex; gap:12px;
  }
  .suggestion-icon { font-size:20px; flex-shrink:0; margin-top:2px; }
  .suggestion-title { font-size:13px; font-weight:600; color:var(--text); margin-bottom:4px; }
  .suggestion-text { font-size:12px; color:var(--text2); line-height:1.6; }
  .suggestion-prio { font-size:10px; font-weight:700; padding:2px 7px; border-radius:20px; }
  .prio-high { background:var(--red-bg); color:var(--red); }
  .prio-med { background:var(--yellow-bg); color:var(--yellow); }
  .prio-low { background:var(--green-bg); color:var(--green); }

  /* CAMPAIGN CARD */
  .campaign-card {
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    padding:16px 18px; margin-bottom:12px; transition:border-color .15s;
  }
  .campaign-card:hover { border-color:var(--border2); }
  .campaign-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
  .campaign-name { font-size:14px; font-weight:600; color:var(--text); }
  .campaign-metrics { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; }
  .cm { text-align:center; }
  .cm-val { font-size:15px; font-weight:700; color:var(--text); }
  .cm-label { font-size:10px; color:var(--text3); margin-top:2px; text-transform:uppercase; }

  /* AI TYPING */
  .typing-indicator { display:flex; align-items:center; gap:4px; padding:12px 16px; }
  .typing-dot { width:7px; height:7px; border-radius:50%; background:var(--ai); animation:typingBounce 1.2s infinite; }
  .typing-dot:nth-child(2) { animation-delay:.2s; }
  .typing-dot:nth-child(3) { animation-delay:.4s; }
  @keyframes typingBounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-7px)} }

  /* TAG INPUT */
  .tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
  .tag { background:var(--meta-light); color:var(--meta2); padding:3px 10px; border-radius:20px; font-size:12px; display:flex; align-items:center; gap:5px; }
  .tag-remove { cursor:pointer; opacity:.7; }
  .tag-remove:hover { opacity:1; }

  /* SCROLLBAR */
  ::-webkit-scrollbar { width:5px; height:5px; }
  ::-webkit-scrollbar-track { background:transparent; }
  ::-webkit-scrollbar-thumb { background:var(--border2); border-radius:3px; }

  /* EMPTY */
  .empty { text-align:center; padding:40px 20px; color:var(--text3); }
  .empty-icon { font-size:32px; margin-bottom:10px; opacity:.4; }
  .empty-text { font-size:13px; }

  .divider { height:1px; background:var(--border); margin:16px 0; }
  .flex-between { display:flex; align-items:center; justify-content:space-between; }
  .flex-center { display:flex; align-items:center; gap:8px; }
  .mt-16 { margin-top:16px; }
  .mb-16 { margin-bottom:16px; }
  .font-mono { font-family:monospace; }
  .pos { color:var(--green); }
  .neg { color:var(--red); }
  .ai-color { color:var(--ai); }

  /* AI GLOW BORDER */
  .ai-border { border-color:var(--ai) !important; box-shadow:0 0 0 1px var(--ai-glow); }

  /* Setup screen */
  .setup-screen {
    display:flex; align-items:center; justify-content:center; height:100%;
    flex-direction:column; gap:20px; padding:40px;
  }
  .setup-card {
    background:var(--surface); border:1px solid var(--border2); border-radius:16px;
    padding:32px; max-width:480px; width:100%; text-align:center;
  }
  .setup-icon { font-size:48px; margin-bottom:16px; }
  .setup-title { font-size:20px; font-weight:700; margin-bottom:8px; }
  .setup-sub { font-size:13px; color:var(--text2); line-height:1.6; margin-bottom:24px; }

  .progress-bar { height:3px; background:var(--surface2); border-radius:2px; overflow:hidden; margin-bottom:4px; }
  .progress-fill { height:100%; background:linear-gradient(90deg,var(--meta),var(--ai)); border-radius:2px; transition:width .3s; }

  pre { white-space:pre-wrap; word-break:break-word; font-family:inherit; }

/* ── MOBİL ── */
@media(max-width:768px) {
  body { flex-direction: column; height: 100dvh; }
  .sidebar {
    width: 100%; height: auto; min-height: unset; overflow: visible;
    border-right: none; border-bottom: 1px solid var(--border); flex-shrink: 0;
  }
  nav { display: flex; flex-direction: row; overflow-x: auto; gap: 2px; padding: 6px 4px; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  .nav-group { display: contents; }
  .nav-label { display: none; }
  .nav-item { flex-direction: column; gap: 2px; padding: 6px 10px; font-size: 10px; white-space: nowrap; min-width: fit-content; }
  .nav-icon { font-size: 18px; }
  .sidebar-bottom { display: none; }
  .main { min-height: 0; }
  .topbar { padding: 0 12px; height: 50px; gap: 8px; }
  .content { padding: 12px; }
  .kpi-grid, .dash-grid { grid-template-columns: repeat(2,1fr) !important; gap: 10px; }
  .modal { margin: 8px; max-width: calc(100vw - 16px) !important; max-height: 92vh; overflow-y: auto; }
  .modal-footer { flex-wrap: wrap; }
  .form-row, .form-grid { grid-template-columns: 1fr !important; }
  table { font-size: 12px; }
}

@media(max-width:480px) {
  .topbar .topbar-right .btn:not(:last-child) { display: none; }
  .kpi-grid { grid-template-columns: 1fr !important; }
}

/* ── RAKİP ANALİZİ ── */
.rakip-focus-btn {
  font-size:11px;font-weight:600;padding:5px 12px;border-radius:20px;cursor:pointer;
  background:var(--surface2);border:1px solid var(--border2);color:var(--text2);
  transition:all .15s;white-space:nowrap;
}
.rakip-focus-btn:hover {
  border-color:rgba(108,99,255,.4);color:var(--accent2);
}
.rakip-focus-btn.active {
  background:rgba(108,99,255,.15);border-color:rgba(108,99,255,.45);color:var(--accent2);font-weight:700;
}

