/* ===========================
   FISEQ MARKET - ANA STİL
   =========================== */

:root {
  --bg-primary:   #0d0d1a;
  --bg-secondary: #13132b;
  --bg-card:      #1a1a35;
  --bg-hover:     #22224a;
  --accent:       #7c3aed;
  --accent-light: #9f67ff;
  --accent-dim:   #7c3aed22;
  --green:        #10b981;
  --green-dim:    #10b98122;
  --red:          #ef4444;
  --red-dim:      #ef444422;
  --yellow:       #f59e0b;
  --text-primary: #f0f0ff;
  --text-secondary:#a0a0c0;
  --text-muted:   #606080;
  --border:       #2a2a50;
  --border-light: #3a3a60;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px #0008;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* ── Navbar ── */
.navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-brand {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.navbar-right { display: flex; align-items: center; gap: 12px; }
.balance-badge {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.balance-badge:hover { background: var(--accent); color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-light); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover:not(:disabled) { background: #0da372; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card:hover { border-color: var(--border-light); }

/* ── Inputs ── */
.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.input-group label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.input-group input,
.input-group select,
.input-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.input-group input:focus,
.input-group select:focus { border-color: var(--accent); }
.input-group input::placeholder { color: var(--text-muted); }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; background: var(--bg-secondary); border-radius: var(--radius); padding: 4px; margin-bottom: 24px; }
.tab-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.tab-btn.active { background: var(--accent); color: #fff; }
.tab-btn:hover:not(.active) { background: var(--bg-hover); color: var(--text-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-purple { background: var(--accent-dim); color: var(--accent-light); border: 1px solid var(--accent); }
.badge-green  { background: var(--green-dim);  color: var(--green);        border: 1px solid var(--green); }
.badge-red    { background: var(--red-dim);    color: var(--red);          border: 1px solid var(--red); }

/* ── Toast bildirimler ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  animation: slideIn .25s ease;
  pointer-events: all;
  font-size: 14px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--accent); }
.toast-icon { font-size: 18px; line-height: 1; }
.toast-body strong { display: block; margin-bottom: 2px; font-size: 14px; }
.toast-body span   { color: var(--text-secondary); font-size: 13px; }
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: #000a;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .15s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow);
  position: relative;
  animation: scaleIn .15s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 20px;
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Notification bell ── */
.notif-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.notif-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.notif-dot {
  position: absolute; top: -4px; right: -4px;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  display: none;
}
.notif-dot.show { display: block; }

/* ── Account grid ── */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.account-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px #7c3aed22;
}
.account-card-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.account-card-category { font-size: 12px; color: var(--text-muted); }
.account-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.account-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-light);
}

/* ── Page layout ── */
.page { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.page-header p  { color: var(--text-secondary); font-size: 15px; }

/* ── Filters ── */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-chip {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.filter-chip:hover  { border-color: var(--accent); color: var(--accent-light); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Account data box ── */
.account-data-box {
  background: #0a0a1a;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #a0ffa0;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
  margin: 12px 0;
}

/* ── Loader ── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid #fff4;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Auth forms ── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-box {
  width: 100%;
  max-width: 420px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo h1 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-logo p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.divider { text-align: center; color: var(--text-muted); font-size: 13px; margin: 16px 0; position: relative; }
.divider::before, .divider::after {
  content: '';
  position: absolute; top: 50%;
  width: 42%; height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .navbar { padding: 0 16px; }
  .page   { padding: 24px 16px; }
  .accounts-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px 20px; }
}
