/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
:root {
  --bg: #000;
  --s1: #0a0a0a;
  --s2: #111;
  --s3: #181818;
  --b1: #1c1c1c;
  --b2: #2a2a2a;
  --b3: #333;
  --text: #fff;
  --t2: #999;
  --t3: #555;
  --green: #00e676;
  --gg: rgba(0, 230, 118, .1);
  --gg2: rgba(0, 230, 118, .15);
  --red: #ff1744;
  --rg: rgba(255, 23, 68, .1);
  --amber: #ffc107;
  --blue: #2196f3;
  --bg2: rgba(33, 150, 243, .12);
  --purple: #9c27b0;
  --yellow: #ffeb3b;
  --mono: 'IBM Plex Mono', monospace;
}

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

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar {
  width: 3px
}

::-webkit-scrollbar-track {
  background: var(--bg)
}

::-webkit-scrollbar-thumb {
  background: var(--b2);
  border-radius: 2px
}

/* ══════════════════════════════════════════
   NAV — GENEL
══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--b1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(255, 255, 255, .3);
  transition: box-shadow .2s;
}

.logo-mark:hover {
  box-shadow: 0 0 36px rgba(255, 255, 255, .5)
}

.logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  display: block;
  line-height: 1.2
}

.logo-tagline {
  font-size: 10px;
  color: var(--t3);
  letter-spacing: .8px;
  text-transform: uppercase
}

/* Genel nav-tab */
.nav-tab {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  transition: color .15s, background .15s;
  letter-spacing: -.1px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #fff;
  background: var(--s1)
}

.nav-tab.active {
  color: #fff !important;
  background: var(--s2) !important;
  position: relative;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px 2px 0 0;
  z-index: 1;
}

/* ── NAVIGATION ── */
#nav-container {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

#nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}

#nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  background: var(--gg);
  border: 1px solid rgba(0, 230, 118, .2);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: .5px
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.btn {
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  border: none;
  letter-spacing: -.1px
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 4px 16px rgba(255, 255, 255, .2)
}

.btn-primary:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, .3)
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--b2)
}

.btn-ghost:hover {
  background: var(--s1);
  border-color: var(--b3)
}



.notif-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--b1);
  color: var(--t2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  position: relative;
  transition: all .15s;
}

.notif-btn:hover {
  background: var(--s1);
  color: #fff;
  border-color: var(--b2)
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-pill:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--b2)
}

.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #fff !important;
  color: #000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.user-pill-name {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.2px;
  line-height: 1.2;
}

.user-pill-role {
  font-size: 9px;
  color: var(--t3);
  font-family: var(--mono);
  line-height: 1.2;
}

/* Notification Button */
.notif-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--t2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.notif-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--b2);
  color: #fff;
}

.notif-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* dropdown */
.user-dropdown {
  position: fixed;
  top: 52px;
  right: 32px;
  width: 200px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
  display: none;
  z-index: 400;
}

.user-dropdown.open {
  display: block
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--t2);
  cursor: pointer;
  transition: all .12s;
  border-bottom: 1px solid var(--b1)
}

.dd-item:last-child {
  border-bottom: none
}

.dd-item:hover {
  background: var(--s2);
  color: #fff
}

.dd-item.active {
  background: var(--s2);
  color: #fff;
  border-left: 3px solid #fff;
  padding-left: 13px;
}

.dd-item.danger:hover {
  color: var(--red)
}

.dd-icon {
  font-size: 14px;
  width: 18px;
  text-align: center
}

/* ══════════════════════════════════════════
   TICKER
══════════════════════════════════════════ */
.ticker-strip {
  margin-top: 60px;
  height: 36px;
  background: var(--s1);
  border-bottom: 1px solid var(--b1);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.ticker-inner {
  display: flex;
  gap: 44px;
  animation: tick 40s linear infinite;
  white-space: nowrap;
  padding: 0
}

.t-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px
}

.t-sym {
  color: #fff;
  font-weight: 500
}

.t-price {
  color: var(--t2)
}

.t-up {
  color: var(--green)
}

.t-dn {
  color: var(--red)
}

@keyframes tick {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* ══════════════════════════════════════════
   PAGES
══════════════════════════════════════════ */
.page {
  display: none;
  padding-top: 100px;
  min-height: calc(100vh - 60px);
  flex: 1;
}

.page.active {
  display: block
}

#home {
  padding-top: 70px
}

.page-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px
}

/* ══════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════ */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px 32px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 5px 12px;
  border-radius: 5px;
  margin-bottom: 20px;
  letter-spacing: .4px;
  font-family: var(--mono);
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 16px
}

.hero-title span {
  text-shadow: 0 0 60px rgba(255, 255, 255, .4)
}

.hero-desc {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 430px
}

.hero-cta {
  display: flex;
  gap: 10px
}

.hero-cta .btn {
  padding: 12px 28px;
  font-size: 14px
}

/* hero BTC card */
.hcard {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 12px;
  overflow: hidden
}

.hcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--b1)
}

.hcard-title {
  font-size: 13px;
  font-weight: 600
}

.hcard-live {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  background: var(--gg);
  border: 1px solid rgba(0, 230, 118, .15);
  padding: 3px 8px;
  border-radius: 4px
}

.hcard-price-row {
  padding: 18px
}

.hcard-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: var(--mono)
}

.hcard-chg {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  margin-top: 3px
}

.mini-chart {
  padding: 0 18px 6px
}

.hcard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--b1)
}

.hcs {
  padding: 12px 18px;
  border-right: 1px solid var(--b1)
}

.hcs:last-child {
  border-right: none
}

.hcs:nth-child(3),
.hcs:nth-child(4) {
  border-top: 1px solid var(--b1)
}

.hcs-l {
  font-size: 10px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px
}

.hcs-v {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500
}

/* stats strip */
.stats-strip {
  background: var(--s1);
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1)
}

.stats-strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.sc {
  padding: 20px 28px;
  border-right: 1px solid var(--b1);
  transition: background .15s
}

.sc:last-child {
  border-right: none
}

.sc:hover {
  background: var(--s2)
}

.sc-l {
  font-size: 10px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px
}

.sc-v {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.6px;
  font-family: var(--mono)
}

.sc-v.g {
  color: var(--green)
}

.sc-s {
  font-size: 11px;
  color: var(--t3);
  margin-top: 2px
}

/* main grid */
.main-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px
}

/* panel */
.panel {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 10px;
  overflow: hidden
}

.ph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--b1)
}

.ph-title {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px
}

.ph-icon {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, .06);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px
}

.tab-row {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--b1);
  border-radius: 6px;
  padding: 2px
}

.tbtn {
  padding: 4px 11px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--t3);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  transition: all .15s
}

.tbtn.active {
  background: var(--s2);
  color: #fff
}

.chart-wrap {
  padding: 14px 18px
}

svg.chart {
  width: 100%;
  height: 165px;
  overflow: visible
}

.pr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid var(--b1)
}

.pr:last-child {
  border-bottom: none
}

.pr-l {
  font-size: 13px;
  color: var(--t2)
}

.pr-v {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500
}

/* positions */
.pos-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--b1);
  transition: background .12s
}

.pos-row:last-child {
  border-bottom: none
}

.pos-row:hover {
  background: var(--s2)
}

.pos-pair {
  font-size: 13px;
  font-weight: 600
}

.pos-meta {
  font-size: 10px;
  color: var(--t3);
  font-family: var(--mono);
  margin-top: 1px
}

.side {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .5px
}

.side-l {
  background: var(--gg);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, .2)
}

.side-s {
  background: var(--rg);
  color: var(--red);
  border: 1px solid rgba(255, 23, 68, .2)
}

.pos-pnl {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-align: right
}

/* features */
.feat-section {
  background: var(--s1);
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1)
}

.feat-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 32px
}

.sec-ey {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px
}

.sec-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 32px
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.fc {
  background: var(--bg);
  border: 1px solid var(--b1);
  border-radius: 9px;
  padding: 24px;
  transition: border-color .2s
}

.fc:hover {
  border-color: var(--b2)
}

