:root {
  --bg: #0b1018;
  --bg-soft: #111827;
  --card: #151d2b;
  --card-2: #1a2436;
  --border: #232f45;
  --text: #e8edf5;
  --text-dim: #93a1b8;
  --gold: #f2b805;
  --gold-2: #ffd75e;
  --up: #22c55e;
  --down: #ef4444;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Ticker ---------- */
.ticker-bar {
  background: #070b11;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  height: 34px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: inline-flex;
  gap: 34px;
  padding-left: 100%;
  animation: ticker 40s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
.ticker-item { display: inline-flex; gap: 8px; align-items: center; color: var(--text-dim); }
.ticker-item b { color: var(--text); font-weight: 600; }
.ticker-item .t-up { color: var(--up); }
.ticker-item .t-down { color: var(--down); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 24, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; }
.brand-name { font-size: 20px; color: var(--text); letter-spacing: 0.2px; }
.brand-name strong { color: var(--gold); }
.brand-alt { color: var(--text-dim); font-size: 0.72em; font-weight: 500; margin-left: 1px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--gold-2); background: var(--card); }
.live-badge {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.live-badge.connected { color: var(--up); border-color: rgba(34,197,94,.35); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim);
}
.live-badge.connected .live-dot { background: var(--up); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  100% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 52px 0 40px;
  background:
    radial-gradient(600px 280px at 15% 0%, rgba(242,184,5,.10), transparent 70%),
    radial-gradient(700px 320px at 85% 10%, rgba(59,130,246,.08), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.2; margin-bottom: 12px; }
.hero p { color: var(--text-dim); max-width: 640px; font-size: 15px; }
.hero-cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.hero-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color .2s;
}
.hero-card:hover { border-color: rgba(242,184,5,.4); }
.hero-card .hc-name { font-size: 12.5px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.hero-card .hc-price { font-size: 21px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hero-card .hc-change { font-size: 13px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.market-section { margin: 44px 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; }
.section-head h2::before { content: ""; display: inline-block; width: 5px; height: 18px; background: var(--gold); border-radius: 3px; margin-right: 10px; }
.section-note { color: var(--text-dim); font-size: 13px; }

/* ---------- Tables ---------- */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.rate-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rate-table thead th {
  text-align: right;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-dim);
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
}
.rate-table thead th:first-child { text-align: left; }
.rate-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rate-table tbody tr:last-child td { border-bottom: none; }
.rate-table tbody tr { transition: background .15s; }
.rate-table tbody tr:hover { background: rgba(242,184,5,.045); }
.rate-table td:first-child { text-align: left; }
.asset-cell { display: flex; align-items: center; gap: 10px; }
.asset-icon {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover; background: var(--card-2); flex-shrink: 0;
}
.asset-icon-ph {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--gold), #b8860b);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #201500;
}
.asset-name { font-weight: 600; }
.asset-code { font-size: 11.5px; color: var(--text-dim); display: block; line-height: 1.3; }
.chg { font-weight: 600; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg .arrow { font-size: 11px; margin-right: 3px; }
.col-time { width: 72px; }
td.cell-time { color: var(--text-dim); font-size: 13px; }

/* price flash */
@keyframes flashUp   { 0% { background: rgba(34,197,94,.28); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(239,68,68,.28); } 100% { background: transparent; } }
td.flash-up   { animation: flashUp 1s ease-out; }
td.flash-down { animation: flashDown 1s ease-out; }

.loading-row td { text-align: center !important; color: var(--text-dim); padding: 26px; }

/* ---------- Mini grid (commodities/indices) ---------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.mini-card .mc-name { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.mini-card .mc-price { font-size: 18px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.mini-card .mc-change { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- App promo ---------- */
.app-promo {
  margin: 56px 0;
  background: linear-gradient(135deg, rgba(242,184,5,.12), rgba(242,184,5,.03) 55%), var(--card);
  border: 1px solid rgba(242,184,5,.25);
  border-radius: 20px;
  padding: 34px;
}
.promo-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.promo-logo { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.promo-text h2 { font-size: 24px; margin-bottom: 6px; }
.promo-text p { color: var(--text-dim); max-width: 520px; font-size: 14.5px; }
.store-buttons { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #060a10;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  transition: border-color .15s, transform .15s;
}
.store-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.store-btn small { display: block; font-size: 10px; color: var(--text-dim); letter-spacing: .8px; }
.store-btn span { font-size: 15px; font-weight: 600; line-height: 1.25; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #070b11;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1fr 1.3fr;
  gap: 30px;
  padding: 44px 20px 26px;
}
.footer-contact .fc-name { color: var(--text); font-weight: 700; font-size: 13.5px; margin-bottom: 12px; letter-spacing: .3px; }
.footer-contact .fc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}
.footer-contact a.fc-row { color: var(--gold-2); font-weight: 600; transition: transform .15s; }
.footer-contact a.fc-row:hover { transform: translateX(3px); }
.fc-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(242,184,5,.14);
  border: 1px solid rgba(242,184,5,.3);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-about p { color: var(--text-dim); font-size: 13.5px; margin-top: 14px; max-width: 300px; }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--gold); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px; text-align: center; color: var(--text-dim); font-size: 12.5px; }
.footer-bottom .disclaimer { max-width: 860px; margin: 0 auto 10px; font-size: 12px; opacity: .8; }
.footer-bottom .footer-owner { margin-bottom: 6px; font-size: 12px; letter-spacing: .3px; }

/* ---------- Legal pages ---------- */
.legal-main { padding: 40px 0 60px; min-height: 60vh; }
.legal-main h1 { font-size: 30px; margin-bottom: 8px; }
.legal-updated { color: var(--text-dim); font-size: 13px; margin-bottom: 28px; }
.legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 38px;
}
.legal-content h2 { font-size: 19px; margin: 26px 0 10px; color: var(--gold-2); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 16px; margin: 18px 0 8px; }
.legal-content p { margin-bottom: 12px; color: #c9d3e0; font-size: 14.5px; }
.legal-content ul, .legal-content ol { margin: 0 0 14px 22px; color: #c9d3e0; font-size: 14.5px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.legal-content table th, .legal-content table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; color: #c9d3e0; }
.legal-content table th { background: var(--card-2); color: var(--text); }

/* ---------- İletişim ---------- */
.contact-hero {
  background: linear-gradient(135deg, rgba(242,184,5,.12), rgba(242,184,5,.03) 55%), var(--card);
  border: 1px solid rgba(242,184,5,.25);
  border-radius: 20px;
  padding: 38px 34px;
  text-align: center;
  margin-bottom: 26px;
}
.contact-hero h2 { font-size: 22px; margin-bottom: 8px; }
.contact-hero p { color: var(--text-dim); max-width: 560px; margin: 0 auto 22px; font-size: 14.5px; }
.mail-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold);
  color: #201500;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s;
}
.mail-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(242,184,5,.25); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-card .cc-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(242,184,5,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { color: var(--text-dim); font-size: 13.5px; }
.contact-card a { color: var(--gold-2); text-decoration: none; font-size: 13.5px; }
.contact-note {
  margin-top: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 13.5px;
}

/* ---------- SSS (Akordiyon) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(242,184,5,.4); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.faq-item .faq-body a { color: var(--gold-2); }

/* ---------- Hakkımızda ---------- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 26px 0;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card .st-num { font-size: 26px; font-weight: 700; color: var(--gold); }
.stat-card .st-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .legal-content { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .header-inner { gap: 12px; }
  .brand-name { font-size: 17px; }
  .rate-table { font-size: 13px; }
  .rate-table td, .rate-table thead th { padding: 10px 10px; }
  .col-time, td.cell-time { display: none; }
  .asset-icon, .asset-icon-ph { width: 22px; height: 22px; }
  .hero { padding: 36px 0 30px; }
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .app-promo { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
