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

:root {
  --primary: #1e5aa8;
  --primary-dark: #154278;
  --primary-light: #3d7fd4;
  --primary-bg: #e8f1fb;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --warning: #d97706;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 25px -5px rgb(30 90 168 / 0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 50%, #e8f1fb 100%);
  min-height: 100vh;
  color: var(--gray-900);
  line-height: 1.5;
}

#app { min-height: 100vh; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input, select {
  font-family: inherit;
  font-size: 0.95rem;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 45%, #0a2d5c 100%);
}

.auth-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
}

.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo h1 { font-size: 1.5rem; color: var(--primary); font-weight: 700; }
.auth-logo p { color: var(--gray-500); font-size: 0.875rem; margin-top: 0.25rem; }

.auth-register-card { max-width: 520px; padding: 2rem 2.25rem 2.25rem; }

.auth-register-page .auth-register-card .form-group input {
  border: 1.5px solid #d1d5db;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.35);
}

.auth-register-page .auth-register-card .form-group input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.12);
}

.auth-section {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 0.25rem;
  margin-bottom: 1rem;
  background: var(--gray-50);
}
.auth-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.auth-section-head h3 { margin: 0; font-size: 0.95rem; color: var(--gray-800); }
.auth-section-head small { display: block; color: var(--gray-500); font-size: 0.75rem; margin-top: 0.15rem; }
.auth-section-num {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.register-features { margin-bottom: 1.25rem; }
.register-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.register-trust-bar span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.register-kvkk-note {
  font-size: 0.72rem;
  color: var(--gray-500);
  line-height: 1.45;
  margin: 0.5rem 0 1rem;
}
.btn-register { width: 100%; justify-content: center; padding: 0.85rem 1rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.15);
  outline: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: var(--white); width: 100%; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--primary-bg); color: var(--primary); }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-200); color: var(--gray-700); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--gray-500); }
.error-msg { background: var(--danger-bg); color: var(--danger); padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 1rem; }
.success-msg { background: var(--success-bg); color: var(--success); padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 1rem; }