.fc-ico {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--b1);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 14px
}

.fc-t {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px
}

.fc-d {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.6
}

/* ══════════════════════════════════════════
   DASHBOARD PAGES (logged-in)
══════════════════════════════════════════ */
.dash-sub-page {
  padding-top: 70px;
}

.dash-header {
  padding: 36px 32px 24px;
  max-width: 1160px;
  margin: 0 auto
}

.dash-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.4px
}

.dash-sub {
  font-size: 13px;
  color: var(--t3);
  margin-top: 3px
}

/* Bot Paneli */
.bot-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 48px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px
}

.bot-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 10px;
  margin-bottom: 18px
}

.bot-toggle-label {
  font-size: 13px;
  font-weight: 600
}

.bot-toggle-sub {
  font-size: 11px;
  color: var(--t3);
  margin-top: 1px
}

.toggle-switch {
  width: 42px;
  height: 24px;
  background: var(--b2);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background .2s;
  border: none
}

.toggle-switch.on {
  background: var(--green)
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #000;
  border-radius: 50%;
  transition: transform .2s
}

.toggle-switch.on::after {
  transform: translateX(18px)
}

.perf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px
}

.pc {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 9px;
  padding: 16px 18px
}

.pc-l {
  font-size: 10px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px
}

.pc-v {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.5px
}

.pc-v.g {
  color: var(--green)
}

.pc-v.r {
  color: var(--red)
}

.pc-v.b {
  color: var(--blue)
}

/* Portföy */
.ptf-summary {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

.ptf-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 9px;
  padding: 16px 18px
}

.ptf-l {
  font-size: 10px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px
}

.ptf-v {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.4px
}

.ptf-chg {
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 3px
}

.history-table {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 48px
}

.ht {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 10px;
  overflow: hidden
}

.ht-head {
  display: grid;
  grid-template-columns: 140px 1fr 80px 100px 110px 100px;
  padding: 10px 18px;
  background: var(--s2);
  border-bottom: 1px solid var(--b1)
}

.ht-th {
  font-size: 10px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-family: var(--mono)
}

.ht-th:not(:first-child) {
  text-align: right
}

.ht-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px 100px 110px 100px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--b1);
  align-items: center;
  transition: background .12s
}

.ht-row:last-child {
  border-bottom: none
}

.ht-row:hover {
  background: var(--s2)
}

.ht-td {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t2);
  text-align: right
}

.ht-td:first-child {
  text-align: left;
  color: var(--t3)
}

/* API Ayarları */
.api-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px 48px;
  display: grid;
  gap: 16px
}

.api-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 10px;
  overflow: hidden
}

.api-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--b1)
}

.api-body {
  padding: 20px
}

.api-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px
}

.api-row:last-child {
  margin-bottom: 0
}

.api-label {
  font-size: 13px;
  color: var(--t2);
  flex-shrink: 0;
  width: 160px
}

.api-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t3);
  flex: 1
}

.api-input {
  flex: 1;
  padding: 9px 12px;
  background: var(--s2);
  border: 1px solid var(--b2);
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-family: var(--mono);
  outline: none;
  transition: border-color .15s;
}

.api-input:focus {
  border-color: var(--b3)
}

.api-input::placeholder {
  color: var(--t3)
}

.param-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.param-group label {
  display: block;
  font-size: 10px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px
}

.param-group select,
.param-group input {
  width: 100%;
  padding: 9px 12px;
  background: var(--s2);
  border: 1px solid var(--b2);
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-family: var(--mono);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
  appearance: none;
}

.param-group select:focus,
.param-group input:focus {
  border-color: var(--b3)
}

.save-btn {
  padding: 10px 24px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s
}

.save-btn:hover {
  background: #e5e5e5;
  transform: translateY(-1px)
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px
}

.chip-green {
  background: var(--gg);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, .2)
}

.chip-red {
  background: var(--rg);
  color: var(--red);
  border: 1px solid rgba(255, 23, 68, .2)
}

.chip-amber {
  background: rgba(255, 171, 64, .1);
  color: var(--amber);
  border: 1px solid rgba(255, 171, 64, .2)
}

/* ═══ Markets Page - Premium Hero ═══ */
.mkt-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  position: relative;
}

.mkt-hero-bg {
  position: absolute;
  top: -80px;
  left: 30%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle at center, rgba(68, 138, 255, 0.12) 0%, rgba(100, 200, 255, 0.05) 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.mkt-hero-inner {
  position: relative;
  z-index: 1;
}

.mkt-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.mkt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.mkt-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
  }
}

.mkt-title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Stat Cards - Premium Styling */
.mkt-stats-strip {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.7), 0 0 20px rgba(100, 150, 255, 0.1);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-value {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.stat-change {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;

}

.tbl-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px 40px;
}

.mkt-sum {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px
}

.ms {
  background: rgba(20, 20, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.ms::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.ms:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

.ms-l {
  font-size: 10px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px
}

.ms-v {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.4px
}

.ms-c {
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 3px
}

/* Toolbar */
.mkt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.mkt-search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.mkt-search-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.25s ease;
}

.mkt-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.mkt-search-input:focus {
  border-color: rgba(68, 138, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(68, 138, 255, 0.1);
}

.mkt-filters {
  display: flex;
  gap: 6px;
}

.fb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  color: var(--t2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s ease;
  white-space: nowrap;
}

.fb:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.fb.active {
  border-color: rgba(68, 138, 255, 0.5);
  color: #fff;
  background: rgba(68, 138, 255, 0.12);
  box-shadow: 0 0 12px rgba(68, 138, 255, 0.15);
}

.mkt-tbl {
  background: rgba(12, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.tbl-head {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 90px 90px 1fr 1.2fr 80px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.th {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-family: var(--mono);
  font-weight: 600;
}

/* Custom Scrollbar for Coin List */
#coin-list {
  max-height: 62vh;
  overflow-y: auto;
}

#coin-list::-webkit-scrollbar {
  width: 6px;
}

#coin-list::-webkit-scrollbar-track {
  background: transparent;
}

#coin-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

#coin-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tbl-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 90px 90px 1fr 1.2fr 80px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
  transition: all 0.15s ease;
  cursor: default;
}

.tbl-row:last-child {
  border-bottom: none;
}

.tbl-row:hover {
  background: rgba(68, 138, 255, 0.05);
}

.t-rank {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3)
}

.cc {
  display: flex;
  align-items: center;
  gap: 10px
}

.cav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  font-weight: 700;
  font-family: var(--mono)
}

.cn {
  font-size: 13px;
  font-weight: 600
}

.cs {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t3)
}

.td {
  font-family: var(--mono);
  font-size: 12px;
  text-align: right
}

.td-p {
  font-weight: 500
}

.td-g {
  color: var(--green)
}

.td-r {
  color: var(--red)
}

.td-m {
  color: var(--t2)
}

/* Hesabım */
.acc-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px 48px;
  display: grid;
  gap: 16px
}

.acc-avatar {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
}

.acc-info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px
}

.acc-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.4px
}

.acc-email {
  font-size: 12px;
  color: var(--t3);
  font-family: var(--mono);
  margin-top: 2px
}

.role-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: .5px;
  margin-top: 4px;
  display: inline-block
}

.role-admin {
  background: rgba(255, 171, 64, .1);
  color: var(--amber);
  border: 1px solid rgba(255, 171, 64, .2)
}

.role-user {
  background: rgba(255, 255, 255, .06);
  color: var(--t2);
  border: 1px solid var(--b2)
}

/* Ayarlar */
.settings-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px 48px;
  display: grid;
  gap: 16px
}

