/* Extra pieces for bot web tools (currency, crypto, pdf) and group-bot landings (guard, contest).
   Builds on web-bot.css: same tokens (--accent, --panel, --muted…), same cards. */

select, input[type="number"], input[type="search"] {
  width: 100%;
  border: 1px solid var(--panel-border);
  background: rgba(7, 10, 14, .75);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 14px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
select:focus, input[type="number"]:focus, input[type="search"]:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
input[type="number"] { font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 700; }

.conv {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.conv__field { display: grid; gap: 6px; }
.conv__swap {
  appearance: none;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  width: 48px; height: 48px;
  border-radius: 14px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .25s ease, background .2s ease;
}
.conv__swap:hover { background: rgba(255,255,255,.12); transform: rotate(180deg); }
@media (max-width: 640px) {
  .conv { grid-template-columns: 1fr; }
  .conv__swap { justify-self: center; transform: rotate(90deg); }
  .conv__swap:hover { transform: rotate(270deg); }
}

.big-result {
  margin-top: 18px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  word-break: break-word;
}
.big-result small { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); margin-top: 6px; letter-spacing: 0; }

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.tile {
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font: inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  animation: tile-in .45s ease both;
}
.tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: rgba(255,255,255,.07); }
.tile__code { font-size: .8rem; color: var(--muted); letter-spacing: .06em; }
.tile__value { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; word-break: break-word; }
@keyframes tile-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.table-wrap { overflow-x: auto; margin-top: 14px; }
table.coins { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.coins th, table.coins td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--panel-border); white-space: nowrap; }
table.coins th { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
table.coins th:nth-child(-n+2), table.coins td:nth-child(-n+2) { text-align: left; }
table.coins tbody tr { cursor: pointer; transition: background .15s ease; }
table.coins tbody tr:hover { background: rgba(255,255,255,.04); }
.coin-name { display: flex; gap: 8px; align-items: baseline; }
.coin-name b { font-weight: 700; }
.coin-name span { color: var(--muted); font-size: .85rem; }
.up { color: #3ddc84; }
.down { color: var(--danger); }

.updated { color: var(--muted); font-size: .82rem; margin-top: 10px; position: relative; z-index: 1; }

/* PDF */
.drop {
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 20px;
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.drop:hover, .drop.is-over { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--accent); transform: scale(1.01); }
.drop strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.drop span { color: var(--muted); font-size: .9rem; }
.pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.page {
  position: relative;
  aspect-ratio: 210 / 297;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  animation: tile-in .35s ease both;
}
.page img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.page__no {
  position: absolute; left: 6px; top: 6px;
  background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; font-weight: 700;
  border-radius: 8px; padding: 2px 7px;
}
.page__tools {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: center; gap: 4px;
  padding: 6px;
  background: linear-gradient(0deg, rgba(0,0,0,.7), transparent);
}
.page__tools button {
  appearance: none; border: 0; border-radius: 8px;
  width: 28px; height: 28px; cursor: pointer;
  background: rgba(255,255,255,.9); color: #111; font-size: .85rem; font-weight: 700;
}
.page__tools button:hover { background: #fff; }
.actions-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
@media (max-width: 640px) { .actions-row { grid-template-columns: 1fr; } }

/* Landing pages for group bots */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.feature { display: grid; gap: 8px; animation: tile-in .5s ease both; }
.feature__icon { font-size: 1.6rem; }
.feature h3 { margin: 0; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .95rem; }
.steps { counter-reset: step; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  color: var(--text); line-height: 1.45;
}
.steps li::before {
  content: counter(step);
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.cta-row .btn { text-decoration: none; display: inline-flex; align-items: center; }
.section-title { margin: 0 0 14px; font-size: 1.25rem; }

/* Chat mockup in the hero visual */
.chat {
  width: min(280px, 100%);
  display: grid; gap: 8px;
  position: relative; z-index: 1;
  font-size: .88rem;
}
.bubble {
  padding: 9px 12px; border-radius: 14px; max-width: 88%;
  line-height: 1.35;
  opacity: 0;
  animation: bubble-in .5s ease forwards;
}
.bubble--in { background: rgba(255,255,255,.09); justify-self: start; border-bottom-left-radius: 4px; }
.bubble--out { background: color-mix(in srgb, var(--accent) 35%, #0b1016); justify-self: end; border-bottom-right-radius: 4px; }
.bubble--bot { background: rgba(255,255,255,.14); justify-self: start; border-bottom-left-radius: 4px; }
.bubble:nth-child(1) { animation-delay: .2s; }
.bubble:nth-child(2) { animation-delay: .9s; }
.bubble:nth-child(3) { animation-delay: 1.6s; }
.bubble:nth-child(4) { animation-delay: 2.3s; }
.bubble:nth-child(5) { animation-delay: 3s; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .tile, .page, .feature, .bubble { animation: none; opacity: 1; }
  .conv__swap:hover { transform: none; }
}
