/* =========================================
   SONEVIBE POOLS — card refinements (loaded after style.css + swap-pro.css)
   ========================================= */

.pl-card {
  max-width: 480px;
  background: linear-gradient(180deg, rgba(23,26,38,.96), rgba(16,18,28,.96));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(124,58,237,.06), 0 0 80px -20px rgba(124,58,237,.25);
}

/* Tabs */
.pl-card .pool-tabs { margin-bottom: 16px; background: #0b0c15; border: 1px solid rgba(255,255,255,.05); border-radius: 14px; }
.pl-card .pool-tab {
  font: inherit; font-weight: 600; font-size: .95rem; border: 1px solid transparent; background: transparent;
  color: var(--text-muted); min-height: 42px;
}
.pl-card .pool-tab:hover { color: #fff; }
.pl-card .pool-tab.active { background: #22253a; color: #fff; border-color: rgba(255,255,255,.08); }

.pl-section-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; margin: 0 4px 8px; }

/* Pair selectors */
.pl-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.pl-select {
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 52px;
  padding: 8px 12px; border-radius: 16px; cursor: pointer;
  background: #0b0c15; border: 1px solid rgba(255,255,255,.06); transition: border-color .15s, background .15s;
}
.pl-select:hover { border-color: rgba(255,255,255,.14); background: #10111c; }
.pl-select:focus-within { border-color: rgba(124,58,237,.55); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.pl-select img { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; background: #1a1d2e; flex-shrink: 0; }
.pl-select .token-select-custom {
  appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; padding-right: 18px;
  font-size: 1rem; font-weight: 700; text-overflow: ellipsis; outline: none;
}
.pl-select .token-select-custom option { background: #1a1f35; color: #fff; }
.pl-chev { position: absolute; right: 12px; pointer-events: none; color: var(--text-muted); }
.pl-plus { color: var(--text-muted); font-weight: 700; font-size: 1.1rem; }

.pl-note { min-height: 0; margin: 10px 4px 0; font-size: .8rem; line-height: 1.45; color: var(--text-muted); }
.pl-note:empty { display: none; }
.pl-note.is-new { padding: 10px 12px; border-radius: 12px; color: #fde68a; background: rgba(249,224,97,.07); border: 1px solid rgba(249,224,97,.2); }

/* Import (collapsed) */
.pl-import { margin: 12px 0 16px; padding: 0 4px; }
.pl-import summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: #c4b5fd; list-style: none; padding: 4px 0; }
.pl-import summary::-webkit-details-marker { display: none; }
.pl-import summary::after { content: ' ›'; display: inline-block; transition: transform .15s; }
.pl-import[open] summary::after { transform: rotate(90deg); }
.pl-import summary:hover { color: #fff; }
.pl-import .import-row { margin-top: 8px; }
.pl-fine { margin-top: 8px; font-size: .75rem; line-height: 1.5; color: var(--text-muted); }

/* Amount boxes */
.pl-box {
  background: #0b0c15; border: 1px solid rgba(255,255,255,.05); border-radius: 18px; padding: 14px 16px 12px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pl-box:hover { border-color: rgba(255,255,255,.1); }
.pl-box:focus-within { border-color: rgba(124,58,237,.55); background: #0e0f1a; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.pl-box.is-error { border-color: rgba(255,85,85,.45); }
.pl-box-top { display: flex; align-items: center; gap: 12px; }
.pl-input {
  flex: 1; min-width: 0; width: auto; background: transparent; border: 0; outline: none; color: #fff; font-family: inherit;
  font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-overflow: ellipsis;
}
.pl-input::placeholder { color: #3a3d4f; }

/* style.css gives every input/select a boxed background with !important; these fields sit inside their own boxes. */
.pl-card .pl-input,
.pl-card .pl-select .token-select-custom,
.pl-card .pl-slip-custom input {
  background: transparent !important; border: 0; border-radius: 0; padding: 0; box-shadow: none;
}
.pl-card .pl-select .token-select-custom { padding-right: 18px; }
.pl-card .pl-input:focus-visible,
.pl-card .pl-select .token-select-custom:focus-visible,
.pl-card .pl-slip-custom input:focus-visible { outline: none !important; }
.pl-sym {
  flex-shrink: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; background: #22253a; border: 1px solid rgba(255,255,255,.08);
  font-weight: 700; font-size: .95rem; color: #fff;
}
.pl-box-sub { display: flex; justify-content: space-between; align-items: center; min-height: 28px; margin-top: 6px; font-size: .8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.pl-card .plus-icon-circle {
  width: 40px; height: 40px; margin: -12px auto; border-radius: 12px;
  border: 4px solid #151826; background: #22253a; color: #fff; font-size: 1.1rem;
}

/* Remove */
.pl-remove { padding: 16px; border-radius: 18px; background: #0b0c15; border: 1px solid rgba(255,255,255,.05); }
.pl-remove-pct { font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.pl-card .range-wrap { margin: 12px 0 14px; }
.pl-card input[type=range] { accent-color: #7c3aed; height: 28px; }
.pl-pct-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pl-pct-row .btn-ghost { padding: 10px 0; min-height: 40px; border-radius: 10px; font-size: .85rem; }
.pl-receive { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); }
.pl-receive-row { display: flex; justify-content: space-between; font-weight: 600; font-size: 1rem; padding: 3px 0; font-variant-numeric: tabular-nums; }
.pl-receive-row span:last-child { color: var(--text-muted); font-weight: 600; }

/* Info panels */
.pl-card .pool-info { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); }
.pl-info-title { font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.pl-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.pl-info-val { font-weight: 700; font-size: .95rem; color: #fff; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.pl-info-lbl { margin-top: 2px; font-size: .7rem; color: var(--text-muted); }
.pl-position { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.pl-position .detail-row { margin-bottom: 4px; font-size: .82rem; }
.pl-position .detail-row > span:last-child { color: #e5e7eb; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pl-position .detail-row[hidden] { display: none; }

/* Slippage */
.pl-slip-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.pl-slip-val { color: var(--success); font-weight: 700; }
.pl-slip-options { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 6px; }
.pl-slip-options .btn-ghost { padding: 0; min-height: 40px; border-radius: 10px; font-size: .82rem; border: 1px solid rgba(255,255,255,.08); }
.pl-slip-options .btn-ghost.is-active { color: #fff; background: rgba(124,58,237,.18); border-color: rgba(124,58,237,.6); }
.pl-slip-custom {
  display: flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 10px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); color: var(--text-muted); font-size: .82rem;
}
.pl-slip-custom:focus-within, .pl-slip-custom.is-active { border-color: rgba(124,58,237,.6); color: #fff; }
.pl-slip-custom input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; outline: none; color: #fff; font: inherit; text-align: right; }
.pl-slippage .pl-fine { color: var(--warning); }
.pl-slippage .pl-fine[hidden] { display: none; }

/* Main action */
.pl-action {
  width: 100%; margin-top: 14px; padding: 16px; font-size: 1.08rem; font-weight: 700; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #2d6cdf 100%); box-shadow: 0 10px 30px rgba(124,58,237,.3);
}
.pl-action:hover:not(:disabled) { box-shadow: 0 14px 34px rgba(124,58,237,.45); }
.pl-action:disabled { background: #1c1f2e; color: #6b7080; box-shadow: none; cursor: not-allowed; }
.pl-action.is-danger { background: linear-gradient(135deg, #dc2626, #991b1b); box-shadow: 0 10px 30px rgba(220,38,38,.25); }
#txStatus a { color: #c4b5fd; font-weight: 600; }
#txStatus a:hover { color: #fff; }

@media (max-width: 600px) {
  .pl-card { padding: 12px; border-radius: 20px; }
  .pl-input { font-size: 1.6rem; }
  .pl-pair { grid-template-columns: 1fr; }
  .pl-plus { text-align: center; margin: -4px 0; }
  .pl-slip-options { grid-template-columns: repeat(4, 1fr); }
  .pl-slip-custom { grid-column: 1 / -1; }
  .pl-card .plus-icon-circle { width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  .pl-input { font-size: 1.35rem; }
  .pl-info-val { font-size: .85rem; }
}