.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 160;
  transition: transform 0.25s ease;
}
.sidebar-logo { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.sidebar-sub { font-size: 0.75rem; opacity: 0.7; margin-bottom: 2rem; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  background: none; width: 100%; text-align: left;
}
.nav-link:hover { background: rgba(255,255,255,0.12); color: var(--white); text-decoration: none; }
.nav-link.active { background: rgba(255,255,255,0.2); color: var(--white); }
.sidebar-user { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; margin-top: 1rem; }
.sidebar-user-name { font-weight: 600; font-size: 0.9rem; }
.sidebar-user-email { font-size: 0.75rem; opacity: 0.7; }

.main-content { flex: 1; margin-left: 260px; padding: 1.5rem 2rem 2rem; }
.content-wrap { flex: 1; margin-left: 260px; display: flex; flex-direction: column; min-height: 100vh; }
.content-wrap .main-content { margin-left: 0; flex: 1; }

.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 2rem; background: var(--white); border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow);
}
.top-bar-left { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.mobile-menu-btn {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.market-status { font-size: 0.8rem; font-weight: 600; color: var(--success); display: flex; align-items: center; gap: 0.4rem; }
.top-clock { font-size: 0.85rem; color: var(--gray-500); font-variant-numeric: tabular-nums; }
.top-bar-right { display: flex; gap: 1.5rem; }
.top-stat { display: flex; flex-direction: column; align-items: flex-end; }
.top-stat span { font-size: 0.7rem; color: var(--gray-500); text-transform: uppercase; }
.top-stat strong { font-size: 0.95rem; }

.sidebar-balance {
  background: rgba(255,255,255,0.1); border-radius: var(--radius-sm);
  padding: 1rem; margin-bottom: 1.5rem;
}
.sidebar-balance-label { font-size: 0.7rem; opacity: 0.75; text-transform: uppercase; }
.sidebar-balance-value { font-size: 1.35rem; font-weight: 700; margin: 0.25rem 0; }
.sidebar-balance-row { display: flex; justify-content: space-between; font-size: 0.7rem; opacity: 0.8; }
.sidebar-spread {
  margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.68rem; opacity: 0.85; font-weight: 600;
}

.spread-info {
  background: var(--primary-bg); border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm); padding: 0.65rem 0.85rem; font-size: 0.8rem; margin-top: 0.5rem;
}
.spread-prices { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.35rem; font-size: 0.75rem; color: var(--gray-600); }

.sidebar-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.sidebar-user { display: flex; gap: 0.75rem; align-items: center; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; margin-top: auto; }
.sidebar-logout { margin-top: 0.75rem; width: 100%; color: white !important; border-color: rgba(255,255,255,0.3) !important; }
.nav-badge { background: var(--danger); color: white; font-size: 0.65rem; padding: 0.1rem 0.45rem; border-radius: 999px; margin-left: auto; }
.nav-icon { opacity: 0.9; }

.auth-layout { display: grid; grid-template-columns: 1fr 440px; gap: 3rem; max-width: 1000px; width: 100%; align-items: center; }
.auth-showcase { color: white; }
.auth-showcase h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.auth-showcase p { opacity: 0.85; margin-bottom: 1.5rem; }
.showcase-badge { display: inline-block; background: rgba(255,255,255,0.15); padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.8rem; margin-bottom: 1rem; }
.showcase-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.showcase-list li { background: rgba(255,255,255,0.08); padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
.showcase-stats { display: flex; gap: 2rem; margin-top: 1rem; }
.showcase-stats div { text-align: center; }
.showcase-stats strong { display: block; font-size: 1.75rem; }
.showcase-stats span { font-size: 0.8rem; opacity: 0.8; }
.field-hint { display: block; font-size: 0.78rem; color: var(--gray-500); margin-top: 0.35rem; }
.field-optional { font-weight: 400; color: var(--gray-500); font-size: 0.78rem; }
.tc-kimlik-warn { color: var(--danger); }
.form-group input.input-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-bg);
}
.warn-msg { background: #fef3c7; color: #92400e; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; margin-top: 0.75rem; }
.info-box { background: var(--primary-bg); padding: 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; line-height: 1.8; }

.emtia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.emtia-card { background: var(--gray-50); padding: 0.75rem; border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 0.2rem; }
.emtia-card span { font-size: 0.75rem; color: var(--gray-500); }
.emtia-card small { font-size: 0.75rem; font-weight: 600; }
.emtia-card .btn, .fx-card .btn { margin-top: 0.35rem; align-self: flex-start; }

.market-quick-panel { margin-bottom: 1.25rem; }
.market-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.market-quick-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.85rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.market-quick-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.market-quick-price { font-size: 1.05rem; color: var(--primary); }
.market-quick-card small { color: var(--gray-500); font-size: 0.72rem; line-height: 1.3; min-height: 2.4em; }
.market-quick-card .btn { margin-top: 0.25rem; align-self: flex-start; }

.alloc-row { display: grid; grid-template-columns: 100px 1fr 40px; gap: 0.75rem; align-items: center; margin-bottom: 0.65rem; font-size: 0.85rem; }
.alloc-track { height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.alloc-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 999px; }

.market-overview { padding: 1.25rem; margin-bottom: 1.25rem; }
.movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mover-col h4 { font-size: 0.85rem; margin-bottom: 0.75rem; color: var(--gray-700); }
.mover-item { display: flex; justify-content: space-between; padding: 0.5rem 0.75rem; background: var(--gray-50); border-radius: var(--radius-sm); margin-bottom: 0.35rem; font-size: 0.85rem; }
.mover-item.up strong { color: var(--success); }
.mover-item.down strong { color: var(--danger); }
.spark { font-size: 0.7rem; }

.status-tag { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; }
.status-profit { background: var(--success-bg); color: var(--success); }
.status-loss { background: var(--danger-bg); color: var(--danger); }
.cat-tag { font-size: 0.75rem; background: var(--primary-bg); color: var(--primary); padding: 0.15rem 0.45rem; border-radius: 4px; font-weight: 600; }
.highlight-card { background: linear-gradient(135deg, var(--primary-bg), var(--white)); border: 1px solid #d4e4f7; }
.portfolio-stats { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .portfolio-stats { grid-template-columns: 1fr 1fr; }
  .movers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .content-wrap { margin-left: 0; }
  .top-bar { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.75rem; }
  .top-bar-right { width: 100%; justify-content: space-between; }
}

.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; }
.page-header p { color: var(--gray-500); margin-top: 0.25rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}
.stat-card.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border: none;
}
.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.stat-card.highlight .stat-label { color: rgba(255,255,255,0.85); }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-change { font-size: 0.85rem; margin-top: 0.35rem; font-weight: 500; }
.positive { color: var(--success); }
.negative { color: var(--danger); }