/* ══════════════════════════════════════════
   ORTAK BİLEŞENLER
══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--b1);
  background: var(--s1);
  margin-top: auto;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.footer-links {
  display: flex;
  gap: 20px
}

.fl {
  font-size: 12px;
  color: var(--t3);
  cursor: pointer;
  transition: color .15s
}

.fl:hover {
  color: var(--t2)
}

.footer-copy {
  font-size: 11px;
  color: var(--t3);
  font-family: var(--mono)
}

/* Layout repair: keep the home page and footer in normal document flow after
   icon cleanup removed decorative inline content from several compact blocks. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#home.page {
  padding-top: 112px;
  min-height: auto;
}

#home .hero {
  position: relative;
  min-height: 300px;
  padding-top: 36px;
  padding-bottom: 48px;
}

#home .main-grid {
  align-items: start;
  overflow: visible;
  padding-top: 36px;
  padding-bottom: 72px;
}

#home .chart-wrap {
  min-height: 192px;
}

#home #btc-chart-canvas {
  min-height: 165px;
}

#home .perf-section,
#home .feat-section,
#home .cta-banner,
#home .faq-section {
  position: relative;
  clear: both;
}

footer {
  position: relative !important;
  z-index: 1;
  flex-shrink: 0;
  clear: both;
  margin-top: 72px;
}

/* form helpers */
.form-group {
  margin-bottom: 14px
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 6px
}

.form-input {
  width: 100%;
  padding: 10px 13px;
  background: var(--s2);
  border: 1px solid var(--b2);
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.form-input::placeholder {
  color: var(--t3)
}

.form-input:focus {
  border-color: var(--b3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .04)
}

.form-input.mono {
  font-family: var(--mono)
}

.form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.pw-wrap {
  position: relative
}

.pw-wrap .form-input {
  padding-right: 38px
}

.toggle-pw-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--t3);
  cursor: pointer;
  font-size: 13px;
  padding: 3px;
  transition: color .15s
}

.toggle-pw-btn:hover {
  color: var(--t2)
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  cursor: pointer
}

.form-check input[type=checkbox],
#ri-terms {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #3861fb !important;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
  position: relative;
  z-index: 999
}

.form-check-lbl {
  font-size: 12px;
  color: var(--t3);
  line-height: 1.5
}

.form-check-lbl a {
  color: var(--t2);
  text-decoration: underline
}

.str-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--b1);
  margin-top: 6px;
  overflow: hidden
}

.str-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s, background .3s;
  width: 0
}

.str-lbl {
  font-size: 10px;
  margin-top: 3px
}

.btn-full {
  width: 100%;
  padding: 11px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(255, 255, 255, .1)
}

.btn-full:hover {
  background: #e5e5e5;
  transform: translateY(-1px)
}

.btn-full:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--b2);
  font-size: 11px
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--b1)
}

.oauth-btn {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--b2);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all .15s;
  margin-bottom: 8px
}

.oauth-btn:hover {
  border-color: var(--b3);
  color: #fff;
  background: var(--s2)
}

.auth-footer-txt {
  text-align: center;
  font-size: 12px;
  color: var(--t3);
  margin-top: 16px
}

.auth-footer-txt a {
  color: var(--t2);
  cursor: pointer;
  text-decoration: underline
}

.auth-footer-txt a:hover {
  color: #fff
}

.success-box {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0
}

.success-ico {
  width: 48px;
  height: 48px;
  background: var(--gg);
  border: 1px solid rgba(0, 230, 118, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 13px
}

.success-t {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px
}

.success-s {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.6;
  max-width: 260px
}

/* MODAL */
.modal-ov {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
  padding: 16px;
}

.modal-ov.open {
  opacity: 1;
  pointer-events: all;
}

.auth-modal {
  width: 100%;
  max-width: 408px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 14px;
  overflow: hidden;
  transform: translateY(18px) scale(.97);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .85)
}

.modal-ov.open .auth-modal {
  transform: translateY(0) scale(1)
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--b1)
}

.modal-logo {
  display: flex;
  align-items: center;
  gap: 9px
}

.modal-lm {
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #000
}

.modal-ln {
  font-size: 14px;
  font-weight: 700
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--b2);
  color: var(--t3);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-family: 'Inter', sans-serif
}

.modal-close:hover {
  background: var(--s2);
  color: #fff
}

.auth-tabs-row {
  display: flex;
  border-bottom: 1px solid var(--b1)
}

.atab {
  flex: 1;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: color .2s;
  position: relative
}

.atab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform .2s
}

.atab.active {
  color: #fff
}

.atab.active::after {
  transform: scaleX(1)
}

.auth-body {
  padding: 22px 24px
}

.apanel {
  display: none
}

.apanel.active {
  display: block
}

.awelcome-t {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 3px
}

.awelcome-s {
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 20px
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0)
  }

  20%,
  60% {
    transform: translateX(-4px)
  }

  40%,
  80% {
    transform: translateX(4px)
  }
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 600;
  background: var(--s1);
  border: 1px solid var(--b2);
  border-radius: 9px;
  padding: 13px 18px;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .5);
  transform: translateY(20px);
  opacity: 0;
  transition: all .25s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all
}

.toast-ico {
  font-size: 16px
}

.toast-msg {
  font-size: 13px;
  font-weight: 500
}

/* NOTIF PANEL */
.notif-panel {
  position: fixed;
  top: 52px;
  right: 32px;
  width: 320px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
  display: none;
  z-index: 400;
  overflow: hidden;
}

.notif-panel.open {
  display: block
}

.np-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--b1)
}

.np-title {
  font-size: 13px;
  font-weight: 600
}

.np-mark {
  font-size: 11px;
  color: var(--t3);
  cursor: pointer;
  transition: color .15s
}

.np-mark:hover {
  color: #fff
}

.np-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--b1);
  cursor: pointer;
  transition: background .12s
}

.np-item:last-child {
  border-bottom: none
}

.np-item:hover {
  background: var(--s2)
}

.np-item.unread {
  background: rgba(255, 255, 255, .02)
}

.np-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 4px
}

.np-item-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start
}

.np-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px
}

.np-item-msg {
  font-size: 11px;
  color: var(--t3);
  line-height: 1.5
}

.np-item-time {
  font-size: 10px;
  color: var(--t3);
  font-family: var(--mono);
  margin-top: 3px
}

/* notif btn relative wrapper */
.notif-wrap {
  position: relative
}

.fade-in {
  animation: fadeIn .4s ease both
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}


/* ══════ HERO GRID FIX ══════ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 60px 60px
}

.hero>div {
  position: relative;
  z-index: 2
}

.hero>.particle-canvas {
  position: absolute !important;
  z-index: 0;
  grid-column: 1/-1;
  grid-row: 1/-1
}

/* ══════ PARTICLE BG ══════ */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0
}

.hero {
  position: relative
}

.hero>* {
  position: relative;
  z-index: 2
}

/* ══════ TRUST BADGES ══════ */
.trust-row {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--t3);
  font-family: var(--mono);
  letter-spacing: .3px
}

/* ══════ PULSE ══════ */
@keyframes priceFlash {
  0% {
    text-shadow: 0 0 16px var(--flash-color)
  }

  100% {
    text-shadow: none
  }
}

.price-flash {
  animation: priceFlash .7s ease-out
}

/* ══════ PERFORMANCE ══════ */
.perf-section {
  background: var(--bg);
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1)
}

.perf-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 32px
}

.perf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px
}

.perf-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: border-color .2s
}

.perf-card:hover {
  border-color: var(--b2)
}

.donut-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  position: relative
}

.donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column
}

.donut-val {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700
}

.donut-sub {
  font-size: 10px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px
}

.perf-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px
}

.perf-desc {
  font-size: 11px;
  color: var(--t2);
  line-height: 1.5
}

/* ══════ BOT SIM FEED ══════ */
.sim-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 48px
}

.sim-panel {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 10px;
  overflow: hidden
}

.sim-feed {
  max-height: 240px;
  overflow: hidden;
  position: relative
}

.sim-feed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--s1));
  pointer-events: none
}

.sim-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--b1);
  animation: simSlide .4s ease both
}

@keyframes simSlide {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.sim-pair {
  font-size: 12px;
  font-weight: 600
}

.sim-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t3)
}

.sim-pnl {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600
}

/* ══════ TESTIMONIALS ══════ */
.testimonial-section {
  background: var(--s1);
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1)
}

.testimonial-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 32px
}

.testimonial-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none
}

.testimonial-track::-webkit-scrollbar {
  display: none
}

