/* static/css/arkham.css — CryptoSignalNews · #04 Arkham / Palantir "INTEL // ENTITY MATRIX" */

/* ── Tokenlar: Gündüz (varsayılan) ── */
:root {
  --bg: #F6F9FC; --dot: #DCE4F0; --card: #FFFFFF; --card-2: #F9FBFE; --line: #DCE4F0; --line-2: #C9D5E6;
  --text: #0B1426; --muted: #5B6B84; --blue: #2563EB; --blue-2: #3B82F6; --green: #10B981; --violet: #8B5CF6;
  --amber: #D97706; --red: #DC2626; --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --ring: 0 0 0 3px rgba(37, 99, 235, .18); --radius: 12px; --radius-sm: 8px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --head: "Space Grotesk", "DM Sans", system-ui, sans-serif; --body: "DM Sans", Inter, system-ui, sans-serif;
  color-scheme: light;
}
/* ── Gece ── */
:root[data-theme="dark"] {
  --bg: #060A12; --dot: #162033; --card: #0C1322; --card-2: #0F182A; --line: #1E2D4A; --line-2: #2A3D60;
  --text: #E6EDF7; --muted: #8A9BB8; --blue: #3B82F6; --blue-2: #60A5FA; --green: #10B981; --violet: #A78BFA;
  --amber: #F59E0B; --red: #F87171; --shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 12px 32px -16px rgba(0, 0, 0, .7);
  --ring: 0 0 0 3px rgba(59, 130, 246, .28); color-scheme: dark;
}

