/*
 * F4Pool.com interface overhaul
 * Keeps the original Miningcore DOM/API hooks while replacing the visual system.
 */
:root {
  --f4-bg: #070b12;
  --f4-bg-soft: #0b111c;
  --f4-panel: rgba(16, 24, 38, 0.92);
  --f4-panel-solid: #101826;
  --f4-panel-2: #141f30;
  --f4-border: rgba(148, 163, 184, 0.16);
  --f4-border-strong: rgba(148, 163, 184, 0.28);
  --f4-text: #f8fafc;
  --f4-text-2: #b5c0d0;
  --f4-muted: #718096;
  --f4-orange: #ff8a1f;
  --f4-orange-2: #ffb15c;
  --f4-cyan: #34d7e8;
  --f4-green: #4ade80;
  --f4-red: #fb7185;
  --f4-purple: #a78bfa;
  --f4-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --f4-radius: 18px;
  --f4-sidebar: 272px;
  --f4-header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--f4-bg); }
body.f4-app {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--f4-text);
  background:
    radial-gradient(circle at 15% -5%, rgba(255, 138, 31, 0.14), transparent 31rem),
    radial-gradient(circle at 90% 12%, rgba(52, 215, 232, 0.08), transparent 28rem),
    var(--f4-bg);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}
body.f4-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
}
a { color: inherit; }
a:hover, a:focus { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--f4-orange); color: #090c12; }
.wrapper { min-height: 100vh; overflow: visible; }

/* Shared brand */
.site-brand, .sidebar-brand-link, .pool-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-brand-mark, .sidebar-brand-mark, .pool-mobile-brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 8px 18px rgba(255, 138, 31, .25));
}
.site-brand-wordmark {
  display: flex;
  align-items: baseline;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.055em;
}
.site-brand-wordmark > span { color: var(--f4-orange); }
.site-brand-wordmark small { margin-left: 3px; color: var(--f4-muted); font-size: 11px; font-weight: 700; letter-spacing: 0; }
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--f4-green);
  box-shadow: 0 0 0 5px rgba(74, 222, 128, .11), 0 0 16px rgba(74, 222, 128, .7);
}

/* Public home header */
.main-index { min-height: 100vh; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(7, 11, 18, .78);
  backdrop-filter: blur(18px);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--f4-text-2);
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-nav .site-nav-cta {
  margin-left: 8px;
  padding-inline: 18px;
  color: #0a0d12;
  background: var(--f4-orange);
  box-shadow: 0 10px 28px rgba(255, 138, 31, .22);
}
.site-nav .site-nav-cta:hover { background: var(--f4-orange-2); color: #080b10; transform: translateY(-1px); }

/* Public home */
.idx-page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 72px;
}
.idx-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  align-items: center;
  min-height: 560px;
  padding: 72px clamp(34px, 6vw, 82px);
  overflow: hidden;
  border: 1px solid var(--f4-border);
  border-radius: 30px;
  background:
    linear-gradient(118deg, rgba(255,138,31,.08), transparent 46%),
    linear-gradient(160deg, rgba(20,31,48,.96), rgba(8,13,22,.98));
  box-shadow: var(--f4-shadow);
}
.idx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,.05), transparent 23%, transparent 75%, rgba(255,255,255,.025));
}
.hero-grid-glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 31, .18), rgba(52, 215, 232, .04) 42%, transparent 68%);
  filter: blur(4px);
}
.hero-copy { position: relative; z-index: 2; max-width: 700px; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--f4-orange-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 20px 0 22px;
  color: #fff;
  font-size: clamp(50px, 6.2vw, 84px);
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.065em;
}
.hero-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--f4-orange), #ffd1a3 54%, var(--f4-cyan));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: var(--f4-text-2);
  font-size: 17px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-f4 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn-f4:hover { transform: translateY(-2px); }