.tcard {
  min-width: 310px;
  max-width: 360px;
  background: var(--bg);
  border: 1px solid var(--b1);
  border-radius: 12px;
  padding: 24px;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: border-color .2s
}

.tcard:hover {
  border-color: var(--b2)
}

.tcard-stars {
  color: #ffab40;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px
}

.tcard-text {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 10px
}

.tcard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0
}

.tcard-name {
  font-size: 12px;
  font-weight: 600
}

.tcard-role {
  font-size: 10px;
  color: var(--t3);
  font-family: var(--mono);
  margin-top: 1px
}

/* ══════ CTA BANNER ══════ */
.cta-banner {
  background: linear-gradient(135deg, #111 0%, #0a0a0a 50%, #111 100%);
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
  position: relative;
  overflow: hidden
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .03) 0%, transparent 70%);
  pointer-events: none
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 32px;
  text-align: center;
  position: relative;
  z-index: 1
}

.cta-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px
}

.cta-sub {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px
}

.cta-stat {
  text-align: center
}

.cta-stat-v {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--green)
}

.cta-stat-l {
  font-size: 10px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 3px
}

/* ══════ FAQ ══════ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 32px
}

.faq-item {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .2s
}

.faq-item:hover {
  border-color: var(--b2)
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s
}

.faq-q:hover {
  background: var(--s2)
}

.faq-arrow {
  font-size: 12px;
  color: var(--t3);
  transition: transform .25s
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg)
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease
}

.faq-item.open .faq-a {
  max-height: 300px
}

.faq-a-inner {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.75;
  padding: 0 20px 18px;
  border-top: 1px solid var(--b1);
  padding-top: 14px
}

/* ══════ TRADE FEED ══════ */
.trade-feed-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 48px
}

.tf-scroll {
  display: flex;
  gap: 0;
  animation: tfScroll 25s linear infinite
}

@keyframes tfScroll {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

.tf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-right: 1px solid var(--b1);
  white-space: nowrap;
  flex-shrink: 0
}

.tf-pair {
  font-size: 12px;
  font-weight: 600
}

.tf-side {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .5px
}


/* ══════ HAMBURGER ══════ */
.hamburger {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--b1);
  color: var(--t2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all .15s
}

.hamburger:hover {
  background: var(--s1);
  color: #fff
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 250;
  padding: 20px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto
}

.mobile-menu.open {
  display: flex
}

.mobile-menu .nav-tab {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 15px
}

.mobile-menu .btn {
  width: 100%;
  text-align: center;
  margin-top: 4px
}

/* ══════════════════════════════════════════
   DESKTOP LAYOUT FIXES
══════════════════════════════════════════ */

/* Hero section improvements */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px 50px;
  min-height: 450px;
  align-items: center;
}

.hero-title {
  font-size: 44px;
  line-height: 1.1;
  max-width: 500px;
}

.hero-desc {
  max-width: 450px;
  font-size: 16px;
}

/* Main grid improvements */
.main-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* Stats strip improvements */
.stats-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Feature section improvements */
.feat-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.feat-grid {
  gap: 20px;
}

