/* Tanıtım ve metin sayfaları */

main:focus { outline: none; }
.wide { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.block-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.fine { font-size: 12.5px; color: var(--text-3); }

/* Ana sayfa: tek satır tanım */
.intro { max-width: 1600px; margin: 0 auto; padding: 10px var(--gutter) 8px; }
.intro h1 { font-size: 14px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }

/* Ana sahne: gerçek grafik + izleme listesi */
.stage {
  max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0;
  height: clamp(460px, calc(100vh - var(--header-h) - 42px), 760px);
  height: clamp(460px, calc(100dvh - var(--header-h) - 42px), 760px);
}
.stage-chart, .stage-watch { border: 1px solid var(--border); background: var(--chart-bg); min-width: 0; min-height: 0; }
.stage-chart { display: flex; flex-direction: column; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.stage-watch { display: flex; flex-direction: column; border-left: 0; background: var(--surface); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

.stage-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 42px; padding: 5px 8px;
  border-bottom: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg) 0 0 0;
}
.chart-tabs { display: flex; gap: 1px; }
.chart-tabs button, .seg button {
  height: 28px; min-width: 40px; padding: 0 9px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600;
}
.chart-tabs button:hover, .seg button:hover { color: var(--text); background: var(--surface-2); }
.chart-tabs button[aria-selected='true'], .seg button[aria-pressed='true'] { color: var(--accent-text); background: var(--accent-soft); }
.stage-quote { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding-left: 10px; border-left: 1px solid var(--border); white-space: nowrap; }
.stage-sym { font-weight: 600; font-size: 14px; }
.stage-name { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; max-width: 20ch; }
.stage-quote .price { font-size: 16px; font-weight: 600; color: var(--text); }
.stage-quote .chg { font-size: 13px; font-weight: 500; }
.stage-quote .badge { align-self: center; }
.stage-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.seg { display: flex; gap: 1px; padding-right: 8px; border-right: 1px solid var(--border); }
.seg button { min-width: 32px; padding: 0 6px; font-weight: 500; }
.stage-body { position: relative; flex: 1; min-height: 0; }
.stage-body .chart-el { position: absolute; inset: 0; }
.stage-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 5px 10px;
  border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); background: var(--surface);
  border-radius: 0 0 0 var(--radius-lg);
}
.chart-message {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center; color: var(--text-2); font-size: 13.5px; background: var(--chart-bg);
}
.chart-message[hidden] { display: none; }
.chart-message p { max-width: 44ch; }