.btn-f4-primary { color: #080b10; background: var(--f4-orange); box-shadow: 0 16px 36px rgba(255,138,31,.22); }
.btn-f4-primary:hover { color: #080b10; background: var(--f4-orange-2); }
.btn-f4-secondary { color: #fff; border-color: var(--f4-border-strong); background: rgba(255,255,255,.035); }
.btn-f4-secondary:hover { color: #fff; border-color: rgba(255,138,31,.46); background: rgba(255,138,31,.07); }
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: #91a0b5; font-size: 12px; font-weight: 700; }
.hero-trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust-row i { color: var(--f4-cyan); }
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; min-height: 420px; }
.hero-keycap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: clamp(230px, 24vw, 310px);
  aspect-ratio: 1;
  padding: 38px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50px;
  background: linear-gradient(145deg, #222f43, #0b111b 72%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -18px 32px rgba(0,0,0,.35),
    0 36px 80px rgba(0,0,0,.48),
    0 0 80px rgba(255,138,31,.12);
  transform: rotate(-7deg) perspective(900px) rotateX(7deg) rotateY(-8deg);
}
.hero-keycap::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 38px;
}
.hero-keycap-label { color: #fff; font-size: clamp(90px, 10vw, 140px); font-weight: 900; line-height: .8; letter-spacing: -.09em; }
.hero-keycap-sub { margin-top: 20px; color: var(--f4-orange); font-size: 17px; font-weight: 900; letter-spacing: .38em; }
.hero-signal { position: absolute; right: 32px; bottom: 34px; height: 4px; border-radius: 99px; background: var(--f4-cyan); box-shadow: 0 0 12px rgba(52,215,232,.75); }
.hero-signal-1 { width: 22px; bottom: 34px; }
.hero-signal-2 { width: 34px; bottom: 47px; }
.hero-signal-3 { width: 46px; bottom: 60px; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,138,31,.18); border-radius: 50%; }
.hero-orbit-one { width: 390px; height: 390px; animation: f4-spin 24s linear infinite; }
.hero-orbit-two { width: 310px; height: 310px; border-color: rgba(52,215,232,.16); animation: f4-spin 17s linear infinite reverse; }
.hero-orbit::before { content: ""; position: absolute; top: 12%; left: 10%; width: 8px; height: 8px; border-radius: 50%; background: var(--f4-orange); box-shadow: 0 0 18px rgba(255,138,31,.8); }
@keyframes f4-spin { to { transform: rotate(360deg); } }

.pool-stats-banner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: calc(100% - 76px);
  margin: -44px auto 76px;
  overflow: hidden;
  border: 1px solid var(--f4-border);
  border-radius: 18px;
  background: var(--f4-border);
  box-shadow: 0 18px 46px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}
.pool-stat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  padding: 24px 28px;
  background: rgba(13, 20, 32, .94);
}
.pool-stat-label { color: var(--f4-muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.pool-stat-value { margin-top: 8px; color: #fff; font-size: clamp(21px, 2vw, 30px); font-weight: 900; letter-spacing: -.04em; }
.pool-stat-static .pool-stat-value { color: var(--f4-orange); }

.idx-section { scroll-margin-top: 100px; margin-bottom: 86px; }
.idx-section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.idx-section-title { margin: 7px 0 0; color: #fff; font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -.055em; }
.idx-section-sub { max-width: 720px; margin: 10px 0 0; color: var(--f4-text-2); font-size: 14px; line-height: 1.7; }
.mode-toggle { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--f4-border); border-radius: 13px; background: rgba(255,255,255,.025); }
.mode-btn {
  min-width: 68px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  color: var(--f4-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  transition: .2s ease;
}
.mode-btn:hover { color: #fff; background: rgba(255,255,255,.05); }
.mode-btn.active { color: #080b10; background: var(--f4-orange); box-shadow: 0 8px 22px rgba(255,138,31,.2); }
.pool-coin-grid { display: flex; flex-wrap: wrap; margin-right: -10px; margin-left: -10px; }
.pool-coin-card { display: flex; padding: 10px; animation: f4-card-in .4s ease both; }
@keyframes f4-card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.strategy-card {
  --scheme: var(--f4-orange);
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--f4-border);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(19,29,45,.97), rgba(10,16,27,.98));
  box-shadow: 0 20px 54px rgba(0,0,0,.22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.strategy-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--scheme), transparent 82%); }
.strategy-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--scheme) 48%, transparent); box-shadow: 0 30px 68px rgba(0,0,0,.35); }
.scheme-prop { --scheme: var(--f4-orange); }
.scheme-solo { --scheme: var(--f4-purple); }
.strategy-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 22px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.strategy-coin { display: flex; align-items: center; min-width: 0; gap: 12px; }
.strategy-coin .coinimg { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.32)); }
.strategy-coin span { display: flex; min-width: 0; flex-direction: column; }
.strategy-coin strong { overflow: hidden; color: #fff; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.strategy-coin small { color: var(--f4-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.strategy-status { display: inline-flex; align-items: center; gap: 7px; color: var(--f4-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.strategy-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.strategy-status.online { color: var(--f4-green); }
.strategy-status.syncing { color: #facc15; }
.strategy-title-row { display: flex; align-items: flex-end; justify-content: space-between; padding: 24px 22px 0; }
.strategy-label { color: var(--f4-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.strategy-title-row h3 { margin: 5px 0 0; color: #fff; font-size: 39px; font-weight: 900; letter-spacing: -.055em; }
.scheme-badge { padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--scheme) 30%, transparent); border-radius: 999px; color: var(--scheme); background: color-mix(in srgb, var(--scheme) 9%, transparent); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.strategy-description { min-height: 58px; margin: 7px 22px 18px; color: var(--f4-text-2); font-size: 12px; line-height: 1.6; }
.strategy-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.065); border-radius: 12px; background: rgba(255,255,255,.065); }
.strategy-metrics > div { min-width: 0; padding: 13px 14px; background: rgba(8,13,22,.72); }
.strategy-metrics span, .strategy-meta small, .share-meter span { display: block; color: var(--f4-muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.strategy-metrics strong { display: block; overflow: hidden; margin-top: 4px; color: #fff; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.share-meter { margin: 19px 22px; }
.share-meter > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.share-meter strong { color: var(--scheme); font-size: 11px; }
.share-meter-track { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.share-meter-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--scheme), color-mix(in srgb, var(--scheme) 38%, #fff)); box-shadow: 0 0 14px color-mix(in srgb, var(--scheme) 55%, transparent); }
.strategy-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 22px 20px; }
.strategy-meta > span { min-width: 0; }
.strategy-meta strong { display: block; overflow: hidden; margin-top: 4px; color: var(--f4-text-2); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.strategy-meta .time-ago { display: inline; padding: 0; border: 0; background: none; box-shadow: none; color: inherit; }
.strategy-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 17px 22px; border-top: 1px solid rgba(255,255,255,.065); color: #fff; background: rgba(255,255,255,.025); font-size: 12px; font-weight: 900; transition: .2s ease; }
.strategy-action i { color: var(--scheme); transition: transform .2s ease; }
.strategy-action:hover { color: #fff; background: color-mix(in srgb, var(--scheme) 8%, transparent); }
.strategy-action:hover i { transform: translateX(4px); }

.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--f4-border); border-radius: 999px; color: var(--f4-text-2); background: rgba(255,255,255,.025); font-size: 11px; font-weight: 800; }
.table-shell { overflow: hidden; border: 1px solid var(--f4-border); border-radius: 18px; background: var(--f4-panel); box-shadow: 0 18px 54px rgba(0,0,0,.2); }
.idx-section--table .table-responsive { margin: 0; }
#serverPingTable { margin: 0; }
#serverPingTable th, #serverPingTable td { border-color: rgba(255,255,255,.055); vertical-align: middle; }
#serverPingTable thead th { padding: 15px 20px; color: var(--f4-muted); background: rgba(255,255,255,.025); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
#serverPingTable tbody td { padding: 18px 20px; color: var(--f4-text-2); }
#serverPingTable tbody tr:hover { background: rgba(255,255,255,.025); }
.rank-badge { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--f4-border); border-radius: 9px; color: var(--f4-text-2); font-weight: 900; }
.rank-badge.rank-best { color: #0a0d12; border-color: var(--f4-orange); background: var(--f4-orange); }
.loading-container { padding: 26px; color: var(--f4-muted); }
.f4-empty-state { width: 100%; padding: 54px 30px; border: 1px dashed var(--f4-border-strong); border-radius: 18px; color: var(--f4-text-2); background: rgba(255,255,255,.025); text-align: center; }
.f4-empty-state i { color: var(--f4-orange); font-size: 28px; }
.f4-empty-state h3 { margin: 14px 0 6px; color: #fff; font-weight: 900; }
.f4-empty-state code { color: var(--f4-cyan); background: rgba(52,215,232,.08); }

/* Shared footer */
.f4-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 38px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--f4-muted);
  font-size: 11px;
}
.f4-footer > div { display: flex; align-items: center; gap: 10px; }
.f4-footer img { width: 28px; height: 28px; }
.f4-footer strong { color: #fff; letter-spacing: -.03em; }
.f4-footer div span { padding-left: 10px; border-left: 1px solid var(--f4-border); }
.f4-footer p { margin: 0; text-align: right; }

/* Pool application shell */
.main-pool { min-height: 100vh; background: transparent; }
.main-sidebar {
  position: fixed;
  z-index: 1040;
  inset: 0 auto 0 0;
  width: var(--f4-sidebar);
  height: 100vh;
  max-height: none;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.075);
  background: linear-gradient(180deg, #0d1420, #090e17);
  box-shadow: 18px 0 60px rgba(0,0,0,.28);
}
.main-sidebar::after { display: none; }
.main-sidebar .sidebar { display: flex; height: 100%; padding: 0; flex-direction: column; }
.sidebar-wrapper { display: flex; min-height: 100%; flex-direction: column; }
.sidebar-brand { padding: 22px 22px 19px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand-copy { display: flex; flex-direction: column; }
.sidebar-brand-copy strong { color: #fff; font-size: 18px; font-weight: 900; letter-spacing: -.05em; }
.sidebar-brand-copy small { color: var(--f4-muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.sidebar-pool-card { display: flex; align-items: center; gap: 12px; margin: 18px 16px 8px; padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.026); }
.sidebar-pool-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.035); }
.sidebar-pool-icon img { width: 28px !important; height: 28px; object-fit: contain; }
.sidebar-pool-card > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.sidebar-pool-card strong { overflow: hidden; color: #fff; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-pool-card small { color: var(--f4-muted); font-size: 9px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0 16px; scrollbar-width: thin; }
.sidebar-menu { margin: 0; padding: 0 12px; }
.sidebar-menu > li { margin: 3px 0; list-style: none; }
.sidebar li a, .sidebar-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 13px;
  border-radius: 10px;
  color: #8491a6;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  transition: .18s ease;
}
.sidebar li a:hover { color: #fff; background: rgba(255,255,255,.045); }
.sidebar li.active > a, .sidebar li.active > a i { color: #090d13; background: var(--f4-orange); box-shadow: 0 10px 22px rgba(255,138,31,.18); }
.sidebar i { float: none; width: 22px; margin: 0 11px 0 0; color: inherit; font-size: 14px; line-height: 1; text-align: center; }
.sidebar-footnote { display: flex; align-items: center; gap: 11px; margin: auto 16px 18px; padding: 13px; border: 1px solid rgba(255,255,255,.065); border-radius: 11px; color: var(--f4-muted); background: rgba(255,255,255,.022); font-size: 9px; font-weight: 700; }

.main-header {
  position: fixed;
  z-index: 1030;
  top: 0;
  right: 0;
  left: var(--f4-sidebar);
  width: auto;
  max-height: none;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(8, 13, 22, .82) !important;
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.main-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--f4-header);
  margin: 0;
  padding: 0 26px;
  border: 0;
  background: transparent;
}
.pool-mobile-brand { display: none; }
.pool-header-context { display: flex; flex-direction: column; }
.pool-header-kicker { color: var(--f4-muted); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.pool-header-context strong { margin-top: 3px; color: #fff; font-size: 18px; font-weight: 900; letter-spacing: -.035em; }
.pool-header-actions { display: flex; align-items: center; gap: 8px; }
.pool-header-home, .main-header .sidebar-toggle {
  display: inline-flex;
  float: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--f4-border);
  border-radius: 10px;
  color: var(--f4-text-2);
  background: rgba(255,255,255,.025);
  font-size: 11px;
  font-weight: 800;
}
.main-header .sidebar-toggle { display: none; width: 40px; padding: 0; }
.pool-header-home:hover, .main-header .sidebar-toggle:hover { color: #fff; border-color: rgba(255,138,31,.34); background: rgba(255,138,31,.06); }

.content-wrapper {
  min-height: 100vh !important;
  margin-left: var(--f4-sidebar);
  padding-top: var(--f4-header);
  padding-bottom: 0;
  background: transparent;
  transition: margin .25s ease;
}
.content-header { padding: 28px 30px 0; }
.content-header > h1 { color: #fff; font-size: 28px; font-weight: 900; letter-spacing: -.05em; }
.content-header > h1 > small { margin-left: 7px; color: var(--f4-orange); font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.content { min-height: 250px; padding: 28px 30px 72px; }
.content.container-fluid { width: 100%; }

/* Legacy cards re-skinned */
.card {
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--f4-border);
  border-radius: var(--f4-radius);
  color: var(--f4-text);
  background: linear-gradient(165deg, rgba(18,27,43,.96), rgba(10,16,26,.98));
  box-shadow: 0 18px 52px rgba(0,0,0,.2);
}
.card:hover { box-shadow: 0 22px 62px rgba(0,0,0,.26); }
.card-header, .card .card-header {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  border-radius: 0;
  color: #fff;
  background: rgba(255,255,255,.018) !important;
  box-shadow: none;
}
.card-header.card-shadow { box-shadow: none; }
.card-title { margin: 0; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.card-category { margin: 5px 0 0; color: var(--f4-muted); font-size: 10px; }
.stamp, .stamp-md { min-width: 30px; width: 30px; height: 30px; margin-right: 9px !important; border-radius: 9px; color: #0a0d12; background: var(--f4-orange); line-height: 30px; }
.card-body { min-height: 0; padding: 20px; color: var(--f4-text-2); }
.card-footer { padding: 15px 20px; border-top: 1px solid rgba(255,255,255,.065); color: #fff; background: rgba(255,255,255,.018); }
.card-footer h3 { font-size: 20px; font-weight: 900; }
.card .card-chart { min-height: 225px; }
.card .ct-chart .ct-grid { stroke: rgba(148,163,184,.12); }
.card .ct-chart .ct-label { color: #718096; fill: #718096; }
.card .ct-chart .ct-series-a .ct-point, .card .ct-chart .ct-series-a .ct-line, .card .ct-chart .ct-series-a .ct-bar, .card .ct-chart .ct-series-a .ct-slice-donut { stroke: var(--f4-orange); }

.info-box {
  display: flex;
  align-items: stretch;
  min-height: 116px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--f4-border);
  border-radius: 15px;
  color: var(--f4-text);
  background: linear-gradient(155deg, rgba(18,27,43,.94), rgba(10,16,26,.98));
  box-shadow: 0 14px 38px rgba(0,0,0,.17);
}
.info-box-icon {
  display: grid;
  flex: 0 0 62px;
  place-items: center;
  width: 62px;
  height: auto;
  border-right: 1px solid rgba(255,255,255,.06);
  border-radius: 0;
  color: var(--f4-orange);
  background: rgba(255,138,31,.055);
  font-size: 20px;
  line-height: normal;
}
.info-box-content { display: flex; min-width: 0; margin: 0; padding: 18px 16px; flex-direction: column; justify-content: center; }
.info-box-text { color: var(--f4-muted); font-size: 9px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.info-box-number { margin-top: 6px; color: #fff; font-size: 17px; font-weight: 900; line-height: 1.25; white-space: normal; }
.info-box-number > div { overflow-wrap: anywhere; }

/* Forms, tabs, buttons */
.form-control, input.form-control, select.form-control, textarea.form-control {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--f4-border-strong);
  border-radius: 10px;
  color: #fff;
  background: rgba(5,9,15,.72);
  box-shadow: none;
}
.form-control::placeholder { color: #59677b; }
.form-control:focus { color: #fff; border-color: rgba(255,138,31,.7); background: rgba(5,9,15,.9); box-shadow: 0 0 0 3px rgba(255,138,31,.1); }
.btn, .btn-info, .btn-primary, .btn-fill, .card-btn {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #0a0d12;
  background: var(--f4-orange);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
  text-transform: none;
}
.btn:hover, .btn:focus, .btn-info:hover, .btn-primary:hover { color: #0a0d12; background: var(--f4-orange-2); box-shadow: 0 10px 24px rgba(255,138,31,.16); }
.btn-danger { color: #fff; background: #e44b62; }
.btn-success { color: #07110b; background: var(--f4-green); }
.tab { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding: 5px; border: 1px solid var(--f4-border); border-radius: 12px; background: rgba(255,255,255,.02); }
.tab .tablinks, .tab .tablinks1, .tablinks, .tablinks1 { min-height: 38px; border: 0; color: var(--f4-muted); background: transparent; }
.tab .tablinks.active, .tab .tablinks1.active, .tablinks.active, .tablinks1.active { color: #0a0d12; background: var(--f4-orange); }
.tabcontent, .tabcontent1 { animation: f4-fade .18s ease; }
@keyframes f4-fade { from { opacity: 0; } to { opacity: 1; } }
.alert { border: 1px solid var(--f4-border); border-radius: 12px; color: var(--f4-text-2); background: var(--f4-panel-2); }
.alert-warning { border-color: rgba(250,204,21,.3); }
.alert-success { border-color: rgba(74,222,128,.3); }
.alert-danger { border-color: rgba(251,113,133,.3); }

/* Tables */
.table-responsive { border-radius: 12px; }
.table { margin-bottom: 0; color: var(--f4-text-2); background: transparent; }
.table > thead > tr > th, .table thead th {
  padding: 13px 14px;
  border-top: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--f4-muted) !important;
  background: rgba(255,255,255,.018);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table > tbody > tr > td, .table tbody td { padding: 14px; border-top: 1px solid rgba(255,255,255,.055); color: var(--f4-text-2); vertical-align: middle; }
.table > tbody > tr:hover { background: rgba(255,255,255,.022); }
.table a { color: var(--f4-cyan); font-weight: 700; }
.table a:hover { color: #8cecf5; }
.badge, .label { border-radius: 999px; font-size: 9px; font-weight: 900; }
.badge-success, .label-success { color: #07110b; background: var(--f4-green); }
.badge-warning, .label-warning { color: #110d03; background: #facc15; }
.badge-danger, .label-danger { color: #fff; background: var(--f4-red); }

/* Connect / FAQ / support pages */
#miner-config pre, pre, code { border: 1px solid rgba(52,215,232,.13); border-radius: 10px; color: #b8f6fc; background: rgba(3,10,15,.72); font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
#miner-config pre, pre { padding: 16px; }
.panel, .panel-default { overflow: hidden; border: 1px solid var(--f4-border); border-radius: 12px; background: var(--f4-panel); box-shadow: none; }
.panel-heading { border-bottom: 1px solid rgba(255,255,255,.065); color: #fff !important; background: rgba(255,255,255,.025) !important; }
.panel-body { color: var(--f4-text-2); background: transparent; }
.page-support .card .content > div { border: 1px solid var(--f4-border) !important; color: var(--f4-text) !important; background: rgba(255,255,255,.02) !important; box-shadow: none !important; }

/* Pool footer */
.f4-footer-pool { width: auto; margin-left: 0; padding: 22px 30px 30px; transition: margin .25s ease; }

/* AdminLTE collapsed state */
body.sidebar-collapse .main-sidebar { transform: translateX(calc(-1 * var(--f4-sidebar))); }
body.sidebar-collapse .main-header { left: 0; }
body.sidebar-collapse .content-wrapper { margin-left: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .idx-hero { grid-template-columns: 1fr .58fr; padding-inline: 42px; }
  .hero-keycap { width: 230px; border-radius: 40px; }
  .pool-stats-banner { width: calc(100% - 32px); }
  .pool-stat-item { padding-inline: 20px; }
}
@media (max-width: 991px) {
  :root { --f4-sidebar: 272px; }
  .idx-hero { grid-template-columns: 1fr; min-height: 0; padding: 54px 34px; }
  .hero-visual { display: none; }
  .pool-stats-banner { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
  .idx-section-header { align-items: flex-start; flex-direction: column; }
  .main-sidebar { transform: translateX(calc(-1 * var(--f4-sidebar))); }
  .main-header { left: 0; }
  .content-wrapper, .f4-footer-pool { margin-left: 0; }
  .main-header .sidebar-toggle { display: inline-flex; }
  body.sidebar-open .main-sidebar { transform: translateX(0); }
  body.sidebar-open::after { content: ""; position: fixed; z-index: 1035; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(2px); }
  body.sidebar-open .main-sidebar { z-index: 1040; }
  .pool-mobile-brand { display: inline-flex; }
  .pool-mobile-brand img { width: 32px; height: 32px; }
  .pool-mobile-brand strong { color: #fff; font-size: 13px; font-weight: 900; }
  .pool-header-context { display: none; }
}
@media (max-width: 767px) {
  .site-header-inner, .idx-page, .f4-footer { width: min(100% - 24px, 1240px); }
  .site-header-inner { height: 66px; }
  .site-brand-mark { width: 36px; height: 36px; }
  .site-brand-wordmark { font-size: 19px; }
  .site-nav > a:not(.site-nav-cta) { display: none; }
  .site-nav .site-nav-cta { margin: 0; padding-inline: 14px; }
  .idx-page { padding-top: 24px; }
  .idx-hero { padding: 42px 22px 46px; border-radius: 22px; }
  .hero-copy h1 { font-size: clamp(42px, 14vw, 62px); }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .btn-f4 { width: 100%; }
  .hero-trust-row { gap: 12px 18px; }
  .pool-stats-banner { width: calc(100% - 16px); margin-bottom: 58px; }
  .pool-stat-item { min-height: 92px; padding: 18px; }
  .pool-stat-value { font-size: 20px; }
  .idx-section { margin-bottom: 62px; }
  .idx-section-title { font-size: 34px; }
  .mode-toggle { width: 100%; overflow-x: auto; }
  .mode-btn { min-width: 70px; flex: 1; }
  .strategy-card-header, .strategy-title-row { padding-inline: 18px; }
  .strategy-description, .strategy-metrics, .share-meter { margin-right: 18px; margin-left: 18px; }
  .strategy-meta { padding-right: 18px; padding-left: 18px; }
  .strategy-action { padding-inline: 18px; }
  .f4-footer { align-items: flex-start; flex-direction: column; }
  .f4-footer p { text-align: left; }
  .f4-footer div span { display: none; }
  .main-header .navbar { padding: 0 14px; }
  .pool-header-home span { display: none; }
  .content-header { padding: 22px 16px 0; }
  .content { padding: 20px 16px 56px; }
  .content-header > h1 { font-size: 24px; }
  .f4-footer-pool { margin-left: 0; padding: 20px 16px 28px; }
  .table-responsive { overflow-x: auto; }
  .table { min-width: 720px; }
  #serverPingTable { min-width: 680px; }
}
@media (max-width: 520px) {
  .pool-stats-banner { grid-template-columns: 1fr 1fr; }
  .pool-stat-label { font-size: 8px; }
  .strategy-metrics { grid-template-columns: 1fr; }
  .strategy-meta { grid-template-columns: 1fr 1fr; }
  .strategy-meta > span:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* F4Pool FAQ payout comparison */
.faq h4 { margin: 26px 0 10px; color: #fff; font-size: 18px; font-weight: 900; letter-spacing: -.025em; }
.faq h4:first-child { margin-top: 0; }
.faq p, .faq li { color: var(--f4-text-2); line-height: 1.75; }
.faq-strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 24px; }
.faq-strategy-grid article { padding: 18px; border: 1px solid var(--f4-border); border-radius: 13px; background: rgba(255,255,255,.025); }
.faq-strategy-grid article > span { color: var(--f4-orange); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.faq-strategy-grid h5 { margin: 8px 0; color: #fff; font-size: 14px; font-weight: 900; }
.faq-strategy-grid p { margin: 0; font-size: 12px; }
@media (max-width: 767px) { .faq-strategy-grid { grid-template-columns: 1fr; } }