.fc {
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.fc-d {
  flex: 1;
}

/* Performance section improvements */
.perf-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.perf-grid {
  gap: 20px;
}

.perf-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Markets page improvements */
.mkt-hero {
  max-width: 1000px;
  margin: 0 auto;
}

.mkt-stats-strip {
  max-width: 1000px;
  margin: 0 auto;
}

.tbl-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

/* Blog improvements */
.blog-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* CTA section improvements */
.cta-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Testimonial improvements */
.testimonial-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* FAQ improvements */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

/* Footer improvements */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   RESPONSIVE DESIGN - MOBILE FIRST
══════════════════════════════════════════ */

/* Base mobile styles (320px+) */
@media (max-width: 480px) {
  /* Navigation */
  nav {
    padding: 0 12px;
    height: 56px;
  }
  
  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .logo-name {
    font-size: 14px;
  }
  
  .logo-tagline {
    display: none;
  }
  
  #nav-container {
    display: none !important;
  }
  
  #nav-right .btn {
    display: none !important;
  }
  
  .hamburger {
    display: flex !important;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  /* Pages */
  .page {
    padding-top: 70px !important;
  }
  
  #home {
    padding-top: 0 !important;
  }
  
  /* Hero Section */
  .hero {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 60px 12px 20px !important;
    text-align: center;
  }
  
  .hero-title {
    font-size: 24px !important;
    line-height: 1.1;
  }
  
  .hero-desc {
    font-size: 14px;
    max-width: 100%;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 8px;
  }
  
  .hero-cta .btn {
    width: 100%;
    padding: 14px 20px;
  }
  
  /* Hero Card */
  .hcard {
    margin-top: 20px;
  }
  
  .hcard-price {
    font-size: 24px;
  }
  
  .hcard-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .hcs:nth-child(3),
  .hcs:nth-child(4) {
    border-top: 1px solid var(--b1);
  }
  
  /* Ticker */
  .ticker-strip {
    height: 32px;
    padding: 0 12px;
  }
  
  .t-item {
    font-size: 10px;
    gap: 4px;
  }
  
  /* Stats Strip */
  .stats-strip-inner {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  
  .sc {
    padding: 16px 20px;
    border-bottom: 1px solid var(--b1);
    border-right: none;
  }
  
  .sc:last-child {
    border-bottom: none;
  }
  
  .sc-v {
    font-size: 18px;
  }
  
  /* Main Grid */
  .main-grid {
    grid-template-columns: 1fr !important;
    padding: 20px 12px !important;
    gap: 16px;
  }
  
  /* Features */
  .feat-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  
  .feat-inner {
    padding: 32px 12px !important;
  }
  
  .sec-title {
    font-size: 20px;
  }
  
  .fc {
    padding: 20px;
  }
  
  /* Performance */
  .perf-grid {
    grid-template-columns: 1fr !important;
  }
  
  .perf-inner {
    padding: 32px 12px !important;
  }
  
  /* Markets Page */
  .mkt-hero {
    padding: 20px 12px !important;
  }
  
  .mkt-title {
    font-size: 24px !important;
  }
  
  .mkt-stats-strip {
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 0 12px 16px;
  }
  
  .stat-card {
    padding: 12px;
  }
  
  .stat-value {
    font-size: 16px;
  }
  
  .tbl-wrap {
    padding: 0 12px 32px;
  }
  
  .mkt-toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .mkt-search-box {
    max-width: 100%;
  }
  
  .mkt-filters {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .tbl-head,
  .tbl-row {
    grid-template-columns: 2fr 1fr 80px !important;
    padding: 8px 12px;
  }
  
  .tbl-head .th:nth-child(n+4),
  .tbl-row > div:nth-child(n+4) {
    display: none;
  }
  
  .cc {
    gap: 8px;
  }
  
  .cav {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }
  
  .cn {
    font-size: 12px;
  }
  
  .cs {
    font-size: 9px;
  }
  
  .td {
    font-size: 11px;
  }
  
  /* Blog Pages */
  .blog-container {
    grid-template-columns: 1fr !important;
    padding: 0 12px;
    gap: 20px;
  }
  
  .blog-main-content {
    grid-column: 1;
  }
  
  .blog-sidebar {
    display: none;
  }
  
  .blog-content {
    font-size: 15px;
    line-height: 1.7;
  }
  
  .blog-content h1 {
    font-size: 28px !important;
  }
  
  .blog-content h2 {
    font-size: 20px !important;
  }
  
  .blog-content h3 {
    font-size: 18px !important;
  }
  
  .floating-actions {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }
  
  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  
  /* Strategy Page */
  .page-inner {
    padding: 0 12px !important;
  }
  
  /* Strategy hero */
  div[style*="max-width:900px"] {
    padding: 20px 12px 16px !important;
  }
  
  /* Strategy title */
  h1[style*="font-size:32px"] {
    font-size: 24px !important;
  }
  
  /* Strategy grids */
  div[style*="grid-template-columns:repeat(auto-fit,minmax(200px,1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  div[style*="grid-template-columns:repeat(auto-fit,minmax(250px,1fr))"] {
    grid-template-columns: 1fr !important;
  }
  
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Strategy cards */
  div[style*="padding:32px"] {
    padding: 20px !important;
  }
  
  div[style*="padding:24px"] {
    padding: 16px !important;
  }
  
  div[style*="padding:20px"] {
    padding: 16px !important;
  }
  
  /* Strategy text */
  h2[style*="font-size:24px"] {
    font-size: 20px !important;
  }
  
  h3[style*="font-size:18px"] {
    font-size: 16px !important;
  }
  
  /* Strategy steps */
  div[style*="font-size:24px"] {
    font-size: 20px !important;
  }
  
  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 20px 12px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  /* Forms */
  .param-row,
  .form-row2 {
    grid-template-columns: 1fr !important;
  }
  
  /* Auth Modal */
  .auth-modal {
    margin: 12px;
    max-width: calc(100vw - 24px);
    width: 100%;
  }
  
  .modal-head {
    padding: 16px 20px 12px;
  }
  
  .modal-logo {
    gap: 6px;
  }
  
  .modal-lm {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  
  .modal-ln {
    font-size: 13px;
  }
  
  .auth-body {
    padding: 20px;
  }
  
  .awelcome-t {
    font-size: 16px;
  }
  
  .awelcome-s {
    font-size: 11px;
  }
  
  .form-input {
    padding: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-full {
    padding: 14px;
    font-size: 14px;
  }
  
  .oauth-btn {
    padding: 12px;
    font-size: 12px;
  }
  
  /* CTA */
  .cta-inner {
    padding: 32px 12px !important;
  }
  
  .cta-title {
    font-size: 20px !important;
  }
  
  .cta-badges {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  /* Testimonials */
  .testimonial-inner {
    padding: 32px 12px !important;
  }
  
  .tcard {
    min-width: 260px;
    padding: 20px;
  }
}

/* Mobile landscape and small tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  /* Navigation */
  nav {
    padding: 0 16px;
  }
  
  #nav-public,
  #nav-private-admin,
  #nav-private-user {
    display: none !important;
  }
  
  .nav-tab {
    padding: 5px 8px;
    font-size: 11px;
  }
  
  #nav-public-right .btn,
  #nav-public-right .live-badge,
  #nav-private-right .live-badge,
  #nav-private-right .notif-wrap,
  #nav-private-right .user-pill {
    display: none !important;
  }
  
  .hamburger {
    display: flex !important;
  }
  
  /* Pages */
  .page {
    padding-top: 75px !important;
  }
  
  #home {
    padding-top: 0 !important;
  }
  
  /* Hero */
  .hero {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 70px 16px 30px !important;
  }
  
  .hero-title {
    font-size: 32px !important;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  /* Stats */
  .stats-strip-inner {
    grid-template-columns: 1fr 1fr !important;
  }
  
  .sc {
    border-bottom: 1px solid var(--b1);
  }
  
  .sc:nth-child(3),
  .sc:nth-child(4) {
    border-bottom: none;
  }
  
  /* Main Grid */
  .main-grid {
    grid-template-columns: 1fr !important;
    padding: 24px 16px !important;
  }
  
  /* Features */
  .feat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .feat-inner,
  .perf-inner,
  .testimonial-inner {
    padding: 36px 16px !important;
  }
  
  /* Markets */
  .mkt-stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .tbl-head,
  .tbl-row {
    grid-template-columns: 2fr 1.2fr 90px 90px !important;
  }
  
  .tbl-head .th:nth-child(n+5),
  .tbl-row > div:nth-child(n+5) {
    display: none;
  }
  
  /* Blog */
  .blog-container {
    grid-template-columns: 1fr !important;
    padding: 0 16px;
  }
  
  .blog-sidebar {
    display: none;
  }
  
  /* Strategy */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-inner,
  .dash-header,
  .sim-section,
  .trade-feed-section,
  .faq-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .cta-inner {
    padding: 40px 16px !important;
  }
  
  .cta-title {
    font-size: 24px !important;
  }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Navigation - show some items */
  #nav-public {
    display: flex !important;
  }
  
  #nav-private-admin,
  #nav-private-user {
    display: flex !important;
    max-width: 50%;
  }
  
  .nav-tab {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  #nav-public-right .live-badge,
  #nav-private-right .live-badge {
    display: none !important;
  }
  
  .hamburger {
    display: none !important;
  }
  
  /* Hero */
  .hero {
    padding: 60px 32px 45px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  /* Main Grid */
  .main-grid {
    grid-template-columns: 1fr !important;
    padding: 32px;
  }
  
  /* Features */
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .perf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Markets */
  .mkt-stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Blog */
  .blog-container {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
  
  .blog-sidebar {
    display: none;
  }
}

/* Large tablets and small desktops (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  /* Show all navigation */
  #nav-public,
  #nav-private-admin,
  #nav-private-user {
    display: flex !important;
    max-width: 55%;
  }
  
  .nav-tab {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .hamburger {
    display: none !important;
  }
  
  /* Hero */
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  /* Main Grid */
  .main-grid {
    grid-template-columns: 1fr 320px;
  }
  
  /* Features */
  .feat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .perf-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Blog */
  .blog-container {
    grid-template-columns: 1fr;
    max-width: 900px;
  }
  
  .blog-sidebar {
    display: none;
  }
}

/* Desktop (1201px+) */
@media (min-width: 1201px) {
  /* Full navigation */
  #nav-public,
  #nav-private-admin,
  #nav-private-user {
    display: flex !important;
    max-width: 60%;
  }
  
  .nav-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .hamburger {
    display: none !important;
  }
  
  /* Blog with sidebars */
  .blog-container {
    grid-template-columns: 1fr 800px 1fr;
  }
  
  .blog-sidebar {
    display: block;
  }
}

/* Ultra-wide screens (1400px+) */
@media (min-width: 1400px) {
  .hero {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .main-grid {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .blog-container {
    max-width: 1400px;
  }
}

/* Landscape mobile specific fixes */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 40px 16px 20px !important;
  }
  
  .hero-title {
    font-size: 24px !important;
  }
  
  .page {
    padding-top: 65px !important;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-mark {
    box-shadow: 0 0 20px rgba(255, 255, 255, .2);
  }
  
  .particle {
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.4);
  }
}

/* Print styles */
@media print {
  nav,
  .floating-actions,
  .hamburger,
  .ticker-strip {
    display: none !important;
  }
  
  .page {
    padding-top: 0 !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

.fl {
  color: var(--t2);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  font-size: 13px;
}

.fl:hover {
  color: #fff;
}

/* ══════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════ */
.dash-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 32px 48px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
}

.dash-sub {
  font-size: 12px;
  color: var(--t3);
  margin-top: 3px;
}

.dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* stat cards */
.stat-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 12px;
  padding: 22px;
  transition: border-color .2s;
}

.stat-card:hover {
  border-color: var(--b2);
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
}

/* cards */
.card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--b1);
  font-size: 13px;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

/* bot status badge */
.bot-status-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--rg);
  color: var(--red);
  border: 1px solid rgba(255, 23, 68, .2);
  font-weight: 600;
}

/* sim items */
.sim-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--b1);
  font-size: 12px;
}

.sim-item:last-child {
  border-bottom: none;
}

.sim-pair {
  font-weight: 700;
  font-size: 12px;
}

.side {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.side-l {
  background: var(--gg);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, .2);
}

.side-s {
  background: var(--rg);
  color: var(--red);
  border: 1px solid rgba(255, 23, 68, .2);
}

.sim-pnl {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.sim-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t3);
}

/* ══════════════════════════════════════════
   BLURRED BOT PANEL (COMING SOON)
══════════════════════════════════════════ */
.fake-panel-blur {
  filter: blur(8px) grayscale(0.5);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
  transition: .3s;
}

.fake-panel-wrap:hover .fake-panel-blur {
  filter: blur(12px) grayscale(0.8);
  opacity: 0.4;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 32px;
}

