:root {
  --bg: #f4faf0;
  --card: #ffffff;
  --ink: #0f2a12;
  --ink-2: #4b6650;
  --line: #0f2a12;
  --soft: #e6f3df;
  --green: #4caf3a;
  --green-d: #2f7d25;
  --lime: #b8f04c;
  --red: #d2513a;
  --amber: #f2b632;
  --radius: 18px;
  --shadow: 4px 4px 0 var(--ink);
  --display: 'Luckiest Guy', 'Space Grotesk', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--body); }
body {
  min-height: 100vh;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 42, 18, .07) 1px, transparent 0);
  background-size: 22px 22px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); font-size: 13px; }

.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

/* ============ SIDEBAR ============ */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 18px;
  background: var(--card);
  border-right: 2px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 28px; letter-spacing: .5px; }
.logo b { color: var(--green); font-weight: 400; }
.logo .logo-head { width: 50px; height: 45px; flex: none; animation: wobble 4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes wobble { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 92% { transform: rotate(8deg); } }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  border: 2px solid transparent; transition: .15s;
}
.nav a span { width: 22px; text-align: center; }
.nav a em { margin-left: auto; font-style: normal; font-size: 12px; background: var(--soft); padding: 1px 8px; border-radius: 99px; color: var(--green-d); }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a.on { background: var(--lime); color: var(--ink); border-color: var(--line); box-shadow: 3px 3px 0 var(--ink); }

.moon-card { margin-top: auto; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.mc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mc-head b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .5px; }
.sticker { font-size: 11px; font-weight: 700; background: var(--card); border: 2px solid var(--line); padding: 1px 7px; border-radius: 8px; transform: rotate(6deg); }
.moon-track { position: relative; height: 14px; background: var(--card); border: 2px solid var(--line); border-radius: 99px; }
.moon-fill { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--green); border-radius: 99px; transition: width .8s ease; }
.moon-frog { position: absolute; top: 50%; left: 20%; width: 34px; height: 31px; transform: translate(-50%, -62%); transition: left .8s ease; }
.moon-frog svg { width: 100%; height: 100%; }
.moon-end { position: absolute; right: -6px; top: 50%; transform: translateY(-55%); font-size: 20px; }
.mc-foot { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.mc-foot small { color: var(--ink-2); font-weight: 400; font-size: 11px; }

.side-user { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 2px dashed rgba(15, 42, 18, .2); }
.side-user b { display: block; font-size: 14px; }
.side-user small { color: var(--ink-2); font-size: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; border: 2px solid var(--line); }

/* ============ MAIN ============ */
.main { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-family: var(--display); font-weight: 400; font-size: 38px; letter-spacing: .5px; line-height: 1.1; }
.wave { display: inline-block; animation: hop 2.4s ease-in-out infinite; }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-8px) rotate(-8deg); } 90% { transform: translateY(0); } }
.top-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ticker { display: flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--line); border-radius: 99px; padding: 7px 14px 7px 8px; box-shadow: 3px 3px 0 var(--ink); }
.tk-coin { background: var(--green); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 99px; }
.ticker b { font-size: 14px; }
.delta { font-size: 12px; font-weight: 700; font-family: var(--mono); }
.delta.up { color: var(--green-d); }
.delta.down { color: var(--red); }
.status { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 2px solid var(--line); font-weight: 700; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); transition: .2s; }
.status i { width: 10px; height: 10px; border-radius: 50%; }
.status.on { background: var(--lime); }
.status.on i { background: var(--green-d); animation: pulse 1.4s infinite; }
.status.off { background: #fff1d6; }
.status.off i { background: var(--amber); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 125, 37, .6); } 100% { box-shadow: 0 0 0 9px rgba(47, 125, 37, 0); } }

.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 18px; font-weight: 700; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--soft); border: 2px solid var(--line); white-space: nowrap; }

