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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  background: #0b0b0f;
  color: #e0e0e0;
  overflow: hidden;
  position: relative;
}

.fp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #1e2030;
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}

.fp-header:active {
  cursor: grabbing;
}

.fp-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.fp-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fp-header-preset {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #aaa;
  transition: background 0.15s;
  white-space: nowrap;
  max-width: 120px;
}

.fp-header-preset:hover {
  background: #1e2030;
  color: #e0e0e0;
}

#fp-preset-emoji {
  font-size: 13px;
  flex-shrink: 0;
}

#fp-preset-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-dropdown-header {
  position: absolute;
  top: 42px;
  right: 60px;
  width: 180px;
  z-index: 10;
}

.fp-btn-icon {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #555;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.fp-btn-icon:hover {
  background: #1e2030;
  color: #e0e0e0;
}

.fp-btn-icon:focus {
  outline: none;
}

.fp-body {
  padding: 8px 10px 2px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fp-wallet-toggle {
  gap: 2px;
}

.fp-wallet-badge {
  color: #555;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

#fp-preset-emoji {
  font-size: 14px;
}

#fp-preset-label {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-dropdown {
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding: 3px;
}

.fp-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  background: none;
  border: none;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}

.fp-dropdown-item:hover {
  background: #1e2030;
}

.fp-dropdown-item.active {
  background: rgba(26, 140, 255, 0.1);
  color: #1a8cff;
}

.fp-dd-emoji { font-size: 14px; flex-shrink: 0; }
.fp-dd-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-dd-check { color: #1a8cff; font-size: 11px; flex-shrink: 0; }


.fp-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fp-section-label {
  font-size: 10px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.fp-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 4px;
}

.fp-trade-btn {
  padding: 8px 4px;
  border: 1px solid #1e2030;
  border-radius: 6px;
  background: #12141e;
  color: #e0e0e0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.fp-trade-btn:hover {
  border-color: #1a8cff;
  background: rgba(26, 140, 255, 0.06);
}

.fp-trade-btn.fp-sell {
  color: #ff6b6b;
}

.fp-trade-btn.fp-sell:hover {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.06);
}

.fp-trade-btn.fp-click-flash,
.fp-sell-initials.fp-click-flash {
  animation: fp-btn-flash 0.13s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fp-btn-flash {
  0%   { opacity: 0.45; transform: scale(0.94); }
  100% { opacity: 1;    transform: scale(1); }
}

.fp-sell-initials {
  align-self: flex-end;
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 4px;
  margin-top: 2px;
  transition: opacity 0.15s;
}

.fp-sell-initials:hover {
  opacity: 0.75;
}


.fp-trade-btn .fp-sol-icon {
  width: 10px;
  height: 10px;
}

.fp-status {
  font-size: 11px;
  color: #555;
  text-align: center;
  min-height: 0;
  flex-shrink: 0;
}

.fp-status:empty {
  display: none;
}

.fp-status.fp-success { color: #4ade80; }
.fp-status.fp-error { color: #ff6b6b; }

.fp-pnl-bar {
  display: flex;
  border-top: 1px solid #1e2030;
  margin-top: 8px;
  flex-shrink: 0;
}

.fp-pnl-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  border-right: 1px solid #1e2030;
}

.fp-pnl-item:last-child {
  border-right: none;
}

.fp-pnl-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.fp-pnl-spent { color: #4ade80; }
.fp-pnl-received { color: #ff6b6b; }
.fp-pnl-holding { color: #e0e0e0; }
.fp-pnl-positive { color: #4ade80; }
.fp-pnl-negative { color: #ff6b6b; }


