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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  background: #0b0b0f;
  color: #e0e0e0;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page {
  display: none;
}

.muted {
  color: #666;
  font-size: 13px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

h2 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.shark-logo {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-dot.green { background: #4ade80; }
.status-dot.red { background: #ff6b6b; }

.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #1e2030;
  margin-bottom: 24px;
}

.tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  width: auto;
}

.tab:hover {
  color: #e0e0e0;
}

.tab.active {
  color: #1a8cff;
  border-bottom-color: #1a8cff;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  width: auto;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #1a8cff;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #1577dd;
}

.btn-outline {
  background: transparent;
  color: #1a8cff;
  border: 1px solid rgba(26, 140, 255, 0.3);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(26, 140, 255, 0.08);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.region-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.region-btn {
  flex: 1;
  padding: 7px 10px;
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 6px;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.region-btn:hover {
  border-color: #333;
  color: #aaa;
}

.region-btn.active {
  border-color: #1a8cff;
  color: #1a8cff;
  background: rgba(26, 140, 255, 0.08);
}

.region-badge {
  position: relative;
  font-size: 10px;
  font-weight: 600;
  color: #1a8cff;
  background: rgba(26, 140, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  cursor: default;
}

.region-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1e2030;
  color: #ccc;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 50;
}

.region-badge:hover::after {
  opacity: 1;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 11px;
}

.btn-danger {
  background: #ff6b6b;
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #e55555;
}

.btn-danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-danger-outline {
  background: transparent;
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-danger-outline:hover:not(:disabled) {
  background: rgba(255, 107, 107, 0.08);
}

.wallet-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.wallet-grid::-webkit-scrollbar {
  width: 4px;
}

.wallet-grid::-webkit-scrollbar-track {
  background: transparent;
}

.wallet-grid::-webkit-scrollbar-thumb {
  background: #1e2030;
  border-radius: 4px;
}

.wallet-card {
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wc-content {
  flex: 1;
  min-width: 0;
}

.wc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.wc-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wc-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.wc-pubkey {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 12px;
  color: #555;
}

.wc-copy {
  cursor: pointer;
  transition: color 0.15s;
}

.wc-copy:hover {
  color: #1a8cff;
}

.wc-copy-icon {
  vertical-align: middle;
  opacity: 0.4;
  margin-left: 2px;
}

.wc-copy:hover .wc-copy-icon {
  opacity: 1;
}

.wc-balance {
  font-size: 18px;
  font-weight: 700;
  color: #4ade80;
}

.wc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.badge-inactive {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.badge-ready {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.badge-not-ready {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.badge-no-balance {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.buy-distribution {
  margin-top: 20px;
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 12px;
  padding: 16px;
}

.buy-distribution h3 {
  font-size: 14px;
  margin-bottom: 2px;
}

.distribution-options {
  display: flex;
  gap: 8px;
}

.distribution-option {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: #0b0b0f;
  border: 1px solid #1e2030;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

.distribution-option:hover {
  border-color: #333;
}

.distribution-option:has(input:checked) {
  border-color: #1a8cff;
  background: rgba(26, 140, 255, 0.05);
}

.distribution-option input[type="radio"] {
  display: none;
}

.dist-label {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
}

.dist-desc {
  font-size: 11px;
}

.wc-active-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #666;
}

.wc-drag-handle {
  cursor: grab;
  color: #333;
  font-size: 22px;
  user-select: none;
  transition: color 0.15s;
  flex-shrink: 0;
  padding: 4px 0;
  line-height: 1;
}

.wc-drag-handle:hover {
  color: #666;
}

.wc-drag-handle:active {
  cursor: grabbing;
}

.wallet-card[draggable="true"] {
  transition: opacity 0.2s, border-color 0.2s;
}

.wallet-card.wc-dragging {
  opacity: 0.4;
}

.wallet-card.wc-drag-over {
  border-color: #1a8cff;
}

.wc-nonces {
  font-size: 12px;
  color: #555;
}

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

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #1e2030;
  border-radius: 6px;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-icon:hover {
  color: #e0e0e0;
  border-color: #444;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #555;
  font-size: 14px;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: #555;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal {
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 12px;
  width: 440px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
  background: none;
  border: none;
  color: #555;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: auto;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
}

.modal-body label {
  display: block;
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-body input[type="text"],
.modal-body input[type="password"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #1e2030;
  border-radius: 6px;
  background: #0b0b0f;
  color: #e0e0e0;
  font-size: 13px;
  outline: none;
  margin-bottom: 14px;
}

.modal-body input:focus {
  border-color: #1a8cff;
}

.modal-body .btn {
  width: 100%;
}

.error-text {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 6px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ff6b6b;
  cursor: pointer;
}

.checkbox-label {
  font-size: 13px;
  color: #e0e0e0;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  cursor: pointer;
}

.warning-banner {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  text-align: center;
}

.secret-key-box {
  background: #0b0b0f;
  border: 1px solid #1e2030;
  border-radius: 6px;
  padding: 14px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 13px;
  color: #fbbf24;
  word-break: break-all;
  user-select: all;
  margin-bottom: 8px;
  line-height: 1.5;
}

.reveal-pubkey {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
  margin-bottom: 12px;
}

.mono {
  font-family: "SF Mono", "Fira Code", monospace;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.ws-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e2030;
}

.ws-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ws-deploy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ws-deploy-input {
  width: 70px;
  padding: 7px 10px;
  border: 1px solid #1e2030;
  border-radius: 6px;
  background: #0b0b0f;
  color: #e0e0e0;
  font-size: 13px;
  outline: none;
  text-align: center;
}

.ws-deploy-input:focus {
  border-color: #1a8cff;
}

.ws-danger-zone {
  border-bottom: none;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: #12141e;
  border: 1px solid #1e2030;
  color: #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 200;
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left: 3px solid #4ade80;
}

.toast-error {
  border-left: 3px solid #ff6b6b;
}

.site-card {
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

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

.site-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.site-card-url {
  font-size: 12px;
}

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

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1e2030;
  border-radius: 24px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #666;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(26, 140, 255, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #1a8cff;
}

.site-card-features {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #1e2030;
}

.site-card-features.open {
  display: block;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
}

.feature-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1a8cff;
  cursor: pointer;
  flex-shrink: 0;
}

.feature-label {
  font-size: 13px;
  font-weight: 500;
  color: #e0e0e0;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  cursor: pointer;
  white-space: nowrap;
}

.feature-desc {
  font-size: 12px;
  margin-left: auto;
}

.presets-section {
  margin-top: 24px;
}

.presets-section h3 {
  margin-bottom: 4px;
}

.qb-settings {
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.qb-settings-header {
  margin-bottom: 14px;
}

.qb-settings-header h3 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 2px;
}

.qb-settings-header .muted {
  font-size: 12px;
}

.qb-settings-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.qb-field label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.qb-input-wrap {
  position: relative;
}

.qb-input-wrap input {
  width: 100%;
  padding: 8px 28px 8px 10px;
  background: #0b0b0f;
  border: 1px solid #1e2030;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 13px;
  outline: none;
  margin-bottom: 0;
  box-sizing: border-box;
}

.qb-input-wrap input:focus {
  border-color: #1a8cff;
}

.qb-input-wrap input::placeholder {
  color: #444;
}

.qb-suffix {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #555;
  pointer-events: none;
}

img.qb-sol {
  width: 12px;
  height: 12px;
}

.qb-toggle-field {
  display: flex;
  flex-direction: column;
}

.qb-toggle-field .toggle-switch {
  margin-top: 2px;
}

.preset-cta {
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}

.preset-cta-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.preset-cta h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

.preset-cta .btn {
  margin-top: 12px;
}

.presets-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preset-card {
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.preset-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-card-emoji {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e2030;
  border-radius: 8px;
  flex-shrink: 0;
}

.preset-card-label {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.preset-card-actions {
  display: flex;
  gap: 4px;
}

.preset-card-actions button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: #1e2030;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.preset-card-actions button:hover {
  background: #2a2d40;
  color: #e0e0e0;
}

.preset-card-actions button.delete-btn:hover {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.preset-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #1e2030;
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
}

.preset-pill .pill-icon {
  font-size: 10px;
  color: #666;
}

.preset-pill .pill-icon-sol {
  width: 10px;
  height: 10px;
  margin-right: 2px;
}

.preset-pill-more {
  color: #555;
  font-size: 11px;
  padding: 2px 6px;
}

.preset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: -4px;
}

.preset-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.preset-tag-on {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.preset-tag-off {
  background: rgba(100, 100, 100, 0.12);
  color: #555;
  text-decoration: line-through;
}

.presets-empty {
  text-align: center;
  padding: 48px 24px;
  color: #666;
}

.presets-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.presets-empty h3 {
  color: #aaa;
  font-size: 16px;
  margin-bottom: 6px;
}

.presets-empty .btn {
  margin-top: 16px;
}

.dev-section {
  margin-bottom: 28px;
}

.dev-section h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.dev-card {
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.dev-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dev-card-header h3 {
  font-size: 14px;
  margin: 0;
}

.dev-method {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.dev-method-post {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.dev-method-get {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.dev-path {
  font-size: 12px;
  color: #888;
  background: #0b0b0f;
  padding: 2px 6px;
  border-radius: 4px;
}

.dev-code {
  background: #0b0b0f;
  border: 1px solid #1e2030;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  color: #b0b0b0;
  overflow-x: auto;
  margin: 0;
  line-height: 1.5;
  white-space: pre;
  font-family: "SF Mono", "Fira Code", monospace;
}

.dev-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(26, 140, 255, 0.06);
  border-left: 3px solid #1a8cff;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

.dev-note code {
  background: #0b0b0f;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

.dev-token-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b0b0f;
  border: 1px solid #1e2030;
  border-radius: 6px;
  padding: 8px 12px;
}

.dev-token-box code {
  flex: 1;
  font-size: 12px;
  color: #e0e0e0;
  word-break: break-all;
  font-family: "SF Mono", "Fira Code", monospace;
}

.dev-token-hidden {
  text-align: center;
  padding: 8px 0;
}

.dev-warning {
  font-size: 12px;
  color: #f59e0b;
  margin-bottom: 8px;
  line-height: 1.5;
}

#preset-modal-body input[type="text"] {
  padding: 6px 10px;
  margin-bottom: 0;
  font-size: 13px;
}

.preset-name-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.emoji-picker-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #1e2030;
  background: #0b0b0f;
  font-size: 24px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-picker-btn:hover {
  border-color: #1a8cff;
}

.preset-name-row input[type="text"] {
  width: 160px;
  flex: 0 0 160px;
  font-size: 22px;
  font-weight: 600;
  height: 44px;
  padding: 0 12px !important;
}

.preset-section-divider {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e2030;
}

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

.preset-input-wrap {
  position: relative;
}

.preset-input-wrap input {
  width: 100%;
  padding-right: 24px;
  box-sizing: border-box;
}

.input-suffix {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #555;
  pointer-events: none;
}

img.sol-suffix {
  width: 12px;
  height: 12px;
}

.preset-fields-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.preset-fields-inline {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.preset-fields-inline .preset-field {
  flex: 1;
}

.preset-fields-inline .preset-field label {
  margin-bottom: 4px;
}

.preset-toggle-field {
  flex: 0 0 auto !important;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preset-toggle-field > label:first-child {
  margin-bottom: 4px;
}

.preset-toggle-field label.toggle-switch {
  display: inline-flex;
}

.preset-field {
  flex: 1;
}

.preset-field label {
  font-size: 13px;
  margin-bottom: 4px;
  display: block;
}

.btn-link {
  background: none;
  border: none;
  color: #1a8cff;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
}

.btn-link:hover {
  color: #1577dd;
}

.high-value-warn {
  font-size: 11px;
  color: #f59e0b;
  margin-top: 4px;
}

.preset-modal-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #1e2030;
}

.preset-modal-footer .btn {
  flex: 1;
}

.emoji-picker-popup {
  position: fixed;
  background: #12141e;
  border: 1px solid #1e2030;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-height: 200px;
  overflow-y: auto;
}

.emoji-picker-popup button {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.1s;
}

.emoji-picker-popup button:hover {
  background: #1e2030;
}