/* HERO */
.hero { display: grid; grid-template-columns: 310px 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #ffffff 0%, #ffffff 55%, #eaf8de 100%); overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--lime); opacity: .35; }
.hero-mascot { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.bubble { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 8px 14px; font-weight: 700; font-size: 14px; margin-bottom: 14px; box-shadow: 3px 3px 0 var(--ink); min-width: 150px; text-align: center; transition: transform .2s; }
.bubble::after { content: ''; position: absolute; bottom: -10px; left: 50%; width: 14px; height: 14px; background: var(--card); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.bubble.pop { transform: scale(1.08) rotate(-2deg); }
.mascot { position: relative; width: 290px; height: 300px; }
.mascot::before { content: ''; position: absolute; left: 50%; top: 52%; width: 230px; height: 230px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(184, 240, 76, .45) 0%, rgba(184, 240, 76, 0) 70%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fx-pop { position: absolute; top: 4%; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--green-d); background: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 1px 8px; white-space: nowrap; animation: rise 1.6s ease-out forwards; }
.fx-pop.big { background: var(--lime); font-size: 15px; }
@keyframes rise { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-70px); } }


.hero-main { position: relative; z-index: 1; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.counter { font-size: clamp(34px, 5vw, 58px); font-weight: 600; line-height: 1.1; margin: 6px 0 4px; color: var(--ink); }
.counter::after { content: ' PEPE'; font-family: var(--display); font-size: .5em; color: var(--green); letter-spacing: .5px; }
.hero-sub { display: flex; gap: 10px; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; max-width: 560px; }
.hero-stats div { background: var(--soft); border-radius: 12px; padding: 10px 12px; border: 2px solid transparent; }
.hero-stats small { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 2px; }
.hero-stats b { font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s, background .2s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary.paused { background: var(--lime); color: var(--ink); }
.btn-ghost { background: var(--card); }
.btn-ghost:disabled { opacity: .55; cursor: not-allowed; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; }
.kpi-top small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kpi-ico { width: 32px; height: 32px; display: grid; place-items: center; background: var(--soft); border-radius: 10px; font-size: 16px; }
.kpi b { font-size: 24px; font-weight: 600; margin-top: 4px; }
.kpi .muted { font-size: 12px; }
.kpi.flash { animation: flash .6s; }
@keyframes flash { 30% { background: var(--lime); } }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1.8fr 1fr; gap: 18px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.legend span { display: flex; align-items: center; gap: 6px; }
.lg-line { width: 16px; height: 3px; background: var(--green); border-radius: 2px; }
.lg-dash { width: 16px; height: 0; border-top: 2px dashed var(--ink-2); }
.chart-wrap { position: relative; height: 240px; }
#chart { width: 100%; height: 100%; display: block; }

.payout { background: var(--soft); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.pay-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pay-top small { font-size: 13px; font-weight: 600; }
.pay-top b { font-size: 20px; color: var(--green-d); }
.bar { height: 16px; background: var(--card); border: 2px solid var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.bar-fill { height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--green) 0 10px, #5fc24b 10px 20px); transition: width .4s; }
.pool-rows { list-style: none; }
.pool-rows li { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px dashed rgba(15, 42, 18, .18); font-size: 14px; }
.pool-rows li:last-child { border-bottom: 0; }
.pool-rows span { color: var(--ink-2); }

/* Rigs */
.rigs { display: flex; flex-direction: column; gap: 10px; }
.rig { display: grid; grid-template-columns: 44px 1.3fr 1fr 1.2fr auto; align-items: center; gap: 14px; padding: 10px 12px; border: 2px solid rgba(15, 42, 18, .14); border-radius: 14px; transition: .2s; }
.rig.on { border-color: var(--line); background: #fbfff8; }
.rig-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; border: 2px solid var(--line); }
.rig-ico svg { width: 40px; height: 30px; }
.rig.off .rig-ico { filter: grayscale(1); opacity: .6; }
.rig-name b { display: block; font-size: 15px; }
.rig-name small { font-size: 12px; color: var(--ink-2); }
.rig-hash b { display: block; font-size: 15px; }
.rig-hash small, .rig-temp small { font-size: 11px; color: var(--ink-2); }
.temp-bar { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-top: 4px; }
.temp-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s, background .4s; }
.rig-temp b { font-size: 13px; }
.switch { width: 50px; height: 28px; border-radius: 99px; background: #d7dfd3; border: 2px solid var(--line); position: relative; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: left .2s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 24px; }

/* Log */
.live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green-d); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }
.log { list-style: none; display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow: auto; }
.log li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed rgba(15, 42, 18, .14); font-size: 13px; animation: slide .35s ease; }
.log li .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font-size: 14px; }
.log li.block .ic { background: var(--lime); }
.log li.warn .ic { background: #fff1d6; }
.log li time { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } }

.foot { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 12px; padding-top: 4px; gap: 10px; flex-wrap: wrap; }

/* Toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.toast { background: var(--card); border: 2px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; animation: tin .3s ease; max-width: 320px; }
.toast.big { background: var(--lime); }
.toast b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .5px; }
@keyframes tin { from { opacity: 0; transform: translateY(12px) scale(.96); } }

.toast-ic { font-size: 22px; }
.chip-lime { background: var(--lime); }
.chip-link:hover { background: var(--lime); }

/* Idioma */
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; background: var(--card); border: 2px solid var(--line); border-radius: 99px; padding: 8px 12px; font-weight: 700; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.lang-btn .caret { font-size: 11px; color: var(--ink-2); }
.lang-menu { list-style: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 2px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 190px; z-index: 40; display: none; }
.lang.open .lang-menu { display: block; animation: tin .15s ease; }
.lang-menu li { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.lang-menu li:hover { background: var(--soft); }
.lang-code { font: 700 11px var(--mono); background: var(--card); border: 2px solid var(--line); border-radius: 6px; padding: 1px 5px; min-width: 30px; text-align: center; }
.lang-menu li.on { background: var(--lime); }

/* Arte das rigs */
.rig-art { display: block; overflow: visible; }
.rig-art .fan { animation: spin 1.1s linear infinite; transform-box: view-box; }
.rig-art .fan.rev { animation-direction: reverse; animation-duration: .9s; }
.rig-art .led { animation: blink 1.2s steps(2) infinite; }
.rig-art .rgb { animation: rgb 3s linear infinite; }
.rig-art .stars { animation: blink 2s steps(2) infinite; }
.rig.off .rig-art .fan, .own.off .rig-art .fan { animation-play-state: paused; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes rgb { 0% { stroke: #b8f04c; } 33% { stroke: #4cf0c9; } 66% { stroke: #f0e04c; } 100% { stroke: #b8f04c; } }

/* ============ PÁGINA RIGS ============ */
.ticker small.muted { font-size: 12px; }
.rig-banner { display: grid; grid-template-columns: 210px 1fr 300px; gap: 24px; align-items: center; padding: 0; overflow: hidden; }
.rb-art { align-self: stretch; min-height: 220px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #d9f7b5 0%, #9fdc72 60%, #6cc04c 100%); border-right: 2px solid var(--line); }
.rb-hopper { width: 190px; height: 197px; }
.rb-text { padding: 22px 0; }
.rb-text h2 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .5px; margin: 10px 0 6px; line-height: 1.1; }
.rb-text p { color: var(--ink-2); font-size: 14px; max-width: 520px; }
.rb-total { display: inline-flex; flex-direction: column; margin-top: 14px; background: var(--soft); border-radius: 12px; padding: 8px 14px; }
.rb-total small { font-size: 12px; color: var(--ink-2); }
.rb-total b { font-size: 20px; }
.rb-ladder { padding: 22px 22px 22px 0; display: flex; flex-direction: column; gap: 4px; }
.rb-ladder b { font-size: 15px; }
.ladder { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin-top: 10px; }
.step { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.step i { width: 100%; height: var(--h); border: 2px solid var(--line); border-radius: 8px 8px 4px 4px; box-shadow: 2px 2px 0 var(--ink); }
.step-val { font-size: 12px; font-weight: 700; }
.step small { font-size: 11px; font-weight: 700; color: var(--ink-2); }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tier { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.tier:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.tier-top { position: relative; background: var(--tbg); border-bottom: 2px solid var(--line); padding: 34px 16px 12px; }
.tier-top::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(15, 42, 18, .12) 1px, transparent 0); background-size: 14px 14px; }
.tier-top .rig-art { position: relative; width: 100%; height: 130px; }
.tier:hover .rig-art .fan { animation-duration: .35s; }
.tier-badge, .bonus-badge { position: absolute; top: 10px; z-index: 1; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; border: 2px solid var(--line); }
.tier-badge { left: 10px; background: #fff; }
.bonus-badge { right: 10px; background: var(--lime); transform: rotate(4deg); }
.tier-pepe svg { width: 100%; height: 100%; }
.tier-pepe { position: absolute; left: 10px; bottom: 8px; width: 52px; height: 47px; animation: float 2.4s ease-in-out infinite; }
.tier-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tier-body h3 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .5px; }
.tier-body > p { font-size: 13px; min-height: 34px; }
.range { align-self: flex-start; font-size: 12px; font-weight: 700; background: var(--soft); border-radius: 8px; padding: 3px 8px; color: var(--green-d); }
.pick-label { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.pick-row { display: flex; gap: 10px; align-items: center; }
.pick-row input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 10px; border-radius: 99px; border: 2px solid var(--line); background: linear-gradient(90deg, var(--tac) var(--p), #fff var(--p)); cursor: pointer; }
.pick-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--ink); }
.pick-row input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--lime); border: 2px solid var(--line); }
.num { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.num input { width: 52px; border: 0; padding: 6px 4px 6px 8px; font: 600 14px var(--mono); color: var(--ink); background: none; outline: none; -moz-appearance: textfield; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; }
.num span { font-size: 10px; font-weight: 700; padding: 0 6px; color: var(--ink-2); }
.tier-stats { list-style: none; margin: 8px 0 4px; }
.tier-stats li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed rgba(15, 42, 18, .16); font-size: 13px; }
.tier-stats li span { color: var(--ink-2); }
.tier-stats em { font-style: normal; color: var(--green-d); font-size: 11px; }
.btn-buy { margin-top: auto; justify-content: center; }
.owned-note { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--soft); border: 2px dashed rgba(15, 42, 18, .25); border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 600; margin: 4px 0 8px; }
.owned-note b { color: var(--green-d); font-size: 13px; }
.pool-rows em.up { font-style: normal; color: var(--green-d); font-size: 12px; margin-left: 4px; }
.btn-buy .mono { font-size: 13px; opacity: .9; }

.owned { display: flex; flex-direction: column; gap: 10px; }
.own { display: grid; grid-template-columns: 76px 1.4fr 1fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 8px 12px 8px 8px; border: 2px solid var(--line); border-radius: 14px; }
.own.off { opacity: .6; border-color: rgba(15, 42, 18, .25); }
.own.new { animation: flash 1.2s 2; }
.own-art { background: var(--tbg); border: 2px solid var(--line); border-radius: 10px; height: 52px; display: grid; place-items: center; }
.own-art .rig-art { width: 64px; height: 46px; }
.own-name b { display: block; font-size: 15px; }
.own-name small, .own-num small { font-size: 11px; color: var(--ink-2); }
.own-num b { display: block; font-size: 14px; }
.own-num small.up { color: var(--green-d); font-weight: 700; }
.empty { padding: 20px; text-align: center; }

.modal { position: fixed; inset: 0; background: rgba(15, 42, 18, .45); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { width: min(420px, 100%); animation: tin .2s ease; }
.modal-card h2 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .5px; }
.m-art { background: var(--soft); border: 2px solid var(--line); border-radius: 14px; margin: 14px 0; padding: 10px; }
.m-art .rig-art { width: 100%; height: 120px; }
.m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ============ RESUMO DE MINERAÇÃO (sidebar) ============ */
.mine-card { margin-top: auto; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, #ffffff 0%, var(--soft) 100%); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; }
.mine-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: var(--lime); opacity: .35; pointer-events: none; }
.mw-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.mw-hop { width: 40px; height: 36px; flex: none; }
.mw-hop svg { width: 100%; height: 100%; }
.mine-card.live .mw-hop { animation: m-nodmini .8s ease-in-out infinite; transform-origin: 50% 90%; }
.mine-card.turbo .mw-hop { animation: m-nodmini .38s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes m-nodmini { 50% { transform: rotate(-6deg) translateY(1px); } }
.mw-title { display: flex; flex-direction: column; gap: 2px; }
.mw-title b { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .5px; line-height: 1; }
.mw-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-d); }
.mw-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }
.mine-card.paused .mw-state { color: #9a6b00; }
.mine-card.paused .mw-state i { background: var(--amber); animation: none; }
.mine-card.turbo .mw-state { color: #c2410c; }
.mine-card.turbo .mw-state i { background: #ff7a1a; }
.mw-bal { position: relative; z-index: 1; display: flex; flex-direction: column; }
.mw-bal small { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.mw-bal b { font-size: 20px; font-weight: 600; letter-spacing: -.5px; line-height: 1.25; }
.mw-usd { font-size: 11px; color: var(--ink-2); }
.mw-pop { position: absolute; right: 0; top: 14px; font: 700 11px var(--mono); color: var(--green-d); background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 0 6px; opacity: 0; }
.mw-pop.go { animation: mwpop 1.4s ease-out; }
@keyframes mwpop { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
.mw-spark { width: 100%; height: 34px; display: block; }
.mw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mw-grid div { background: #fff; border: 1.5px solid rgba(15, 42, 18, .14); border-radius: 10px; padding: 5px 8px; min-width: 0; }
.mw-grid small { display: block; font-size: 10px; color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-grid b { font-size: 12px; white-space: nowrap; }
.mw-link { font-size: 12px; font-weight: 700; color: var(--green-d); text-align: center; padding: 6px; border-radius: 10px; border: 2px dashed rgba(47, 125, 37, .35); }
.mw-link:hover { background: var(--lime); border-color: var(--line); border-style: solid; color: var(--ink); }
.mbar-mine { display: none; }

/* Quantidades de PEPE com 9 casas decimais */
.mw-bal b { font-size: 15px; letter-spacing: -.6px; word-break: break-all; }
.counter { font-size: clamp(28px, 3.6vw, 46px); word-break: break-all; }
#kBalance, #bPepe, #bWd, #sWd { font-size: 18px; letter-spacing: -.4px; word-break: break-all; }
#avail { font-size: 20px; word-break: break-all; }
#heroRate { word-break: break-all; }
.h-row b.mono { word-break: break-all; }
.tx-tools h2 { font-size: 18px; align-self: center; }

/* Sidebar: usuário + sair */
.su-info { min-width: 0; flex: 1; }
.su-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); font-size: 16px; display: grid; place-items: center; flex: none; }
.logout:hover { background: #ffe5df; }
.icon-btn { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.icon-btn span { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; }
.mbar, .scrim { display: none; }

/* ============ CARTEIRA ============ */
.chip-warn { background: #fff4d6; display: inline-flex; gap: 6px; align-items: center; }
.bal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bal { display: flex; gap: 14px; align-items: center; padding: 18px; }
.bal-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--lime); border: 2px solid var(--line); font-size: 24px; font-weight: 700; }
.bal-ic.usdt { background: #26a17b; color: #fff; }
.bal small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bal b { display: block; font-size: 24px; margin: 2px 0; }
.bal .muted { font-size: 12px; }
.bal-grow { flex: 1; }
.bar.sm { height: 12px; margin: 6px 0 0; }
.wallet-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
.grid-2 > *, .wallet-grid > *, .bal-grid > *, .kpis > * { min-width: 0; }
.wd-form .inp input { width: 100%; }
.wd-form { display: flex; flex-direction: column; gap: 16px; }
.fld-row { display: flex; flex-direction: column; gap: 8px; }
.lbl { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.seg.big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg.big button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; font-weight: 700; font-size: 16px; background: #fff; transition: .15s; }
.seg.big button.on { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.coin-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-size: 14px; }
.coin-dot.pepe { background: #d9f7b5; }
.coin-dot.usdt { background: #26a17b; color: #fff; font-weight: 700; }
.nets { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.net { text-align: left; padding: 10px 12px; border: 2px solid rgba(15, 42, 18, .2); border-radius: 12px; background: #fff; transition: .15s; }
.net b { display: block; font-size: 14px; }
.net small { font-size: 12px; color: var(--ink-2); }
.net.on { border-color: var(--line); background: var(--soft); box-shadow: 3px 3px 0 var(--ink); }
.wd-form .inp { display: flex; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 12px; }
.wd-form .inp:focus-within { box-shadow: 3px 3px 0 var(--lime), 0 0 0 1px var(--line); }
.wd-form .inp.bad { border-color: var(--red); }
.wd-form .inp input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: 13px 14px; font: 500 15px var(--mono); color: var(--ink); -moz-appearance: textfield; }
.wd-form .inp input::-webkit-outer-spin-button, .wd-form .inp input::-webkit-inner-spin-button { -webkit-appearance: none; }
.inp .unit { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 0 8px; }
.max-btn { margin: 5px; padding: 7px 12px; border-radius: 9px; background: var(--lime); border: 2px solid var(--line); font-weight: 700; font-size: 12px; }
.err { color: var(--red); font-size: 12px; font-weight: 600; }
.err:empty { display: none; }
.wd-sum { background: var(--soft); border-radius: 14px; padding: 4px 14px; }
.wd-sum li.tot, #mRows li.tot { font-size: 16px; }
.wd-sum li.tot b, #mRows li.tot b { color: var(--green-d); }
.warn-note { font-size: 12px; color: #7a5a06; background: #fff7df; border: 2px dashed #e8c66a; border-radius: 12px; padding: 10px 12px; line-height: 1.45; }
.btn-block { width: 100%; justify-content: center; }
.side-col { display: flex; flex-direction: column; gap: 18px; }
.dep-card { display: flex; flex-direction: column; gap: 14px; }
.dep-hop { width: 150px; height: 156px; margin: 0 auto; }
.addr-full { word-break: break-all; text-align: right; font-size: 12px; max-width: 230px; }
#mRows { margin: 14px 0; }
#mRows li { gap: 14px; }

.hist { display: flex; flex-direction: column; }
.h-row { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr .9fr 1fr; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px dashed rgba(15, 42, 18, .16); font-size: 14px; }
.h-head { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--line); }
.h-type { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.h-type i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--soft); flex: none; }
.h-row b.neg { color: var(--ink); }
.h-row b.pos { color: var(--green-d); }
.h-det { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-date { font-size: 12px; }
.st { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 2px solid var(--line); white-space: nowrap; }
.st.pending { background: #fff1d6; }
.st.processing { background: #dff1ff; }
.st.done { background: var(--lime); }

/* ============ FAUCETPAY + TRANSAÇÕES ============ */
.wallet-grid { grid-template-columns: 1fr 1fr; }
.fp-card .card-head { margin-bottom: 18px; }
.fp-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; padding: 5px 12px 5px 5px; border-radius: 99px; background: #eaf2ff; border: 2px solid var(--line); white-space: nowrap; }
.fp-badge i, .fp-mini i, .fp-btn i { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1f6feb; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: -.5px; border: 2px solid var(--line); }
.fp-mini { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12px; color: var(--ink); }
.fp-mini i { width: 18px; height: 18px; font-size: 8px; border-width: 1.5px; }
.fp-btn { gap: 10px; }
.fp-btn i { background: #fff; color: #1f6feb; }
.seg.big.single { grid-template-columns: 1fr; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { padding: 6px 12px; border-radius: 99px; border: 2px solid rgba(15, 42, 18, .25); background: #fff; font: 600 13px var(--mono); }
.quick button:hover { border-color: var(--line); }
.quick button.on { background: var(--lime); border-color: var(--line); }
.inp .pre { padding-left: 14px; font-weight: 700; color: var(--ink-2); }
.wd-form .inp .pre + input { padding-left: 8px; }
.info-note { font-size: 12px; color: #17406f; background: #eef5ff; border: 2px dashed #9cc0f0; border-radius: 12px; padding: 10px 12px; line-height: 1.45; }
.m-hop { width: 96px; height: 100px; margin: -6px auto 4px; }
.tx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tx-stats > * { min-width: 0; }
.bal-ic.dep { background: #d9f7b5; }
.bal-ic.wd { background: #ffe7c7; }
.tx-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.seg.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 2px solid var(--line); border-radius: 14px; background: var(--soft); }
.seg.tabs button { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.seg.tabs button.on { background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); border: 2px solid var(--line); padding: 6px 12px; }
.inp.search { display: flex; align-items: center; min-width: 240px; background: #fff; border: 2px solid var(--line); border-radius: 12px; }
.inp.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: 10px 12px 10px 6px; font: 500 14px var(--body); color: var(--ink); }
.h-type > span { display: flex; flex-direction: column; min-width: 0; }
.h-type small { font-size: 11px; color: var(--ink-2); font-weight: 500; }
.h-type i.deposit { background: #d9f7b5; }
.h-type i.withdraw { background: #ffe7c7; }
.st.failed { background: #ffd9d2; }
.tx-empty { text-align: center; padding: 34px 10px; }
.tx-empty span { font-size: 40px; display: block; margin-bottom: 6px; }

/* Carteira (só saque PEPE) */
.wallet-grid { grid-template-columns: 1.4fr 1fr; }
.bal-ic.fp { background: #eaf2ff; }
.bal-ic.fp i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #1f6feb; color: #fff; font-size: 11px; font-weight: 800; border: 2px solid var(--line); }
.fp-acc { font-size: 17px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avail-box { display: flex; justify-content: space-between; align-items: center; background: var(--lime); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 3px 3px 0 var(--ink); }
.avail-box small { display: block; font-size: 12px; font-weight: 700; }
.avail-box b { font-size: 24px; }
.coin-dot.big { width: 46px; height: 46px; font-size: 22px; background: #fff; }
.how-card { display: flex; flex-direction: column; gap: 14px; }
.how-hop { width: 150px; height: 156px; margin: 0 auto; }
.how-card h2 { text-align: center; }
.how-list { list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.how-list li { display: flex; gap: 12px; align-items: flex-start; }
.how-list li span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); border: 2px solid var(--line); font-weight: 800; font-size: 13px; }
.how-list p { font-size: 14px; color: var(--ink-2); line-height: 1.45; padding-top: 3px; }

/* Rigs: pagamento pendente na FaucetPay */
.own.waiting { border-style: dashed; background: #f7fbff; }
.wait-st { display: flex; align-items: center; gap: 8px; }
.wait-st small { font-weight: 700; color: #1f6feb !important; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #cfe0fb; border-top-color: #1f6feb; animation: spin .8s linear infinite; flex: none; }
.btn-buy.fp-btn { flex-wrap: wrap; }

/* ============ AFILIADOS ============ */
.af-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center; background: linear-gradient(135deg, #fff 0%, #fff 55%, #eaf8de 100%); overflow: hidden; }
.af-pct { display: inline-block; font-family: var(--display); font-size: 46px; line-height: 1; background: var(--lime); border: 2px solid var(--line); border-radius: 16px; padding: 8px 14px 4px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg); }
.af-copy h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 38px); letter-spacing: .5px; line-height: 1.08; margin: 16px 0 8px; }
.af-copy > p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-bottom: 18px; max-width: 560px; }
.ref-box { display: flex; gap: 10px; margin-top: 8px; }
.ref-box input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: 600 14px var(--mono); color: var(--ink); background: var(--soft); outline: none; }
.ref-box .btn { flex: none; }
.ref-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share a { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; border: 2px solid var(--line); background: #fff; }
.share a:hover { background: var(--lime); }
.af-stage { position: relative; display: grid; place-items: center; min-height: 260px; }
.af-blob { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f0ffd9, var(--lime) 60%, #8fd85a); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--ink); }
.af-hop { position: relative; width: 220px; height: 228px; }
.af-s1 { position: absolute; top: 14px; right: 6%; z-index: 2; font-family: var(--display); font-size: 18px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 5px 12px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(6deg); }
.af-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.af-steps > * { min-width: 0; }
.step-mini { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.step-mini > span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); border: 2px solid var(--line); font-family: var(--display); font-size: 18px; }
.step-mini h3 { font-size: 16px; margin-bottom: 4px; }
.step-mini p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.h-row.af-row { grid-template-columns: 1.4fr .9fr 1fr 1.3fr .8fr; }
.af-row b small { font-size: 11px; font-weight: 500; }

/* Responsivo */
@media (max-width: 1280px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .rig-banner { grid-template-columns: 180px 1fr; }
  .rb-ladder { grid-column: 1 / -1; padding: 0 22px 22px; border-top: 2px dashed rgba(15, 42, 18, .15); padding-top: 16px; }
}
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .wallet-grid { grid-template-columns: 1fr; }
  .bal-grid, .tx-stats { grid-template-columns: 1fr 1fr; }
  .bal-grid .bal:last-child, .tx-stats .bal:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  /* barra superior + gaveta lateral */
  .mbar { display: flex; position: sticky; top: 0; z-index: 60; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
  .mbar .logo { font-size: 24px; }
  .mbar-mine { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 10px; padding: 6px 10px; border-radius: 99px; border: 2px solid var(--line); background: var(--lime); font-size: 13px; min-width: 0; }
  .mbar-mine i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-d); animation: pulse 1.4s infinite; flex: none; }
  .mbar-mine.paused { background: #fff1d6; }
  .mbar-mine.paused i { background: var(--amber); animation: none; }
  .mbar-mine b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; letter-spacing: -.4px; }
  .mbar-mine small { font-size: 10px; font-weight: 700; }
  .mine-card { margin-top: 12px; }
  .mbar .logo .logo-head { width: 42px; height: 38px; }
  .sidebar { position: fixed; z-index: 80; top: 0; left: 0; bottom: 0; width: min(290px, 84vw); height: 100%; overflow-y: auto; transform: translateX(-105%); transition: transform .28s ease; border-right: 2px solid var(--line); box-shadow: 10px 0 40px rgba(15, 42, 18, .18); }
  .drawer-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(15, 42, 18, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .drawer-open .scrim { opacity: 1; pointer-events: auto; }
  .drawer-open { overflow: hidden; }
  .drawer-open #menuBtn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .drawer-open #menuBtn span:nth-child(2) { opacity: 0; }
  .drawer-open #menuBtn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  #menuBtn span { transition: .2s; }
  .main { padding: 18px 16px 28px; gap: 16px; }
  .topbar { align-items: flex-start; }
  .topbar h1 { font-size: 32px; }
  .top-right { width: 100%; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 18px 16px; }
  .hero-mascot { order: -1; }
  .mascot { width: 230px; height: 238px; }
  .hero-sub, .hero-actions { justify-content: center; }
  .hero-stats { margin-left: auto; margin-right: auto; }
  .chart-wrap { height: 200px; }
  .own { grid-template-columns: 70px 1fr 1fr auto; }
  .own .own-num:nth-of-type(5) { display: none; }
  .h-head { display: none; }
  .af-hero { grid-template-columns: 1fr; }
  .af-stage { order: -1; }
  .af-steps { grid-template-columns: 1fr; }
  .h-row.af-row { grid-template-columns: 1fr auto; grid-template-areas: "type st" "rig comm" "date date"; }
  .af-row > :nth-child(1) { grid-area: type; }
  .af-row > :nth-child(2) { grid-area: date; }
  .af-row > :nth-child(3) { grid-area: rig; }
  .af-row > :nth-child(4) { grid-area: comm; text-align: right; }
  .af-row > :nth-child(5) { grid-area: st; text-align: right; }
  .own.waiting .wait-st { grid-column: 2; }
  .h-row { grid-template-columns: 1fr auto; grid-template-areas: "type amt" "det st" "date date"; gap: 6px 12px; padding: 12px 2px; }
  .h-row > :nth-child(1) { grid-area: type; }
  .h-row > :nth-child(2) { grid-area: amt; text-align: right; }
  .h-row > :nth-child(3) { grid-area: det; }
  .h-row > :nth-child(4) { grid-area: st; text-align: right; }
  .h-row > :nth-child(5) { grid-area: date; }
}
@media (max-width: 560px) {
  .topbar h1 { font-size: 28px; }
  .mbar .logo span { display: none; }
  .ticker { padding: 6px 12px 6px 6px; }
  .status { padding: 8px 12px; font-size: 13px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 17px; word-break: break-word; }
  .kpi-ico { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hero-stats div { padding: 8px; }
  .hero-stats b { font-size: 13px; }
  .hero-stats small { font-size: 10px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .card { padding: 16px; }
  .card-head { flex-wrap: wrap; }
  .rig { grid-template-columns: 44px 1fr auto; gap: 8px 12px; }
  .rig-hash, .rig-temp { grid-column: 2; }
  .rig .switch { grid-row: 1; grid-column: 3; }
  .tiers { grid-template-columns: 1fr; }
  .rig-banner { grid-template-columns: 1fr; }
  .rb-art { min-height: 200px; border-right: 0; border-bottom: 2px solid var(--line); }
  .rb-text { padding: 0 18px; }
  .rb-ladder { padding: 16px 18px 20px; }
  .own { grid-template-columns: 60px 1fr auto; gap: 6px 12px; }
  .own .own-num { grid-column: 2; }
  .own .own-num:nth-of-type(5) { display: block; }
  .own .switch { grid-row: 1; grid-column: 3; }
  .own-art .rig-art { width: 52px; height: 40px; }
  .bal-grid, .tx-stats { grid-template-columns: 1fr; }
  .bal b { font-size: 20px; }
  .ref-box { flex-direction: column; }
  .ref-box .btn { justify-content: center; }
  .af-pct { font-size: 36px; }
  .af-stage { min-height: 220px; }
  .af-blob { width: 200px; height: 200px; }
  .af-hop { width: 180px; height: 187px; }
  .tx-tools .seg.tabs, .inp.search { width: 100%; min-width: 0; }
  .seg.tabs button { flex: 1; }
  .top-right .btn-sm { flex: 1; justify-content: center; }
  .seg.big button { font-size: 15px; padding: 10px; }
  .modal-card { padding: 18px; }
  .m-actions .btn { flex: 1; justify-content: center; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
