/* User trading bots page — cards + copy modal. Uses the dashboard theme
   variables so light/dark mode works through the same theme toggle. */

.bots-page-note{margin:0 0 18px;color:var(--dashboard-muted);font-size:13px;line-height:1.6}
.user-bots-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:6px}
.bots-empty{grid-column:1/-1;padding:44px 24px;border:1px solid var(--dashboard-border);border-radius:14px;background:var(--dashboard-panel);color:var(--dashboard-muted);font-size:13px;text-align:center}

.user-bot-card{position:relative;display:flex;flex-direction:column;gap:15px;padding:19px 20px;border:1px solid var(--dashboard-border);border-radius:16px;background:var(--dashboard-panel);box-shadow:0 10px 28px rgba(16,37,51,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.user-bot-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(16,37,51,.1);border-color:rgba(0,138,254,.35)}
.user-bot-card-trend{position:absolute;top:17px;right:17px;width:21px;height:21px;fill:none;stroke:#16a34a;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.user-bot-card-trend.is-negative{stroke:#dc2626;transform:rotate(90deg)}
html.theme-dark .user-bot-card-trend{stroke:#42d392}
html.theme-dark .user-bot-card-trend.is-negative{stroke:#ff6575}
.user-bot-card-head{display:flex;align-items:center;gap:10px;padding-right:26px}
.user-bot-card-icons{display:flex;flex:none}
.user-bot-card-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:none;border-radius:50%;box-shadow:0 0 0 2px var(--dashboard-panel);background:#eef1f5}
.user-bot-card-icons .user-bot-card-icon + .user-bot-card-icon{margin-left:-12px}
.user-bot-card-icon img{position:absolute;inset:0;width:36px;height:36px}
.user-bot-icon-fallback{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#e7ebf0;color:var(--dashboard-muted);font-size:9px;font-weight:800}
html.theme-dark .user-bot-icon-fallback{background:#2a2a2a;color:#a7a7a7}
.user-bot-card-icon.more{background:var(--dashboard-blue);color:#fff;font-size:9px;font-weight:800}
.user-bot-card-title{flex:1;min-width:0}
.user-bot-title-link{display:block;max-width:100%;color:inherit;text-decoration:none;cursor:pointer;background:none;border:0;padding:0;margin:0;text-align:left;font:inherit}
.user-bot-card-title strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.25;color:var(--dashboard-text);font-size:15px;font-weight:800;letter-spacing:-.015em;transition:color .18s ease}
.user-bot-title-link:hover strong,.user-bot-card-title strong:hover{color:var(--dashboard-blue)}
.user-bot-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.user-bot-chip{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;background:#eef2f7;color:#5b6b7a;font-size:9.5px;font-weight:800;letter-spacing:.02em;white-space:nowrap}
html.theme-dark .user-bot-chip{background:#2a2a2a;color:#b0b0b0}
.user-bot-chip-leverage{background:rgba(245,158,11,.12);color:#d97706;border:1px solid rgba(245,158,11,.3);font-family:'JetBrains Mono','Courier New',monospace;font-weight:800;letter-spacing:.04em}
html.theme-dark .user-bot-chip-leverage{background:rgba(251,191,36,.14);color:#fbbf24;border-color:rgba(251,191,36,.3)}
.hero-bot-badge-leverage{background:rgba(245,158,11,.15) !important;color:#f59e0b !important;border:1px solid rgba(245,158,11,.35) !important;font-weight:800;font-family:'JetBrains Mono','Courier New',monospace}
.bot-trade-leverage{display:inline-flex;align-items:center;padding:2px 6px;border-radius:5px;background:rgba(245,158,11,.12);color:#d97706;font-size:9.5px;font-weight:800;font-family:'JetBrains Mono','Courier New',monospace;margin-left:5px}
html.theme-dark .bot-trade-leverage{background:rgba(251,191,36,.14);color:#fbbf24}

.user-bot-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto}
.user-bot-details,.user-bot-copy{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:40px;padding:8px 12px;border-radius:10px;font-size:12px;font-weight:800;cursor:pointer;text-decoration:none;transition:all .2s ease}
.user-bot-details svg,.user-bot-copy svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;transition:transform .22s cubic-bezier(.34,1.56,.64,1)}
.user-bot-details{border:1px solid var(--dashboard-border);background:var(--dashboard-bg);color:var(--dashboard-muted)}
.user-bot-details:hover{border-color:var(--dashboard-blue);background:rgba(0,138,254,.08);color:var(--dashboard-blue);transform:translateY(-1px)}

.user-bot-copy{
  position:relative;
  overflow:hidden;
  border:0;
  background:linear-gradient(135deg,#008afe 0%,#006ed4 100%);
  color:#fff;
  box-shadow:0 4px 12px rgba(0,138,254,.18);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.user-bot-copy::before{
  content:'';
  position:absolute;
  top:-50%;
  left:0;
  width:50%;
  height:200%;
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.2) 50%,transparent 100%);
  transform:translate3d(-150%,0,0) rotate(25deg);
  pointer-events:none;
  opacity:0;
}
.user-bot-copy:hover:not(:disabled):not(.is-copied){
  transform:translateY(-1.5px);
  background:linear-gradient(135deg,#0e91ff 0%,#0078dc 100%);
  box-shadow:0 6px 18px rgba(0,138,254,.3);
}
.user-bot-copy:hover:not(:disabled):not(.is-copied)::before{
  opacity:1;
  animation:ub-copy-shine .65s ease forwards;
}
.user-bot-copy:hover:not(:disabled):not(.is-copied) svg{
  transform:scale(1.08) rotate(-4deg);
}
.user-bot-copy:active:not(:disabled):not(.is-copied){
  transform:translateY(0) scale(.98);
  box-shadow:0 3px 8px rgba(0,138,254,.2);
}

@keyframes ub-copy-shine{
  0%{transform:translate3d(-150%,0,0) rotate(25deg);opacity:0}
  20%{opacity:1}
  100%{transform:translate3d(350%,0,0) rotate(25deg);opacity:0}
}

.user-bot-copy.is-copied,.user-bot-copy:disabled{background:var(--dashboard-border);color:var(--dashboard-muted);cursor:default;box-shadow:none;transform:none}
html.theme-dark .user-bot-copy{background:linear-gradient(135deg,#008afe 0%,#005eb8 100%);box-shadow:0 4px 14px rgba(0,138,254,.22)}
html.theme-dark .user-bot-copy:hover:not(:disabled):not(.is-copied){background:linear-gradient(135deg,#1aa0ff 0%,#006ece 100%);box-shadow:0 6px 20px rgba(0,138,254,.35)}
html.theme-dark .user-bot-copy.is-copied{background:#2a2a2a;color:#a7a7a7}
html.theme-dark .user-bot-details{background:#262626;color:#b8b8b8}

.user-bot-stop{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  min-height:40px;
  padding:8px 12px;
  border-radius:10px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  border:1px solid rgba(239,68,68,.3);
  background:rgba(239,68,68,.08);
  color:#ef4444;
  transition:all .2s ease;
}
.user-bot-stop svg{
  width:12px;
  height:12px;
  fill:currentColor;
  flex:none;
  transition:transform .2s ease;
}
.user-bot-stop:hover:not(:disabled){
  background:#ef4444;
  color:#fff;
  border-color:#ef4444;
  box-shadow:0 4px 14px rgba(239,68,68,.3);
  transform:translateY(-1px);
}
.user-bot-stop:hover:not(:disabled) svg{
  transform:scale(1.1);
}
.user-bot-stop:active:not(:disabled){
  transform:translateY(0);
}
.user-bot-stop:disabled{
  opacity:.6;
  cursor:wait;
}
html.theme-dark .user-bot-stop{
  background:rgba(248,113,113,.12);
  border-color:rgba(248,113,113,.28);
  color:#f87171;
}
html.theme-dark .user-bot-stop:hover:not(:disabled){
  background:#ef4444;
  color:#fff;
  border-color:#ef4444;
  box-shadow:0 4px 16px rgba(239,68,68,.4);
}

.bots-hero-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;margin:0 0 38px;padding-bottom:20px;border-bottom:1px solid var(--dashboard-border)}
.bots-hero-bar .bots-page-note{margin:0;max-width:580px;font-size:13.5px}

.bots-section{margin-bottom:56px}
.bots-section:last-of-type{margin-bottom:32px}
.bots-section-header{display:flex;flex-direction:column;gap:6px;margin-bottom:20px}
.bots-section-header.has-toolbar{flex-direction:row;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:16px}
.bots-section-title-wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bots-section-title{margin:0;color:var(--dashboard-text);font-size:21px;font-weight:800;letter-spacing:-.025em;line-height:1.25}
.bots-section-desc{margin:0;color:var(--dashboard-muted);font-size:13px;line-height:1.55;max-width:680px}

.bots-section-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;line-height:1}
.bots-section-badge svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.bots-section-badge.is-popular{background:rgba(234,88,12,.12);color:#ea580c}
html.theme-dark .bots-section-badge.is-popular{background:rgba(251,146,60,.16);color:#fb923c}
.bots-section-badge.is-profit{background:rgba(22,163,74,.12);color:#16a34a}
html.theme-dark .bots-section-badge.is-profit{background:rgba(66,211,146,.15);color:#42d392}
.bots-section-badge.is-efficiency{background:rgba(0,138,254,.12);color:var(--dashboard-blue)}
html.theme-dark .bots-section-badge.is-efficiency{background:rgba(0,138,254,.18);color:#38bdf8}
.bots-section-badge.is-catalog{background:rgba(147,51,234,.12);color:#9333ea}
html.theme-dark .bots-section-badge.is-catalog{background:rgba(192,132,252,.18);color:#c084fc}

.bots-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 18px}
.bots-timeframe-wrap{display:flex;align-items:center;gap:10px}
.bots-timeframe-label{color:var(--dashboard-muted);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.bots-timeframe-pills{display:inline-flex;align-items:center;background:var(--dashboard-panel);border:1px solid var(--dashboard-border);border-radius:10px;padding:3px;gap:2px}
.bots-timeframe-btn{border:0;background:transparent;color:var(--dashboard-muted);font-family:inherit;font-size:12px;font-weight:700;padding:6px 13px;border-radius:7px;cursor:pointer;transition:all .18s ease;line-height:1.2}
.bots-timeframe-btn:hover{color:var(--dashboard-text);background:rgba(0,138,254,.1)}
.bots-timeframe-btn.is-active{background:var(--dashboard-blue);color:#fff;font-weight:800;box-shadow:0 2px 8px rgba(0,138,254,.32)}
.bots-sort-container{display:flex;align-items:center;gap:10px}
.bots-sort-label{color:var(--dashboard-muted);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.bots-sort-wrap{position:relative}
.bots-sort-wrap select{appearance:none;-webkit-appearance:none;padding:9px 34px 9px 12px;border:1px solid var(--dashboard-border);border-radius:9px;background:var(--dashboard-panel);color:var(--dashboard-text);font-family:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:border-color .18s ease}
.bots-sort-wrap select:hover,.bots-sort-wrap select:focus{outline:none;border-color:var(--dashboard-blue)}
.bots-sort-chevron{position:absolute;top:50%;right:10px;width:14px;height:14px;transform:translateY(-50%);fill:none;stroke:var(--dashboard-muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
@media(max-width:768px){
  .bots-hero-bar{flex-direction:column;align-items:stretch;gap:14px;margin-bottom:28px}
  .bots-toolbar{align-items:stretch}
  .bots-timeframe-wrap{justify-content:space-between;width:100%}
  .bots-timeframe-pills{flex:1;display:grid;grid-template-columns:repeat(4,1fr);text-align:center}
  .bots-timeframe-btn{padding:7px 2px;font-size:11px;text-align:center}
  .bots-section{margin-bottom:44px}
  .bots-section-header.has-toolbar{flex-direction:column;align-items:stretch;gap:12px}
  .bots-sort-container{justify-content:space-between;width:100%}
  .bots-sort-wrap{flex:1;max-width:260px}
  .bots-sort-wrap select{width:100%}
}

.user-bot-card-roi{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:2px}
.user-bot-card-roi strong{display:inline-block;color:var(--dashboard-text);font-size:26px;font-weight:800;letter-spacing:-.03em;line-height:1}
.user-bot-card-roi strong small{font-size:13px;font-weight:700;margin-left:5px;opacity:.9}
.user-bot-card-roi strong.is-positive{color:#16a34a}
.user-bot-card-roi strong.is-negative{color:#dc2626}
html.theme-dark .user-bot-card-roi strong.is-positive{color:#42d392}
html.theme-dark .user-bot-card-roi strong.is-negative{color:#ff6575}

/* Dashboard "Active Bots": el importe y el ROI se apilan en dos lineas y el
   texto es mas compacto, para que "+0.60 USDT" nunca se parta en dos lineas.
   Acotado a .user-bot-card-pnl para no afectar las cards de la landing. */
.user-bot-card-roi .user-bot-card-pnl strong{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  font-size:20px;
  line-height:1.15;
  letter-spacing:-.02em;
}
.user-bot-card-roi .user-bot-pnl-amount{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}
.user-bot-card-roi .user-bot-pnl-amount small{font-size:11px;font-weight:700;margin-left:0;opacity:.9}
.user-bot-card-roi .user-bot-pnl-roi{font-size:12px;font-weight:700;letter-spacing:-.01em;opacity:.9}
.user-bot-card-label{display:inline-block;color:var(--dashboard-muted);font-size:9.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.user-bot-card-spark{display:block;width:100%;height:56px;margin:2px 0 -2px;overflow:visible;flex:none}
.user-bot-card-spark .spark-area{stroke:none;fill:url(#ub-spark-pos)}
.user-bot-card-spark.is-negative .spark-area{fill:url(#ub-spark-neg)}
.user-bot-card-spark .spark-line{stroke:#16a34a;filter:drop-shadow(0 1px 3px rgba(22,163,74,.3))}
.user-bot-card-spark.is-negative .spark-line{stroke:#dc2626;filter:drop-shadow(0 1px 3px rgba(220,38,38,.3))}
html.theme-dark .user-bot-card-spark .spark-line{stroke:#3ce3a4;filter:drop-shadow(0 0 6px rgba(60,227,164,.55))}
html.theme-dark .user-bot-card-spark.is-negative .spark-line{stroke:#ff6575;filter:drop-shadow(0 0 6px rgba(255,101,117,.55))}
#ub-spark-pos stop:first-child{stop-color:#16a34a;stop-opacity:.28}
#ub-spark-neg stop:first-child{stop-color:#dc2626;stop-opacity:.28}
html.theme-dark #ub-spark-pos stop:first-child{stop-color:#3ce3a4;stop-opacity:.32}
html.theme-dark #ub-spark-neg stop:first-child{stop-color:#ff6575;stop-opacity:.32}
#ub-spark-pos stop:last-child,#ub-spark-neg stop:last-child{stop-opacity:0}
.ub-spark-defs{position:absolute;width:0;height:0;overflow:hidden}
.user-bot-spark-tooltip{
  position:fixed;
  z-index:90;
  transform:translate(-50%,-100%);
  margin-top:-10px;
  padding:8px 12px 7px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:rgba(15,23,42,.97);
  color:#fff;
  font-family:inherit;
  text-align:center;
  pointer-events:none;
  white-space:nowrap;
  box-shadow:0 12px 30px rgba(0,0,0,.35),0 0 0 1px rgba(0,138,254,.15);
}
.user-bot-spark-tooltip[hidden]{display:none}
.user-bot-spark-tooltip .ub-tip-roi{
  display:block;
  font-size:16px;
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.15;
  font-family:'JetBrains Mono','Courier New',monospace;
}
.user-bot-spark-tooltip .ub-tip-roi.is-positive{
  color:#22c55e;
  text-shadow:0 0 14px rgba(34,197,94,.4);
}
.user-bot-spark-tooltip .ub-tip-roi.is-negative{
  color:#ef4444;
  text-shadow:0 0 14px rgba(239,68,68,.4);
}
.user-bot-spark-tooltip .ub-tip-date{
  display:block;
  margin-top:3px;
  font-size:10px;
  font-weight:600;
  letter-spacing:.02em;
  color:#94a3b8;
  opacity:.9;
}
html.theme-dark .user-bot-spark-tooltip{
  background:rgba(18,24,38,.94);
  border-color:rgba(255,255,255,.12);
  box-shadow:0 14px 34px rgba(0,0,0,.6),0 0 0 1px rgba(0,138,254,.25);
}

.user-bot-card-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-top:1px solid var(--dashboard-border);padding-top:13px}
.user-bot-card-stats span{display:block;color:var(--dashboard-muted);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.user-bot-card-stats b{display:block;margin-top:4px;color:var(--dashboard-text);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Copy modal — mirrors the deposit modal pattern. */
.bot-copy-backdrop{position:fixed;z-index:80;inset:0;display:grid;place-items:center;padding:20px;background:rgba(16,25,35,.52);backdrop-filter:blur(4px)}
.bot-copy-backdrop[hidden]{display:none}
.bot-copy-modal{position:relative;width:min(100%,460px);max-height:92vh;overflow-y:auto;padding:26px 24px;border-radius:16px;background:var(--dashboard-panel);box-shadow:0 30px 80px rgba(16,37,51,.3)}
.bot-copy-close{position:absolute;top:14px;right:14px;width:30px;height:30px;border:1px solid var(--dashboard-border);border-radius:8px;background:transparent;color:var(--dashboard-muted);font-size:15px;line-height:1;cursor:pointer}
.bot-copy-close:hover{color:var(--dashboard-text);border-color:var(--dashboard-blue)}
.bot-copy-head{display:flex;align-items:center;gap:12px;padding-right:30px}
.bot-copy-head strong{display:block;color:var(--dashboard-text);font-size:17px;letter-spacing:-.02em}
.bot-copy-head small{display:block;margin-top:3px;color:var(--dashboard-muted);font-size:11px;font-weight:700}
.bot-copy-head small i{font-style:normal;color:var(--dashboard-border);margin:0 4px}
html.theme-dark .bot-copy-head small i{color:#4a4a4a}
.bot-copy-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 0}
.bot-copy-facts div{padding:11px 13px;border:1px solid var(--dashboard-border);border-radius:10px}
.bot-copy-facts dt{display:flex;align-items:center;gap:5px;color:var(--dashboard-muted);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.bot-copy-fact-icon{flex:none;width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bot-copy-facts dd{margin:4px 0 0;color:var(--dashboard-text);font-size:13px;font-weight:700}
.bot-copy-facts dd.is-positive{color:#16a34a}
.bot-copy-facts dd.is-negative{color:#dc2626}
html.theme-dark .bot-copy-facts dd.is-positive{color:#42d392}
html.theme-dark .bot-copy-facts dd.is-negative{color:#ff6575}
.bot-copy-amount{display:grid;gap:7px;margin-top:18px}
.bot-copy-amount label{color:var(--dashboard-text);font-size:11px;font-weight:800}
.bot-copy-amount-row{display:flex;gap:8px}
.bot-copy-amount input{flex:1;min-height:42px;padding:10px 12px;border:1px solid var(--dashboard-border);border-radius:9px;background:var(--dashboard-bg);color:var(--dashboard-text);font:inherit;outline:none}
.bot-copy-amount input:focus{border-color:var(--dashboard-blue);box-shadow:0 0 0 3px rgba(0,138,254,.14)}
html.theme-dark .bot-copy-amount input{background:#1c1c1c;border-color:#3f3f3f}
.bot-copy-max{padding:0 14px;border:1px solid var(--dashboard-border);border-radius:9px;background:transparent;color:var(--dashboard-blue);font-size:11px;font-weight:800;cursor:pointer}
.bot-copy-max:hover{border-color:var(--dashboard-blue);background:rgba(0,138,254,.08)}
.bot-copy-balance{color:var(--dashboard-muted);font-size:11px}
.bot-copy-balance b{color:var(--dashboard-text)}
.bot-copy-status{display:block;min-height:18px;margin:8px 0;color:var(--dashboard-muted);font-size:11px;line-height:1.5}
.bot-copy-status.is-error{color:#dc2626}
html.theme-dark .bot-copy-status.is-error{color:#ff9da8}
.bot-toast{position:fixed;top:20px;right:20px;z-index:95;max-width:min(92vw,420px);padding:12px 18px;border:1px solid rgba(220,38,38,.45);border-radius:10px;background:var(--dashboard-panel);color:#dc2626;font-size:12px;font-weight:700;line-height:1.5;box-shadow:0 14px 34px rgba(16,37,51,.25);opacity:0;pointer-events:none;transform:translateY(-12px);transition:opacity .25s ease,transform .25s ease}
html.theme-dark .bot-toast{border-color:rgba(255,101,117,.45);color:#ff9da8;box-shadow:0 14px 34px rgba(0,0,0,.5)}
.bot-toast.is-visible{opacity:1;transform:translateY(0)}
.bot-copy-confirm{width:100%;min-height:44px;border:0;border-radius:10px;background:var(--dashboard-blue);color:#fff;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(0,138,254,.25)}
.bot-copy-confirm:hover{background:#1593ff}
.bot-copy-confirm:disabled{cursor:wait;opacity:.65}

/* Multi-step copy modal */
.bot-copy-pane[hidden]{display:none !important}
.bot-copy-step-kicker{display:inline-block;color:var(--dashboard-blue);font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px}
.bot-copy-step-title{margin:0 0 4px;color:var(--dashboard-text);font-size:18px;font-weight:800;letter-spacing:-.02em}
.bot-copy-step-desc{margin:0 0 16px;color:var(--dashboard-muted);font-size:12px;line-height:1.5}
.bot-copy-review-box{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--dashboard-border);border-radius:12px;background:var(--dashboard-bg);margin-bottom:12px}
html.theme-dark .bot-copy-review-box{background:#181818;border-color:rgba(255,255,255,.08)}
.bot-copy-review-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
.bot-copy-review-row.is-highlight{padding:8px 0;border-top:1px dashed var(--dashboard-border);border-bottom:1px dashed var(--dashboard-border)}
.bot-copy-review-label{color:var(--dashboard-muted);font-weight:700}
.bot-copy-review-bot{display:flex;align-items:center;gap:8px}
.bot-copy-review-bot strong{color:var(--dashboard-text);font-size:13px}
.bot-copy-review-amount{color:var(--dashboard-blue);font-size:15px;font-weight:800}
.bot-copy-review-val{color:var(--dashboard-text);font-size:12.5px}
.bot-copy-review-val b{font-weight:800}
.bot-copy-notice{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:9px;background:rgba(0,138,254,.08);border:1px solid rgba(0,138,254,.2);color:var(--dashboard-text);font-size:11.5px;line-height:1.4;margin-bottom:10px}
.bot-copy-notice svg{flex:none;width:15px;height:15px;color:var(--dashboard-blue);fill:none;stroke:currentColor;stroke-width:2}
.bot-copy-btn-row{display:flex;gap:10px;margin-top:12px}
.bot-copy-btn-back{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid var(--dashboard-border);border-radius:10px;background:transparent;color:var(--dashboard-text);font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;transition:all .2s ease}
.bot-copy-btn-back svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.bot-copy-btn-back:hover{background:rgba(0,0,0,.04);border-color:var(--dashboard-text)}
html.theme-dark .bot-copy-btn-back:hover{background:rgba(255,255,255,.06)}
.bot-copy-btn-submit{flex:1;min-height:44px;border:0;border-radius:10px;background:var(--dashboard-blue);color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(0,138,254,.25);transition:all .2s ease}
.bot-copy-btn-submit:hover{background:#1593ff}
.bot-copy-btn-submit:disabled{cursor:wait;opacity:.65}

/* Success View */
.bot-copy-success-pane{text-align:center;padding:8px 4px 4px}
.bot-copy-success-icon-wrap{width:62px;height:62px;margin:4px auto 14px;border-radius:50%;background:rgba(22,163,74,.12);border:2px solid rgba(22,163,74,.35);display:flex;align-items:center;justify-content:center;color:#16a34a}
html.theme-dark .bot-copy-success-icon-wrap{background:rgba(66,211,146,.15);border-color:rgba(66,211,146,.4);color:#42d392}
.bot-copy-success-icon-wrap svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.bot-copy-success-title{font-size:19px;font-weight:800;color:var(--dashboard-text);margin:0 0 6px;letter-spacing:-.02em}
.bot-copy-success-desc{font-size:12.5px;color:var(--dashboard-muted);line-height:1.55;margin:0 auto 16px;max-width:380px}
.bot-copy-success-card{border:1px solid var(--dashboard-border);border-radius:12px;background:var(--dashboard-bg);padding:12px 14px;margin:0 0 18px;display:flex;flex-direction:column;gap:9px;text-align:left}
html.theme-dark .bot-copy-success-card{background:#181818;border-color:rgba(255,255,255,.08)}
.bot-copy-success-actions{display:flex;gap:10px;justify-content:center}
.bot-copy-btn-secondary{flex:1;min-height:44px;padding:0 16px;border:1px solid var(--dashboard-border);border-radius:10px;background:transparent;color:var(--dashboard-text);font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;transition:all .2s ease}
.bot-copy-btn-secondary:hover{background:rgba(0,0,0,.04);border-color:var(--dashboard-text)}
html.theme-dark .bot-copy-btn-secondary:hover{background:rgba(255,255,255,.06)}
.bot-copy-btn-primary{flex:1.4;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 18px;border:0;border-radius:10px;background:var(--dashboard-blue);color:#fff;font:inherit;font-size:12.5px;font-weight:800;text-decoration:none;cursor:pointer;box-shadow:0 10px 24px rgba(0,138,254,.25);transition:all .2s ease}
.bot-copy-btn-primary:hover{background:#1593ff;transform:translateY(-1px)}
.bot-copy-btn-primary svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.bot-copy-btn-primary:hover svg{transform:translateX(3px)}

/* Info-only mode (opened via the Details button): no investment controls. */
.bot-copy-modal.is-info .bot-copy-amount,
.bot-copy-modal.is-info .bot-copy-confirm,
.bot-copy-modal.is-info .bot-copy-status{display:none}

/* Stop Copy Modal */
.stop-copy-pane[hidden]{display:none !important}
.stop-copy-warning-icon{
  width:58px;
  height:58px;
  margin:2px auto 14px;
  border-radius:50%;
  background:rgba(239,68,68,.12);
  border:2px solid rgba(239,68,68,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ef4444;
}
html.theme-dark .stop-copy-warning-icon{
  background:rgba(248,113,113,.16);
  border-color:rgba(248,113,113,.4);
  color:#f87171;
}
.stop-copy-warning-icon svg{
  width:28px;
  height:28px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.stop-copy-title{
  font-size:18.5px;
  font-weight:800;
  color:var(--dashboard-text);
  margin:0 0 6px;
  letter-spacing:-.02em;
  text-align:center;
}
.stop-copy-desc{
  font-size:12.5px;
  color:var(--dashboard-muted);
  line-height:1.55;
  margin:0 auto 16px;
  max-width:390px;
  text-align:center;
}
.stop-copy-btn-confirm{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  border:0;
  border-radius:10px;
  background:#ef4444;
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(239,68,68,.25);
  transition:all .2s ease;
}
.stop-copy-btn-confirm svg{
  width:13px;
  height:13px;
  fill:currentColor;
  flex:none;
}
.stop-copy-btn-confirm:hover:not(:disabled){
  background:#dc2626;
  box-shadow:0 10px 24px rgba(239,68,68,.35);
  transform:translateY(-1px);
}
.stop-copy-btn-confirm:disabled{
  cursor:wait;
  opacity:.65;
}

@media(max-width:600px){
  .bot-copy-backdrop{align-items:stretch;padding:0}
  .bot-copy-modal{width:100%;max-width:none;height:100svh;min-height:100svh;max-height:none;overflow-y:auto;border:0;border-radius:0;padding:calc(26px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom))}
  .bot-copy-facts{grid-template-columns:1fr}
  .bot-copy-confirm{min-height:48px}
}

/* Column progression: 4 cards on desktop, 3 below 1360px, 2 below 1160px, 1 on phones. */
@media(max-width:1360px){.user-bots-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1160px){.user-bots-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.user-bots-grid{grid-template-columns:1fr}.user-bot-card-roi strong{font-size:24px}.user-bot-card-spark{height:52px}}

/* Compact card for the 4-column desktop layout: tighter paddings, smaller
   coins/chart and a 2-line clamped name so long bot names stay readable. */
@media(min-width:1361px){
  .user-bot-card{padding:17px 18px;gap:13px}
  .user-bot-card-icon,.user-bot-card-icon img,.user-bot-icon-fallback{width:34px;height:34px}
  .user-bot-card-head{gap:9px;padding-right:22px}
  .user-bot-card-title strong{font-size:14px}
  .user-bot-card-roi strong{font-size:24px;margin-top:0}
  .user-bot-card-spark{height:52px}
  .user-bot-card-stats b{font-size:11.5px}
}

/* ==========================================================================
   Section 01 / EXPLORE THE BOTS (#bots) - Landing Page Responsive Grid
   - Resolution > 1360px: 8 cards visible (4 cols x 2 rows, full balanced grid)
   - Resolution <= 1360px: 6 cards visible (3 cols x 2 rows, or 2 cols x 3 rows)
   - Mobile (celular) <= 768px: 3 cards visible (1 col x 3 rows)
   ========================================================================== */
@media(min-width:1361px){
  #bots.section-pad{max-width:1400px}
}

/* Default / Desktop (> 1360px): Show 8 cards. Hide 9th card onwards */
#bots .user-bots-grid > .user-bot-card:nth-child(n+9),
#bots .user-bots-grid > .user-bot-card:nth-of-type(n+9){
  display:none !important;
}

/* Resolution <= 1360px: Show 6 cards. Hide 7th and 8th cards */
@media(max-width:1360px){
  #bots .user-bots-grid > .user-bot-card:nth-child(n+7),
  #bots .user-bots-grid > .user-bot-card:nth-of-type(n+7){
    display:none !important;
  }
}

/* Mobile (celular) <= 768px: Show 3 cards. Single column layout */
@media(max-width:768px){
  #bots .user-bots-grid{
    grid-template-columns:1fr;
  }
  #bots .user-bots-grid > .user-bot-card:nth-child(n+4),
  #bots .user-bots-grid > .user-bot-card:nth-of-type(n+4){
    display:none !important;
  }
  #bots .user-bot-card-roi strong{font-size:24px}
  #bots .user-bot-card-spark{height:52px}
}

/* Bots Grid Pagination */
.bots-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:28px;padding-top:22px;border-top:1px solid var(--dashboard-border);flex-wrap:wrap}
.bots-pagination[hidden]{display:none}
.bots-pagination.is-loading{pointer-events:none;opacity:.65}
.bots-pagination-info{color:var(--dashboard-muted);font-size:12.5px;font-weight:600}
.bots-pagination-nav{display:inline-flex;align-items:center;gap:6px}
.bots-page-btn{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 12px;border:1px solid var(--dashboard-border);border-radius:9px;background:var(--dashboard-panel);color:var(--dashboard-text);font-size:12.5px;font-weight:700;font-family:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;text-decoration:none;user-select:none}
.bots-page-btn:hover:not(:disabled):not(.is-active){background:var(--dashboard-bg);border-color:var(--dashboard-blue);color:var(--dashboard-blue)}
.bots-page-btn.is-active{background:var(--dashboard-blue);border-color:var(--dashboard-blue);color:#fff;cursor:default;box-shadow:0 3px 8px rgba(0,138,254,.3)}
.bots-page-btn:disabled{opacity:.4;cursor:not-allowed}
.bots-page-btn.is-ellipsis{border:none;background:transparent;color:var(--dashboard-muted);cursor:default;min-width:24px;padding:0}

/* Skeleton Loading Cards */
@keyframes hat-skeleton-shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.bot-skeleton-bar{display:inline-block;border-radius:6px;background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 37%,#f1f5f9 63%);background-size:400% 100%;animation:hat-skeleton-shimmer 1.4s ease infinite;vertical-align:middle}
.bot-skeleton-circle{display:inline-block;border-radius:50%;background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 37%,#f1f5f9 63%);background-size:400% 100%;animation:hat-skeleton-shimmer 1.4s ease infinite;vertical-align:middle;flex:none}
.bot-skeleton-pill{display:inline-block;border-radius:999px;background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 37%,#f1f5f9 63%);background-size:400% 100%;animation:hat-skeleton-shimmer 1.4s ease infinite;vertical-align:middle}
html.theme-dark .bot-skeleton-bar{background:linear-gradient(90deg,#1e293b 25%,#334155 37%,#1e293b 63%);background-size:400% 100%}
html.theme-dark .bot-skeleton-circle{background:linear-gradient(90deg,#1e293b 25%,#334155 37%,#1e293b 63%);background-size:400% 100%}
html.theme-dark .bot-skeleton-pill{background:linear-gradient(90deg,#1e293b 25%,#334155 37%,#1e293b 63%);background-size:400% 100%}
.bot-skeleton-card{pointer-events:none;border-color:var(--dashboard-border)}

@media(max-width:640px){
  .bots-pagination{flex-direction:column;align-items:center;gap:14px;text-align:center}
  .bots-pagination-nav{flex-wrap:wrap;justify-content:center;width:100%;gap:4px}
  .bots-page-btn{min-width:38px;height:38px;font-size:13px;padding:0 9px}
}

/* My Bots Page Specific Styles */
.my-bots-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 20px}
.my-bots-metric-card{display:flex;flex-direction:column;justify-content:center;padding:18px 20px;border:1px solid var(--dashboard-border);border-radius:14px;background:var(--dashboard-panel);box-shadow:0 4px 18px rgba(16,37,51,.04);transition:transform .18s ease,border-color .18s ease}
.my-bots-metric-card:hover{transform:translateY(-1px);border-color:rgba(0,138,254,.3)}
.my-bots-metric-card span{display:block;color:var(--dashboard-muted);font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.my-bots-metric-card strong{display:block;margin-top:6px;font-size:23px;font-weight:800;color:var(--dashboard-text);letter-spacing:-.02em}
.my-bots-metric-card small{display:block;margin-top:4px;font-size:11.5px;font-weight:700;color:var(--dashboard-muted)}
.my-bots-metric-card strong.is-positive{color:#16a34a}
.my-bots-metric-card strong.is-negative{color:#dc2626}
html.theme-dark .my-bots-metric-card strong.is-positive{color:#42d392}
html.theme-dark .my-bots-metric-card strong.is-negative{color:#ff6575}

.my-bots-search-wrap{position:relative;flex:1;max-width:320px}
.my-bots-search-wrap input{width:100%;height:38px;padding:8px 12px 8px 34px;border:1px solid var(--dashboard-border);border-radius:9px;background:var(--dashboard-panel);color:var(--dashboard-text);font-family:inherit;font-size:12px;font-weight:600;outline:none;transition:border-color .18s ease}
.my-bots-search-wrap input:hover,.my-bots-search-wrap input:focus{border-color:var(--dashboard-blue)}
.my-bots-search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:14px;height:14px;stroke:var(--dashboard-muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}

.my-bot-hash{display:inline-flex;align-items:center;padding:2px 7px;border-radius:6px;background:rgba(0,138,254,.1);color:var(--dashboard-blue);font-family:monospace;font-size:10.5px;font-weight:800;letter-spacing:.04em}
html.theme-dark .my-bot-hash{background:rgba(0,138,254,.18);color:#38bdf8}

.my-bot-status{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:999px;font-size:9.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.my-bot-status.is-active{background:rgba(22,163,74,.12);color:#16a34a}
html.theme-dark .my-bot-status.is-active{background:rgba(66,211,146,.14);color:#42d392}
.my-bot-status.is-stopped{background:rgba(100,116,139,.14);color:#64748b}
html.theme-dark .my-bot-status.is-stopped{background:rgba(148,163,184,.14);color:#94a3b8}
.my-bot-dot{width:6px;height:6px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 2px rgba(22,163,74,.25);animation:my-bot-pulse 1.8s ease infinite}
html.theme-dark .my-bot-dot{background:#42d392;box-shadow:0 0 0 2px rgba(66,211,146,.3)}
.my-bot-status.is-stopped .my-bot-dot{background:#64748b;box-shadow:none;animation:none}
html.theme-dark .my-bot-status.is-stopped .my-bot-dot{background:#94a3b8}
@keyframes my-bot-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.85)}}

.my-bot-empty-box{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:54px 20px;text-align:center;border:1px solid var(--dashboard-border);border-radius:16px;background:var(--dashboard-panel);grid-column:1/-1}
.my-bot-empty-icon{width:56px;height:56px;margin-bottom:14px;stroke:var(--dashboard-muted);fill:none;stroke-width:1.8}
.my-bot-empty-title{font-size:17px;font-weight:800;color:var(--dashboard-text);margin-bottom:6px}
.my-bot-empty-desc{font-size:13px;color:var(--dashboard-muted);max-width:440px;margin-bottom:20px;line-height:1.5}
.my-bot-empty-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:10px;background:linear-gradient(135deg,#008afe 0%,#006ed4 100%);color:#fff;font-size:13px;font-weight:800;text-decoration:none;box-shadow:0 4px 14px rgba(0,138,254,.25);transition:all .18s ease}
.my-bot-empty-btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(0,138,254,.35)}

@media(max-width:840px){
  .my-bots-overview{grid-template-columns:1fr;gap:10px}
  .bots-toolbar{flex-wrap:wrap}
  .my-bots-search-wrap{max-width:100%;width:100%;order:3}
}