/* Sahne: izleme listesi */
.sw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.sw-head h2 { font-size: 13px; font-weight: 600; }
.sw-more { font-size: 12px; text-decoration: none; }
.sw-more:hover { text-decoration: underline; }
.sw-cols, .sw-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 64px; align-items: center; gap: 6px; }
.sw-cols { padding: 5px 40px 5px 12px; font-size: 11px; color: var(--text-3); border-bottom: 1px solid var(--border); }
.sw-cols span:nth-child(n+2) { text-align: right; }
.sw-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; }
.sw-item { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--border); }
.sw-item:hover { background: var(--surface-2); }
.sw-item[aria-current='true'] { background: var(--accent-soft); }
.sw-item[aria-current='true']::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.sw-row { flex: 1; min-width: 0; min-height: 40px; padding: 3px 0 3px 12px; border: 0; background: transparent; color: var(--text); text-align: left; }
.sw-sym { display: grid; min-width: 0; }
.sw-sym b { font-weight: 600; font-size: 13px; }
.sw-sym small { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-price, .sw-chg { text-align: right; font-size: 13px; }
.sw-price { color: var(--text); }
.sw-open { flex: none; width: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.sw-open:hover { color: var(--accent-text); }
.sw-open svg { width: 14px; height: 14px; }
.sw-status { padding: 6px 12px; font-size: 11.5px; color: var(--text-3); border-top: 1px solid var(--border); min-height: 30px; }

@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr) 280px; }
  .stage-name { display: none; }
}
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; height: auto; gap: 12px; }
  .stage-chart { height: clamp(380px, 68vh, 560px); border-radius: var(--radius-lg); }
  .stage-bar { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .stage-foot { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .stage-watch { border-left: 1px solid var(--border); border-radius: var(--radius-lg); max-height: 420px; }
  .stage-quote { border-left: 0; padding-left: 0; order: -1; width: 100%; }
  .stage-tools { margin-left: auto; }
}
@media (max-width: 520px) {
  .stage-tools .btn { display: none; }
  .stage-tools .seg { border-right: 0; padding-right: 0; }
  .stage-quote .badge { margin-left: auto; }
}

/* Piyasa özeti */
.markets { padding-top: 28px; }
.market-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.market { min-width: 0; }
.market + .market { border-left: 1px solid var(--border); }
.market-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.market-head h3 { font-size: 13px; font-weight: 600; }
.market-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.market-list li { border-bottom: 1px solid var(--border); }
.market-list li:last-child { border-bottom: 0; }
.market-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; min-height: 44px; padding: 4px 12px; color: var(--text); text-decoration: none; }
.market-list a:hover { background: var(--surface-2); }
.m-sym { display: grid; min-width: 0; }
.m-sym b { font-size: 13px; font-weight: 600; }
.m-sym small { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-price, .m-chg { text-align: right; font-size: 13px; }
.markets-note { margin-top: 8px; font-size: 12px; color: var(--text-3); }
@media (max-width: 960px) {
  .market-grid { grid-template-columns: 1fr 1fr; }
  .market[data-market-block='bist'] { grid-column: 1 / -1; }
  .market[data-market-block='crypto'] { border-left: 0; border-top: 1px solid var(--border); }
  .market[data-market-block='fx'] { border-top: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .market-grid { grid-template-columns: 1fr; }
  .market + .market { border-left: 0; border-top: 1px solid var(--border); }
}

/* Kısa özellik şeridi */
.facts { padding-top: 28px; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fact-list li { padding: 14px 16px 14px 0; font-size: 13.5px; color: var(--text-2); }
.fact-list li + li { padding-left: 16px; border-left: 1px solid var(--border); }
.fact-list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 960px) {
  .fact-list { grid-template-columns: 1fr 1fr; }
  .fact-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact-list li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .fact-list { grid-template-columns: 1fr; }
  .fact-list li, .fact-list li + li { padding: 12px 0; border-left: 0; }
  .fact-list li + li { border-top: 1px solid var(--border); }
}

/* Bekleme listesi (sade, alt bilgi yakınında) */
.waitlist-strip { padding-top: 28px; }
.waitlist-row-wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 32px; }
.waitlist-strip h2 { font-size: 15px; }
.waitlist-strip .fine { margin-top: 2px; }
.waitlist-form { display: grid; gap: 6px; flex: 0 1 460px; min-width: 0; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist-row .input { flex: 1; min-width: 0; }
.waitlist-row .btn { min-height: 38px; }
@media (max-width: 480px) { .waitlist-row { flex-direction: column; } }

/* Metin sayfaları */
.page-head { padding: clamp(28px, 5vw, 48px) 0 24px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.018em; }
.page-head p { margin-top: 8px; color: var(--text-2); max-width: 60ch; font-size: 15px; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; padding-top: 40px; }
.page-aside { font-size: 14px; color: var(--text-2); border-left: 1px solid var(--border); padding-left: 24px; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.page-aside h2 { font-size: 13px; color: var(--text); margin-bottom: 8px; }
.page-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.page-aside a { color: var(--text-2); text-decoration: none; display: block; padding: 4px 0; }
.page-aside a:hover, .page-aside a[aria-current='page'] { color: var(--text); }
@media (max-width: 860px) { .page-body { grid-template-columns: 1fr; gap: 40px; } .page-aside { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; } }

.prose { max-width: 70ch; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 18px; color: var(--text); margin-top: 32px; }
.prose h3 { font-size: 15.5px; color: var(--text); margin-top: 28px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-size: 0.92em; background: var(--surface-2); padding: 1px 5px; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.prose blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid var(--border-strong); }
.todo { display: inline-block; font-family: var(--font-mono); font-size: 12px; padding: 2px 6px; border-radius: 3px; background: var(--surface-2); color: var(--warn); border: 1px dashed var(--border-strong); }

/* SSS akordeon (details) */
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 13px 32px 13px 0; position: relative; color: var(--text); font-weight: 500; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; }
.faq details > div > * + * { margin-top: 12px; }

.support-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* İçerik dosyasından gelen ham butonlar (destekçi sayfası) */
.prose button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; margin: 0 8px 8px 0; border-radius: var(--radius); border: 1px solid var(--border-strong); background: transparent; color: var(--text); font-weight: 500; font-size: 14px; }
.prose button[disabled] { opacity: 0.55; cursor: not-allowed; }
.prose p:has(> button) { display: flex; flex-wrap: wrap; gap: 8px; }
.prose p:has(> button) button { margin: 0; }
.prose .btn { text-decoration: none; margin: 0 8px 8px 0; }

/* Hesap sayfaları (giriş, kayıt, şifre, Hesabım) */
.auth-page { padding-top: clamp(28px, 6vw, 64px); }
.auth-col { max-width: 380px; margin: 0 auto; }
.auth-col-wide { max-width: 600px; }
.auth-col h1 { font-size: 22px; letter-spacing: -0.015em; }
.auth-lede { margin-top: 6px; color: var(--text-2); font-size: 14px; }
.auth-col .auth-switch { margin-top: 16px; }
.auth-submit { width: 100%; }
.field-opt { font-weight: 400; color: var(--text-3); }
.input[readonly] { background: var(--surface); color: var(--text-2); }
.auth-alt { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.auth-account { font-size: 13.5px; color: var(--text-2); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account[hidden] { display: none; }

.account { margin-top: 24px; border-top: 1px solid var(--border); }
.account-section { padding: 22px 0; border-bottom: 1px solid var(--border); }
.account-section h2 { font-size: 15px; }
.account-section > p { margin-top: 6px; color: var(--text-2); font-size: 14px; max-width: 60ch; }
.account-section .auth-form { margin-top: 14px; }
.account-section .form-actions { margin-top: 10px; }
