/* ── Syntene Design System ── */

/* Colors */
.gold { color: #D4AA50; }
.cream { color: #E8E0D4; }
.muted { color: #9B8F77; }
.dim { color: #6B6355; }
.err { color: #e74c3c; }
.ok { color: #2ecc71; }

/* Card */
.card {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

/* Input */
.inp {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: #E8E0D4;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
.inp:focus { border-color: rgba(212,170,80,0.2); }
.inp::placeholder { color: #6B6355; }
textarea.inp { resize: vertical; min-height: 60px; }

/* Buttons */
.btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(212,170,80,0.1);
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-appearance: none;
}
.btn-primary {
  background: linear-gradient(135deg, #9C7A23, #D4AA50);
  color: #070503;
  border: none;
  font-weight: 600;
}
.btn-ghost {
  background: rgba(212,170,80,0.06);
  color: #D4AA50;
}
.btn-ghost:hover { background: rgba(212,170,80,0.1); }
.btn-danger {
  background: transparent;
  color: #e74c3c;
  border-color: rgba(231,76,60,0.2);
}
.btn-danger:hover { background: rgba(231,76,60,0.06); }
.btn-full { width: 100%; }

/* Gold button (legacy — kept for gradient consistency) */
.btn-gold {
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9C7A23, #D4AA50, #F1C463);
  border: none;
  color: #070503;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,170,80,0.2); }
.btn-gold:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold.success { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,170,80,0.2); }
.btn-primary:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }

/* Toggle */
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 22px;
  transition: 0.2s;
}
.toggle .slider::before {
  content: "";
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: #6B6355;
  border-radius: 50%;
  transition: 0.2s;
}
.toggle input:checked + .slider { background: rgba(212,170,80,0.2); }
.toggle input:checked + .slider::before { background: #D4AA50; transform: translateX(18px); }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.03); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab {
  background: transparent;
  border: none;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  color: #6B6355;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 400;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s;
}
.tab.active { color: #D4AA50; font-weight: 500; }
.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: #D4AA50;
}

/* Badge */
.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 400;
  white-space: nowrap;
}
.badge-hot { background: rgba(231,76,60,0.12); color: #e74c3c; }
.badge-warm { background: rgba(243,156,18,0.12); color: #f1c40f; }
.badge-cold { background: rgba(52,152,219,0.12); color: #3498db; }

/* Toggle row */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.toggle-row:last-child { border-bottom: none; }

/* Label */
.label {
  font-size: 11px;
  color: #6B6355;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  display: block;
  font-weight: 500;
}
.hint { font-size: 10px; color: #6B6355; margin-top: 3px; }
.sub { font-size: 11px; color: #6B6355; }

/* Usage bar */
.usage-bar {
  height: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
  margin: 8px 0;
}
.usage-fill {
  height: 100%;
  background: #D4AA50;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.usage-fill.high { background: #e74c3c; }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(212,170,80,0.05);
  border: 1px solid rgba(212,170,80,0.1);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: #E8E0D4;
}
.chip-x {
  background: none; border: none;
  color: #6B6355; cursor: pointer;
  font-size: 14px; padding: 0;
  line-height: 1;
}

/* Section */
.sec { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.sec:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

/* Layout helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: 4px; }
.gap-sm { gap: 6px; }
.gap-md { gap: 12px; }
.p-sm { padding: 8px 12px; }
.p-md { padding: 12px 16px; }
.p-lg { padding: 16px 20px; }
.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.w-full { width: 100%; }

/* Notification status */
.notif-ok { color: #2ecc71; font-size: 13px; }
.notif-warn { color: #9B8F77; font-size: 13px; }

/* Feed row */
.feed-row {
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
  animation: feedIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.feed-row:hover { background: rgba(255,255,255,0.015); }
.feed-row:last-child { border-bottom: none; }
@keyframes feedIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