.coming-soon-card-apple {
  text-align: center;
  max-width: 600px;
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-apple-logo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-apple-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(68, 138, 255, 0.6) 0%, rgba(0, 230, 118, 0.3) 50%, transparent 70%);
  filter: blur(24px);
  z-index: 1;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

.cs-apple-logo {
  height: 160px;
  width: auto;
  position: relative;
  z-index: 2;
  /* Blend mode trick to make inverted white background perfectly transparent on dark */
  mix-blend-mode: screen;
}

.cs-apple-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: #fff;
  line-height: 1.2;
}

.cs-apple-desc {
  font-size: 18px;
  color: #a1a1a6;
  line-height: 1.5;
  font-weight: 400;
  max-width: 480px;
}

/* ══════════════════════════════════════════
   COMING SOON CARDS (Simple)
══════════════════════════════════════════ */
.coming-soon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 32px;
}

.coming-soon-card {
  text-align: center;
  max-width: 480px;
  padding: 48px 40px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
}

.cs-icon {
  font-size: 52px;
  margin-bottom: 20px;
  filter: grayscale(.2);
}

.cs-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}

.cs-desc {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cs-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(68, 138, 255, .12), rgba(68, 138, 255, .06));
  color: var(--blue);
  border: 1px solid rgba(68, 138, 255, .2);
  margin-bottom: 28px;
}

.cs-features {
  display: grid;
  gap: 10px;
  text-align: left;
  margin-top: 8px;
}

.cs-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--t2);
  padding: 8px 12px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: 8px;
}

.cs-fi {
  font-size: 14px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   TOGGLE SWITCH
══════════════════════════════════════════ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--b2);
  border-radius: 22px;
  transition: .25s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .25s;
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--green);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(20px);
}

/* ══════════════════════════════════════════
   DASHBOARD SPECIFIC RESPONSIVE
══════════════════════════════════════════ */

/* Dashboard mobile styles are handled in main responsive section above */

/* Dashboard specific adjustments */
@media (max-width: 768px) {
  .dash-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dash-inner {
    padding: 20px 12px 32px;
  }

  .bot-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .perf-cards {
    grid-template-columns: 1fr;
  }

  .ptf-summary {
    grid-template-columns: 1fr 1fr;
  }

  .history-table {
    padding: 0 12px 32px;
  }

  .ht-head,
  .ht-row {
    grid-template-columns: 1fr 80px 100px;
    font-size: 11px;
  }

  .ht-head .ht-th:nth-child(n+4),
  .ht-row .ht-td:nth-child(n+4) {
    display: none;
  }

  .api-grid {
    padding: 0 12px 32px;
  }

  .acc-grid {
    padding: 0 12px 32px;
  }

  .settings-grid {
    padding: 0 12px 32px;
  }

  /* Account & Settings Mobile Responsive */
  #dash-account .dash-inner,
  #dash-settings .dash-inner {
    padding: 16px 12px !important;
  }

  /* Profile header mobile */
  #dash-account .dash-inner > div:first-child > div {
    flex-direction: column;
    text-align: center;
    gap: 16px !important;
  }

  #dash-account .dash-inner > div:first-child h1 {
    font-size: 22px !important;
  }

  /* Row items - stack on mobile */
  #dash-account [style*="display:flex"][style*="justify-content:space-between"],
  #dash-settings [style*="display:flex"][style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
  }

  /* Inputs full width on mobile */
  #dash-account input[type="text"],
  #dash-account input[type="email"],
  #dash-account input[type="tel"],
  #dash-account input[type="password"],
  #dash-account select,
  #dash-settings select {
    width: 100% !important;
    text-align: left !important;
  }

  /* Buttons full width */
  #dash-account button,
  #dash-settings button {
    width: 100% !important;
  }

  /* Settings toggle alignment */
  #dash-settings .settings-toggle {
    margin-left: auto;
  }

  /* Smaller padding on mobile */
  #dash-account > div > div > div,
  #dash-settings > div > div > div {
    padding: 12px 16px !important;
  }

  /* Section titles */
  #dash-account h2,
  #dash-settings h2,
  #dash-settings h3 {
    font-size: 16px !important;
  }

  /* Avatar smaller on mobile */
  #acc-avatar-main {
    width: 60px !important;
    height: 60px !important;
    font-size: 24px !important;
  }
}

@media (max-width: 480px) {
  .ptf-summary {
    grid-template-columns: 1fr !important;
  }

  .stats-strip-inner {
    grid-template-columns: 1fr !important;
  }

  .ht-head,
  .ht-row {
    grid-template-columns: 1fr 80px;
  }

  .ht-head .ht-th:nth-child(n+3),
  .ht-row .ht-td:nth-child(n+3) {
    display: none;
  }

  /* Extra small screens */
  #dash-account .dash-inner,
  #dash-settings .dash-inner {
    padding: 12px 8px !important;
  }

  #dash-account > div > div > div,
  #dash-settings > div > div > div {
    padding: 10px 12px !important;
  }

  #dash-account h1 {
    font-size: 20px !important;
  }

  #acc-avatar-main {
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }
}
    margin-bottom: 16px;
    padding: 0 10px;
  }

  .cs-apple-desc {
    font-size: 15px;
    padding: 0 20px;
  }

  /* Tables */
  .coin-table {
    overflow-x: auto;
    display: block;
    width: 100%;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .stats-strip-inner {
    grid-template-columns: 1fr;
  }

  #chart-tabs {
    flex-wrap: wrap;
  }

  .tbtn {
    flex: 1 1 30%;
    text-align: center;
  }
}


/* ══════════════════════════════════════════
   OTT INDICATOR ANIMATIONS
══════════════════════════════════════════ */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px currentColor;
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 16px currentColor;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ott-signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  animation: fadeIn 0.3s ease;
}

.ott-signal-buy {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--green);
}

.ott-signal-sell {
  background: rgba(255, 23, 68, 0.12);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: var(--red);
}

.ott-signal-neutral {
  background: rgba(255, 171, 64, 0.12);
  border: 1px solid rgba(255, 171, 64, 0.3);
  color: var(--amber);
}

.ott-trend-up {
  color: var(--green);
  animation: slideIn 0.3s ease;
}

.ott-trend-down {
  color: var(--red);
  animation: slideIn 0.3s ease;
}

.ott-value-positive {
  color: var(--green);
  font-family: var(--mono);
}

.ott-value-negative {
  color: var(--red);
  font-family: var(--mono);
}

.feed-item-enter {
  animation: fadeIn 0.3s ease;
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}


/* ══════════════════════════════════════════
   ENHANCED MOBILE RESPONSIVE
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   BLOG CONTENT STYLING
══════════════════════════════════════════ */
.blog-content {
  max-width: 100%;
}

.blog-content h2 {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
  line-height: 1.3;
}

.blog-content h3 {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 12px;
  line-height: 1.4;
}

.blog-content p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.8;
}

.blog-content ul, .blog-content ol {
  margin: 16px 0;
  padding-left: 20px;
}

.blog-content li {
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.7;
}

.blog-content code {
  background: var(--s2);
  color: var(--green);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
}

.blog-content pre {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.blog-content blockquote {
  background: var(--s2);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  margin: 16px 0;
  font-style: italic;
  color: var(--t2);
}

.blog-content a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-content a:hover {
  color: var(--text);
  text-decoration: underline;
}

.blog-content strong {
  color: var(--text);
  font-weight: 600;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--s2);
  border-radius: 8px;
  overflow: hidden;
}

.blog-content th,
.blog-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--b1);
}

.blog-content th {
  background: var(--s1);
  font-weight: 600;
  color: var(--text);
}

.blog-content td {
  color: var(--t2);
}

/* Blog post navigation */
.blog-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid var(--b1);
}

.blog-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.blog-nav a:hover {
  color: var(--text);
}

/* ══════════════════════════════════════════
   BLOG LAYOUT & ANIMATIONS
══════════════════════════════════════════ */

/* Blog container with sidebar */
.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 800px 1fr;
  gap: 40px;
  padding: 0 32px;
  position: relative;
}