/* ── Temel + nokta ızgara matrisi (18px) ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 15px/1.55 var(--body); color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 18px 18px;
  transition: background-color .25s, color .25s;
}
h1, h2, h3 { font-family: var(--head); letter-spacing: -.01em; margin: 0 0 6px; }
h1 { font-size: 24px; line-height: 1.2; } h2 { font-size: 18px; } h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
p { margin: 0 0 14px; }
a { color: var(--blue); }
button, input, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .accent { color: var(--blue); }
.grow { flex: 1; min-width: 0; } .push { margin-inline-start: auto; } .break { word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--ring); }

/* ── Üst kontrol çubuğu ── */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.badge-intel { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--blue); padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); white-space: nowrap; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); min-width: 0; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 15px; }
.logo-name { font: 700 16px var(--head); white-space: nowrap; } .logo-name b { color: var(--blue); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: pulse 2s infinite; margin-inline-end: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.controls { display: flex; align-items: center; gap: 8px; }
#lang-select { height: 36px; padding: 0 10px; font-size: 12.5px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; max-width: 170px; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 16px; }

/* ── Yerleşim: masaüstünde 2 sütun istihbarat, mobilde tek sütun ── */
.shell { padding: 28px 24px 64px; max-width: 1180px; margin: 0 auto; }
.intel-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.solo { max-width: 560px; margin: 0 auto; } .solo.wide { max-width: 720px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel.center { text-align: center; padding: 56px 24px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--blue); margin-bottom: 12px; }
.terminal { position: sticky; top: 84px; }
.terminal h1 { font-size: 22px; }

/* ── Telemetri paneli ── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 600 11px var(--mono); padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
.tag-blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.tag-green { color: var(--green); background: color-mix(in srgb, var(--green) 13%, transparent); }
.tag-violet { color: var(--violet); background: color-mix(in srgb, var(--violet) 13%, transparent); }
.tag-amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.tag-red { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.tag-ghost { color: var(--muted); background: var(--card-2); border: 1px solid var(--line); }
.tel-title { font-size: 19px; margin-bottom: 4px; }
.tel-graph { width: 100%; height: auto; margin: 6px 0 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tel-graph .grid-lines line { stroke: var(--line); stroke-width: 1; }
.tel-graph .grid-lines .mark { stroke: var(--line-2); stroke-dasharray: 3 4; }
.tel-graph text { font-size: 8.5px; fill: var(--muted); }
.tel-line { fill: none; stroke: var(--blue-2); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2.4s ease-out forwards; }
.node { fill: var(--card); stroke-width: 2.5; opacity: 0; animation: pop .4s ease-out forwards; }
.node.n1 { stroke: var(--amber); animation-delay: .9s; } .node.n2 { stroke: var(--green); animation-delay: 1.4s; } .node.n3 { stroke: var(--blue); animation-delay: 2.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.node { transform-box: fill-box; transform-origin: center; }
.sample { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.sample-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 12px; font-size: 11.5px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.sample-head .bull { color: var(--green); font-weight: 700; }
.tiers { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tiers th { font: 700 10.5px var(--mono); letter-spacing: .05em; color: var(--muted); text-align: center; padding: 8px 6px; }
.tiers th:last-child { color: var(--violet); } .tiers th:nth-child(3) { color: var(--blue); }
.tiers td { padding: 7px 8px; border-top: 1px solid var(--line); text-align: center; font-family: var(--mono); font-size: 11.5px; }
.tiers td:first-child { text-align: start; font-family: var(--body); font-size: 12.5px; }
.tiers .ok { color: var(--green); } .tiers .no { color: var(--line-2); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }

/* ── Form + butonlar ── */
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input, select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-2); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.otp-input { height: 60px; text-align: center; font-size: 28px; letter-spacing: .5em; padding-inline-start: .5em; }
.btn { display: block; width: 100%; height: 46px; margin-top: 10px; border: 1px solid transparent; border-radius: var(--radius-sm); font: 700 14px var(--mono); letter-spacing: .04em; cursor: pointer; transition: filter .15s, background .15s, transform .05s; text-align: center; text-decoration: none; line-height: 44px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; } .btn-primary:hover:not(:disabled) { background: var(--blue-2); }
.btn-success { background: var(--green); color: #04130D; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--red) 40%, transparent); color: var(--red); }
.btn-plan { display: inline-block; width: auto; height: 38px; line-height: 36px; padding: 0 16px; margin: 0; font-size: 12.5px; color: #fff; background: var(--blue); }
.btn-mini { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font: 600 12px var(--mono); border: 1px solid var(--line-2); border-radius: 7px; background: var(--card-2); cursor: pointer; text-decoration: none; color: var(--blue); }
.btn-mini.danger { color: var(--red); } .btn-mini.violet { color: var(--violet); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ── Kurulum adımları + seçim kartları ── */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.steps i.done { background: var(--green); } .steps i.on { background: var(--blue); }
.lang-grid, .cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.lang-card, .cat-card, .channel-card, .th-card, .theme-card {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; text-align: start;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.lang-card:hover, .cat-card:hover, .channel-card:hover, .th-card:hover, .theme-card:hover { border-color: var(--line-2); }
.selected { border-color: var(--blue) !important; background: color-mix(in srgb, var(--blue) 8%, var(--card)) !important; }
.lang-card .flag { font-size: 22px; } .lang-card b { display: block; font-size: 13.5px; } .lang-card small { color: var(--muted); font-size: 11px; }
.cat-card { flex-direction: column; justify-content: center; text-align: center; gap: 4px; min-height: 78px; }
.cat-emoji { font-size: 20px; } .cat-name { font: 600 11.5px var(--mono); letter-spacing: .04em; }
.cat-check { position: absolute; top: 6px; inset-inline-end: 8px; color: var(--blue); font-weight: 700; font-size: 12px; }
.hint { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.channel-card { flex-direction: column; gap: 6px; padding: 18px 10px; font-weight: 600; } .ch-icon { font-size: 22px; }
.th-list { display: grid; gap: 8px; }
.th-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.th-card.selected .th-radio { border-color: var(--blue); background: radial-gradient(var(--blue) 45%, transparent 50%); }
.th-body { display: block; } .th-title { display: flex; align-items: center; gap: 8px; font-weight: 700; } .th-desc { display: block; color: var(--muted); font-size: 12.5px; }
.info-chip { margin: 12px 0 4px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.theme-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.theme-card { flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; }
.theme-preview { display: flex; justify-content: space-between; padding: 10px 8px; border-radius: 6px; font: 700 10.5px var(--mono); border: 1px solid var(--line); }
.theme-name { font-weight: 700; font-size: 12px; } .theme-sub { color: var(--muted); font-size: 10.5px; line-height: 1.3; }

/* ── Paketler ── */
.plan { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--card-2); }
.plan-title { font: 700 14px var(--head); margin-bottom: 4px; }
.plan p { margin-bottom: 10px; }
.plan-pro { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.plan-elite { border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); }
.plan-elite .plan-title { color: var(--violet); } .plan-elite .btn-plan { background: var(--violet); }
.plan-ok { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); } .plan-ok .plan-title { color: var(--green); }

/* ── Panel ── */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dash-email { font-size: 13px; color: var(--muted); word-break: break-all; }
.badge { font: 700 11px var(--mono); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.badge-on { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.badge-trial { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.tg-card, .toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-2); margin-bottom: 8px; }
.tg-icon { font-size: 20px; }
.link-reveal { padding: 10px 12px; margin-bottom: 8px; border: 1px dashed var(--blue); border-radius: var(--radius-sm); }
.link-reveal a { font-weight: 700; text-decoration: none; }
.switch { position: relative; width: 44px; height: 24px; flex: none; border-radius: 999px; border: 1px solid var(--line-2); background: var(--line); cursor: pointer; padding: 0; }
.switch span { position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .18s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.switch[aria-checked="true"] { background: var(--green); border-color: var(--green); }
.switch[aria-checked="true"] span { inset-inline-start: 22px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.info-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card-2); color: var(--blue); font-weight: 700; cursor: pointer; margin-top: 12px; }

/* ── Ödemeler ── */
.invoice { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--card-2); overflow: hidden; }
.invoice-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border: 0; background: none; cursor: pointer; text-align: start; }
.amount { flex-basis: 100%; font-size: 16px; font-weight: 700; }
.invoice-detail { padding: 4px 14px 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); } .err { color: var(--red); }

/* ── Toast, modal, yükleniyor ── */
.toast { position: fixed; inset-inline: 0; bottom: 24px; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: var(--radius-sm); background: var(--text); color: var(--bg); font: 600 13px var(--mono); opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 15, .55); backdrop-filter: blur(3px); }
.modal.open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; }
.info-item { padding: 10px 0; border-top: 1px solid var(--line); } .info-title { font-weight: 700; margin-bottom: 2px; }
.spinner { width: 26px; height: 26px; margin: 0 auto; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RTL (العربية) ── */
[dir="rtl"] body { font-family: "DM Sans", "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] .otp-input, [dir="rtl"] input[type="email"], [dir="rtl"] .tel-graph, [dir="rtl"] .badge-intel, [dir="rtl"] .tags { direction: ltr; }

/* ── Duyarlı ── */
@media (max-width: 960px) {
  .intel-grid { grid-template-columns: 1fr; }
  .terminal { position: static; order: -1; }
  .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topbar { padding: 10px 16px; } .shell { padding: 18px 16px 48px; }
  .badge-intel { display: none; } .panel { padding: 18px; }
  .lang-grid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #lang-select { max-width: 132px; } h1 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .tel-line { stroke-dashoffset: 0; } .node { opacity: 1; } }