.teminat-bar-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid var(--gray-100);
}
.teminat-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.teminat-bar-track { height: 12px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.teminat-bar-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.teminat-bar-fill.low { background: var(--success); }
.teminat-bar-fill.medium { background: var(--warning); }
.teminat-bar-fill.high { background: var(--danger); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.card-header h2 { font-size: 1.1rem; font-weight: 600; }
.card-body { padding: 1.5rem; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; color: var(--gray-500); background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
.data-table tr:hover td { background: var(--gray-50); }
.stock-symbol { font-weight: 700; color: var(--primary); }

.iban-box {
  background: var(--primary-bg);
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}
.iban-label { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.iban-value { font-size: 1.25rem; font-weight: 700; color: var(--primary); letter-spacing: 0.05em; font-family: 'Courier New', monospace; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 1rem;
}
.modal { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }
.modal-close { background: none; font-size: 1.5rem; color: var(--gray-500); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-100); display: flex; gap: 0.75rem; justify-content: flex-end; }
.trade-info { background: var(--gray-50); border-radius: var(--radius-sm); padding: 1rem; margin: 1rem 0; }
.trade-margin-info {
  margin-top: 0.75rem;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.trade-info-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.9rem; }
.trade-info-row.total { font-weight: 700; border-top: 1px solid var(--gray-200); margin-top: 0.5rem; padding-top: 0.75rem; color: var(--primary); }
.lot-control { display: flex; align-items: center; gap: 0.75rem; }
.lot-control button {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary); font-size: 1.25rem; font-weight: 600;
}
.lot-control input { width: 80px; text-align: center; padding: 0.5rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); }
.search-box { padding: 0.6rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); width: 260px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.empty-msg { padding: 2rem; text-align: center; color: var(--gray-500); }
.table-wrap { overflow-x: auto; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 150;
}
body.sidebar-open .sidebar-overlay { display: block; }

@media (max-width: 768px) {
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar {
    transform: translateX(-105%);
    width: min(86vw, 300px);
    padding: 1rem;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .content-wrap { margin-left: 0; }
  .main-content { margin-left: 0; padding: 0.85rem; }
  .form-row, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .chart-layout { grid-template-columns: 1fr; }
  .search-box { width: 100%; max-width: 100%; }
  .top-bar { padding: 0.65rem 0.85rem; }
  .top-bar-right { gap: 0.5rem; }
  .top-stat { min-width: 0; }
  .top-stat strong { font-size: 0.82rem; }
  .auth-card { padding: 1.5rem; }
  .auth-register-card { padding: 1.25rem; }
  .page-header h1 { font-size: 1.35rem; }
  .modal { max-width: calc(100vw - 1rem); margin: 0.5rem; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; }
  .tab-btn { flex-shrink: 0; }
}

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

/* Market tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.tab-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
}
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.market-table { max-height: 520px; overflow-y: auto; }

/* Ticker strip */
.ticker-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
}
.mini-ticker {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  min-width: 130px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gray-300);
}
.mini-ticker.up { border-left-color: var(--success); }
.mini-ticker.down { border-left-color: var(--danger); }
.mini-ticker-name { font-size: 0.75rem; font-weight: 700; color: var(--primary); }
.mini-ticker-price { font-size: 0.95rem; font-weight: 600; }
.mini-ticker-chg { font-size: 0.75rem; }