.blog-main-content {
  grid-column: 2;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.blog-sidebar-left {
  grid-column: 1;
}

.blog-sidebar-right {
  grid-column: 3;
}

/* Floating particles animation - More visible */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 15s infinite linear;
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.particle:nth-child(2n) {
  background: var(--green);
  animation-duration: 18s;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
  width: 8px;
  height: 8px;
}

.particle:nth-child(3n) {
  background: var(--amber);
  animation-duration: 22s;
  width: 4px;
  height: 4px;
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.particle:nth-child(4n) {
  background: var(--purple);
  animation-duration: 20s;
  width: 5px;
  height: 5px;
  box-shadow: 0 0 8px rgba(156, 39, 176, 0.5);
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0);
    opacity: 0;
  }
  5% {
    opacity: 0.6;
    transform: translateY(95vh) rotate(18deg) scale(1);
  }
  95% {
    opacity: 0.6;
    transform: translateY(-5vh) rotate(342deg) scale(1);
  }
  100% {
    transform: translateY(-10vh) rotate(360deg) scale(0);
    opacity: 0;
  }
}

/* Sidebar widgets */
.sidebar-widget {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s;
}

.sidebar-widget:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: var(--blue);
}

.sidebar-widget:hover::before {
  left: 100%;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Progress bars */
.progress-bar {
  background: var(--s1);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 8px;
  animation: progress-fill 2s ease-out;
}

@keyframes progress-fill {
  from { width: 0%; }
}

/* Pulse animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Code syntax highlighting enhancement */
.blog-content pre {
  position: relative;
  overflow: hidden;
}

.blog-content pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: scan 3s infinite;
}

@keyframes scan {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Table of contents */
.toc {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 16px;
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 8px;
}

.toc-link {
  color: var(--t2);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
}

.toc-link:hover {
  color: var(--blue);
}

/* Stats widget */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-item {
  text-align: center;
  padding: 12px;
  background: var(--s1);
  border-radius: 8px;
  border: 1px solid var(--b1);
}

.stat-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  font-family: var(--mono);
}

.stat-label {
  font-size: 11px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
/* Enhanced TOC and Progress */
.toc-link.active {
  color: var(--blue);
  background: rgba(33, 150, 243, 0.1);
  border-radius: 4px;
  padding: 6px 8px;
  margin: -2px -4px;
}

.progress-fill {
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber));
  background-size: 200% 100%;
  animation: progress-gradient 3s ease infinite, progress-fill 2s ease-out;
}

@keyframes progress-gradient {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Floating action buttons */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.6);
}

.floating-btn.scroll-top {
  background: var(--green);
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.4);
}

.floating-btn.scroll-top:hover {
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.6);
}

/* Live stats animation */
.live-stat {
  animation: countUp 2s ease-out;
}

@keyframes countUp {
  from { 
    transform: scale(0.5);
    opacity: 0;
  }
  to { 
    transform: scale(1);
    opacity: 1;
  }
}

/* Breathing animation for important elements */
.breathe {
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Glowing effect for interactive elements */
.glow-on-hover {
  transition: all 0.3s;
}

.glow-on-hover:hover {
  box-shadow: 0 0 20px var(--blue), 0 0 40px var(--blue), 0 0 60px var(--blue);
  text-shadow: 0 0 10px var(--blue);
}

/* Enhanced pulse animation */
.pulse-enhanced {
  animation: pulseEnhanced 2s infinite;
}

@keyframes pulseEnhanced {
  0% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
  }
  70% { 
    opacity: 0.7; 
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
  }
  100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
  }
}

/* Typing animation for text */
.typing-animation {
  overflow: hidden;
  border-right: 2px solid var(--blue);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--blue); }
}

/* ══════════════════════════════════════════
   TOGGLE SWITCHES
══════════════════════════════════════════ */
/* Toggle switch container */
.settings-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

/* Hide default checkbox */
.settings-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* Toggle background (unchecked) */
.settings-toggle input[type="checkbox"] ~ .toggle-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 26px;
  transition: 0.3s;
}

/* Toggle slider (unchecked) */
.settings-toggle input[type="checkbox"] ~ .toggle-slider {
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--t3);
  border-radius: 50%;
  transition: 0.3s;
}

/* Checked state - background */
.settings-toggle input[type="checkbox"]:checked ~ .toggle-bg {
  background: #fff;
  border-color: #fff;
}

/* Checked state - slider */
.settings-toggle input[type="checkbox"]:checked ~ .toggle-slider {
  transform: translateX(22px);
  background: #050505;
}

/* Hover effect */
.settings-toggle:hover .toggle-bg,
.settings-toggle-row:hover .toggle-bg {
  opacity: 0.9;
}

/* Settings toggle wrapper */
.settings-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.settings-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}


/* ══════════════════════════════════════════
   ACCOUNT & SETTINGS MOBILE RESPONSIVE
══════════════════════════════════════════ */
.acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.2s;
}

.acc-row:hover {
  background: rgba(255,255,255,0.02);
}

.acc-row-label {
  font-size: 14px;
  color: var(--t2);
  min-width: 120px;
}

.acc-row-value {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.acc-input {
  background: transparent;
  border: 1px solid var(--b1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  outline: none;
  width: 250px;
  padding: 6px 12px;
  border-radius: 6px;
}

.acc-select {
  background: var(--s1);
  border: 1px solid var(--b1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  width: 250px;
}

.acc-api-input {
  background: transparent;
  border: 1px solid var(--b1);
  color: #fff;
  font-size: 13px;
  font-family: var(--mono);
  text-align: right;
  outline: none;
  width: 300px;
  padding: 6px 12px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .acc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
  }

  .acc-row-label {
    min-width: auto;
  }

  .acc-row-value {
    width: 100%;
    justify-content: flex-start;
  }

  .acc-input,
  .acc-select,
  .acc-api-input {
    width: 100%;
    text-align: left;
  }
}


/* Mobile select and button fixes */
@media (max-width: 768px) {
  #dash-settings select,
  #dash-account select {
    min-width: auto !important;
    width: 100%;
  }

  #dash-settings button,
  #dash-account button {
    white-space: nowrap;
  }

  /* Profile header mobile specific */
  #dash-account .dash-inner > div:first-child {
    padding: 20px 16px !important;
  }

  #dash-account .dash-inner > div:first-child > div {
    flex-direction: column;
    text-align: center;
  }

  #dash-account .dash-inner > div:first-child h1 {
    font-size: 22px !important;
  }

  /* Settings title mobile */
  #dash-settings h2 {
    font-size: 20px !important;
  }
}

@media (max-width: 480px) {
  #dash-account .dash-inner > div:first-child {
    padding: 16px 12px !important;
  }

  #dash-account .dash-inner > div:first-child h1 {
    font-size: 20px !important;
  }

  #dash-settings h2 {
    font-size: 18px !important;
  }
}

/* ══════════════════════════════════════════
   SPINNER ANIMATION
══════════════════════════════════════════ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-bottom: -4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ══════════════════════════════════════════
   POSITION CLOSE OVERLAY
══════════════════════════════════════════ */
.position-row {
  position: relative;
  cursor: pointer;
}

.position-row td {
  position: relative;
}

.close-overlay button:hover {
  background: rgba(246,70,93,0.4) !important;
  border-color: #ff2d55 !important;
  box-shadow: 0 6px 30px rgba(246,70,93,0.7) !important;
  transform: scale(1.08) !important;
}

.close-overlay button:active {
  transform: scale(0.95) !important;
}

/* Portföy – sade Kapat butonu */
.pf-close-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #f6465d;
  background: transparent;
  border: 1px solid rgba(246, 70, 93, 0.4);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.pf-close-btn:hover {
  background: rgba(246, 70, 93, 0.12);
  border-color: rgba(246, 70, 93, 0.6);
}


