/* VDA Finans • Web Style (Material Design 3 Dark / AMOLED / Light) */
:root {
  --bg-primary: #0B0F17;
  --bg-surface: #131926;
  --bg-card: #182030;
  --bg-card-hover: #1E283C;
  --bg-input: #121824;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #38BDF8;
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent-primary: #38BDF8;
  --accent-primary-dim: rgba(56, 189, 248, 0.15);
  --finance-pos: #10B981;
  --finance-pos-bg: rgba(16, 185, 129, 0.15);
  --finance-neg: #F43F5E;
  --finance-neg-bg: rgba(244, 63, 94, 0.15);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.theme-amoled {
  --bg-primary: #000000;
  --bg-surface: #0A0A0A;
  --bg-card: #101010;
  --bg-card-hover: #1A1A1A;
  --bg-input: #080808;
  --border-color: rgba(255, 255, 255, 0.12);
}

body.theme-light {
  --bg-primary: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-input: #E2E8F0;
  --border-color: rgba(0, 0, 0, 0.08);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

button, a, .chip, .asset-card, .btn-icon, .segment-btn, .pin-key, .primary-btn, .secondary-btn, .danger-btn {
  touch-action: manipulation;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding-bottom: 40px;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-container {
  width: 100%;
  max-width: 640px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Üst Çubuk (Top Bar) */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
}

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

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--finance-pos);
  box-shadow: 0 0 8px var(--finance-pos);
}

.status-indicator.offline {
  background: var(--finance-neg);
  box-shadow: 0 0 8px var(--finance-neg);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.offline-badge {
  font-size: 0.7rem;
  background: var(--finance-neg-bg);
  color: var(--finance-neg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.refresh-icon.rotating {
  animation: spin 0.8s linear infinite;
}

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

/* Parite Hapları (Altın/Gümüş & EUR/USD) */
.parity-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.parity-pill {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.parity-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.parity-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-primary);
}

/* Varlıklarım Portföy Kartı */
.portfolio-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-icon {
  font-size: 1.1rem;
}

.portfolio-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.eye-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.eye-toggle-btn:hover {
  color: var(--text-primary);
}

.portfolio-edit-btn {
  background: var(--accent-primary-dim);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.portfolio-edit-btn:hover {
  background: var(--accent-primary);
  color: #000;
}

.portfolio-amount {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.portfolio-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Canlı Piyasalar Bilgi Çubuğu */
.feed-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==============================================================
   VARLIK KARTLARI (KUTU / GRID MODU - ANDROID M3 İLE BİREBİR)
   ============================================================== */
.assets-container.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.assets-container.mode-grid .asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-height: 114px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.assets-container.mode-grid .asset-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.grid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.grid-asset-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.grid-chart-cell {
  width: 100%;
  height: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: 4px 0;
}

.grid-chart-cell canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.grid-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.grid-asset-symbol {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.grid-asset-price {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-primary);
}

/* ==============================================================
   VARLIK KARTLARI (LİSTE MODU - TEK SÜTUN)
   ============================================================== */
.assets-container.mode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assets-container.mode-list .asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.assets-container.mode-list .asset-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--bg-card-hover);
}

.list-card-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.list-asset-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1.2;
}

.symbol-badge {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.list-asset-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.list-chart-cell {
  width: 90px;
  height: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.list-chart-cell canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.list-price-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.list-asset-price {
  font-weight: 800;
  font-size: 1.05rem;
}

.asset-change {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.asset-change.positive {
  color: var(--finance-pos);
  background: var(--finance-pos-bg);
}

.asset-change.negative {
  color: var(--finance-neg);
  background: var(--finance-neg-bg);
}

/* 24s Range Bar (Liste Modu) */
.range-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.range-track {
  flex: 1;
  height: 4px;
  background: var(--bg-input);
  border-radius: 2px;
  position: relative;
}

.range-indicator {
  position: absolute;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
  transform: translateX(-50%);
}

/* ==============================================================
   GÜVENLİK / ŞİFRE KORUMA EKRANI (LOCK SCREEN OVERLAY)
   ============================================================== */
.lock-screen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 23, 0.98);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.theme-amoled .lock-screen-overlay {
  background: #000000;
}

.lock-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 32px 24px 24px;
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lock-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.lock-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.lock-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pin-display {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: transparent;
  transition: all 0.15s ease;
}

.pin-dot.filled {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  transform: scale(1.1);
}

.lock-error-msg {
  color: var(--finance-neg);
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 20px;
  margin-bottom: 16px;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.pin-key {
  height: 52px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.pin-key:hover, .pin-key:active {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: scale(0.96);
}

.pin-key.pin-action {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.lock-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.shake {
  animation: shakeAnimation 0.35s ease;
}

@keyframes shakeAnimation {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* ==============================================================
   MODALLAR & BOTTOM SHEETS
   ============================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.15s ease;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  background: var(--bg-surface);
  color: var(--text-primary);
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  will-change: transform;
}

.modal-handle-bar {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--border-color);
  margin: 10px auto 2px;
  flex-shrink: 0;
  opacity: 0.8;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

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

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-badge-icon {
  font-size: 1.3rem;
  background: var(--bg-card);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-header p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* ==============================================================
   DETAY MODALI İÇERİK KAYDIRMA ALANI
   ============================================================== */
.modal-detail-content {
  padding: 10px 18px 40px;
  overflow-y: auto;
  max-height: calc(88vh - 75px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}

.modal-detail-content .timeframe-selector {
  padding: 4px 0 6px;
  margin: 0;
}

.modal-detail-content .chart-container {
  margin: 0;
}

.modal-detail-content .stats-grid {
  padding: 0;
  margin: 0;
}

.modal-detail-content .detail-alert-box {
  margin: 0;
}

/* ==============================================================
   AYARLAR MODALI STİLLERİ
   ============================================================== */
.settings-content {
  padding: 16px 20px 32px;
  overflow-y: auto;
  max-height: calc(88vh - 70px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.setting-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-label {
  font-size: 0.92rem;
  font-weight: 600;
}

.setting-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.setting-group-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: .2s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-muted);
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #000;
}

/* Segmented Control */
.segmented-control {
  display: flex;
  background: var(--bg-input);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

.segment-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.segment-btn.active {
  background: var(--accent-primary);
  color: #000;
  font-weight: 700;
}

.asset-visibility-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-vis-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.asset-vis-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.secondary-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.secondary-btn:hover {
  background: var(--bg-card-hover);
}

.primary-btn {
  background: var(--accent-primary);
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.primary-btn:hover {
  filter: brightness(1.1);
}

.danger-btn {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid var(--finance-neg);
  color: var(--finance-neg);
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.danger-btn:hover {
  background: var(--finance-neg);
  color: #fff;
}

/* ==============================================================
   ÇEVİRİCİ, DETAY & PORTFÖY MODALLARI
   ============================================================== */
.converter-bases, .timeframe-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 20px;
  scrollbar-width: none;
}

.chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: var(--accent-primary);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-primary);
}

.converter-input-box {
  padding: 0 20px 12px;
}

.converter-input-box label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.input-with-clear {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-clear input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 800;
  padding: 10px 40px 10px 14px;
  border-radius: var(--radius-md);
}

.input-with-clear button {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.quick-adds {
  display: flex;
  gap: 6px;
  padding: 0 20px 14px;
  overflow-x: auto;
}

.tag {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.converter-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 24px;
  max-height: 45vh;
  overflow-y: auto;
}

.conv-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  margin: 0 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}

.detail-canvas-wrap {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#detailCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text-primary);
}

/* Alarm Bölümü Stilleri */
.detail-alert-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  margin: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-alert-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-alert-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-cond-chips {
  display: flex;
  gap: 6px;
}

.alert-input-action {
  display: flex;
  gap: 8px;
}

.alert-input-action input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.asset-active-alerts, .alerts-manager-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.alert-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
}

.alert-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.alert-item-del {
  background: none;
  border: none;
  color: var(--finance-neg);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
}

.asset-card-bell {
  color: var(--accent-primary);
  font-size: 0.75rem;
  margin-left: 4px;
}

.holdings-form {
  padding: 16px 20px;
  max-height: 50vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.sync-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sync-info-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sync-input-group {
  display: flex;
  gap: 8px;
}

.sync-input-group input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  letter-spacing: 2px;
}

.sync-status {
  font-size: 0.85rem;
  text-align: center;
  min-height: 20px;
}

.sync-card-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: 10px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1E293B;
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}