/* Chart page */
.chart-header { display: flex; justify-content: space-between; align-items: flex-start; }
.live-badge {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--danger-bg); color: var(--danger);
  padding: 0.35rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success, #16a34a);
  animation: pulse 1.5s infinite;
  display: inline-block;
}
.live-dot-pending {
  background: #f59e0b;
  animation: pulse 0.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.symbol-select {
  min-width: 280px;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.tf-group { display: flex; gap: 0.35rem; }
.tf-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  font-size: 0.8rem;
  font-weight: 600;
}
.tf-btn.active {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}
.chart-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.25rem;
}
.chart-main { padding: 0; overflow: hidden; }
.chart-price-row {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.chart-symbol { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.chart-price { font-size: 1.5rem; font-weight: 700; }
.chart-container { width: 100%; min-height: 420px; }
.chart-side { display: flex; flex-direction: column; gap: 1rem; }
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.analysis-item {
  background: var(--gray-50);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.analysis-item span { font-size: 0.7rem; color: var(--gray-500); text-transform: uppercase; }
.analysis-item strong { font-size: 0.95rem; }

/* Dashboard hero */
.home-banner-wrap { margin-bottom: 1.5rem; }
.home-banner-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-900);
}
.banner-slides { position: relative; height: 250px; }
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  color: #fff;
  z-index: 1;
  overflow: hidden;
}
.banner-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.banner-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.banner-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.72) 42%, rgba(15,23,42,0.18) 100%);
}
.banner-slide-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 1.75rem 2rem 3rem;
}
.banner-slide-text { flex: 1; min-width: 0; max-width: 620px; }
.banner-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}
.banner-slide-text h2 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 0.55rem; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.banner-slide-text p { opacity: 0.92; font-size: 0.9rem; line-height: 1.55; max-width: 520px; text-shadow: 0 1px 8px rgba(0,0,0,0.2); }
.banner-live {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.banner-live-label { font-size: 0.78rem; opacity: 0.85; }
.banner-live-price { font-size: 1.15rem; font-weight: 700; }
.banner-live-chg { font-size: 0.85rem; font-weight: 600; }
.banner-live-chg.positive { color: #86efac; }
.banner-live-chg.negative { color: #fca5a5; }
.banner-cta { margin-top: 0.85rem; background: rgba(255,255,255,0.95) !important; color: var(--gray-800) !important; border: none !important; }
.banner-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  pointer-events: none;
}
.banner-nav, .banner-dots, .banner-dot { pointer-events: auto; }
.banner-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.25);
}
.banner-nav:hover { background: rgba(255,255,255,0.32); }
.banner-dots { display: flex; gap: 0.4rem; }
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  padding: 0;
}
.banner-dot.active { background: #fff; transform: scale(1.15); }

.dashboard-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.dashboard-hero h1 { font-size: 1.85rem; margin-bottom: 0.35rem; }
.hero-date { opacity: 0.85; font-size: 0.9rem; }
.hero-sub { opacity: 0.75; font-size: 0.85rem; margin-top: 0.5rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-btn-light { background: var(--white) !important; color: var(--primary) !important; width: auto !important; }
.dashboard-stats .stat-card { position: relative; }
.stat-icon { font-size: 1.5rem; margin-bottom: 0.35rem; }
.teminat-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.5rem; }

.dashboard-widgets {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.widget-quick { grid-column: 1 / -1; }
.widget-positions { grid-column: span 8; }
.widget-alloc { grid-column: span 4; align-self: start; }
.widget-emtia { grid-column: span 6; }
.widget-fx { grid-column: span 6; }
.widget .card-header { display: flex; justify-content: space-between; align-items: center; }
.widget-alloc .card-body { min-height: 180px; display: flex; flex-direction: column; justify-content: center; }

.position-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.875rem;
  padding: 1rem 1.25rem 1.25rem;
}
.position-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 4px solid var(--gray-300);
}
.position-card.profit { border-left-color: var(--success); background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%); }
.position-card.loss { border-left-color: var(--danger); background: linear-gradient(135deg, #fef2f2 0%, #fff 100%); }
.position-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.position-card-meta { font-size: 0.8rem; color: var(--gray-500); }
.position-card-date { font-size: 0.75rem; color: var(--primary); margin: 0.5rem 0; font-weight: 500; }
.position-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.position-pnl { font-weight: 700; font-size: 0.95rem; }
.loss-tag { font-size: 0.75rem; color: var(--danger); background: var(--danger-bg); padding: 0.25rem 0.5rem; border-radius: 4px; font-weight: 600; }

.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.fx-card {
  background: var(--gray-50);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fx-card span { font-size: 0.75rem; color: var(--gray-500); font-weight: 600; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quick-actions-bar {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  padding: 0.25rem 0;
}
.quick-actions-bar .quick-action {
  flex-direction: row;
  justify-content: center;
  padding: 0.875rem 1rem;
  gap: 0.5rem;
}
.quick-actions-bar .quick-action span { font-size: 1.25rem; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 1rem 0.5rem; background: var(--primary-bg); border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600; color: var(--primary);
  border: 1px solid transparent; transition: all 0.2s;
}
.quick-action:hover { border-color: var(--primary-light); background: #d4e4f7; }
.quick-action span { font-size: 1.5rem; }

.islem-icon { font-size: 1.25rem; }
.islem-date { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.15rem; }
.islem-tag { font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; }
.badge { display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; }
.badge-standart { background: var(--gray-100); color: var(--gray-600); }
.tag-buy { background: var(--success-bg); color: var(--success); }
.tag-sell { background: var(--danger-bg); color: var(--danger); }
.tag-other { background: var(--primary-bg); color: var(--primary); }
.tag-bonus { background: #fef3c7; color: #b45309; }

.portfolio-table .cell-sub { font-size: 0.75rem; color: var(--gray-500); }
.islem-no { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; }
.row-profit { background: rgba(22,163,74,0.03); }
.row-loss { background: rgba(220,38,38,0.03); }

@media (max-width: 1200px) {
  .widget-positions { grid-column: span 7; }
  .widget-alloc { grid-column: span 5; }
}
@media (max-width: 1024px) {
  .widget-positions,
  .widget-alloc,
  .widget-emtia,
  .widget-fx { grid-column: 1 / -1; }
  .quick-actions-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .quick-actions-bar { grid-template-columns: 1fr; }
  .position-cards { grid-template-columns: 1fr; }
}

/* Traderler & Copy Trade */
.section-desc { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.25rem; font-weight: 400; }
.traders-section { margin: 1.5rem 0; }
.traders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 0 1.25rem 1.25rem;
}
.traders-grid-page { padding: 0; margin-top: 1rem; }
.trader-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.trader-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.trader-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.trader-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.copy-badge {
  font-size: 0.65rem; font-weight: 700; padding: 0.25rem 0.5rem;
  background: var(--success-bg); color: var(--success); border-radius: 999px;
}
.trader-name { font-weight: 700; font-size: 1rem; color: var(--gray-900); }
.trader-title { font-size: 0.8rem; color: var(--gray-500); margin: 0.15rem 0 0.5rem; }
.trader-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.trader-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
.trader-stats-row small { display: block; font-size: 0.7rem; color: var(--gray-500); }
.trader-stats-row strong { font-size: 0.9rem; }
.trader-getiri { font-size: 0.8rem; font-weight: 600; padding-top: 0.5rem; border-top: 1px solid var(--gray-100); }
.trader-detail-hero {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.5rem; background: var(--primary-bg); border-radius: var(--radius);
  border: 1px solid var(--primary-light);
}
.trader-detail-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 700; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.trader-detail-tags { display: flex; gap: 1rem; margin-top: 0.5rem; font-size: 0.85rem; color: var(--gray-600); }
.copy-trade-card .card-body { display: flex; flex-direction: column; gap: 1rem; }
.copy-slider { width: 100%; accent-color: var(--primary); margin: 0.5rem 0; }
.copy-slider-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--gray-500); }
.copy-preview {
  padding: 0.75rem; background: var(--gray-50); border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--gray-600);
}
.copy-actions { display: flex; gap: 0.75rem; }
.copy-actions .btn { flex: 1; }
.copy-active-badge {
  padding: 0.5rem 0.75rem; background: var(--success-bg); color: var(--success);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem;
}
.info-box {
  padding: 0.75rem 1rem; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius-sm); font-size: 0.85rem; color: #92400e;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.5rem; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .traders-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .banner-slide-inner { padding: 1.25rem 1rem 3rem; }
  .banner-slide-text h2 { font-size: 1.35rem; }
  .banner-slide-text p { font-size: 0.82rem; }
  .banner-slides { height: 280px; }
}

.modal-trader { max-width: 680px; max-height: 90vh; display: flex; flex-direction: column; }
.trader-modal-header { align-items: flex-start; gap: 1rem; }
.trader-modal-title { display: flex; align-items: center; gap: 1rem; }
.trader-modal-title h3 { margin: 0; font-size: 1.15rem; }
.trader-modal-title p { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--gray-500); font-weight: 400; }
.trader-modal-title .trader-detail-avatar { width: 48px; height: 48px; font-size: 0.95rem; }
.trader-modal-body { overflow-y: auto; padding: 1.25rem 1.5rem; }
.trader-modal-tags { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--gray-600); margin-bottom: 1rem; }
.trader-modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.trader-stat-box {
  padding: 0.75rem; background: var(--gray-50); border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100); text-align: center;
}
.trader-stat-box small { display: block; font-size: 0.7rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.trader-stat-box strong { font-size: 1rem; }
.trader-stat-box.highlight { background: var(--primary-bg); border-color: var(--primary-light); }
.copy-trade-panel {
  padding: 1rem; background: var(--gray-50); border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200); margin: 1rem 0;
}
.copy-trade-panel h4 { margin: 0 0 0.75rem; font-size: 0.95rem; }
.trader-trades-section { margin-top: 1rem; }
.trader-trades-section h4 { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--gray-700); }
.data-table.compact td, .data-table.compact th { padding: 0.5rem 0.65rem; font-size: 0.8rem; }
.fees-card { margin-bottom: 1.5rem; }
.fees-card .card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.fees-card .card-header small { color: var(--gray-500); font-weight: 400; }
.position-card-fees { font-size: 0.75rem; color: var(--gray-500); margin: 0.35rem 0; }
.position-card .position-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 600px) {
  .trader-modal-stats { grid-template-columns: 1fr; }
  .modal-trader { max-width: 100%; margin: 0.5rem; }
}
.nav-locked { opacity: 0.75; }
.nav-lock { font-size: 0.75rem; margin-left: auto; }
.nav-badge.warn { background: var(--warning); color: #1e293b; }
.kimlik-preview { margin: 1rem 0; max-width: 240px; }
.kimlik-preview img { width: 100%; max-height: 150px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); background: var(--gray-50); }
.kimlik-samples { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.kimlik-samples h4 { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--gray-700); }
.kimlik-samples-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.kimlik-sample-item { margin: 0; text-align: center; width: 110px; }
.kimlik-sample-item img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--gray-200); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.kimlik-sample-item figcaption { margin-top: 0.35rem; font-size: 0.68rem; color: var(--gray-500); line-height: 1.2; }
.badge-sifir { background: #ecfdf5; color: #059669; }

.bank-logo-img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}
.bank-deposit-list { display: flex; flex-direction: column; gap: 0.85rem; }
.bank-deposit-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bank-deposit-card:hover,
.bank-deposit-card.selected {
  border-color: var(--primary-light);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
.bank-deposit-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.bank-deposit-title strong { display: block; font-size: 0.95rem; color: var(--gray-800); }
.bank-deposit-title span { font-size: 0.75rem; color: var(--gray-500); }
.bank-deposit-body { padding: 1rem; }
.bank-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--gray-100);
}
.bank-detail-row:last-of-type { border-bottom: none; }
.bank-detail-row.copyable-row { align-items: center; }
.bank-detail-value {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.45rem;
  text-align: right;
  min-width: 0;
}
.bank-detail-value strong { word-break: break-word; }
.copy-chip-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.85rem;
  line-height: 1;
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.copy-chip-btn:hover { background: var(--primary); color: #fff; }
.bank-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.bank-copy-actions .btn { flex: 1 1 auto; min-width: 120px; }
.bank-detail-row span { color: var(--gray-500); flex-shrink: 0; }
.bank-detail-row strong { text-align: right; word-break: break-word; }
.bank-detail-row.iban-row strong { font-family: 'Courier New', monospace; color: var(--primary); }
.deposit-layout .mono { font-family: 'Courier New', monospace; }
@media (max-width: 900px) {
  .deposit-layout { grid-template-columns: 1fr; }
}

/* ===== Müşteri portalı (giriş) — mavi / beyaz ===== */
.portal-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f4f8fc 0%, #e8f0fa 45%, #dce8f6 100%);
  color: #0f172a;
}
.portal-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.5rem; background: #fff;
  border-bottom: 1px solid #d0dff0; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.portal-brand { display: flex; align-items: center; gap: 0.65rem; }
