/* Bear Crypto — sistema visual (preto + dourado, dados em ciano) */
:root {
  --bg: #050505;
  --bg2: #0b0906;
  --panel: rgba(18, 15, 10, 0.78);
  --panel-solid: #120f0a;
  --panel-2: rgba(28, 22, 12, 0.8);
  --line: rgba(255, 180, 0, 0.14);
  --line-2: rgba(255, 180, 0, 0.34);
  --ink: #f5efe3;
  --ink-2: #b9ae9a;
  --muted: #7d7362;
  --gold: #ffb400;
  --gold-2: #ffe391;
  --gold-3: #d98600;
  --cyan: #3cf2ff;
  --up: #36f59a;
  --down: #ff4d6d;
  --warn: #ffb627;
  --binance: #f0b90b;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Orbitron", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.pos, .up { color: var(--up); }
.neg, .down { color: var(--down); }
.gold { color: var(--gold); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(255, 180, 0, 0.14), transparent 60%),
    radial-gradient(800px 600px at 110% 20%, rgba(60, 242, 255, 0.07), transparent 60%),
    linear-gradient(rgba(255, 180, 0, 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 180, 0, 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}

/* ── marca ── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--ink); }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(255, 180, 0, 0.35)); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; }
.brand-name b { color: var(--gold); font-weight: 900; margin-left: 6px; }

/* ── botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 800; font-size: 14.5px; cursor: pointer;
  text-decoration: none !important; white-space: nowrap; transition: transform 0.15s, filter 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn.big { min-height: 54px; padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: #140c00; box-shadow: 0 8px 28px rgba(255, 180, 0, 0.3); }
.btn.gold:hover { filter: brightness(1.08); }
.btn.buy { background: linear-gradient(180deg, #ffd24a, var(--binance)); color: #111; }
.btn.ghost { background: rgba(255, 180, 0, 0.06); border-color: var(--line-2); color: var(--gold); }
.btn.ghost:hover { background: rgba(255, 180, 0, 0.14); }
.btn.dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: var(--ink); }
.btn.tg { background: #229ed9; color: #fff; }
.btn.danger { background: rgba(255, 77, 109, 0.12); border-color: rgba(255, 77, 109, 0.5); color: var(--down); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 180, 0, 0.06); color: var(--gold); cursor: pointer; }

/* ── painéis ── */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0; }
.panel::before, .panel::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; border: 2px solid var(--gold); opacity: 0.5; }
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel h2, .h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); flex: none; }
.dot.live { background: var(--up); box-shadow: 0 0 10px var(--up); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; color: var(--ink-2); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 13.5px; }
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, rgba(255, 180, 0, 0.25), rgba(255, 180, 0, 0.08)); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs button .lock-i { font-size: 11px; margin-left: 4px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; border: 1px solid currentColor; white-space: nowrap; }
.chip.strong { color: var(--up); background: rgba(54, 245, 154, 0.08); }
.chip.buy { color: var(--cyan); background: rgba(60, 242, 255, 0.08); }
.chip.watch { color: var(--warn); background: rgba(255, 182, 39, 0.08); }
.chip.neutral { color: var(--ink-2); background: rgba(185, 174, 154, 0.06); }
.chip.avoid { color: var(--down); background: rgba(255, 77, 109, 0.08); }
.chip.hz { color: #c9a7ff; border-color: rgba(168, 125, 255, 0.55); background: rgba(139, 92, 246, 0.1); }
.chip.plan-free { color: var(--ink-2); }
.chip.plan-vip { color: var(--gold); background: rgba(255, 180, 0, 0.1); }
.chip.plan-pro { color: var(--cyan); background: rgba(60, 242, 255, 0.08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── cards de dica ── */
.pick-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick { position: relative; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, rgba(34, 26, 12, 0.9), rgba(10, 8, 5, 0.95)); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px; min-width: 0; overflow: hidden; }
.pick::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; background: linear-gradient(90deg, var(--gold-3), var(--gold-2), var(--gold)); }
.pick-head { display: flex; align-items: center; gap: 12px; }
.rank { font-family: var(--display); font-weight: 900; font-size: 13px; color: var(--gold); }
.logo { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #1a140b; object-fit: cover; }
.logo.letter { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 12px; color: var(--gold); border: 1px solid var(--line-2); }
.pick-name { min-width: 0; flex: 1; }
.pick-name h3 { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: 0.04em; }
.pick-name small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring { position: relative; width: 56px; height: 56px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 17px; font-weight: 800; }
.ring em { position: absolute; left: 0; right: 0; bottom: -14px; text-align: center; font-style: normal; font-size: 9.5px; color: var(--muted); letter-spacing: 0.08em; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.price-row .price { font-family: var(--mono); font-size: 24px; font-weight: 700; }
.chg { font-family: var(--mono); font-weight: 700; font-size: 13.5px; }
.brl { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.flash-up { animation: flashU 0.9s; }
.flash-down { animation: flashD 0.9s; }
@keyframes flashU { 0% { color: var(--up); text-shadow: 0 0 12px var(--up); } }
@keyframes flashD { 0% { color: var(--down); text-shadow: 0 0 12px var(--down); } }
.spark svg { display: block; width: 100%; height: 60px; }
.plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.plan div { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; min-width: 0; }
.plan label { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.plan b { font-family: var(--mono); font-size: 13.5px; font-weight: 700; display: block; }
.plan b small { font-size: 12px; white-space: nowrap; }
.plan .wide { grid-column: 1 / -1; }
.sizing { font-size: 13px; color: var(--ink-2); background: rgba(240, 185, 11, 0.07); border: 1px dashed rgba(240, 185, 11, 0.35); border-radius: 10px; padding: 8px 10px; }
.sizing b { color: var(--binance); font-family: var(--mono); }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.reasons li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; align-items: start; }
.reasons li::before { font-weight: 800; text-align: center; }
.reasons li.pos::before { content: "✓"; color: var(--up); }
.reasons li.warn::before { content: "!"; color: var(--warn); }
.reasons li.neg::before { content: "✕"; color: var(--down); }
.reasons li.info::before { content: "•"; color: var(--muted); }
.actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.status-tag { font-size: 12.5px; font-family: var(--mono); color: var(--muted); }

/* ── travas (VIP/PRO) ── */
.locked-wrap { position: relative; overflow: hidden; border-radius: 18px; }
.blurred { filter: blur(7px) saturate(0.6); opacity: 0.6; pointer-events: none; user-select: none; }
.lock-over {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px;
  background: radial-gradient(circle at 50% 45%, rgba(10, 8, 5, 0.55), rgba(5, 5, 5, 0.9));
}
.lock-over .lock-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: rgba(255, 180, 0, 0.12); border: 1px solid var(--line-2); box-shadow: 0 0 30px rgba(255, 180, 0, 0.25); }
.lock-over h4 { margin: 0; font-family: var(--display); font-size: 15px; letter-spacing: 0.06em; }
.lock-over p { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 32ch; }
.lock-over .cd { font-family: var(--mono); color: var(--gold); font-size: 13px; }
.fake-line { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); margin: 8px 0; }
.upgrade-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 30; width: min(760px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 16px;
  background: rgba(20, 15, 6, 0.92); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 180, 0, 0.15); backdrop-filter: blur(10px);
}
.upgrade-bar p { margin: 0; flex: 1; font-size: 14px; }
.upgrade-bar .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }

/* ── tabelas ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }
.table-wrap.tall { max-height: 640px; overflow-y: auto; }
.table-wrap.tall thead th { position: sticky; top: 0; z-index: 1; background: var(--panel-solid); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: right; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; user-select: none; }
th.sortable { cursor: pointer; }
th.sortable:hover, th.sorted { color: var(--gold); }
td { text-align: right; padding: 9px 8px; border-bottom: 1px solid rgba(255, 180, 0, 0.07); white-space: nowrap; font-family: var(--mono); font-size: 13px; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: rgba(255, 180, 0, 0.05); }
.coin-cell { display: flex; align-items: center; gap: 8px; font-family: var(--font); }
.coin-cell .logo { width: 22px; height: 22px; font-size: 8px; }
.bar { display: inline-block; vertical-align: middle; width: 46px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); margin-left: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
td .chip { font-size: 10px; padding: 2px 8px; font-family: var(--font); }
td.lockcell { color: var(--gold); font-family: var(--font); font-size: 12px; }

/* ── feed ── */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 4px; border-bottom: 1px solid rgba(255, 180, 0, 0.07); }
.feed .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.ico.news { background: rgba(255, 180, 0, 0.12); color: var(--gold); }
.ico.youtube { background: rgba(255, 60, 60, 0.15); color: #ff5b5b; }
.ico.telegram { background: rgba(42, 171, 238, 0.15); color: #36b6f5; }
.ico.reddit { background: rgba(255, 88, 0, 0.15); color: #ff7a33; }
.ico.x { background: rgba(255, 255, 255, 0.1); color: #fff; }
.feed a { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.35; }
.feed .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 180, 0, 0.12); color: var(--gold-2); border: 0; cursor: pointer; }
.sent { font-weight: 700; font-size: 11.5px; }
.sent.pos::before { content: "▲ "; }
.sent.neg::before { content: "▼ "; }

/* ── tiles ── */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.tile .lbl { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tile .val { font-family: var(--mono); font-size: 20px; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.tile.hl { border-color: var(--line-2); background: linear-gradient(180deg, rgba(255, 180, 0, 0.09), var(--panel)); }

/* ── formulários ── */
.field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 12px; color: var(--ink); min-height: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid rgba(255, 180, 0, 0.45); outline-offset: 1px; }
.form { display: grid; gap: 12px; }
.err { color: var(--down); font-size: 13.5px; min-height: 1em; }

/* ── modal / toast ── */
.modal { width: min(1100px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg2); color: var(--ink); }
.modal::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
.modal-inner { padding: 18px; display: grid; gap: 16px; }
.modal-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.modal-head h3 { margin: 0; font-family: var(--display); font-size: 24px; }
.modal-close { margin-left: auto; }
.rings { display: flex; gap: 22px; padding-bottom: 12px; }
.tv { width: 100%; height: 440px; border: 1px solid var(--line); border-radius: 12px; background: #0b0906; }
.two { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.box h4 { margin: 0 0 10px; font-family: var(--display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kv div { background: rgba(0, 0, 0, 0.3); border-radius: 10px; padding: 8px 10px; }
.kv label { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.kv b { font-family: var(--mono); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; background: var(--panel-solid); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 12px; z-index: 80; transition: all 0.3s; font-size: 14px; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.bad { border-color: rgba(255, 77, 109, 0.6); }

.empty { color: var(--muted); padding: 16px 0; }
.skeleton { min-height: 380px; border-radius: 18px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 180, 0, 0.07), rgba(255, 255, 255, 0.03)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.tape { overflow: hidden; border-block: 1px solid var(--line); background: rgba(10, 8, 5, 0.7); }
.tape-track { display: flex; width: max-content; gap: 28px; padding: 9px 16px; animation: tape 60s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; gap: 8px; align-items: baseline; font-size: 13px; white-space: nowrap; }
@keyframes tape { to { transform: translateX(-50%); } }

.disclaimer { color: var(--muted); font-size: 12.5px; }

@media (max-width: 980px) {
  .pick-grid { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .panel { padding: 14px; }
  .table-wrap { margin: 0 -14px; padding: 0 14px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv { height: 340px; }
  .actions { grid-template-columns: 1fr; }
  .brand-name { font-size: 15px; }
  .upgrade-bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tape { overflow-x: auto; }
}