/* ══════════════════════════════════════════
   CLOSE POSITION MODAL ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

#close-position-modal button:hover {
  transform: scale(1.02);
}

#close-position-modal button:active {
  transform: scale(0.98);
}

/* Market Tabs */
.mkt-tab {
  padding: 10px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: var(--t2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.mkt-tab:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}

.mkt-tab.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

/* Sortable Headers */
.th.sortable {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.th.sortable svg {
  opacity: 0.3;
  transition: all 0.2s;
}

.th.sortable:hover svg {
  opacity: 0.6;
}

.th.sortable.asc svg {
  opacity: 1;
  transform: rotate(0deg);
}

.th.sortable.desc svg {
  opacity: 1;
  transform: rotate(180deg);
}

/* Final layout repair after emoji cleanup */
html, body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
  overflow-x: hidden;
}

body > .page,
#home.page {
  flex: 0 0 auto;
}

#home.page.active {
  display: block !important;
  padding-top: 112px !important;
  min-height: auto !important;
  overflow: visible !important;
}

#home .hero {
  position: relative !important;
  z-index: 1;
  min-height: 300px !important;
  padding-top: 36px !important;
  padding-bottom: 48px !important;
  overflow: visible !important;
}

#home .hero-title {
  margin-top: 0 !important;
}

#home .stats-strip,
#home .ticker-strip,
#home .main-grid,
#home .perf-section,
#home .feat-section,
#home .cta-banner,
#home .faq-section {
  position: relative !important;
  z-index: 1;
  clear: both;
}

#home .main-grid {
  align-items: start !important;
  overflow: visible !important;
  padding-top: 36px !important;
  padding-bottom: 72px !important;
}

#home .panel {
  position: relative;
}

#home .chart-wrap {
  min-height: 192px !important;
  overflow: hidden;
}

#home #btc-chart-canvas {
  min-height: 165px !important;
  max-height: 190px !important;
}

footer {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  flex-shrink: 0 !important;
  clear: both !important;
  margin-top: 72px !important;
}

/* Publish polish: empty icon placeholders, account, settings, user soon pages */
.ph-icon::before,
.fc-ico::before,
.widget-icon::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 3px;
  transform: rotate(45deg);
}

.fc-ico::before {
  width: 14px;
  height: 14px;
}

.widget-icon::before {
  width: 9px;
  height: 9px;
}

#strat-steps > div > div > div:first-child::before,
#strateji [style*="width:60px"][style*="height:60px"][style*="border-radius:50%"]::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  transform: rotate(45deg);
}

#strateji [style*="width:60px"][style*="height:60px"][style*="border-radius:50%"]::before {
  width: 18px;
  height: 18px;
}

.account-shell,
.settings-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.account-card,
.settings-card {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.account-profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
}

.account-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.account-profile-main {
  min-width: 0;
}

.account-profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.account-profile-name-row h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}

.account-role-badge {
  background: #fff;
  color: #000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-profile-email {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--t2);
  font-size: 14px;
}

.account-card-head,
.settings-card-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--b1);
}

.account-card-head h2,
.settings-card-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.account-row-title,
.settings-row-title {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
}

.account-row-sub,
.settings-row-sub {
  font-size: 12px;
  color: var(--t3);
}

.acc-row-static,
.settings-row-static {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  font-family: var(--mono);
}

.account-card-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--b1);
  background: rgba(255, 255, 255, 0.01);
}

.account-primary-btn,
.account-secondary-btn,
.account-muted-btn,
.account-danger-btn,
.settings-muted-btn {
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.account-primary-btn {
  width: 100%;
  padding: 10px 24px;
  background: #fff;
  color: #000;
}

.account-primary-btn:hover,
.account-secondary-btn:hover {
  background: #e0e0e0;
}

.account-secondary-btn {
  padding: 7px 16px;
  background: #fff;
  color: #000;
}

.account-muted-btn,
.settings-muted-btn {
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--t2);
  cursor: not-allowed;
}

.account-danger-card {
  border-color: rgba(255, 23, 68, 0.28);
}

.account-danger-head {
  background: rgba(255, 23, 68, 0.05);
  border-bottom-color: rgba(255, 23, 68, 0.2);
}

.account-danger-head h2 {
  color: var(--red);
}

.account-danger-btn {
  padding: 7px 16px;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: var(--red);
}

.account-danger-btn:hover {
  background: rgba(255, 23, 68, 0.18);
}

.settings-shell {
  max-width: 900px;
}

.settings-page-head {
  margin-bottom: 32px;
}

.settings-page-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.settings-page-head p {
  font-size: 14px;
  color: var(--t3);
  margin: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.settings-toggle-row {
  width: auto;
  min-height: 66px;
  cursor: pointer;
}

.settings-select {
  background: var(--s1);
  border: 1px solid var(--b1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  min-width: 150px;
  cursor: pointer;
  outline: none;
}

.settings-select.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.settings-toggle {
  flex: 0 0 48px;
}

.settings-toggle .toggle-bg {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.settings-status-neutral {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.user-soft-page {
  min-height: calc(100vh - 80px);
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.user-soft-page[style*="display: block"] {
  display: flex !important;
}

.user-coming-card {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.user-coming-kicker {
  color: var(--t2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.user-coming-card h1 {
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}

.user-coming-card h1 span {
  color: var(--t2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.user-coming-card p {
  color: var(--t2);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 470px;
}

@media (max-width: 768px) {
  .account-shell,
  .settings-shell {
    padding: 16px 12px !important;
  }

  .account-profile-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px !important;
  }

  .account-profile-name-row {
    justify-content: center;
  }

  .account-profile-name-row h1 {
    font-size: 22px;
  }

  .account-profile-email {
    justify-content: center;
  }

  .settings-row {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .settings-toggle-row {
    flex-direction: row !important;
    align-items: center !important;
  }

  .settings-select {
    min-width: 0;
    width: 100%;
  }

  .user-soft-page {
    align-items: flex-start;
    padding: 96px 16px 32px;
  }

  .user-coming-card {
    padding: 28px 20px;
  }

  #markets > div[style*="max-width:1400px"] {
    padding: 0 12px !important;
    overflow: hidden;
  }

  #markets .mkt-hero-bg {
    left: 50% !important;
    width: 100vw !important;
    max-width: 390px !important;
  }

  #markets .stat-card-large {
    min-width: 0 !important;
  }

  #markets [style*="justify-content:center"] {
    flex-wrap: wrap !important;
  }

  #markets [style*="justify-content:space-between"][style*="border-bottom"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #markets [style*="display:flex;gap:12px"] {
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  #markets .mkt-tab {
    flex: 1 1 calc(50% - 6px) !important;
    justify-content: center !important;
    padding: 10px 12px !important;
  }

  #markets .mkt-search-box {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  #markets .tbl-head,
  #markets .tbl-row {
    grid-template-columns: minmax(118px, 1.3fr) minmax(86px, .8fr) 72px !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  #markets .tbl-head > :nth-child(1),
  #markets .tbl-head > :nth-child(2),
  #markets .tbl-head > :nth-child(6),
  #markets .tbl-head > :nth-child(7),
  #markets .tbl-head > :nth-child(8),
  #markets .tbl-head > :nth-child(9),
  #markets .tbl-row > :nth-child(1),
  #markets .tbl-row > :nth-child(2),
  #markets .tbl-row > :nth-child(6),
  #markets .tbl-row > :nth-child(7),
  #markets .tbl-row > :nth-child(8),
  #markets .tbl-row > :nth-child(9) {
    display: none !important;
  }

  #markets .tbl-head > :nth-child(3),
  #markets .tbl-head > :nth-child(4),
  #markets .tbl-head > :nth-child(5),
  #markets .tbl-row > :nth-child(3),
  #markets .tbl-row > :nth-child(4),
  #markets .tbl-row > :nth-child(5) {
    min-width: 0 !important;
  }

  #markets .pagination,
  #markets [id="page-numbers"] {
    max-width: 100%;
    flex-wrap: wrap;
  }

  #blog > div[style*="grid-template-columns:1.6fr 1fr"],
  #blog > div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #blog .panel[style*="height:120px"] {
    height: auto !important;
    min-height: 120px;
  }

  #blog .panel[style*="height:120px"] > div:first-child {
    width: 112px !important;
    min-width: 112px !important;
  }
}