.portal-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(145deg, #1d4ed8, #2563eb); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.portal-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.portal-brand-text strong { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.portal-brand-text span {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #2563eb;
}
.portal-nav-tabs {
  display: flex; gap: 0.25rem; background: #eef4fb; padding: 0.25rem;
  border-radius: 999px; border: 1px solid #d0dff0;
}
.portal-tab {
  border: none; background: transparent; padding: 0.5rem 1.15rem; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; color: #475569; cursor: pointer;
}
.portal-tab.active { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.portal-top-actions { display: flex; gap: 0.5rem; align-items: center; }
.portal-top-actions .btn-outline { background: #fff; color: #1d4ed8; border: 1px solid #93c5fd; width: auto; }
.portal-top-actions .btn-primary { width: auto; }
.portal-main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 2.5rem; }
.portal-view { display: none; }
.portal-view.active { display: block; animation: portal-fade 220ms ease; }
@keyframes portal-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.portal-hero {
  position: relative; overflow: hidden; border-radius: 18px; color: #fff;
  padding: 2rem 2.25rem; margin-bottom: 1.25rem;
  background: linear-gradient(125deg, #0b3a8c 0%, #1d4ed8 42%, #3b82f6 78%, #60a5fa 100%);
  box-shadow: 0 16px 40px rgba(29, 78, 216, 0.25);
}
.portal-hero-inner {
  display: grid; grid-template-columns: 1.4fr auto; gap: 1.5rem;
  align-items: center; position: relative; z-index: 1;
}
.portal-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 18ch;
  margin-bottom: 0.55rem; color: #fff;
}
.portal-hero p { color: rgba(255, 255, 255, 0.88); max-width: 42ch; margin-bottom: 1.1rem; }
.portal-hero-cta { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.btn-hero-primary { background: #fff !important; color: #1d4ed8 !important; width: auto !important; font-weight: 700; }
.btn-hero-ghost {
  background: transparent !important; color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important; width: auto !important;
}
.portal-hero-badge {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px; padding: 1rem 1.25rem; text-align: center; min-width: 150px;
}
.portal-hero-badge strong { display: block; font-size: 1.4rem; font-family: Consolas, monospace; }
.portal-hero-badge span {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85;
}
.portal-ticker {
  display: flex; gap: 0.65rem; overflow-x: auto; padding-bottom: 0.35rem; margin-bottom: 1.25rem;
}
.ticker-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.85rem; background: #fff; border: 1px solid #d0dff0;
  border-radius: 10px; font-size: 0.8rem;
}
.ticker-chip .sym { font-weight: 800; }
.ticker-chip .px { font-family: Consolas, monospace; color: #334155; }
.ticker-chip .chg { font-family: Consolas, monospace; font-weight: 700; font-size: 0.75rem; }
.ticker-chip .chg.up { color: #15803d; }
.ticker-chip .chg.down { color: #b91c1c; }
.movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.mover-panel {
  background: #fff; border: 1px solid #d0dff0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.mover-panel .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid #e2eaf5;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.mover-panel .panel-head h2 {
  font-size: 0.95rem; color: #0f172a; display: flex; align-items: center; gap: 0.45rem; margin: 0;
}
.mover-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mover-dot.up { background: #22c55e; }
.mover-dot.down { background: #ef4444; }
.mover-panel .live {
  font-size: 0.7rem; font-weight: 700; color: #2563eb;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.mover-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.mover-table th {
  text-align: left; padding: 0.55rem 1.1rem; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: #64748b; background: #f8fafc; border-bottom: 1px solid #e2eaf5;
}
.mover-table td { padding: 0.7rem 1.1rem; border-bottom: 1px solid #f1f5f9; color: #0f172a; }
.mover-table .rank { color: #94a3b8; font-weight: 700; width: 2rem; }
.mover-table .sym-cell strong { display: block; font-size: 0.88rem; }
.mover-table .sym-cell span { font-size: 0.72rem; color: #64748b; }
.mover-table .mono { font-family: Consolas, monospace; }
.mover-table .chg-up { color: #15803d; font-weight: 700; font-family: Consolas, monospace; }
.mover-table .chg-down { color: #b91c1c; font-weight: 700; font-family: Consolas, monospace; }
.portal-info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.info-card { background: #fff; border: 1px solid #d0dff0; border-radius: 12px; padding: 1.1rem 1.15rem; }
.info-card .ico {
  width: 32px; height: 32px; border-radius: 8px; background: #eff6ff; color: #1d4ed8;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 0.65rem; font-size: 0.85rem;
}
.info-card h3 { font-size: 0.92rem; margin-bottom: 0.35rem; color: #0f172a; }
.info-card p { font-size: 0.82rem; color: #64748b; line-height: 1.45; margin: 0; }
.account-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 1.25rem; align-items: start; }
.account-promo {
  position: relative; overflow: hidden; border-radius: 16px; padding: 2rem; color: #fff; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 55%, #3b82f6 100%);
  box-shadow: 0 16px 40px rgba(29, 78, 216, 0.22);
}
.account-promo .pill {
  display: inline-flex; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.account-promo h2 { font-size: 1.65rem; max-width: 14ch; margin: 1rem 0 0.75rem; color: #fff; }
.account-promo p { color: rgba(255, 255, 255, 0.88); max-width: 32ch; }
.account-promo-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; }
.account-promo-foot div {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px; padding: 0.75rem;
}
.account-promo-foot strong { display: block; font-size: 1.1rem; }
.account-promo-foot span { font-size: 0.72rem; opacity: 0.85; }
.account-card {
  background: #fff; border: 1px solid #d0dff0; border-radius: 16px; padding: 1.75rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.account-card .auth-logo h1 { color: #0f172a; }
.account-card .auth-logo p { color: #64748b; }
.portal-footer {
  width: min(1120px, calc(100% - 2rem)); margin: 0 auto 1.5rem; padding-top: 1rem;
  border-top: 1px solid #d0dff0; display: flex; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: #64748b;
}
.portal-footer a { color: #1d4ed8; font-weight: 600; }

/* Finans hub */
.finance-hub { overflow: hidden; }
.finance-subtabs { display: flex; gap: 0.35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.finance-subtab {
  padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--gray-200);
  background: transparent; color: var(--gray-500); font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.finance-subtab.active { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
.finance-title { font-size: 0.95rem; margin: 0 0 0.25rem; }
.finance-lead { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.85rem; }
.finance-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1rem; align-items: start; }
.bank-select-list { display: flex; flex-direction: column; gap: 0.45rem; max-height: 360px; overflow-y: auto; }
.bank-option {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left;
  padding: 0.7rem 0.85rem; border-radius: 10px; border: 1px solid var(--gray-200);
  background: #fff; cursor: pointer; color: inherit;
}
.bank-option:hover { border-color: var(--primary-light); }
.bank-option.active { border-color: var(--primary); background: var(--primary-bg); }
.bank-option-text { min-width: 0; }
.bank-option-text strong { display: block; font-size: 0.88rem; }
.bank-option-text span { font-size: 0.72rem; color: var(--gray-500); }
.bank-detail-card {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 0.9rem 1rem; margin-bottom: 0.85rem;
}
.bank-detail-card .detail-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--gray-200);
}
.bank-detail-card .detail-row:last-child { border-bottom: none; }
.bank-detail-card .lbl {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gray-500); margin-bottom: 0.2rem;
}
.bank-detail-card .val { font-size: 0.9rem; font-weight: 600; word-break: break-word; }
.bank-detail-card .val.mono {
  font-family: Consolas, monospace; letter-spacing: 0.03em; color: var(--primary);
}
.bank-desc-box {
  margin-top: 0.65rem; padding: 0.75rem 0.85rem; background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25); border-radius: 8px;
  font-size: 0.8rem; color: var(--gray-600); line-height: 1.45;
}
.bank-desc-box strong {
  display: block; color: var(--primary); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.35rem;
}
.deposit-form-wrap, .withdraw-box { max-width: 520px; }
@media (max-width: 900px) {
  .portal-hero-inner,
  .movers-grid,
  .account-layout,
  .portal-info-strip,
  .finance-grid { grid-template-columns: 1fr; }
  .portal-hero-badge { display: none; }
  .portal-topbar { flex-wrap: wrap; }
  .portal-nav-tabs { order: 3; width: 100%; }
  .portal-tab { flex: 1; text-align: center; }
  .account-promo { min-height: auto; }
}

/* ===== MOBİL TAŞMA DÜZELTMELERİ (demo2 gerçek sistem) ===== */
html, body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 560px) {
  .auth-page { padding: 1rem 0.75rem; }
  .auth-layout { grid-template-columns: 1fr !important; gap: 0 !important; max-width: 100% !important; }
  .auth-showcase { display: none !important; }
  .auth-card, .auth-register-card { max-width: 100% !important; width: 100% !important; padding: 1.5rem 1.25rem !important; }
  .auth-card .form-group input, .auth-register-card .form-group input,
  .auth-card .btn, .auth-register-card .btn { width: 100%; box-sizing: border-box; }
  /* form satırlarındaki min-width'ler mobilde taşmasın */
  .form-row, .auth-section { flex-wrap: wrap; }
  .form-row > * { min-width: 0 !important; flex: 1 1 100% !important; }
}

/* ===== MOBİL: içerik ekranları (demo2) ===== */
@media (max-width: 600px) {
  /* Geniş tablo ana sütunu büyütmesin — viewport'a sabitle, tablo içeride kaysın */
  .main-content, .content-wrap { min-width: 0 !important; max-width: 100vw !important; overflow-x: hidden !important; }
  .card, .market-overview, .mover-col { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
  .table-wrap, .table-wrap.market-table { max-width: 100% !important; overflow-x: auto !important; }
  .chart-layout, .movers-grid { grid-template-columns: 1fr !important; }
  .mover-item { display: flex !important; justify-content: space-between !important; align-items: center; gap: 0.5rem; }
  .mover-item > * { min-width: 0; }
  .card, .market-overview, .admin-card, .panel-card, .glass-card { max-width: 100%; box-sizing: border-box; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table th, .data-table td { padding: 0.5rem 0.55rem !important; font-size: 0.78rem !important; white-space: nowrap; }
  .tab-btn, .category-tabs, .tabs { white-space: nowrap; }
}
