* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --yellow: #FFDD00; --dark: #0a0a0f; --card: rgba(12, 12, 20, 0.85);
  --border: rgba(255,255,255,0.12); --text: #f0f0f5; --muted: #b0b0c0;
  --green: #00d26a; --red: #CE1126;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text); line-height: 1.6; overflow-x: hidden; min-height: 100vh;
  background-color: #0a0a0f;
  background-image: url('assets/sky.jpg?v=20261111d');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}
body::before {
  content: ""; position: fixed; inset: 0;
  background: rgba(5, 8, 20, 0.55); z-index: -1; pointer-events: none;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* TICKER */
.ticker-bar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8, 10, 18, 0.95); border-bottom: 1px solid var(--border);
  height: 48px; overflow: hidden; backdrop-filter: blur(8px);
}
.ticker-track {
  display: flex; width: max-content; animation: ticker-scroll 50s linear infinite;
  height: 100%; align-items: center;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 26px;
  font-size: 0.84rem; white-space: nowrap; color: var(--muted);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.ticker-logo {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}
.ticker-item .sym { font-weight: 700; color: var(--text); }
.ticker-item .price { color: var(--text); }
.ticker-item .up { color: var(--green); }
.ticker-item .down { color: #ff6b7a; }

/* NAVBAR */
.navbar {
  position: sticky; top: 48px; z-index: 100;
  background: rgba(8, 10, 18, 0.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 10px 0;
}
.nav-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.logo-img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--yellow); background: #111;
}
.logo small { font-size: 0.7rem; color: var(--yellow); font-weight: 600; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--yellow); }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Language flags box */
.lang-switch {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 3px 5px;
}
.lang-btn {
  background: transparent; border: none; cursor: pointer; padding: 2px;
  border-radius: 6px; line-height: 0; opacity: 0.55; transition: opacity 0.2s, transform 0.15s;
}
.lang-btn:hover { opacity: 0.9; }
.lang-btn.active { opacity: 1; transform: scale(1.08); }
.lang-btn img {
  width: 26px; height: 18px; object-fit: cover; border-radius: 3px;
  display: block; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.06); color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.social-btn:hover { background: rgba(255,221,0,0.15); color: var(--yellow); }
.btn-connect {
  background: linear-gradient(135deg, var(--yellow), #f0c000); color: #111;
  border: none; padding: 9px 18px; border-radius: 11px; font-weight: 700;
  cursor: pointer; font-size: 0.88rem; transition: transform 0.15s, box-shadow 0.15s;
}
.btn-connect:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,221,0,0.35); }
.btn-connect.connected { background: #1a1a28; color: var(--green); border: 1px solid var(--green); }

/* HERO */
.hero { padding: 70px 0 50px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-text h1 {
  font-family: 'Orbitron', sans-serif; font-size: 3rem; font-weight: 700;
  line-height: 1.1; margin-bottom: 10px; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-text h1 span { color: var(--yellow); }
.subtitle {
  font-size: 1.2rem; color: var(--yellow); font-weight: 600; margin-bottom: 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.okx-connect-box { margin-bottom: 22px; max-width: 520px; }
.okx-hint { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.45; }
.okx-link-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.okx-link-row code { color: var(--yellow); font-size: 0.92rem; word-break: break-all; flex: 1; }
.btn-copy-link { background: var(--yellow); color: #111; border: none; border-radius: 10px; padding: 8px 14px; font-weight: 700; cursor: pointer; font-size: 0.85rem; white-space: nowrap; }
.btn-copy-link:hover { filter: brightness(1.05); }
.desc {
  color: rgba(255,255,255,0.85); margin-bottom: 26px; max-width: 460px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-buttons { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--yellow), #f0c000); color: #111;
  padding: 13px 26px; border-radius: 12px; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer; display: inline-block; transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,221,0,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.08); color: var(--text); padding: 13px 26px;
  border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--border);
  backdrop-filter: blur(6px); transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--yellow); background: rgba(255,221,0,0.1); }
.stats-row { display: flex; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 1.35rem; font-weight: 800; color: var(--yellow); text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.hero-coin { position: relative; display: flex; justify-content: center; align-items: center; }
.coin-glow {
  position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,221,0,0.3), transparent 70%);
  border-radius: 50%; filter: blur(18px);
}
.coin-img {
  width: 320px; height: 320px; object-fit: contain; position: relative; z-index: 2;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,0.55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* PROGRESS */
.progress-section {
  padding: 45px 0; background: var(--card); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center;
}
.progress-section h2 { font-size: 1.7rem; margin-bottom: 8px; }
.progress-section p { color: var(--muted); margin-bottom: 24px; }
.progress-bar-container {
  height: 16px; background: rgba(0,0,0,0.35); border-radius: 20px; overflow: hidden;
  max-width: 580px; margin: 0 auto 12px; border: 1px solid var(--border);
}
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--yellow), #ffaa00); border-radius: 20px; transition: width 0.6s ease; }
.progress-info { display: flex; justify-content: space-between; max-width: 580px; margin: 0 auto 18px; font-size: 0.88rem; color: var(--muted); }
.status-badge { display: inline-block; padding: 8px 18px; border-radius: 30px; font-weight: 600; font-size: 0.88rem; }
.status-badge.locked { background: rgba(206,17,38,0.2); color: #ff8a95; border: 1px solid rgba(206,17,38,0.35); }
.status-badge.unlocked { background: rgba(0,210,106,0.15); color: var(--green); border: 1px solid rgba(0,210,106,0.3); }

/* BUY */
.buy-section { padding: 70px 0; }
.buy-section h2, .staking-section h2, .tokens-section h2, .roadmap-section h2 {
  text-align: center; font-size: 1.9rem; margin-bottom: 8px; text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.section-desc { text-align: center; color: rgba(255,255,255,0.8); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.buy-card {
  background: var(--card); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 20px; padding: 30px; max-width: 460px; margin: 0 auto;
}
.token-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.token-icon { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--yellow); object-fit: cover; }
.token-title-wrap { display:flex; align-items:center; flex-wrap:wrap; gap:9px; min-width:0; }
.token-header strong { font-size: 1.1rem; display: block; }
.okx-dex-label { font-size:1.12rem; font-weight:900; letter-spacing:.04em; color:var(--yellow); white-space:nowrap; }
.ca-small { font-size: 0.68rem; color: var(--muted); word-break: break-all; font-family: monospace; margin-top: 2px; }
.price-box { background: rgba(0,0,0,0.3); border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.price-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.93rem; }
.price-row strong { color: var(--yellow); }
.input-group { margin-bottom: 4px; }
.input-group label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.input-group input {
  width: 100%; background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 16px; color: var(--text); font-size: 1rem; outline: none;
}
.input-group input:focus { border-color: var(--yellow); }
.percent-buttons { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:9px; }
.percent-buttons button { background:rgba(255,221,0,.10); color:var(--yellow); border:1px solid rgba(255,221,0,.32); border-radius:8px; padding:8px 4px; font:inherit; font-size:.82rem; font-weight:800; cursor:pointer; }
.percent-buttons button:hover { background:rgba(255,221,0,.22); }
.input-with-btn { position: relative; }
.input-with-btn input { padding-right: 68px; }
.max-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: rgba(255,221,0,0.18); color: var(--yellow); border: none;
  padding: 5px 11px; border-radius: 8px; font-weight: 700; font-size: 0.78rem; cursor: pointer;
}
.receive-box {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,221,0,0.08); border: 1px solid rgba(255,221,0,0.25);
  border-radius: 12px; padding: 14px; margin: 18px 0;
}
.receive-box strong { font-size: 1.15rem; color: var(--yellow); }
.btn-buy {
  width: 100%; padding: 15px; background: linear-gradient(135deg, var(--yellow), #f0c000);
  color: #111; border: none; border-radius: 13px; font-weight: 800; font-size: 1.02rem; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-buy:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,221,0,0.4); }
.btn-buy:disabled { opacity: 0.55; cursor: not-allowed; }
.ca-box {
  margin-top: 16px; background: rgba(0,0,0,0.25); border-radius: 10px; padding: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.8rem;
}
.ca-box span { color: var(--muted); width: 100%; }
.ca-box code { font-family: monospace; font-size: 0.72rem; word-break: break-all; flex: 1; color: var(--text); }
.copy-btn {
  background: rgba(255,221,0,0.12); color: var(--yellow); border: 1px solid rgba(255,221,0,0.3);
  padding: 5px 12px; border-radius: 7px; font-weight: 600; font-size: 0.78rem; cursor: pointer;
}
.disclaimer { margin-top: 14px; font-size: 0.78rem; color: var(--muted); text-align: center; line-height: 1.5; }

/* STAKING */
.staking-section { padding: 70px 0; background: var(--card); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.stake-header { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; }
.stake-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.stake-header h2 { margin: 0; }
.staking-content { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.stake-empty {
  text-align: center; background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px 24px; color: var(--muted);
}
.stake-empty .stake-hint { margin-top: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.stake-card {
  background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 12px;
}
.stake-status {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.3px;
  padding: 6px 12px; border-radius: 999px; width: fit-content;
}
.stake-status.active {
  background: rgba(0,210,106,0.15); color: var(--green); border: 1px solid rgba(0,210,106,0.35);
}
.stake-status.ready {
  background: rgba(255,221,0,0.15); color: var(--yellow); border: 1px solid rgba(255,221,0,0.4);
}
.stake-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.92rem;
}
.stake-row span { color: var(--muted); }
.stake-row code { font-family: monospace; font-size: 0.85rem; color: var(--text); }
.stake-row strong { color: var(--text); }
.stake-row .reward { color: var(--yellow); }
.stake-row .countdown { font-family: 'Orbitron', monospace; font-size: 0.95rem; color: var(--yellow); }
.btn-withdraw {
  width: 100%; margin-top: 6px; padding: 13px; border: none; border-radius: 12px;
  font-weight: 800; font-size: 0.95rem; cursor: pointer;
  background: linear-gradient(135deg, #35d07f, #159957); color: #071b11;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn-withdraw:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(34,197,94,0.32); }
.btn-withdraw.locked, .btn-withdraw:disabled {
  background: rgba(255,255,255,0.08); color: var(--muted); cursor: not-allowed;
  box-shadow: none; transform: none; opacity: 0.85;
}
.stake-note-small { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 4px; line-height: 1.4; }
.coming-soon-card {
  max-width: 420px; margin: 0 auto; text-align: center;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 20px; padding: 48px 30px;
}
.coming-soon-icon { font-size: 3rem; margin-bottom: 12px; }
.coming-soon-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.coming-soon-card p { color: var(--muted); margin-bottom: 8px; }
.coming-soon-card .highlight {
  font-size: 1.3rem; font-weight: 800; color: var(--yellow); margin: 16px 0 24px; letter-spacing: 1px;
}

/* TOKEN */
.tokens-section { padding: 70px 0; }
.token-single {
  max-width: 360px; margin: 0 auto; text-align: center;
  background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid var(--yellow); border-radius: 20px; padding: 36px 24px;
  box-shadow: 0 0 40px rgba(255,221,0,0.1);
}
.token-single img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 3px solid var(--yellow); }
.token-single h3 { font-size: 1.25rem; margin-bottom: 4px; }
.ticker { color: var(--yellow); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.ca { font-size: 0.72rem; color: var(--muted); word-break: break-all; margin-bottom: 18px; font-family: monospace; }
.token-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.token-actions button {
  background: rgba(255,221,0,0.12); color: var(--yellow); border: 1px solid rgba(255,221,0,0.3);
  padding: 9px 20px; border-radius: 9px; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.token-actions button:hover { background: rgba(255,221,0,0.22); }


/* ROADMAP */
.roadmap-section { padding: 70px 0; background: var(--card); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.phase { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 18px; padding: 26px 20px; }
.phase.done { border-color: rgba(0,210,106,0.4); }
.phase.current { border-color: var(--yellow); box-shadow: 0 0 25px rgba(255,221,0,0.12); }
.phase-num {
  width: 34px; height: 34px; background: rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px;
}
.phase.done .phase-num { background: var(--green); color: #111; }
.phase.current .phase-num { background: var(--yellow); color: #111; }
.phase h3 { margin-bottom: 12px; font-size: 1.1rem; }
.phase ul { list-style: none; }
.phase li { padding: 5px 0; font-size: 0.88rem; color: var(--muted); padding-left: 16px; position: relative; }
.phase li::before { content: "•"; position: absolute; left: 0; color: var(--yellow); }

.roadmap-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.roadmap-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  background: #000;
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 1 / 1;
  display: flex;
}
.roadmap-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}
.roadmap-card.current {
  box-shadow: 0 0 28px rgba(255, 221, 0, 0.2), 0 12px 36px rgba(0,0,0,0.45);
}
.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}
@media (max-width: 900px) {
  .roadmap-images {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 20px;
  }
}

/* FOOTER */
footer { padding: 45px 0 28px; border-top: 1px solid var(--border); text-align: center; background: rgba(5,8,15,0.7); }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; font-weight: 700; font-size: 1.05rem; }
.footer-logo img { width: 34px; height: 34px; border-radius: 50%; }
.footer-socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }
.footer-socials a { color: var(--yellow); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.footer-socials a:hover { text-decoration: underline; }
footer p { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.warning { color: #ff8a95 !important; font-size: 0.78rem !important; max-width: 480px; margin: 14px auto 0; }

/* TOAST */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: #1a1a28; color: var(--text); padding: 13px 26px; border-radius: 12px;
  border: 1px solid var(--border); font-weight: 600; z-index: 1000; opacity: 0;
  transition: all 0.3s ease; box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.3rem; }
  .okx-connect-box { margin-bottom: 22px; max-width: 520px; }
.okx-hint { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.45; }
.okx-link-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.okx-link-row code { color: var(--yellow); font-size: 0.92rem; word-break: break-all; flex: 1; }
.btn-copy-link { background: var(--yellow); color: #111; border: none; border-radius: 10px; padding: 8px 14px; font-weight: 700; cursor: pointer; font-size: 0.85rem; white-space: nowrap; }
.btn-copy-link:hover { filter: brightness(1.05); }
.desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .stats-row { justify-content: center; }
  .coin-img { width: 250px; height: 250px; }
  .roadmap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 500px) {
  .hero-text h1 { font-size: 1.85rem; }
  .buy-card { padding: 22px; }
  .nav-right .social-btn { display: none; }
  .lang-btn img { width: 22px; height: 15px; }
}


/* SUPPORT FORM */
.support-section { padding: 70px 0; background: rgba(5,8,15,0.58); border-top: 1px solid var(--border); }
.support-card { max-width: 760px; margin: 30px auto 0; padding: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 55px rgba(0,0,0,0.25); }
.support-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support-card .input-group { margin-bottom: 18px; }
.support-card label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.92rem; }
.support-card input, .support-card select, .support-card textarea { width: 100%; color: var(--text); background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font: inherit; outline: none; }
.support-card select option { background: #10101a; color: var(--text); }
.support-card input:focus, .support-card select:focus, .support-card textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,221,0,0.1); }
.support-card textarea { resize: vertical; min-height: 120px; }
.support-submit { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.support-submit:disabled { opacity: 0.65; cursor: wait; }
.support-status { min-height: 1.5em; margin-top: 12px; font-size: 0.92rem; }
.support-status.success { color: var(--green); }
.support-status.error { color: #ff8a95; }
.support-privacy { color: var(--muted); font-size: 0.78rem; margin-top: 12px; }
.support-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .support-card { padding: 20px; } .support-fields { grid-template-columns: 1fr; gap: 0; } }


/* Connected wallet address */
.wallet-address-row { align-items: flex-start; gap: 12px; }
.wallet-address-row strong { max-width: 68%; text-align: right; overflow-wrap: anywhere; font-family: monospace; font-size: 0.72rem; color: var(--text); }

/* Wallet balance panel inspired by the OKX-DEX-SWAP reference */
.wallet-balances-head { display:flex; align-items:center; gap:8px; margin: 2px 0 8px; color:#9aa8bd; font-size:.72rem; letter-spacing:.04em; }
.refresh-balances { border:1px solid rgba(255,255,255,.12); border-radius:7px; padding:3px 8px; background:rgba(255,255,255,.04); color:#00d4b0; font-size:.7rem; cursor:pointer; }
.refresh-balances:hover { background:rgba(0,212,176,.10); }
.wallet-asset-row { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 2px; border-bottom:1px solid rgba(255,255,255,.10); }
.wallet-asset-row:last-of-type { border-bottom:0; margin-bottom:4px; }
.asset-icon { width:29px; height:29px; display:flex; align-items:center; justify-content:center; border-radius:50%; font-size:1.35rem; font-weight:900; line-height:1; }
.solana-icon { color:#b5a2ff; background:linear-gradient(145deg,#16e2b7,#8d5cff); -webkit-background-clip:text; background-clip:text; }
.usdc-icon { background:#2775ca; color:#fff; font-size:1.05rem; border:1px solid rgba(255,255,255,.22); }
.asset-label,.asset-values { display:flex; flex-direction:column; gap:3px; min-width:0; }
.asset-label strong { font-size:.83rem; color:var(--text); }
.asset-label small,.asset-values small { font-size:.72rem; color:#94a3b8; }
.asset-values { align-items:flex-end; text-align:right; }
.asset-values strong { font-size:.86rem; color:var(--text); overflow-wrap:anywhere; }
.price-box { padding:14px 12px; }
.price-row.wallet-address-row { margin-top:8px; padding-top:10px; border-top:1px solid rgba(255,255,255,.08); }
@media (max-width:500px) {
  .wallet-asset-row { grid-template-columns:28px minmax(0,1fr) auto; gap:8px; }
  .asset-values strong { font-size:.78rem; }
  .asset-values small { font-size:.68rem; }
  .btn-connect { padding:8px 10px; font-size:.78rem; white-space:nowrap; }
}

/* Approximate USD value for the selected SOL purchase amount */
.sol-spend-usd { display:block; margin-top:7px; color:#94a3b8; font-size:.76rem; text-align:right; }
.wallet-address-row strong { font-family:inherit; font-size:.82rem; letter-spacing:.03em; color:#00d4b0; }

/* Connected wallet provider initials plus public address */
.price-row.wallet-address-row strong { max-width: 72%; text-align: right; overflow-wrap: anywhere; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; line-height: 1.45; color: #00d4b0; }

/* ===== NEW SWAP CARD DESIGN ===== */
.swap-card {
  background: rgba(12, 14, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 20px;
  max-width: 420px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.wallet-status-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0, 210, 106, 0.12);
  border: 1px solid rgba(0, 210, 106, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: #00d26a;
}
.wallet-status-bar.disconnected {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #b0b0c0;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00d26a;
  box-shadow: 0 0 8px #00d26a;
}
.wallet-status-bar.disconnected .status-dot { background: #888; box-shadow: none; }
.btn-disconnect {
  width: 100%; background: #8b1e2d; color: #fff; border: none;
  padding: 10px; border-radius: 12px; font-weight: 600; cursor: pointer;
  margin-bottom: 16px; font-size: 0.9rem;
}
.btn-disconnect:hover { background: #a5283a; }

.balances-section { margin-bottom: 14px; }
.balances-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; letter-spacing: 0.5px; color: #888; margin-bottom: 8px;
}
.btn-refresh {
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: #ccc; padding: 3px 10px; border-radius: 8px; font-size: 0.75rem; cursor: pointer;
}
.asset-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.token-logo { width: 36px; height: 36px; border-radius: 50%; }
.asset-info { flex: 1; }
.asset-info strong { display: block; font-size: 0.95rem; }
.asset-info small { color: #888; font-size: 0.75rem; }
.asset-amounts { text-align: right; }
.asset-amounts strong { display: block; font-size: 0.95rem; }
.asset-amounts small { color: #888; font-size: 0.75rem; }

.percent-buttons {
  display: flex; gap: 8px; margin: 12px 0;
}
.percent-buttons button {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #eee; padding: 8px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.85rem;
}
.percent-buttons button:hover { background: rgba(255,255,255,0.12); }

.swap-box {
  background: rgba(18, 24, 36, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px 18px 14px;
  margin: 10px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.swap-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #9aa8b8;
  margin-bottom: 10px;
  font-weight: 500;
}
.token-dropdown {
  position: relative;
  flex-shrink: 0;
}
.token-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
}
.token-select .mini-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: #0b1220;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.token-select.selectable {
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.token-select.selectable:hover,
.token-select.selectable[aria-expanded="true"] {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.token-select .chevron {
  opacity: 0.65;
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.token-select[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}
.token-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: rgba(18, 20, 36, 0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 6px;
  z-index: 50;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
}
.token-menu[hidden] { display: none !important; }
.token-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.12s;
}
.token-option:hover,
.token-option.active {
  background: rgba(255,255,255,0.1);
}
.token-option-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.token-option-text strong {
  font-size: 0.9rem;
  font-weight: 700;
}
.token-option-text small {
  font-size: 0.72rem;
  color: #999;
  font-weight: 500;
}
.token-option .mini-logo {
  width: 28px;
  height: 28px;
}
.mini-logo { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; display: block; }
.swap-input-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.swap-input-row input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.85rem;
  font-weight: 700;
  width: 100%;
  outline: none;
  padding: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.swap-input-row input::-webkit-outer-spin-button,
.swap-input-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.swap-input-row input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.swap-input-row strong {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.swap-input-row small {
  color: #7f8b9a;
  font-size: 0.82rem;
  font-weight: 500;
}
.pay-balance-hint {
  font-size: 0.75rem;
  color: #7f8b9a;
  margin-top: 8px;
  padding-left: 1px;
}
.btn-test-telegram {
  width: 100%;
  margin-top: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.25);
  color: #aaa;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-test-telegram:hover {
  background: rgba(0, 194, 168, 0.15);
  color: #00d4aa;
  border-color: rgba(0, 194, 168, 0.4);
}

.swap-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -6px auto;
  width: 36px;
  height: 36px;
  color: #c8d2de;
  cursor: pointer;
  z-index: 2;
  position: relative;
}
.swap-arrow svg {
  background: #1a2433;
  border-radius: 10px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transition: transform 0.15s, border-color 0.15s, background 0.15s, color 0.15s;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
}
.swap-arrow:hover svg {
  background: #243044;
  border-color: rgba(0, 212, 170, 0.45);
  color: #00d4aa;
  transform: scale(1.06);
}
.swap-arrow:active svg {
  transform: scale(0.96);
}

.slippage-row {
  display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 0.85rem; color: #aaa;
}
.slippage-buttons { display: flex; gap: 6px; }
.slippage-buttons button {
  background: rgba(255,255,255,0.06); border: 1px solid transparent; color: #ccc;
  padding: 5px 10px; border-radius: 8px; cursor: pointer; font-size: 0.8rem;
}
.slippage-buttons button.active { background: #00c2a8; color: #fff; border-color: #00c2a8; }

.btn-swap {
  width: 100%;
  background: linear-gradient(180deg, #2fe0a8 0%, #14c98d 55%, #0fb87f 100%);
  color: #04150f;
  border: none;
  padding: 16px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px rgba(20, 201, 141, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-swap:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(20, 201, 141, 0.4);
}
.btn-swap:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.bottom-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; font-size: 0.82rem; color: #00d26a;
}
.bottom-status.disconnected { color: #888; }
.bottom-status .status-dot { background: currentColor; }

.ca-box {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem; color: #888; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.ca-box code { color: #ccc; word-break: break-all; flex: 1; }
.copy-btn { background: #333; color: #fff; border: none; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 0.75rem; }

/* Transaction Review & Detector */
.tx-review, .balance-detector {
  max-width: 420px; margin: 20px auto 0;
  background: rgba(12, 14, 28, 0.85); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 16px;
}
.tx-review h3, .balance-detector h3 { margin-bottom: 10px; font-size: 1rem; color: #FFDD00; }
.detector-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
}
.detector-header h3 { margin: 0; }
.btn-reset-history {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #aaa;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.btn-reset-history:hover {
  background: rgba(255,80,80,0.2);
  color: #ff8a8a;
  border-color: rgba(255,80,80,0.4);
}
#txReviewContent, #detectorLog { font-size: 0.85rem; line-height: 1.5; }
.detector-entry { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.detector-entry .time { color: #888; font-size: 0.75rem; }
.detector-entry.buy { border-left: 3px solid #00d4aa; padding-left: 8px; }
.detector-entry.sell { border-left: 3px solid #ff9f43; padding-left: 8px; }
.last-tx-info {
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  font-size: 0.8rem;
  line-height: 1.45;
}
.last-tx-info a { color: #00d4aa; word-break: break-all; }

/* Wallet selector modal */
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wallet-modal[hidden] { display: none !important; }
.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}
.wallet-modal-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #12141f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 1;
}
.wallet-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.wallet-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
}
.wallet-modal-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #aaa;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.wallet-modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.wallet-modal-hint {
  color: #888;
  font-size: 0.82rem;
  margin: 0 0 14px;
  line-height: 1.4;
}
.wallet-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.wallet-option:hover {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.35);
}
.wallet-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wallet-option-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.wallet-option-text {
  flex: 1;
  min-width: 0;
}
.wallet-option-text strong {
  display: block;
  font-size: 0.95rem;
}
.wallet-option-text small {
  display: block;
  color: #888;
  font-size: 0.75rem;
  margin-top: 2px;
}
.wallet-option-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.15);
  color: #00d4aa;
  white-space: nowrap;
}
.wallet-option-badge.missing {
  background: rgba(255,255,255,0.06);
  color: #888;
}

/* HOW IT WORKS */
.how-section { padding: 80px 0; }
.section-label {
  text-align: center; color: var(--yellow); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1.5px; margin-bottom: 12px; text-transform: uppercase;
}
.how-section h2, .faq-section h2 {
  text-align: center; font-size: 2.2rem; margin-bottom: 12px; font-weight: 800;
}
.how-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 40px 0 36px;
}
.how-step {
  background: rgba(12, 12, 22, 0.9); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 16px; text-align: left;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: rgba(255,221,0,0.12); color: var(--yellow);
  border-radius: 10px; font-weight: 800; font-size: 0.95rem; margin-bottom: 14px;
}
.how-step h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 700; }
.how-step p { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.nolock-box {
  background: rgba(12, 12, 22, 0.9); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 32px; max-width: 820px; margin: 0 auto;
  text-align: left;
}
.nolock-icon { font-size: 1.6rem; margin-bottom: 8px; }
.nolock-box h3 { font-size: 1.15rem; margin-bottom: 10px; }
.nolock-box p { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.how-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-yellow {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), #f0c000); color: #111;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-yellow:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,221,0,0.35); }

/* FAQ */
.faq-section { padding: 60px 0 80px; }
.faq-list { max-width: 760px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(12, 12, 22, 0.9); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "▼"; font-size: 0.75rem; color: var(--muted); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 18px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* NEW FOOTER */
footer { padding: 50px 0 30px; border-top: 1px solid var(--border); background: rgba(5,8,15,0.85); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; font-size: 1.1rem;
}
.footer-brand .footer-logo img { width: 38px; height: 38px; border-radius: 50%; }
.footer-brand .footer-logo strong { color: var(--yellow); }
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.08); color: var(--text); transition: all 0.2s;
}
.social-icon:hover { background: rgba(255,221,0,0.15); color: var(--yellow); }
.footer-col h4 {
  font-size: 0.82rem; letter-spacing: 1px; color: var(--muted); margin-bottom: 14px; font-weight: 700;
}
.footer-col a {
  display: block; color: var(--text); text-decoration: none; font-size: 0.92rem;
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px; text-align: left;
}
.footer-bottom p { color: var(--muted); font-size: 0.82rem; margin-bottom: 6px; }
.footer-risk { font-size: 0.78rem !important; opacity: 0.85; }

@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .how-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .how-section h2, .faq-section h2 { font-size: 1.7rem; }
}


/* ==========================================================
   SUCRE STAKING · ONE-SCREEN WALLET DASHBOARD
   ========================================================== */
:root{--ss-bg:#05080d;--ss-panel:#0b111b;--ss-panel2:#0f1926;--ss-line:rgba(224,188,93,.2);--ss-gold:#e8c15d;--ss-gold2:#f5d98b;--ss-text:#f3f5f8;--ss-muted:#8e9bad;--ss-green:#24d69a}
html,body{margin:0!important;min-height:100%;background:var(--ss-bg)!important;color:var(--ss-text)!important;overflow:hidden!important}
body.single-screen-staking{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
body.single-screen-staking .ticker-bar,
body.single-screen-staking>.navbar,
body.single-screen-staking>#inicio,
body.single-screen-staking>#comprar,
body.single-screen-staking>#staking,
body.single-screen-staking>#token-info,
body.single-screen-staking>#howitworks,
body.single-screen-staking>#faq,
body.single-screen-staking>#soporte,
body.single-screen-staking>footer{display:none!important}
.staking-app{height:100dvh;min-height:620px;display:flex;flex-direction:column;background:
 radial-gradient(ellipse at 28% 55%,rgba(35,75,113,.16),transparent 42%),
 linear-gradient(135deg,#060a10 0%,#080d15 54%,#090d14 100%);overflow:hidden}
.app-topbar{height:76px;min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3vw,48px);border-bottom:1px solid rgba(255,255,255,.08);background:rgba(3,6,10,.88);z-index:3}
.brand-lockup{display:flex;align-items:center;gap:12px}
.brand-seal{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(232,193,93,.22))}
.brand-wordmark{display:flex;flex-direction:column;gap:3px;letter-spacing:.14em}
.brand-wordmark strong{font-size:15px;font-weight:850;color:#fff}
.brand-wordmark span{font-size:9px;color:var(--ss-gold);letter-spacing:.2em}
.topbar-right{display:flex;align-items:center;gap:18px}
.app-socials{display:flex;align-items:center;gap:9px}
.app-socials a{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.14);border-radius:50%;color:#e9edf3;text-decoration:none;font-size:17px;font-weight:700;transition:.2s}
.app-socials a:hover{border-color:var(--ss-gold);color:var(--ss-gold);transform:translateY(-2px)}
#langSlot .lang-switch{display:flex;gap:7px}
#langSlot .lang-btn{width:34px;height:28px;border:1px solid rgba(255,255,255,.13);border-radius:7px;background:#101824;padding:3px}
#langSlot .lang-btn img{width:100%;height:100%;object-fit:cover;border-radius:3px}
#langSlot .lang-btn.active{border-color:var(--ss-gold);box-shadow:0 0 0 1px rgba(232,193,93,.15)}
.app-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,440px);gap:clamp(14px,2vw,28px);padding:clamp(14px,2vw,28px);max-width:1800px;width:100%;margin:0 auto;box-sizing:border-box}
.brand-stage{position:relative;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid rgba(255,255,255,.075);border-radius:22px;background:
 radial-gradient(circle at 50% 40%,rgba(232,193,93,.11),transparent 30%),
 radial-gradient(ellipse at 50% 100%,rgba(21,91,110,.13),transparent 55%),
 linear-gradient(145deg,rgba(16,27,42,.72),rgba(5,10,17,.62))}
.stage-content{position:relative;z-index:1;width:min(720px,90%);text-align:center;padding:30px 18px 56px}
.live-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(36,214,154,.24);border-radius:30px;padding:8px 13px;color:#8ce7c6;font-size:10px;font-weight:800;letter-spacing:.17em;background:rgba(36,214,154,.06)}
.live-chip span{width:7px;height:7px;border-radius:50%;background:var(--ss-green);box-shadow:0 0 12px var(--ss-green)}
.stage-seal{display:block;width:clamp(190px,25vw,340px);height:auto;max-height:42vh;object-fit:contain;margin:25px auto 14px;filter:drop-shadow(0 18px 38px rgba(0,0,0,.5)) drop-shadow(0 0 30px rgba(232,193,93,.15))}
.stage-eyebrow{font-size:10px;font-weight:800;letter-spacing:.3em;color:var(--ss-gold);margin:12px 0}
.stage-content h1{font-size:clamp(34px,5vw,64px);line-height:1;margin:0;font-weight:900;letter-spacing:.035em;color:#fff}
.stage-content h1 span{color:var(--ss-gold)}
.stage-copy{max-width:560px;margin:16px auto 26px;color:#aab6c5;font-size:14px;line-height:1.7}
.stage-benefits{display:flex;justify-content:center;align-items:center;gap:clamp(14px,3vw,42px);margin:0 auto 26px}
.stage-benefits div{display:flex;flex-direction:column;gap:5px}
.stage-benefits strong{font-size:25px;color:var(--ss-gold2);font-weight:850}
.stage-benefits span{font-size:9px;color:#8e9bad;letter-spacing:.14em;font-weight:750}
.stage-benefits i{height:30px;width:1px;background:rgba(255,255,255,.14)}
.stage-links{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.stage-links a{font-size:10px;letter-spacing:.12em;color:#d7dfeb;text-decoration:none;border:1px solid rgba(255,255,255,.13);padding:10px 14px;border-radius:8px}
.stage-links a:hover{border-color:var(--ss-gold);color:var(--ss-gold)}
.contract-pill{display:inline-flex;align-items:center;gap:10px;margin-top:22px;padding:8px 11px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(0,0,0,.2)}
.contract-pill span{font-size:9px;letter-spacing:.1em;color:#8391a3}
.contract-pill code{font-size:10px;color:#d9e0e9}
.contract-pill button{border:0;background:transparent;color:var(--ss-gold);font-size:9px;font-weight:800;cursor:pointer}
.stage-footer{position:absolute;bottom:17px;left:0;right:0;text-align:center;color:#566477;font-size:9px;letter-spacing:.18em}
.stage-orbit{position:absolute;border:1px solid rgba(232,193,93,.08);border-radius:50%;pointer-events:none}
.orbit-one{width:min(65vw,700px);aspect-ratio:1}
.orbit-two{width:min(48vw,520px);aspect-ratio:1;border-color:rgba(90,152,179,.09)}
.wallet-sidebar{min-width:0;min-height:0;border:1px solid var(--ss-line);border-radius:18px;background:linear-gradient(180deg,rgba(15,24,37,.98),rgba(7,13,21,.98));box-shadow:0 18px 55px rgba(0,0,0,.28);overflow:hidden}
.sidebar-scroll{height:100%;overflow:auto;padding:17px;scrollbar-width:thin;scrollbar-color:#39475a transparent}
.wallet-connect-card,.purchase-card,.staking-card{border:1px solid rgba(255,255,255,.09);border-radius:13px;background:linear-gradient(145deg,rgba(20,31,47,.9),rgba(11,18,28,.95));padding:16px;margin-bottom:13px}
.sidebar-section-heading,.staking-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.eyebrow{display:block;font-size:9px;color:var(--ss-gold);font-weight:850;letter-spacing:.18em;margin-bottom:5px}
.sidebar-section-heading h2,.staking-card-head h2{font-size:17px;line-height:1.2;margin:0;color:#f5f7fa;font-weight:800}
.secure-mark{font-size:8px;color:var(--ss-green);font-weight:800;letter-spacing:.08em}
.sidebar-intro{font-size:11px;line-height:1.55;color:#91a0b2;margin:10px 0 14px}
.connect-slot{display:grid;grid-template-columns:1fr;gap:8px}
#connectSlot #connectBtn{width:100%;min-height:48px;border:0;border-radius:9px;background:linear-gradient(100deg,#e5bb53,#f4d98a);color:#17130a;font-size:13px;font-weight:900;box-shadow:0 6px 20px rgba(232,193,93,.12)}
#connectSlot #connectBtn.connected{background:linear-gradient(100deg,#13a978,#3be3ae);color:#03180f}
#connectSlot #walletText{color:inherit}
#walletInfoSlot .wallet-status-bar{margin-top:12px;border-radius:8px;background:rgba(255,255,255,.04);padding:9px 10px;font-size:10px;color:#aab8c9}
#walletInfoSlot .wallet-status-bar .status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8492a4;margin-right:7px}
#walletInfoSlot .wallet-status-bar:not(.disconnected) .status-dot{background:var(--ss-green);box-shadow:0 0 9px var(--ss-green)}
#walletInfoSlot .btn-disconnect{margin-top:8px;background:transparent;border:1px solid rgba(255,255,255,.15);border-radius:7px;color:#b9c5d3;padding:7px 10px;font-size:10px}
.purchase-card{padding:15px}
.sidebar-section-heading.compact{margin-bottom:12px}
.sce-mini{font-size:10px;font-weight:900;color:#1b1607;background:var(--ss-gold);padding:5px 8px;border-radius:6px}
#swapSlot .swap-card{width:100%;max-width:none;padding:0;margin:0;background:transparent;border:0;box-shadow:none}
#swapSlot .wallet-status-bar,#swapSlot .btn-disconnect{display:none!important}
#swapSlot .balances-section{padding:11px;border-radius:9px;background:rgba(3,8,14,.48);margin-bottom:11px}
#swapSlot .balances-head{font-size:9px;color:#9eacbd}
#swapSlot .asset-row{padding:7px 0}
#swapSlot .asset-row strong{font-size:11px}
#swapSlot .asset-row small{font-size:9px}
#swapSlot .token-logo{width:26px;height:26px}
#swapSlot .percent-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0}
#swapSlot .percent-buttons button{border:1px solid rgba(255,255,255,.12);background:#111d2b;color:#cbd5e1;border-radius:6px;padding:7px 4px;font-size:10px}
#swapSlot .swap-box{
  padding:14px 14px 12px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  background:rgba(12,18,28,.95);
  margin:8px 0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
#swapSlot .swap-box-header{
  font-size:11px;
  color:#9aa9ba;
  margin-bottom:8px;
  gap:10px;
}
#swapSlot .token-select{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:5px 10px 5px 6px;
  color:#fff;
  font-size:12px;
  font-weight:700;
  gap:7px;
}
#swapSlot .token-select .mini-logo{
  width:24px;
  height:24px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}
#swapSlot .swap-input-row{
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
}
#swapSlot .swap-input-row input,
#swapSlot .swap-input-row strong{
  background:transparent;
  color:#fff;
  font-size:22px;
  font-weight:700;
  width:100%;
  min-width:0;
  line-height:1.15;
}
#swapSlot .swap-input-row small,#swapSlot .pay-balance-hint{font-size:10px;color:#8190a3}
#swapSlot .swap-arrow{
  width:32px;
  height:32px;
  margin:-4px auto;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#c5d0dc;
  display:grid;
  place-items:center;
}
#swapSlot .swap-arrow svg{
  width:30px;
  height:30px;
  padding:6px;
  border-radius:10px;
  background:#152033;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 3px 10px rgba(0,0,0,.3);
}
#swapSlot .slippage-row{margin:10px 0;font-size:10px;color:#aab6c5}
#swapSlot .slippage-buttons button{border:1px solid rgba(255,255,255,.12);border-radius:6px;background:#101a28;color:#b9c6d5;padding:5px 8px;font-size:9px}
#swapSlot .slippage-buttons button.active{border-color:var(--ss-gold);color:var(--ss-gold)}
#swapSlot .btn-swap{
  width:100%;
  min-height:46px;
  border:0;
  border-radius:999px;
  background:linear-gradient(180deg,#2fe0a8 0%,#14c98d 55%,#0fb87f 100%);
  color:#04150f;
  font-weight:900;
  font-size:13px;
  box-shadow:0 6px 18px rgba(20,201,141,.25);
}
#swapSlot .btn-swap:disabled{opacity:.58;box-shadow:none}
#swapSlot .bottom-status{font-size:9px;color:#93a1b2;margin-top:9px}
#swapSlot .ca-box{display:flex;align-items:center;gap:7px;margin-top:8px;padding:7px;background:rgba(0,0,0,.2);border-radius:7px}
#swapSlot .ca-box span{font-size:9px;color:#8391a3}
#swapSlot .ca-box code{font-size:9px;overflow:hidden;text-overflow:ellipsis}
#swapSlot .copy-btn{font-size:9px}
#txReviewSlot .tx-review{margin:8px 0;padding:12px;background:#0a1522;border:1px solid rgba(36,214,154,.2);border-radius:9px;color:#cbd5e1;font-size:10px}
.history-details{border-top:1px solid rgba(255,255,255,.08);padding-top:10px;margin-top:10px}
.history-details summary{cursor:pointer;color:#aab8c8;font-size:10px;font-weight:750}
#historySlot .balance-detector{padding:9px 0 0;background:transparent;border:0;box-shadow:none}
#historySlot .detector-header h3{font-size:11px}
#historySlot #detectorStatus{font-size:10px;color:#8998aa}
#historySlot .detector-entry{font-size:10px}
.staking-card{border-color:rgba(232,193,93,.28);background:linear-gradient(145deg,rgba(49,39,19,.36),rgba(11,18,28,.98))}
.staking-card-seal{width:42px;height:42px;object-fit:contain}
.staking-terms{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:13px 0 10px}
.staking-terms div{display:flex;flex-direction:column;gap:3px;padding:9px 5px;border-radius:8px;background:rgba(0,0,0,.22);text-align:center}
.staking-terms strong{font-size:15px;color:var(--ss-gold2)}
.staking-terms span{font-size:8px;color:#9aa7b7}
.staking-minimum-note{font-size:10px;line-height:1.5;color:#aab6c5;margin:0 0 12px}
#stakingContent{display:block}
#stakingContent .stake-empty{padding:13px;border-radius:9px;background:rgba(0,0,0,.2);border:1px dashed rgba(232,193,93,.25);color:#b7c2d0;font-size:11px;line-height:1.55}
#stakingContent .stake-empty p{margin:0 0 7px}
#stakingContent .stake-empty p:last-child{margin-bottom:0;color:#8493a5;font-size:10px}
#stakingContent .stake-card{padding:13px;border-radius:9px;background:rgba(0,0,0,.25);border:1px solid rgba(36,214,154,.2);margin-bottom:9px}
#stakingContent .stake-status{font-size:14px;font-weight:850;color:#fff!important;margin-bottom:10px}
#stakingContent .stake-status.ready{color:var(--ss-gold)}
#stakingContent .stake-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:10px;color:#98a7b8}
#stakingContent .stake-row strong,#stakingContent .stake-row code{color:#edf2f7;font-size:10px;text-align:right}
#stakingContent .stake-row .reward{color:var(--ss-gold2)}
#stakingContent .countdown{font-variant-numeric:tabular-nums}
#stakingContent .btn-withdraw{width:100%;margin-top:10px;padding:10px;border:0;border-radius:7px;background:linear-gradient(100deg,#d9ae47,#f3d98e);color:#17130a;font-weight:900;font-size:10px}
#stakingContent .btn-withdraw:disabled{background:#263344;color:#8391a3}
#stakingContent .stake-note-small{font-size:9px;color:#9aa8b7}
.sidebar-risk{padding:2px 5px 12px;color:#647285;font-size:9px;line-height:1.5}
.wallet-modal{z-index:10000}
.wallet-modal-panel{background:#0c1521;border:1px solid rgba(232,193,93,.3);color:#f4f6f8}
.wallet-modal-list .wallet-option{background:#111e2c}
.toast{z-index:10001}
@media(max-width:900px){
 html,body{overflow:auto!important}
 .staking-app{height:auto;min-height:100dvh;overflow:visible}
 .app-topbar{height:65px;min-height:65px;padding:0 14px}
 .app-main{grid-template-columns:1fr;padding:12px;gap:12px}
 .brand-stage{min-height:460px}
 .stage-content{padding:22px 12px 48px}
 .stage-seal{width:190px;max-height:220px;margin:18px auto 12px}
 .stage-content h1{font-size:38px}
 .wallet-sidebar{max-height:none}
 .sidebar-scroll{height:auto;overflow:visible;padding:12px}
}
@media(max-width:520px){
 .brand-wordmark strong{font-size:12px}
 .brand-seal{width:40px;height:40px}
 .app-socials{gap:5px}
 .app-socials a{width:30px;height:30px}
 .topbar-right{gap:8px}
 .stage-benefits{gap:12px}
 .stage-benefits strong{font-size:21px}
 .stage-benefits span{font-size:7px}
 .contract-pill{max-width:100%;gap:6px}
 .contract-pill code{max-width:115px;overflow:hidden;text-overflow:ellipsis}
}


/* TOPBAR LIVE MARKET STRIP */
.app-topbar{position:relative;overflow:hidden}
.topbar-ticker-window{position:absolute;left:clamp(250px,22vw,390px);right:clamp(190px,17vw,300px);top:0;bottom:0;display:flex;align-items:center;min-width:0;overflow:hidden;mask-image:linear-gradient(90deg,transparent 0%,#000 5%,#000 95%,transparent 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 5%,#000 95%,transparent 100%);pointer-events:none}
.topbar-ticker-window .ticker-bar{display:block!important;position:relative!important;inset:auto!important;width:100%;height:44px;overflow:hidden;background:transparent!important;border:0!important;box-shadow:none!important}
.topbar-ticker-window .ticker-track{display:flex!important;align-items:center;width:max-content;min-width:max-content;gap:0;animation:ss-market-marquee 52s linear infinite!important;will-change:transform}
.topbar-ticker-window:hover .ticker-track{animation-play-state:paused!important}
.topbar-ticker-window .ticker-item{display:flex!important;align-items:center;gap:7px;padding:0 16px;height:30px;border-right:1px solid rgba(255,255,255,.09);white-space:nowrap;font-size:10px;color:#dce3ec;background:transparent;border-top:0;border-bottom:0;border-left:0;cursor:pointer;font-family:inherit;transition:background .15s ease,color .15s ease}
.topbar-ticker-window .ticker-item:hover{background:rgba(232,193,93,.12);color:#fff}
.topbar-ticker-window .ticker-item.ticker-active{background:rgba(232,193,93,.22);box-shadow:inset 0 -2px 0 var(--ss-gold,#e8c15d)}
.topbar-ticker-window .ticker-item.ticker-active .sym{color:#f6d982}
.topbar-ticker-window .ticker-logo{width:17px!important;height:17px!important;object-fit:contain;border-radius:50%}
.topbar-ticker-window .ticker-item .sym{font-size:10px;font-weight:850;color:#f1f4f8}
.topbar-ticker-window .ticker-item .price{font-size:10px;color:#c4ceda;font-variant-numeric:tabular-nums}
.topbar-ticker-window .ticker-change{font-size:9px;font-weight:750}
.topbar-ticker-window .ticker-change.up{color:#26d69b}
.topbar-ticker-window .ticker-change.down{color:#ff6d7a}
@keyframes ss-market-marquee{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* LIVE SCE MARKET / BUY-SELL CHART IN THE LEFT PANEL */
.stage-content{width:min(900px,94%);padding:18px 18px 52px}
.stage-seal{display:none}
.live-chart-shell{width:min(820px,100%);margin:17px auto 14px;border:1px solid rgba(232,193,93,.22);border-radius:13px;overflow:hidden;background:#070c13;box-shadow:0 15px 45px rgba(0,0,0,.32)}
.live-chart-heading{min-height:43px;height:auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 13px;background:linear-gradient(90deg,rgba(232,193,93,.08),rgba(10,18,29,.5));border-bottom:1px solid rgba(255,255,255,.08)}
.live-chart-heading>div{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px 8px;min-width:0;flex:1}
.live-chart-heading strong{font-size:10px;letter-spacing:.1em;color:#f3f5f8;white-space:nowrap;line-height:1.4;padding-top:2px}
.live-chart-heading small{font-size:8px;color:#7f8da0;letter-spacing:.08em;white-space:nowrap}
.sce-utility-tagline{display:inline;max-width:100%;color:#c5d2e2;font-size:9.5px;font-weight:500;letter-spacing:.01em;line-height:1.45;white-space:normal!important}
.chart-asset-logo{
  width:22px;height:22px;border-radius:50%;object-fit:cover;
  flex:0 0 22px;display:block;box-shadow:0 0 0 1px rgba(255,255,255,.15);
  background:#0b121c;
}
.live-chart-heading strong#sceChartAssetTitle,
.live-chart-heading #sceChartAssetTitle{
  display:inline-flex;align-items:center;gap:0;
}

.chart-live-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#26d69b;box-shadow:0 0 10px #26d69b}
.chart-price{font-size:12px;font-weight:850;color:var(--ss-gold2);font-variant-numeric:tabular-nums;white-space:nowrap}
.live-chart-mount{height:clamp(260px,36vh,390px);min-height:250px;position:relative;background:#080d14}
.live-chart-mount iframe{display:block;width:100%;height:100%;border:0;background:#080d14}
.chart-loading,.chart-unavailable{height:100%;min-height:250px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:20px;text-align:center;color:#9eacbd;font-size:11px;line-height:1.6;box-sizing:border-box}
.chart-unavailable strong{font-size:14px;color:#f0d48a}
.chart-unavailable a{color:var(--ss-gold);text-decoration:none;font-size:10px;font-weight:800}
.chart-spinner{width:23px;height:23px;border:2px solid rgba(232,193,93,.2);border-top-color:var(--ss-gold);border-radius:50%;animation:ss-spin .8s linear infinite}
@keyframes ss-spin{to{transform:rotate(360deg)}}
.chart-foot{height:30px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;background:#0b121c;border-top:1px solid rgba(255,255,255,.07)}
.chart-foot span{font-size:8px;color:#6e7d90;letter-spacing:.1em}
.chart-foot a{font-size:8px;color:var(--ss-gold);text-decoration:none;font-weight:800;letter-spacing:.08em}
.stage-content h1{font-size:clamp(29px,3.7vw,47px)}
.stage-copy{margin:10px auto 17px;font-size:12px}
.stage-benefits{margin-bottom:17px}
.stage-links a{padding:8px 12px}
.contract-pill{margin-top:12px}
@media(max-width:900px){
 .app-topbar{overflow:visible}
 .topbar-ticker-window{position:relative;left:auto;right:auto;top:auto;bottom:auto;flex:1;min-width:0;margin:0 10px;height:42px}
 .topbar-ticker-window .ticker-item{padding:0 10px}
 .topbar-right{position:relative;z-index:2}
 .live-chart-mount{height:310px}
 .stage-content{padding:18px 12px 45px}
}
@media(max-width:600px){
 .app-topbar{gap:8px}
 .topbar-ticker-window{position:absolute;left:12px;right:12px;top:65px;height:34px;margin:0;z-index:2;background:rgba(5,9,15,.92);border:1px solid rgba(255,255,255,.07);border-radius:7px}
 .topbar-ticker-window .ticker-bar{height:32px}
 .topbar-ticker-window .ticker-item{height:24px;padding:0 9px}
 .app-main{padding-top:44px}
 .app-socials a{width:27px;height:27px}
 .live-chart-heading small{display:none}
 .live-chart-mount{height:280px;min-height:260px}
 .stage-content h1{font-size:32px}
 .stage-benefits span{letter-spacing:.04em}
}


/* V3 refinement: ticker travels from the social/X side toward the brand */
@media(min-width:901px){
  .app-topbar{position:relative;display:flex;align-items:center}
  .topbar-ticker-window{
    left:clamp(245px,18vw,330px)!important;
    right:clamp(185px,15vw,275px)!important;
    z-index:1;
  }
  .topbar-right{position:relative;z-index:2;background:linear-gradient(90deg,transparent,rgba(3,6,10,.92) 12%);padding-left:18px}
  .brand-lockup{position:relative;z-index:2;background:linear-gradient(90deg,rgba(3,6,10,.98) 86%,transparent);padding-right:20px}
  .topbar-ticker-window .ticker-track{animation:ss-market-marquee 46s linear infinite!important}
}
/* Let the chart and the buy/sell tape use the entire available card */
.stage-content{width:96%!important;max-width:1120px!important;padding-top:12px!important}
.live-chart-shell{width:100%!important;max-width:none!important;margin:12px auto 14px!important}
.live-chart-mount{height:clamp(330px,48vh,540px)!important;min-height:300px!important}
.live-chart-mount iframe{width:100%!important;height:100%!important;min-height:100%!important;display:block!important}
@media(max-width:900px){
  .stage-content{width:100%!important}
  .live-chart-shell{width:100%!important}
  .live-chart-mount{height:390px!important;min-height:340px!important}
}
@media(max-width:600px){
  .live-chart-mount{height:350px!important;min-height:320px!important}
}


/* V4: single fixed ticker in the header gap; left panel is now chart + trade tape only */
@media(min-width:901px){
  .app-topbar{
    display:flex!important;align-items:center!important;gap:12px!important;
    overflow:hidden!important;position:relative!important;
  }
  .app-topbar>.brand-lockup{
    flex:0 0 auto!important;min-width:218px!important;
    position:relative!important;z-index:4!important;
    padding-right:8px!important;background:transparent!important;
  }
  .app-topbar>.topbar-ticker-window{
    position:relative!important;inset:auto!important;
    left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    flex:1 1 0!important;width:auto!important;min-width:120px!important;
    height:44px!important;margin:0!important;z-index:2!important;
    display:flex!important;align-items:center!important;overflow:hidden!important;
    pointer-events:auto!important;mask-image:linear-gradient(90deg,transparent 0%,#000 3%,#000 97%,transparent 100%)!important;
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 3%,#000 97%,transparent 100%)!important;
  }
  .app-topbar>.topbar-right{
    flex:0 0 auto!important;position:relative!important;z-index:4!important;
    padding-left:8px!important;background:transparent!important;
  }
}
@media(max-width:900px){
  .app-topbar{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;height:auto!important;min-height:76px!important;padding-top:8px!important;padding-bottom:8px!important;row-gap:5px!important}
  .app-topbar>.brand-lockup{order:1;flex:1 1 auto;min-width:180px}
  .app-topbar>.topbar-right{order:2;flex:0 0 auto}
  .app-topbar>.topbar-ticker-window{order:3;position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;flex:1 0 100%!important;width:100%!important;height:31px!important;margin:0!important;z-index:2!important;display:flex!important;overflow:hidden!important;pointer-events:auto!important;border-top:1px solid rgba(255,255,255,.06)}
  .app-topbar>.topbar-ticker-window .ticker-bar{height:30px!important}
  .app-main{padding-top:12px!important}
}

/* Remove promotional hero content; chart gets the full left panel. */
.brand-stage{min-height:0!important;display:flex!important;align-items:stretch!important;justify-content:stretch!important;overflow:hidden!important}
.brand-stage .stage-orbit,.brand-stage .stage-footer{display:none!important}
.brand-stage .stage-content{
  position:relative!important;z-index:1!important;
  display:flex!important;flex-direction:column!important;
  width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;
  padding:0!important;margin:0!important;
}
.live-chart-shell{
  display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
  width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;
  margin:0!important;border-radius:15px!important;overflow:hidden!important;
  background:#070c13!important;
}
.live-chart-heading{flex:0 0 auto!important;min-height:43px!important}
.sce-trades-panel[hidden]{display:none!important}
.live-chart-shell.chart-mode-embed .sce-trades-panel{display:none!important}
.live-chart-shell.chart-mode-embed .live-chart-mount{flex:1 1 auto!important;min-height:380px!important}
.live-chart-mount{
  flex:1 1 auto!important;width:100%!important;height:auto!important;
  min-height:250px!important;position:relative!important;overflow:hidden!important;
}
.live-chart-mount iframe{width:100%!important;height:100%!important;min-height:100%!important;border:0!important;display:block!important}
.live-chart-mount>div{width:100%;height:100%}
.sce-trades-panel{
  flex:0 0 185px!important;min-height:150px!important;max-height:220px!important;
  width:100%!important;background:#09111b!important;border-top:1px solid rgba(255,255,255,.09)!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
.sce-trades-title{height:34px;min-height:34px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid rgba(255,255,255,.07);color:#d9e1ec;font-size:9px;letter-spacing:.1em}
.sce-trades-title span{color:#24d69a;font-size:9px;letter-spacing:0}
.sce-trades-table-wrap{flex:1;min-height:0;overflow:auto}
.sce-trades-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:10px}
.sce-trades-table th{position:sticky;top:0;background:#0d1724;color:#7f90a5;text-align:left;font-size:8px;letter-spacing:.08em;padding:8px 10px}
.sce-trades-table td{padding:7px 10px;border-top:1px solid rgba(255,255,255,.045);color:#c8d2df;font-variant-numeric:tabular-nums}
.sce-trades-table tr:hover td{background:rgba(255,255,255,.025)}
.sce-trades-table .trade-buy{color:#23d69a;font-weight:850}
.sce-trades-table .trade-sell{color:#ff7186;font-weight:850}
.sce-trades-table a{color:#d9bd70;text-decoration:none;font-weight:800}
.sce-trades-empty{text-align:center!important;color:#7f8da0!important;padding:20px!important}
.chart-unavailable{height:100%;min-height:240px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:24px;text-align:center;color:#aab7c7;font-size:12px;line-height:1.6;box-sizing:border-box}
.chart-unavailable strong{font-size:15px;color:#f0d48a}
.chart-retry{border:1px solid rgba(232,193,93,.45);background:rgba(232,193,93,.1);color:#f1d58d;border-radius:7px;padding:9px 15px;font-size:9px;font-weight:850;letter-spacing:.1em;cursor:pointer}
.chart-foot{flex:0 0 30px!important}
@media(max-width:900px){
  .brand-stage{min-height:620px!important}
  .brand-stage .stage-content{height:100%!important}
  .live-chart-shell{min-height:600px!important}
  .live-chart-mount{min-height:340px!important}
  .sce-trades-panel{flex-basis:205px!important;max-height:240px!important}
}
@media(max-width:600px){
  .brand-stage{min-height:650px!important}
  .live-chart-shell{min-height:630px!important}
  .live-chart-mount{min-height:360px!important}
  .sce-trades-panel{flex-basis:205px!important}
  .sce-trades-table{font-size:9px}
  .sce-trades-table th,.sce-trades-table td{padding:7px 8px}
}

/* Override legacy rule that hid the ticker bar on the single-page layout. */
body.single-screen-staking .topbar-ticker-window .ticker-bar{display:block!important;position:relative!important;top:auto!important}


/* V5: requested desktop layout — wallet/staking left, SCE chart right */
@media(min-width:901px){
  .app-main{
    grid-template-columns:minmax(340px,410px) minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    align-items:stretch!important;
  }
  .app-main>.wallet-sidebar{
    grid-column:1!important;grid-row:1!important;
    width:100%!important;min-width:0!important;height:100%!important;
  }
  .app-main>.brand-stage{
    grid-column:2!important;grid-row:1!important;
    width:100%!important;min-width:0!important;height:100%!important;
  }
  .app-main>.brand-stage .stage-content{width:100%!important}
}
@media(max-width:900px){
  .app-main{
    display:flex!important;flex-direction:column!important;
    align-items:stretch!important;
  }
  .app-main>.wallet-sidebar{order:1!important;width:100%!important;min-height:420px!important}
  .app-main>.brand-stage{order:2!important;width:100%!important;min-height:620px!important}
}


/* V6: compact support form directly below staking in the wallet sidebar */
.support-sidebar-card{
  display:block!important;
  width:100%!important;max-width:none!important;
  margin:0 0 13px!important;padding:14px!important;
  border:1px solid rgba(232,193,93,.2)!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,rgba(20,31,47,.92),rgba(11,18,28,.98))!important;
  box-sizing:border-box!important;
}
.support-sidebar-card[hidden]{display:none!important}
.support-sidebar-card .container{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
.support-sidebar-card h2{font-size:16px!important;margin:0 0 5px!important;color:#f5f7fa!important}
.support-sidebar-card .section-desc{font-size:11px!important;line-height:1.5!important;margin:0 0 12px!important;color:#9eacbd!important}
.support-sidebar-card .support-card{padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.support-sidebar-card .support-fields{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
.support-sidebar-card .input-group{margin-bottom:9px!important}
.support-sidebar-card label{font-size:10px!important;color:#c8d2df!important}
.support-sidebar-card input,.support-sidebar-card select,.support-sidebar-card textarea{
  width:100%!important;min-height:38px!important;padding:9px 10px!important;
  border:1px solid rgba(255,255,255,.12)!important;border-radius:8px!important;
  background:#080f18!important;color:#edf2f8!important;font-size:11px!important;
  box-sizing:border-box!important;
}
.support-sidebar-card textarea{min-height:92px!important;resize:vertical!important}
.support-sidebar-card .support-submit{width:100%!important;min-height:40px!important;margin-top:3px!important}
.support-sidebar-card .support-status{font-size:10px!important;line-height:1.45!important;margin:8px 0 0!important}
.support-sidebar-card .support-privacy{font-size:9px!important;line-height:1.45!important;color:#7f8da0!important;margin:8px 0 0!important}


/* V7: keep the main green wallet button as the only connect/disconnect control */
#walletInfoSlot #disconnectBtn,
#walletInfoSlot .btn-disconnect {
  display: none !important;
}

/* V7: blue-sky image on the Un Sucre purchase panel, with a dark overlay for legibility */
.purchase-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, .76), rgba(7, 15, 27, .91)),
    url("assets/sky-blue-background.png?v=20261111d") center center / cover no-repeat !important;
}
.purchase-card > * {
  position: relative;
  z-index: 1;
}
.purchase-card .sce-mini {
  white-space: nowrap;
  letter-spacing: .02em;
}


/* V8: clear sky background and OKX Wallet wordmark */
.wallet-brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 13px;
  flex-wrap: wrap;
}
.wallet-connect-card .okx-wallet-wordmark {
  display: block;
  width: 132px;
  max-width: 48%;
  height: auto;
  object-fit: contain;
  margin: 0;
}
.sucre-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}
.sucre-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.sucre-brand-text {
  font-size: 13px;
  font-weight: 800;
  color: #f5f7fa;
  letter-spacing: .02em;
  white-space: nowrap;
}
.sce-live-price {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ss-gold, #e8c15d);
  letter-spacing: .02em;
}
.purchase-card {
  background-image:
    linear-gradient(180deg, rgba(7, 18, 34, .20), rgba(7, 15, 27, .48)),
    url("/assets/sky-blue-background.png?v=20261111d") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}


/* V9: cleaner wallet heading and supplied OKX-DEX badge */
.wallet-connect-card .sidebar-section-heading > div .eyebrow,
.wallet-connect-card .sidebar-section-heading > div h2 {
  display: none !important;
}
.okx-dex-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 42px;
  padding: 3px 5px !important;
  background: #000 !important;
  border-radius: 7px;
  overflow: hidden;
}
.okx-dex-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.live-chart-heading { min-height: 43px; height: auto; }
.live-chart-heading > div { flex-wrap: wrap; row-gap: 3px; }
.sce-utility-tagline{display:inline;color:#c5d2e2;font-size:9.5px;line-height:1.45;white-space:normal}
@media (max-width: 760px) {
  .live-chart-heading { padding-top: 7px; padding-bottom: 7px; }
  .sce-utility-tagline { flex-basis: 100%; margin-left: 15px; max-width: 100%; }
}


/* V10: SCE contract address card above staking */
.contract-card {
  padding: 10px 12px;
  margin: 0 0 13px;
  border: 1px solid rgba(232,193,93,.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232,193,93,.09), rgba(11,18,28,.96));
}
.contract-card-head {
  display: none;
}
.contract-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.contract-address-row code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #d5deea;
  font-size: 10px;
  line-height: 1.45;
  user-select: all;
}
.contract-copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(232,193,93,.45);
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(232,193,93,.15);
  color: #f4d98a;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.contract-copy-btn:hover { background: rgba(232,193,93,.25); }
@media (max-width: 420px) {
  .contract-address-row { align-items: flex-start; }
  .contract-copy-btn { padding: 7px; }
}


/* Ajuste óptico de los iconos de monedas.
   Compensa el espacio transparente de cada imagen para igualar su tamaño visible
   al sello SCE, sin cambiar dimensiones de botones ni comportamiento. */
img[src*="sol-sticker.webp"] {
  transform: scale(1.20);
  transform-origin: center;
}
img[src*="usdc-sticker.webp"] {
  transform: scale(1.39);
  transform-origin: center;
}


/* ========== Layout: chart + staking side, connect on chart ========== */
body.single-screen-staking .app-main{
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: stretch;
}
body.single-screen-staking .brand-stage{
  min-height: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}
body.single-screen-staking .brand-stage .stage-content{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px) !important;
  gap: 14px !important;
  width: 100% !important;
  height: 100% !important;
  align-items: stretch !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}
body.single-screen-staking .live-chart-shell{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: 100% !important;
}
body.single-screen-staking .live-chart-heading{
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  min-height: 48px !important;
}
body.single-screen-staking .chart-heading-main{
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 !important;
}
body.single-screen-staking .chart-heading-actions{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}
body.single-screen-staking .chart-connect-slot .btn-connect,
body.single-screen-staking #chartConnectSlot .btn-connect{
  white-space: nowrap !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  min-height: 36px !important;
}
body.single-screen-staking .chart-wallet-info-slot{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
body.single-screen-staking .chart-wallet-info-slot .btn-disconnect{
  width: auto !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  font-size: 11px !important;
  border-radius: 10px !important;
}
body.single-screen-staking .chart-wallet-info-slot .wallet-status-bar{
  margin: 0 !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  border-radius: 10px !important;
}
body.single-screen-staking /* Chart a bit more cropped / shorter */
body.single-screen-staking .live-chart-mount{
  height: clamp(420px, 58vh, 720px) !important;
  min-height: 420px !important;
  flex: 1 1 auto !important;
  max-height: none !important;
}
body.single-screen-staking .live-chart-shell.chart-mode-embed .live-chart-mount{
  min-height: 420px !important;
  max-height: none !important;
  flex: 1 1 auto !important;
}
body.single-screen-staking .chart-side-panel{
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
body.single-screen-staking .chart-staking-card{
  margin: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  border-color: rgba(232,193,93,.28) !important;
  background: linear-gradient(145deg, rgba(49,39,19,.36), rgba(11,18,28,.98)) !important;
  padding: 16px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(232,193,93,.28) !important;
}
/* Hide empty connect card chrome in left sidebar when slots moved */
body.single-screen-staking .wallet-connect-card .connect-slot:empty,
body.single-screen-staking #connectSlot:empty,
body.single-screen-staking #walletInfoSlot:empty{
  display: none !important;
}
body.single-screen-staking .wallet-connect-card{
  padding: 12px 14px !important;
}
body.single-screen-staking .wallet-connect-card .sidebar-intro{
  font-size: 11px !important;
  margin: 6px 0 0 !important;
  color: #8b9aab !important;
}
/* Left column focuses on purchase */
body.single-screen-staking .wallet-sidebar{
  overflow: auto !important;
}
body.single-screen-staking .sidebar-scroll{
  padding: 12px !important;
}
/* Responsive: stack staking under chart on smaller widths */
@media (max-width: 1180px){
  body.single-screen-staking .brand-stage .stage-content{
    grid-template-columns: 1fr !important;
  }
  body.single-screen-staking .chart-side-panel{
    max-width: 420px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  body.single-screen-staking .live-chart-mount{
    height: clamp(360px, 50vh, 560px) !important;
    min-height: 360px !important;
  }
}
@media (max-width: 900px){
  body.single-screen-staking .app-main{
    grid-template-columns: 1fr !important;
  }
  body.single-screen-staking .chart-heading-actions{
    width: 100% !important;
    justify-content: flex-end !important;
  }
}

/* Left panel: only purchase box */
body.single-screen-staking .wallet-sidebar .support-sidebar-card,
body.single-screen-staking .wallet-sidebar .sidebar-risk,
body.single-screen-staking .wallet-sidebar .wallet-connect-card,
body.single-screen-staking .wallet-sidebar .contract-card,
body.single-screen-staking #swapSlot .bottom-status,
body.single-screen-staking #swapSlot .ca-box,
body.single-screen-staking #swapSlot .btn-disconnect{
  display:none!important;
}
body.single-screen-staking .purchase-card{
  margin-bottom:0!important;
  border:0!important;
  background:transparent!important;
  padding:0!important;
}
body.single-screen-staking .purchase-activity-card{
  border:1px solid rgba(255,255,255,.09);
  border-radius:13px;
  background:linear-gradient(145deg,rgba(20,31,47,.9),rgba(11,18,28,.95));
  padding:12px 14px;
  margin:0;
}
body.single-screen-staking .purchase-activity-card .history-details summary{
  cursor:pointer;
  color:#c9d4e0;
  font-size:12px;
  font-weight:700;
}
body.single-screen-staking .chart-side-panel{
  overflow:auto;
}


/* Contrato CA junto al precio del gráfico (abreviado visualmente; copia completa al clic) */
.chart-ca-copy{
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:none;
  padding:4px 8px 4px 10px;
  border-radius:8px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
  cursor:pointer;
}
.chart-ca-copy code{
  font-size:10px;
  color:#d5deea;
  overflow:visible;
  text-overflow:clip;
  white-space:nowrap;
  max-width:none;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.chart-ca-copy .chart-ca-copy-icon{
  flex-shrink:0;
  font-size:12px;
  color:#f0d27a;
  opacity:.9;
}
.chart-ca-btn{
  flex-shrink:0;
  border:0;
  border-radius:999px;
  padding:5px 10px;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
  color:#0b1520;
  background:linear-gradient(180deg,#f0d27a,#d4a94a);
}
.chart-ca-btn:hover{filter:brightness(1.06)}
@media (max-width:700px){
  .chart-ca-copy code{font-size:9px}
}

/* Fondo cielo azul en panel de staking */
body.single-screen-staking .chart-staking-card,
body.single-screen-staking .staking-card.chart-staking-card{
  background:
    linear-gradient(180deg, rgba(6,18,36,.55) 0%, rgba(8,24,48,.72) 40%, rgba(10,28,52,.88) 100%),
    url("assets/sky-blue-background.png?v=20261111d") center top / cover no-repeat !important;
  border:1px solid rgba(120,180,255,.22) !important;
  box-shadow:0 12px 36px rgba(0,30,60,.35) !important;
  color:#eef5ff !important;
}
body.single-screen-staking .chart-staking-card .eyebrow{
  color:#9ec5ff !important;
}
body.single-screen-staking .chart-staking-card h2{
  color:#fff !important;
  text-shadow:0 1px 8px rgba(0,0,0,.35);
}
body.single-screen-staking .chart-staking-card .staking-terms{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
body.single-screen-staking .chart-staking-card .staking-terms > div{
  background:rgba(8,20,40,.55);
  border:1px solid rgba(160,200,255,.18);
  border-radius:12px;
  padding:10px 8px;
  text-align:center;
  backdrop-filter:blur(6px);
}
body.single-screen-staking .chart-staking-card .staking-terms strong{
  display:block;
  color:#fff;
  font-size:1.05rem;
}
body.single-screen-staking .chart-staking-card .staking-terms span{
  color:#b7ccea;
  font-size:.72rem;
}
body.single-screen-staking .chart-staking-card .staking-minimum-note,
body.single-screen-staking .chart-staking-card .staking-content{
  color:#d7e6ff !important;
}
body.single-screen-staking .purchase-activity-card{
  background:
    linear-gradient(180deg, rgba(6,18,36,.6), rgba(8,24,48,.85)),
    url("assets/sky-blue-background.png?v=20261111d") center / cover no-repeat !important;
  border:1px solid rgba(120,180,255,.18) !important;
}



/* Cielo azul en ambos lados: compras (izq) y staking (der) */
body.single-screen-staking .wallet-sidebar{
  background:
    linear-gradient(180deg, rgba(6,18,36,.42) 0%, rgba(8,24,48,.62) 45%, rgba(10,28,52,.82) 100%),
    url("assets/sky-blue-background.png?v=20261111d") center top / cover no-repeat !important;
  border:1px solid rgba(120,180,255,.2) !important;
  box-shadow:0 12px 36px rgba(0,30,60,.28) !important;
}
body.single-screen-staking .sidebar-scroll{
  background:transparent !important;
}
body.single-screen-staking .purchase-card,
body.single-screen-staking #swapSlot .swap-card{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body.single-screen-staking #swapSlot .swap-box{
  background:rgba(8,20,40,.55) !important;
  border:1px solid rgba(160,200,255,.16) !important;
  backdrop-filter:blur(8px);
}
body.single-screen-staking #swapSlot .balances-section,
body.single-screen-staking #swapSlot .percent-buttons button,
body.single-screen-staking #swapSlot .token-select{
  background:rgba(8,20,40,.5) !important;
  border-color:rgba(160,200,255,.16) !important;
}
body.single-screen-staking .sidebar-section-heading h2,
body.single-screen-staking .sidebar-section-heading .eyebrow,
body.single-screen-staking .sce-live-price{
  color:#eef5ff !important;
}
body.single-screen-staking .chart-side-panel{
  background:transparent !important;
}
body.single-screen-staking .chart-staking-card,
body.single-screen-staking .staking-card.chart-staking-card,
body.single-screen-staking .purchase-activity-card{
  background:
    linear-gradient(180deg, rgba(6,18,36,.5) 0%, rgba(8,24,48,.68) 40%, rgba(10,28,52,.86) 100%),
    url("assets/sky-blue-background.png?v=20261111d") center top / cover no-repeat !important;
  border:1px solid rgba(120,180,255,.22) !important;
}


/* Gráfico más alto / menos reducido */
body.single-screen-staking .brand-stage .stage-content{
  align-items: stretch !important;
  min-height: calc(100vh - 110px) !important;
}
body.single-screen-staking .live-chart-shell{
  min-height: calc(100vh - 140px) !important;
}
body.single-screen-staking .live-chart-mount{
  height: clamp(440px, 62vh, 780px) !important;
  min-height: 440px !important;
  max-height: none !important;
}
body.single-screen-staking .live-chart-shell.chart-mode-embed .live-chart-mount{
  min-height: 440px !important;
  max-height: none !important;
}
@media (max-width: 1180px){
  body.single-screen-staking .live-chart-mount{
    height: clamp(380px, 52vh, 620px) !important;
    min-height: 380px !important;
  }
}



/* Logo centrado arriba del gráfico + botón único conectar/desconectar */
body.single-screen-staking .live-chart-heading.chart-heading-with-logo{
  display:grid !important;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items:center !important;
  gap:10px 12px !important;
  padding:10px 14px !important;
  min-height:64px !important;
  background:#070c13 !important; /* mismo fondo del gráfico */
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}
body.single-screen-staking .chart-heading-left{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
  justify-content:flex-start;
}
body.single-screen-staking .chart-logo-center{
  display:none; /* solo se muestra en móvil (topbar fijo); en escritorio el logo va en brand-lockup */
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
body.single-screen-staking .chart-brand-logo{
  display:block;
  height:clamp(42px, 6.2vh, 64px);
  width:auto;
  max-width:min(420px, 46vw);
  object-fit:contain;
  background:transparent !important;
  mix-blend-mode:normal;
  filter:none;
}
body.single-screen-staking .chart-heading-actions{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
}
body.single-screen-staking .chart-source-line{
  display:block;
  padding:4px 14px 6px;
  font-size:9px;
  color:#7f8da0;
  letter-spacing:.06em;
  background:#070c13;
  border-bottom:1px solid rgba(255,255,255,.05);
}

/* Un solo botón: amarillo conectar, rojo desconectar */
body.single-screen-staking #chartConnectSlot .btn-connect,
body.single-screen-staking .chart-connect-slot .btn-connect{
  background: linear-gradient(180deg, #ffe566 0%, #ffd000 45%, #f0b400 100%) !important;
  color:#1a1400 !important;
  border:1px solid rgba(255,220,80,.55) !important;
  border-radius:999px !important;
  padding:10px 18px !important;
  font-size:12px !important;
  font-weight:900 !important;
  box-shadow:0 6px 18px rgba(240,180,0,.28) !important;
  min-height:40px !important;
  white-space:nowrap !important;
}
body.single-screen-staking #chartConnectSlot .btn-connect:hover{
  filter:brightness(1.05);
}
body.single-screen-staking #chartConnectSlot .btn-connect.connected{
  background: linear-gradient(180deg, #ff6b6b 0%, #e53935 50%, #c62828 100%) !important;
  color:#fff !important;
  border-color:rgba(255,120,120,.55) !important;
  box-shadow:0 6px 18px rgba(198,40,40,.3) !important;
}

/* Ocultar botón desconectar aparte y estados duplicados */
body.single-screen-staking .btn-disconnect,
body.single-screen-staking #disconnectBtn,
body.single-screen-staking #chartWalletInfoSlot,
body.single-screen-staking .chart-wallet-info-slot{
  display:none !important;
}

@media (max-width: 900px){
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo{
    grid-template-columns: 1fr;
    justify-items:center;
    text-align:center;
  }
  body.single-screen-staking .chart-heading-left,
  body.single-screen-staking .chart-heading-actions{
    width:100%;
    justify-content:center !important;
  }
  body.single-screen-staking .chart-brand-logo{
    max-width:min(360px, 88vw);
    height:48px;
  }
}



/* Staking e historial del mismo porte (parejos) */
body.single-screen-staking .chart-side-panel{
  display:grid !important;
  grid-template-rows: 1fr 1fr !important;
  gap:12px !important;
  align-content:stretch !important;
  height:100% !important;
  min-height:0 !important;
}
body.single-screen-staking .chart-staking-card,
body.single-screen-staking .staking-card.chart-staking-card,
body.single-screen-staking .purchase-activity-card{
  height:100% !important;
  min-height:0 !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:auto !important;
  box-sizing:border-box !important;
}
body.single-screen-staking .chart-staking-card .staking-content,
body.single-screen-staking .purchase-activity-card .history-details,
body.single-screen-staking .purchase-activity-card #historySlot,
body.single-screen-staking .purchase-activity-card #txReviewSlot{
  flex:1 1 auto;
  min-height:0;
}
body.single-screen-staking .purchase-activity-card .history-details{
  display:flex;
  flex-direction:column;
  border-top:0;
  margin-top:0;
  padding-top:0;
}
body.single-screen-staking .purchase-activity-card .history-details summary{
  flex:0 0 auto;
  margin-bottom:8px;
  font-size:12px;
  color:#e8f0ff;
}


/* FIX DROPDOWN DE MONEDAS — V10
   El menú de "Tú envías" debe quedar por encima del panel "Tú obtienes".
   No altera el diseño ni la lógica de selección de tokens. */
#swapSlot .swap-box:has(#payDropdown) {
  position: relative !important;
  z-index: 80 !important;
  overflow: visible !important;
}
#swapSlot .swap-box:has(#receiveDropdown) {
  position: relative !important;
  z-index: 1 !important;
  overflow: visible !important;
}
#swapSlot #payDropdown,
#swapSlot #receiveDropdown {
  position: relative;
  z-index: 90;
}
#swapSlot #payTokenMenu,
#swapSlot #receiveTokenMenu {
  position: absolute !important;
  z-index: 9999 !important;
  right: 0;
  min-width: 172px;
  max-height: min(240px, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  isolation: isolate;
}
#swapSlot #payTokenMenu {
  top: calc(100% + 6px);
  bottom: auto;
}
#swapSlot #receiveTokenMenu {
  top: calc(100% + 6px);
  bottom: auto;
}
#swapSlot .swap-arrow {
  position: relative;
  z-index: 0;
}
@media (max-width: 600px) {
  #swapSlot #payTokenMenu,
  #swapSlot #receiveTokenMenu {
    min-width: 160px;
    max-height: 38vh;
  }
}


/* AJUSTE V11: selector de moneda inferior abre hacia abajo para no cubrir "Tú envías". */
#swapSlot .swap-box:has(#payDropdown) {
  z-index: 2 !important;
}
#swapSlot .swap-box:has(#receiveDropdown) {
  z-index: 80 !important;
}
#swapSlot #payDropdown,
#swapSlot #receiveDropdown {
  z-index: 90 !important;
}

/* Logo OKX DEX junto a la marca SUCRE-STAKING: solo en móvil (topbar). En escritorio se oculta. */
body.single-screen-staking .chart-logo-center {
  display: none !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(8px, 1.2vw, 16px) !important;
  min-width: 0;
}
body.mobile-dashboard-layout .app-topbar > .chart-logo-center {
  display: flex !important;
}
body.single-screen-staking .chart-okx-logo {
  display: block;
  height: clamp(30px, 4.6vh, 46px);
  width: auto;
  max-width: min(190px, 22vw);
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  mix-blend-mode: normal;
  filter: none;
  flex: 0 1 auto;
}
@media (max-width: 900px) {
  body.single-screen-staking .chart-logo-center {
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  body.single-screen-staking .chart-brand-logo {
    height: 42px;
    max-width: min(54vw, 260px);
  }
  body.single-screen-staking .chart-okx-logo {
    height: 32px;
    max-width: min(32vw, 150px);
  }
}
@media (max-width: 420px) {
  body.single-screen-staking .chart-logo-center {
    gap: 7px !important;
  }
  body.single-screen-staking .chart-brand-logo {
    height: 36px;
    max-width: 52vw;
  }
  body.single-screen-staking .chart-okx-logo {
    height: 27px;
    max-width: 29vw;
  }
}


/* FIX V12 — MENÚS DE MONEDAS EN DIRECCIONES OPUESTAS
   El selector superior ("Tú envías") abre hacia ARRIBA.
   El selector inferior ("Tú obtienes") abre hacia ABAJO.
   Así ninguno invade el panel del otro. Se conservan los IDs y eventos existentes.
*/
#swapSlot,
#swapSlot .swap-card {
  overflow: visible !important;
}
#swapSlot .swap-box {
  position: relative !important;
  overflow: visible !important;
}
#swapSlot .swap-box:has(#payDropdown) {
  z-index: 120 !important;
}
#swapSlot .swap-box:has(#receiveDropdown) {
  z-index: 110 !important;
}
#swapSlot #payDropdown,
#swapSlot #receiveDropdown {
  position: relative !important;
  z-index: 130 !important;
}
#swapSlot #payTokenMenu,
#swapSlot #receiveTokenMenu {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  z-index: 99999 !important;
  min-width: 172px;
  max-width: min(220px, calc(100vw - 48px));
  max-height: min(220px, 38vh);
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
/* Superior: se despliega hacia arriba, alejándose de "Tú obtienes". */
#swapSlot #payTokenMenu {
  top: auto !important;
  bottom: calc(100% + 6px) !important;
}
/* Inferior: se despliega hacia abajo, alejándose de "Tú envías". */
#swapSlot #receiveTokenMenu {
  top: calc(100% + 6px) !important;
  bottom: auto !important;
}
#swapSlot .swap-arrow {
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) {
  #swapSlot #payTokenMenu,
  #swapSlot #receiveTokenMenu {
    min-width: 156px;
    max-height: min(190px, 34vh);
  }
}


/* Selector de monedas en ventana modal: evita que el menú tape las secciones */
.token-picker-overlay[hidden] { display: none !important; }
.token-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 16, .76);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.token-picker-dialog {
  width: min(440px, 100%);
  max-height: min( min(82vh, 680px), calc(100dvh - 36px) );
  overflow: auto;
  padding: 22px;
  color: #f7f9ff;
  background: linear-gradient(155deg, rgba(22, 39, 67, .99), rgba(8, 14, 27, .99));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  box-shadow: 0 24px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(75,160,255,.08) inset;
}
.token-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.token-picker-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #8bbcff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.token-picker-header h3 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
}
.token-picker-header p {
  margin: 7px 0 0;
  color: #aebed5;
  font-size: 12px;
}
.token-picker-close {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.token-picker-list { display: grid; gap: 10px; }
.token-picker-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.token-picker-option:hover,
.token-picker-option.active {
  background: rgba(39, 178, 137, .16);
  border-color: rgba(59, 220, 171, .62);
}
.token-picker-option:active { transform: scale(.99); }
.token-picker-option img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  border-radius: 50%;
}
.token-picker-name {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.token-picker-name strong { font-size: 14px; font-weight: 800; }
.token-picker-name small { color: #9eafc8; font-size: 11px; }
.token-picker-price {
  flex: 0 0 auto;
  max-width: 125px;
  color: #dce8fb;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}
.token-picker-footnote {
  margin: 15px 2px 0;
  color: #8498b5;
  font-size: 10px;
  line-height: 1.5;
}
body.token-picker-open { overflow: hidden; }
@media (max-width: 480px) {
  .token-picker-dialog { padding: 18px; border-radius: 17px; }
  .token-picker-option { gap: 10px; min-height: 70px; padding: 10px; }
  .token-picker-option img { width: 36px; height: 36px; flex-basis: 36px; }
  .token-picker-price { max-width: 105px; font-size: 11px; }
}



/* V8 — Diseño móvil compacto de SUCRE-STAKING.
   Solo afecta teléfonos; escritorio conserva su distribución original. */
@media (max-width: 700px) {
  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  body.single-screen-staking .staking-app,
  .staking-app {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  /* Encabezado: logo banner Sucre-OKX como en la referencia, controles debajo, fondo transparente. */
  body.mobile-dashboard-layout .app-topbar {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 12px 12px !important;
    overflow: visible !important;
    border-bottom: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }
  body.mobile-dashboard-layout .app-topbar > .brand-lockup,
  body.mobile-dashboard-layout .app-topbar > .topbar-ticker-window {
    display: none !important;
  }
  body.mobile-dashboard-layout .app-topbar > .chart-logo-center {
    order: 1 !important;
    display: flex !important;
    width: 100% !important;
    min-height: 58px !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 auto !important;
    padding: 2px 4px !important;
    pointer-events: none !important;
    background: transparent !important;
  }
  body.mobile-dashboard-layout .app-topbar .chart-brand-logo {
    display: block !important;
    width: auto !important;
    height: 58px !important;
    max-height: 58px !important;
    max-width: min(92vw, 420px) !important;
    object-fit: contain !important;
    background: transparent !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)) drop-shadow(0 0 10px rgba(0,0,0,.25)) !important;
  }
  body.mobile-dashboard-layout .app-topbar .chart-okx-logo {
    display: none !important;
  }
  body.mobile-dashboard-layout .app-topbar > .topbar-right {
    order: 2 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    position: relative !important;
  }
  body.mobile-dashboard-layout #connectBtn,
  body.mobile-dashboard-layout .topbar-right #connectBtn {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 245px !important;
    min-height: 40px !important;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 13px rgba(240,180,0,.22) !important;
  }
  body.mobile-dashboard-layout #langSlot {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  body.mobile-dashboard-layout #langSlot .lang-switch {
    display: flex !important;
    gap: 3px !important;
    padding: 3px 4px !important;
    border-radius: 9px !important;
  }
  body.mobile-dashboard-layout #langSlot .lang-btn {
    width: 29px !important;
    height: 23px !important;
    padding: 2px !important;
  }
  body.mobile-dashboard-layout #langSlot .lang-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Se elimina por completo la franja de cotizaciones y el gráfico en teléfono. */
  body.mobile-dashboard-layout .topbar-ticker-window,
  body.mobile-dashboard-layout .brand-stage {
    display: none !important;
  }
  body.mobile-dashboard-layout .app-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 10px 20px !important;
    gap: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  body.mobile-dashboard-layout .wallet-sidebar {
    display: block !important;
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    border-radius: 16px !important;
  }
  body.mobile-dashboard-layout .sidebar-scroll {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 10px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* Orden de contenido: intercambio, staking, historial y soporte. */
  body.mobile-dashboard-layout .purchase-card {
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
  }
  body.mobile-dashboard-layout #chartSidePanel {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }
  body.mobile-dashboard-layout #chartStakingCard,
  body.mobile-dashboard-layout .chart-staking-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
  }
  body.mobile-dashboard-layout .purchase-activity-card {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow: visible !important;
  }
  body.mobile-dashboard-layout #soporte:not([hidden]) {
    display: block !important;
    order: 3 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
  body.mobile-dashboard-layout #soporte[hidden] {
    display: none !important;
  }
  body.mobile-dashboard-layout .app-socials {
    order: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 2px auto 8px !important;
    padding: 10px 0 4px !important;
  }
  body.mobile-dashboard-layout .app-socials a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 19px !important;
    border-radius: 50% !important;
  }
  body.mobile-dashboard-layout .chart-side-panel .history-details {
    width: 100% !important;
  }
  body.mobile-dashboard-layout .chart-side-panel .history-details summary {
    padding: 10px 2px !important;
    font-size: 13px !important;
  }
  body.mobile-dashboard-layout #balanceDetector,
  body.mobile-dashboard-layout #txReviewSlot,
  body.mobile-dashboard-layout #historySlot {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
@media (max-width: 380px) {
  body.mobile-dashboard-layout .app-topbar .chart-brand-logo {
    height: 50px !important;
    max-height: 50px !important;
    max-width: min(94vw, 360px) !important;
  }
  body.mobile-dashboard-layout .app-topbar .chart-okx-logo {
    display: none !important;
  }
  body.mobile-dashboard-layout #connectBtn {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}


/* V9 — Contrato SCE entre el intercambio y el panel de staking, solo móvil. */
@media (max-width: 700px) {
  body.mobile-sce-contract-enabled .mobile-sce-contract {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(242, 190, 45, .42) !important;
    border-radius: 13px !important;
    background: rgba(8, 18, 34, .88) !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.16) !important;
    box-sizing: border-box !important;
  }
  body.mobile-sce-contract-enabled .mobile-sce-contract-copy {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-width: 0 !important;
  }
  body.mobile-sce-contract-enabled .mobile-sce-contract-copy strong {
    color: #f6cf58 !important;
    font-size: 10px !important;
    letter-spacing: .09em !important;
    line-height: 1.3 !important;
  }
  body.mobile-sce-contract-enabled .mobile-sce-contract-copy code {
    display: block !important;
    overflow-wrap: anywhere !important;
    color: #e7edf8 !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    user-select: text !important;
  }
  body.mobile-sce-contract-enabled .mobile-sce-contract-button {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 7px 11px !important;
    border: 1px solid rgba(255, 214, 90, .6) !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #f8d65c, #e9a91c) !important;
    color: #171717 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
  }
}
@media (min-width: 701px) {
  .mobile-sce-contract { display: none !important; }
}


/* V10 — Orden visual móvil: intercambio -> contrato -> staking/historial. */
@media (max-width: 700px) {
  body.mobile-sce-contract-enabled .wallet-sidebar .sidebar-scroll > .purchase-card {
    order: 1 !important;
  }
  body.mobile-sce-contract-enabled .wallet-sidebar .sidebar-scroll > .mobile-sce-contract {
    order: 2 !important;
  }
  body.mobile-sce-contract-enabled .wallet-sidebar .sidebar-scroll > #chartSidePanel {
    order: 3 !important;
  }
}


/* V12 — Encabezado móvil compacto, fijo y estados de conexión por color.
   Solo teléfonos; escritorio y funciones de conexión permanecen intactos.
   Fondo transparente + logo banner completo (como la referencia). */
@media (max-width: 700px) {
  body.mobile-dashboard-layout .app-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9990 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 10px 10px !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }
  body.mobile-dashboard-layout .app-topbar > .chart-logo-center {
    display: flex !important;
    min-height: 58px !important;
    height: auto !important;
    gap: 0 !important;
    padding: 0 4px !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
  }
  body.mobile-dashboard-layout .app-topbar .chart-brand-logo {
    display: block !important;
    height: 58px !important;
    max-height: 58px !important;
    max-width: min(92vw, 420px) !important;
    width: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)) drop-shadow(0 0 10px rgba(0,0,0,.25)) !important;
  }
  body.mobile-dashboard-layout .app-topbar .chart-okx-logo {
    display: none !important;
  }
  body.mobile-dashboard-layout .app-topbar > .topbar-right {
    min-height: 38px !important;
    gap: 9px !important;
    background: transparent !important;
  }
  body.mobile-dashboard-layout #connectBtn,
  body.mobile-dashboard-layout .topbar-right #connectBtn {
    min-height: 35px !important;
    padding: 7px 17px !important;
    border: 1px solid #20d879 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #16c96b, #079b50) !important;
    color: #061b10 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: 0 3px 12px rgba(20, 205, 111, .22) !important;
  }
  body.mobile-dashboard-layout #connectBtn.connected,
  body.mobile-dashboard-layout .topbar-right #connectBtn.connected {
    border-color: #ff626b !important;
    background: linear-gradient(135deg, #ff555f, #d92738) !important;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(255, 55, 75, .24) !important;
  }
  body.mobile-dashboard-layout #langSlot .lang-switch {
    padding: 2px 3px !important;
  }
  body.mobile-dashboard-layout #langSlot .lang-btn {
    width: 27px !important;
    height: 21px !important;
  }
}
@media (max-width: 380px) {
  body.mobile-dashboard-layout .app-topbar > .chart-logo-center {
    min-height: 50px !important;
  }
  body.mobile-dashboard-layout .app-topbar .chart-brand-logo {
    height: 50px !important;
    max-height: 50px !important;
  }
}


/* V13 FIX: encabezado y boton de billetera realmente fijos al viewport.
   Solo teléfonos; mantiene la estructura y funciones originales.
   Logo Sucre-OKX como en la referencia, fondo transparente, fijo al hacer scroll. */
@media (max-width: 700px) {
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  body.mobile-dashboard-layout #stakingApp,
  body.single-screen-staking #stakingApp {
    padding-top: 118px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  body.mobile-dashboard-layout .app-topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 110px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 6px !important;
    overflow: visible !important;
    z-index: 2147483000 !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }
  body.mobile-dashboard-layout .app-topbar > .chart-logo-center {
    display: flex !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 58px !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 4px !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    background: transparent !important;
  }
  body.mobile-dashboard-layout .app-topbar .chart-brand-logo {
    display: block !important;
    height: 58px !important;
    max-height: 58px !important;
    width: auto !important;
    max-width: min(92vw, 420px) !important;
    object-fit: contain !important;
    background: transparent !important;
    /* Solo el sticker, sin cuadro negro; sombra suave para que se lea sobre el fondo */
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)) drop-shadow(0 0 10px rgba(0,0,0,.25)) !important;
  }
  body.mobile-dashboard-layout .app-topbar > .topbar-right {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 38px !important;
    margin: 0 !important;
    background: transparent !important;
  }
}
@media (max-width: 380px) {
  body.mobile-dashboard-layout #stakingApp,
  body.single-screen-staking #stakingApp {
    padding-top: 108px !important;
  }
  body.mobile-dashboard-layout .app-topbar {
    min-height: 100px !important;
    padding: 6px 8px 8px !important;
  }
  body.mobile-dashboard-layout .app-topbar > .chart-logo-center {
    min-height: 50px !important;
  }
  body.mobile-dashboard-layout .app-topbar .chart-brand-logo {
    height: 50px !important;
    max-height: 50px !important;
  }
}


/* V14: mayor contraste del texto introductorio del selector en celulares */
@media (max-width: 700px) {
  .wallet-modal-hint {
    color: #f4f7ff !important;
    opacity: 1 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.45) !important;
  }
}


/* V15: dirección de la billetera conectada en lugar del título de intercambio */
.exchange-wallet-label {
  display: block;
  color: #eaf2ff !important;
  opacity: 1 !important;
  font-weight: 800 !important;
  letter-spacing: .12em;
}
.exchange-wallet-address {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 5px 0 2px;
  padding: 7px 11px;
  border: 1px solid rgba(75, 211, 153, .42);
  border-radius: 9px;
  background: rgba(5, 24, 39, .72);
  color: #f4f8ff;
  font: 700 1rem/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .015em;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.exchange-wallet-address:disabled {
  cursor: default;
  opacity: .72;
  border-color: rgba(255,255,255,.16);
  color: #d5deeb;
}
.exchange-wallet-address.is-connected {
  color: #70f0b5;
  border-color: rgba(75, 211, 153, .62);
}
@media (max-width: 700px) {
  .exchange-wallet-label { font-size: .72rem !important; }
  .exchange-wallet-address {
    font-size: .88rem;
    padding: 6px 9px;
    margin-top: 4px;
  }
}


/* V16: nombres visibles junto a los iconos sociales solo en móviles */
.footer-social-label { display: none; }
@media (max-width: 700px) {
  .footer-socials {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  .footer-socials a.social-icon {
    width: auto !important;
    min-width: 84px !important;
    height: 42px !important;
    padding: 0 13px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 11px !important;
    text-decoration: none !important;
  }
  .footer-social-label {
    display: inline !important;
    color: #f4f7ff !important;
    font-size: .88rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
  }
}


/* V17: el texto de la dirección debe ocupar el ancho de su contenido */
.exchange-wallet-address {
  display: inline-flex !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: min(100%, 360px) !important;
  min-height: 32px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
  text-align: left !important;
  box-sizing: border-box !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  padding: 7px 12px !important;
}
.exchange-wallet-label {
  display: block !important;
  color: #f2f6ff !important;
  opacity: 1 !important;
  font-weight: 850 !important;
}
@media (max-width: 700px) {
  .exchange-wallet-address {
    max-width: min(100%, 310px) !important;
    font-size: 11px !important;
    padding: 7px 10px !important;
  }
}


/* Idioma: en escritorio banderas; en móvil un botón toggle (sin select/pestaña). */
.mobile-lang-toggle { display: none; }
@media (max-width: 768px) {
  body.mobile-dashboard-layout #langSlot .lang-switch {
    gap: 0 !important;
    padding: 2px 3px !important;
  }
  body.mobile-dashboard-layout #langSlot .lang-btn {
    display: none !important;
  }
  body.mobile-dashboard-layout #langSlot .mobile-lang-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    background: #101824;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.mobile-dashboard-layout #langSlot .mobile-lang-toggle img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
  }
  body.mobile-dashboard-layout #langSlot .mobile-lang-toggle span {
    letter-spacing: 0.04em;
  }
}

/* Móvil: evitar background-attachment fixed (flash / lag) y forzar color base */
@media (max-width: 768px) {
  body {
    background-attachment: scroll !important;
    background-color: #0a0a0f !important;
  }
}

/* Móvil: sin sky.jpg (evita flash de imagen grande/antigua al abrir) */
@media (max-width: 768px) {
  body {
    background-image: none !important;
    background-color: #0a0a0f !important;
    background-attachment: scroll !important;
  }
  body::before {
    background: rgba(5, 8, 20, 0.35) !important;
  }
}


/* V18: distribución compacta del intercambio en móviles; escritorio intacto. */
@media (max-width: 700px) {
  .swap-card.mobile-swap-reordered {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .swap-card.mobile-swap-reordered > .wallet-status-bar {
    order: 1;
    margin-bottom: 7px !important;
  }
  .swap-card.mobile-swap-reordered > #walletAddressBox {
    order: 2;
    margin: 0 0 10px !important;
    padding: 8px 10px !important;
    width: 100%;
    box-sizing: border-box;
  }
  .swap-card.mobile-swap-reordered > #disconnectBtn { order: 3; }
  .swap-card.mobile-swap-reordered > .swap-box:has(#payDropdown) { order: 4; }
  .swap-card.mobile-swap-reordered > .swap-arrow { order: 5; }
  .swap-card.mobile-swap-reordered > .swap-box:has(#receiveDropdown) { order: 6; }
  .swap-card.mobile-swap-reordered > .slippage-row { order: 7; }
  .swap-card.mobile-swap-reordered > #buyBtn { order: 8; }
  .swap-card.mobile-swap-reordered > .balances-section {
    order: 9;
    margin: 14px 0 0 !important;
    padding: 12px 13px 7px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(5, 17, 36, .62);
  }
  .swap-card.mobile-swap-reordered > .bottom-status { order: 10; }
  .swap-card.mobile-swap-reordered > .ca-box:not(#walletAddressBox) { order: 11; }

  #payDropdown .percent-buttons {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px !important;
    width: min(190px, 54vw);
    margin: 6px 0 0 auto !important;
  }
  #payDropdown .percent-buttons button {
    min-width: 0;
    padding: 6px 2px !important;
    border-radius: 7px !important;
    font-size: .69rem !important;
    line-height: 1.1;
  }
  .swap-card.mobile-swap-reordered .swap-box:first-of-type .swap-box-header {
    align-items: flex-start;
  }
  .swap-card.mobile-swap-reordered .balances-head {
    font-size: .68rem;
  }
  .swap-card.mobile-swap-reordered .asset-row {
    padding: 8px 0;
  }
  .swap-card.mobile-swap-reordered .asset-row:last-child {
    border-bottom: 0;
  }
}


/* V19: alinear el selector SOL con el selector SCE en móviles.
   El grupo SOL mantiene los porcentajes debajo, pero el botón de moneda
   queda pegado al borde derecho igual que el selector de recepción. */
@media (max-width: 700px) {
  body.mobile-dashboard-layout .swap-card.mobile-swap-reordered #payDropdown {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    margin-left: auto !important;
    width: max-content !important;
  }
  body.mobile-dashboard-layout .swap-card.mobile-swap-reordered #payDropdown > #payTokenSelect {
    align-self: flex-end !important;
    margin-left: auto !important;
  }
  body.mobile-dashboard-layout .swap-card.mobile-swap-reordered #payDropdown > .percent-buttons {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}


/* V19: rótulo bajo el logo OKX-DEX, solo en móviles. */
@media (max-width: 700px) {
  body.mobile-dashboard-layout .sidebar-section-heading.compact .okx-dex-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    margin-top: -7px !important;
    flex: 0 0 auto !important;
  }
  body.mobile-dashboard-layout .sidebar-section-heading.compact .okx-dex-badge {
    width: 76px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }
  body.mobile-dashboard-layout .sidebar-section-heading.compact .okx-exchange-caption {
    display: block !important;
    color: #ffffff !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .015em !important;
    text-align: center !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.7) !important;
  }
}

/* V20: mostrar también en escritorio el rótulo debajo del logo OKX-DEX.
   Se limita al encabezado de intercambio de PC; el ajuste móvil existente
   permanece sin cambios. */
@media (min-width: 701px) {
  body.mobile-dashboard-layout .sidebar-section-heading.compact .okx-dex-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    margin-top: -7px !important;
    flex: 0 0 auto !important;
  }
  body.mobile-dashboard-layout .sidebar-section-heading.compact .okx-dex-badge {
    transform: translateY(-3px);
  }
  body.mobile-dashboard-layout .sidebar-section-heading.compact .okx-exchange-caption {
    display: block !important;
    color: #ffffff !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .015em !important;
    text-align: center !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.7) !important;
  }
}


/* V22: corrección real para escritorio (sin depender de clases móviles).
   Usa .purchase-card (la tarjeta de intercambio en la barra izquierda de PC). */
@media screen and (min-width: 701px) {
  .purchase-card .sidebar-section-heading.compact {
    position: relative !important;
    display: block !important;
    min-height: 100px !important;
    padding-right: 126px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .purchase-card .sidebar-section-heading.compact > div:first-child {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .purchase-card .sidebar-section-heading.compact .exchange-wallet-label,
  .purchase-card .sidebar-section-heading.compact .exchange-wallet-address,
  .purchase-card .sidebar-section-heading.compact .sce-live-price {
    position: relative !important;
    z-index: 1 !important;
  }
  .purchase-card .sidebar-section-heading.compact .exchange-wallet-address {
    display: inline-flex !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .purchase-card .sidebar-section-heading.compact .okx-dex-brand {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 112px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex: none !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    transform: none !important;
    z-index: 2 !important;
  }
  .purchase-card .sidebar-section-heading.compact .okx-dex-badge {
    width: 76px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    transform: none !important;
  }
  .purchase-card .sidebar-section-heading.compact .okx-exchange-caption {
    display: block !important;
    width: 112px !important;
    max-width: 112px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    letter-spacing: .01em !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.7) !important;
  }
}


/* V23 — ADAPTACIÓN AUTOMÁTICA PARA PC, PORTÁTILES Y TABLETS HORIZONTALES.
   Esta capa solo modifica distribución y tamaños visuales. No toca app.js,
   los proveedores del gráfico, las billeteras ni las reglas de staking. */
@media screen and (min-width: 701px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  body.single-screen-staking #stakingApp {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .app-topbar {
    position: relative !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .app-main {
    display: grid !important;
    grid-template-columns: minmax(260px, clamp(280px, 27vw, 390px)) minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: stretch !important;
    gap: clamp(10px, 1.2vw, 18px) !important;
    width: 100% !important;
    max-width: 1920px !important;
    height: auto !important;
    min-height: calc(100vh - 76px) !important;
    min-height: calc(100dvh - 76px) !important;
    margin: 0 auto !important;
    padding: clamp(9px, 1.1vw, 18px) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .app-main > .wallet-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .wallet-sidebar .sidebar-scroll {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .app-main > .brand-stage {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .brand-stage .stage-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(8px, 1vw, 14px) !important;
    gap: clamp(9px, 1vw, 14px) !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .live-chart-shell {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .live-chart-mount,
  body.single-screen-staking .live-chart-shell.chart-mode-embed .live-chart-mount {
    width: 100% !important;
    height: clamp(320px, 52vh, 620px) !important;
    min-height: 280px !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .chart-side-panel {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    gap: clamp(8px, 1vw, 14px) !important;
  }
  body.single-screen-staking .chart-staking-card,
  body.single-screen-staking .purchase-activity-card {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 220px !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
}

/* Portátiles y pantallas intermedias: panel de compra más estrecho,
   gráfico ancho y tarjetas de staking/historial en dos columnas debajo. */
@media screen and (min-width: 701px) and (max-width: 1100px) {
  body.single-screen-staking .app-main {
    grid-template-columns: minmax(230px, 29vw) minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 9px !important;
  }
  body.single-screen-staking .brand-stage .stage-content {
    padding: 8px !important;
    gap: 8px !important;
  }
  body.single-screen-staking .live-chart-mount,
  body.single-screen-staking .live-chart-shell.chart-mode-embed .live-chart-mount {
    height: clamp(290px, 45vh, 480px) !important;
    min-height: 270px !important;
  }
  body.single-screen-staking .chart-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body.single-screen-staking .chart-staking-card,
  body.single-screen-staking .purchase-activity-card {
    padding: 10px !important;
    min-height: 190px !important;
  }
  body.single-screen-staking .chart-staking-card .staking-terms {
    gap: 5px !important;
  }
  body.single-screen-staking .chart-staking-card .staking-terms > div {
    padding: 7px 4px !important;
  }
  body.single-screen-staking .chart-staking-card .staking-terms strong {
    font-size: clamp(14px, 1.7vw, 19px) !important;
  }
  body.single-screen-staking .chart-staking-card .staking-terms span {
    font-size: 9px !important;
  }
  body.single-screen-staking .purchase-card {
    padding: 10px !important;
  }
}

/* Monitores grandes: gráfico y tarjetas laterales en paralelo para aprovechar
   el espacio, sin estirar la web más allá del ancho útil del monitor. */
@media screen and (min-width: 1101px) {
  body.single-screen-staking .app-main {
    grid-template-columns: minmax(280px, clamp(300px, 25vw, 390px)) minmax(0, 1fr) !important;
  }
  body.single-screen-staking .brand-stage .stage-content {
    grid-template-columns: minmax(0, 1fr) minmax(210px, clamp(210px, 21vw, 285px)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  body.single-screen-staking .live-chart-shell {
    height: 100% !important;
    min-height: 0 !important;
  }
  body.single-screen-staking .live-chart-mount,
  body.single-screen-staking .live-chart-shell.chart-mode-embed .live-chart-mount {
    height: clamp(340px, 58vh, 700px) !important;
    min-height: 300px !important;
    flex: 1 1 auto !important;
  }
  body.single-screen-staking .chart-side-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(2, minmax(210px, 1fr)) !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: auto !important;
  }
  body.single-screen-staking .chart-staking-card,
  body.single-screen-staking .purchase-activity-card {
    height: auto !important;
    min-height: 210px !important;
    overflow: auto !important;
  }
}

/* Pantallas de portátil de poca altura: mantener el gráfico visible y permitir
   desplazamiento natural para leer el contenido completo de cada panel. */
@media screen and (min-width: 701px) and (max-height: 760px) {
  body.single-screen-staking .live-chart-mount,
  body.single-screen-staking .live-chart-shell.chart-mode-embed .live-chart-mount {
    height: clamp(260px, 43vh, 390px) !important;
    min-height: 240px !important;
  }
  body.single-screen-staking .chart-staking-card,
  body.single-screen-staking .purchase-activity-card {
    min-height: 190px !important;
  }
}

/* Si el navegador cambia el zoom o el tamaño de ventana, el iframe del
   proveedor ocupa siempre el ancho y alto nuevo del contenedor. */
body.single-screen-staking .live-chart-mount iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
}


/* V24: saldos SOL / USDC / SCE debajo del botón de intercambio en escritorio.
   En móvil conserva la misma ubicación ya aplicada por el reordenamiento móvil. */
@media screen and (min-width: 701px) {
  body.single-screen-staking .swap-card > #buyBtn + .balances-section {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* V25 — LAPTOP COMPACT DESKTOP
   Keep the exact desktop 3-panel composition on laptop screens. The shorter
   viewport gets denser spacing and internal scrolling instead of cutting off
   the exchange button, token balances, staking card or history. */
@media screen and (min-width: 901px) and (max-height: 780px) {
  html, body {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.single-screen-staking #stakingApp {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .app-topbar {
    flex: 0 0 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.single-screen-staking .app-main {
    display: grid !important;
    grid-template-columns: minmax(250px, 27vw) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 9px !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: calc(100dvh - 62px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 62px) !important;
    padding: 8px !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .app-main > .wallet-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .wallet-sidebar .sidebar-scroll {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px !important;
    scrollbar-width: thin;
  }
  body.single-screen-staking .app-main > .brand-stage {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .brand-stage .stage-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(190px, clamp(205px, 21vw, 265px)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .live-chart-shell {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .live-chart-mount,
  body.single-screen-staking .live-chart-shell.chart-mode-embed .live-chart-mount {
    height: clamp(230px, 39vh, 360px) !important;
    min-height: 210px !important;
    max-height: 360px !important;
  }
  body.single-screen-staking .chart-side-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .chart-staking-card,
  body.single-screen-staking .purchase-activity-card {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .staking-card-head {
    margin-bottom: 7px !important;
  }
  body.single-screen-staking .staking-terms {
    gap: 5px !important;
    margin: 7px 0 !important;
  }
  body.single-screen-staking .staking-terms > div {
    padding: 7px 4px !important;
  }
  body.single-screen-staking .staking-terms strong {
    font-size: clamp(14px, 1.25vw, 18px) !important;
  }
  body.single-screen-staking .staking-terms span,
  body.single-screen-staking .staking-card p,
  body.single-screen-staking .staking-content {
    font-size: clamp(9px, .72vw, 11px) !important;
    line-height: 1.3 !important;
  }
  body.single-screen-staking .purchase-activity-card .history-details {
    min-height: 0 !important;
  }

  /* Compact the wallet exchange vertically while retaining the same controls. */
  body.single-screen-staking .purchase-card {
    padding: 8px !important;
  }
  body.single-screen-staking .sidebar-section-heading {
    margin-bottom: 5px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons {
    margin: 5px 0 !important;
    gap: 4px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons button {
    padding: 5px 3px !important;
    min-height: 25px !important;
  }
  body.single-screen-staking #swapSlot .swap-box {
    padding: 9px !important;
    margin: 5px 0 !important;
  }
  body.single-screen-staking #swapSlot .swap-box input,
  body.single-screen-staking #swapSlot .swap-box .amount-input {
    min-height: 32px !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow {
    margin: 3px auto !important;
  }
  body.single-screen-staking #swapSlot .slippage-row {
    margin: 5px 0 !important;
  }
  body.single-screen-staking #swapSlot .slippage-buttons button {
    padding: 3px 6px !important;
  }
  body.single-screen-staking #swapSlot .btn-swap {
    min-height: 38px !important;
    margin: 5px 0 0 !important;
  }
  body.single-screen-staking #swapSlot .balances-section {
    padding: 7px !important;
    margin-top: 8px !important;
  }
  body.single-screen-staking #swapSlot .asset-row {
    padding: 5px 0 !important;
    min-height: 36px !important;
  }
  body.single-screen-staking #swapSlot .token-logo {
    width: 22px !important;
    height: 22px !important;
  }
  body.single-screen-staking #swapSlot .asset-row strong {
    font-size: 10px !important;
  }
  body.single-screen-staking #swapSlot .asset-row small {
    font-size: 8px !important;
  }
}

/* 1280px laptop width: reserve enough room for the chart and right cards. */
@media screen and (min-width: 1100px) and (max-width: 1400px) and (max-height: 780px) {
  body.single-screen-staking .app-main {
    grid-template-columns: minmax(250px, 26vw) minmax(0, 1fr) !important;
  }
  body.single-screen-staking .brand-stage .stage-content {
    grid-template-columns: minmax(0, 1fr) minmax(195px, 22vw) !important;
  }
}


/* V26 — MATCH DESKTOP COMPOSITION + LAPTOP FIT
   Desktop: all three columns share the chart's available height.
   Laptop 1280x720: fit the complete exchange in the left panel, show only
   staking on the right, and remove the redundant history card. */

/* Desktop and large monitors: equal-height left / chart / right columns. */
@media screen and (min-width: 901px) and (min-height: 781px) {
  html, body {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.single-screen-staking #stakingApp {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .app-topbar {
    flex: 0 0 72px !important;
    height: 72px !important;
    min-height: 72px !important;
  }
  body.single-screen-staking .app-main {
    display: grid !important;
    grid-template-columns: minmax(280px, 22vw) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: calc(100dvh - 72px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 72px) !important;
    padding: 10px !important;
    gap: 12px !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .app-main > .wallet-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .wallet-sidebar .sidebar-scroll {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 10px !important;
  }
  body.single-screen-staking .app-main > .brand-stage {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .brand-stage .stage-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(220px, clamp(220px, 18vw, 300px)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 10px !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .live-chart-shell {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .chart-side-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    gap: 10px !important;
  }
  body.single-screen-staking .chart-staking-card,
  body.single-screen-staking .purchase-activity-card {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    overflow: auto !important;
    box-sizing: border-box !important;
  }
}

/* Laptop mode: 1280x720 and similar. No page scrolling is required to see
   the swap inputs, action button and the SOL / USDC / SCE balances. */
@media screen and (min-width: 901px) and (max-height: 780px) {
  body.single-screen-staking #stakingApp {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .app-topbar {
    flex: 0 0 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  body.single-screen-staking .app-main {
    display: grid !important;
    grid-template-columns: minmax(245px, 27vw) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: calc(100dvh - 60px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 60px) !important;
    padding: 6px !important;
    gap: 7px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .app-main > .wallet-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .wallet-sidebar .sidebar-scroll {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding: 6px !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .purchase-card {
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .sidebar-section-heading {
    margin: 0 0 3px !important;
    min-height: 0 !important;
  }
  body.single-screen-staking .sidebar-section-heading .eyebrow,
  body.single-screen-staking .sidebar-section-heading .sce-live-price {
    font-size: 9px !important;
    line-height: 1.15 !important;
  }
  body.single-screen-staking .okx-dex-brand img,
  body.single-screen-staking .okx-dex-badge img {
    max-height: 34px !important;
    width: auto !important;
  }
  body.single-screen-staking #swapSlot {
    min-height: 0 !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons {
    display: flex !important;
    gap: 4px !important;
    margin: 3px 0 !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons button {
    min-height: 23px !important;
    padding: 3px 2px !important;
    font-size: 9px !important;
  }
  body.single-screen-staking #swapSlot .swap-box {
    min-height: 0 !important;
    padding: 6px !important;
    margin: 3px 0 !important;
    border-radius: 10px !important;
  }
  body.single-screen-staking #swapSlot .swap-box input,
  body.single-screen-staking #swapSlot .swap-box .amount-input {
    min-height: 27px !important;
    font-size: 14px !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow {
    margin: 2px auto !important;
    width: 25px !important;
    height: 25px !important;
  }
  body.single-screen-staking #swapSlot .slippage-row {
    margin: 3px 0 !important;
    min-height: 20px !important;
  }
  body.single-screen-staking #swapSlot .slippage-buttons button {
    padding: 2px 5px !important;
    min-height: 19px !important;
    font-size: 8px !important;
  }
  body.single-screen-staking #swapSlot .btn-swap,
  body.single-screen-staking #swapSlot button[id*="swap"],
  body.single-screen-staking #swapSlot button[type="submit"] {
    min-height: 34px !important;
    padding: 6px 8px !important;
    margin: 3px 0 0 !important;
    font-size: 11px !important;
  }
  body.single-screen-staking #swapSlot .balances-section {
    display: block !important;
    margin: 5px 0 0 !important;
    padding: 5px 7px !important;
    border-radius: 9px !important;
  }
  body.single-screen-staking #swapSlot .balances-head {
    min-height: 18px !important;
    margin-bottom: 2px !important;
    font-size: 8px !important;
  }
  body.single-screen-staking #swapSlot .asset-row {
    display: flex !important;
    align-items: center !important;
    min-height: 29px !important;
    padding: 3px 0 !important;
    gap: 6px !important;
  }
  body.single-screen-staking #swapSlot .asset-row .token-logo,
  body.single-screen-staking #swapSlot .asset-row img {
    width: 19px !important;
    height: 19px !important;
  }
  body.single-screen-staking #swapSlot .asset-row strong {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }
  body.single-screen-staking #swapSlot .asset-row small {
    font-size: 7px !important;
    line-height: 1.1 !important;
  }

  /* Keep chart and reward card visible; history is redundant on laptop because
     the market chart already includes the transaction feed. */
  body.single-screen-staking .app-main > .brand-stage {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .brand-stage .stage-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(205px, 22vw) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 6px !important;
    gap: 7px !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .live-chart-shell {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .live-chart-mount,
  body.single-screen-staking .live-chart-shell.chart-mode-embed .live-chart-mount {
    height: clamp(220px, 36vh, 310px) !important;
    min-height: 200px !important;
    max-height: 310px !important;
  }
  body.single-screen-staking .chart-side-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    gap: 0 !important;
  }
  body.single-screen-staking .chart-staking-card {
    display: flex !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  body.single-screen-staking .purchase-activity-card {
    display: none !important;
  }
  body.single-screen-staking .chart-staking-card .staking-card-head {
    margin-bottom: 6px !important;
  }
  body.single-screen-staking .chart-staking-card .staking-terms {
    gap: 5px !important;
    margin: 6px 0 !important;
  }
  body.single-screen-staking .chart-staking-card .staking-terms > div {
    padding: 7px 4px !important;
  }
  body.single-screen-staking .chart-staking-card p,
  body.single-screen-staking .chart-staking-card .staking-content {
    font-size: 9px !important;
    line-height: 1.25 !important;
  }
}

/* Keep chart provider's iframe responsive after the grid recalculates. */
body.single-screen-staking .live-chart-mount iframe {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: 0 !important;
}


/* V27 — LAPTOP ONLY: fit the complete left exchange and all three balances
   inside the visible 1280x720-class viewport. Desktop monitor rules untouched. */
@media screen and (min-width: 901px) and (max-height: 780px) {
  body.single-screen-staking .app-topbar {
    flex-basis: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }
  body.single-screen-staking .app-main {
    height: calc(100dvh - 52px) !important;
    max-height: calc(100dvh - 52px) !important;
    padding: 3px 5px 5px !important;
    gap: 5px !important;
  }
  body.single-screen-staking .app-main > .wallet-sidebar {
    padding: 0 !important;
    border-radius: 12px !important;
  }
  body.single-screen-staking .wallet-sidebar .sidebar-scroll {
    padding: 4px !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .purchase-card {
    padding: 2px !important;
  }
  body.single-screen-staking .sidebar-section-heading.compact {
    margin: 0 0 2px !important;
    min-height: 0 !important;
    gap: 4px !important;
  }
  body.single-screen-staking .sidebar-section-heading .eyebrow,
  body.single-screen-staking .sidebar-section-heading .sce-live-price {
    font-size: 8px !important;
    line-height: 1.05 !important;
    margin: 0 !important;
  }
  body.single-screen-staking .sidebar-section-heading .exchange-wallet-address {
    max-height: 19px !important;
    padding: 2px 4px !important;
    font-size: 8px !important;
  }
  body.single-screen-staking .okx-dex-brand img,
  body.single-screen-staking .okx-dex-badge img {
    max-height: 28px !important;
  }
  body.single-screen-staking .okx-exchange-caption {
    font-size: 8px !important;
    line-height: 1.05 !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons {
    margin: 2px 0 !important;
    gap: 3px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons button {
    min-height: 20px !important;
    padding: 2px !important;
    font-size: 8px !important;
    line-height: 1 !important;
  }
  body.single-screen-staking #swapSlot .swap-box {
    padding: 4px 6px !important;
    margin: 2px 0 !important;
    min-height: 0 !important;
    border-radius: 9px !important;
  }
  body.single-screen-staking #swapSlot .swap-box > * {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
  }
  body.single-screen-staking #swapSlot .swap-box input,
  body.single-screen-staking #swapSlot .swap-box .amount-input {
    min-height: 23px !important;
    height: 25px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    font-size: 13px !important;
  }
  body.single-screen-staking #swapSlot .swap-box small,
  body.single-screen-staking #swapSlot .swap-box .balance-label {
    font-size: 7px !important;
    line-height: 1.05 !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow {
    width: 21px !important;
    height: 21px !important;
    min-height: 21px !important;
    margin: 1px auto !important;
  }
  body.single-screen-staking #swapSlot .slippage-row {
    margin: 2px 0 !important;
    min-height: 16px !important;
    font-size: 8px !important;
  }
  body.single-screen-staking #swapSlot .slippage-buttons button {
    min-height: 16px !important;
    padding: 1px 4px !important;
    font-size: 7px !important;
  }
  body.single-screen-staking #swapSlot .btn-swap,
  body.single-screen-staking #swapSlot button[id*="swap"],
  body.single-screen-staking #swapSlot button[type="submit"] {
    min-height: 29px !important;
    height: 29px !important;
    padding: 4px 6px !important;
    margin: 2px 0 0 !important;
    font-size: 10px !important;
  }
  body.single-screen-staking #swapSlot .balances-section {
    margin: 3px 0 0 !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
  }
  body.single-screen-staking #swapSlot .balances-head {
    min-height: 15px !important;
    margin: 0 0 1px !important;
    font-size: 7px !important;
    line-height: 1 !important;
  }
  body.single-screen-staking #swapSlot .balances-head button {
    min-height: 17px !important;
    padding: 1px 5px !important;
    font-size: 8px !important;
  }
  body.single-screen-staking #swapSlot .asset-row {
    min-height: 25px !important;
    padding: 2px 0 !important;
    gap: 5px !important;
  }
  body.single-screen-staking #swapSlot .asset-row .token-logo,
  body.single-screen-staking #swapSlot .asset-row img {
    width: 17px !important;
    height: 17px !important;
  }
  body.single-screen-staking #swapSlot .asset-row strong {
    font-size: 8px !important;
    line-height: 1 !important;
  }
  body.single-screen-staking #swapSlot .asset-row small {
    font-size: 6px !important;
    line-height: 1 !important;
  }
}


/* V28 — LAPTOP EXCHANGE PANEL BALANCE
   Slightly restore breathing room and readable control sizes after the
   compact fit. The three balances remain fully visible; desktop is untouched. */
@media screen and (min-width: 901px) and (max-height: 780px) {
  body.single-screen-staking .app-topbar {
    flex-basis: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
  }
  body.single-screen-staking .app-main {
    height: calc(100dvh - 56px) !important;
    max-height: calc(100dvh - 56px) !important;
  }
  body.single-screen-staking .wallet-sidebar .sidebar-scroll {
    padding: 7px !important;
  }
  body.single-screen-staking .purchase-card {
    padding: 5px !important;
  }
  body.single-screen-staking .sidebar-section-heading.compact {
    margin-bottom: 5px !important;
    gap: 6px !important;
  }
  body.single-screen-staking .sidebar-section-heading .eyebrow,
  body.single-screen-staking .sidebar-section-heading .sce-live-price {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
  body.single-screen-staking .okx-dex-brand img,
  body.single-screen-staking .okx-dex-badge img {
    max-height: 32px !important;
  }
  body.single-screen-staking .okx-exchange-caption {
    font-size: 9px !important;
    line-height: 1.15 !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons {
    margin: 4px 0 !important;
    gap: 4px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons button {
    min-height: 23px !important;
    padding: 3px 4px !important;
    font-size: 9px !important;
  }
  body.single-screen-staking #swapSlot .swap-box {
    padding: 6px 8px !important;
    margin: 4px 0 !important;
  }
  body.single-screen-staking #swapSlot .swap-box input,
  body.single-screen-staking #swapSlot .swap-box .amount-input {
    min-height: 27px !important;
    height: 28px !important;
    font-size: 14px !important;
  }
  body.single-screen-staking #swapSlot .swap-box small,
  body.single-screen-staking #swapSlot .swap-box .balance-label {
    font-size: 8px !important;
    line-height: 1.15 !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow {
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 3px auto !important;
  }
  body.single-screen-staking #swapSlot .slippage-row {
    margin: 4px 0 !important;
    min-height: 19px !important;
    font-size: 9px !important;
  }
  body.single-screen-staking #swapSlot .slippage-buttons button {
    min-height: 18px !important;
    padding: 2px 5px !important;
    font-size: 8px !important;
  }
  body.single-screen-staking #swapSlot .btn-swap,
  body.single-screen-staking #swapSlot button[id*="swap"],
  body.single-screen-staking #swapSlot button[type="submit"] {
    min-height: 33px !important;
    height: 33px !important;
    padding: 5px 8px !important;
    margin-top: 4px !important;
    font-size: 11px !important;
  }
  body.single-screen-staking #swapSlot .balances-section {
    margin-top: 5px !important;
    padding: 6px 8px !important;
  }
  body.single-screen-staking #swapSlot .balances-head {
    min-height: 17px !important;
    margin-bottom: 2px !important;
    font-size: 8px !important;
  }
  body.single-screen-staking #swapSlot .balances-head button {
    min-height: 19px !important;
    padding: 2px 6px !important;
    font-size: 9px !important;
  }
  body.single-screen-staking #swapSlot .asset-row {
    min-height: 28px !important;
    padding: 4px 0 !important;
    gap: 6px !important;
  }
  body.single-screen-staking #swapSlot .asset-row .token-logo,
  body.single-screen-staking #swapSlot .asset-row img {
    width: 20px !important;
    height: 20px !important;
  }
  body.single-screen-staking #swapSlot .asset-row strong {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }
  body.single-screen-staking #swapSlot .asset-row small {
    font-size: 7px !important;
    line-height: 1.1 !important;
  }
}


/* V29 — LAPTOP ONLY: vertically balance the percentage controls and the
   three wallet-asset rows inside the exchange card. Desktop remains unchanged. */
@media screen and (min-width: 901px) and (max-height: 780px) {
  body.single-screen-staking .wallet-sidebar .sidebar-scroll {
    padding: 8px 7px 10px !important;
  }
  body.single-screen-staking .purchase-card {
    padding: 5px 5px 8px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons {
    margin: 8px 0 5px !important;
    gap: 4px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons button {
    min-height: 22px !important;
    padding: 3px 4px !important;
  }
  body.single-screen-staking #swapSlot .swap-box {
    padding: 5px 7px !important;
    margin: 3px 0 !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow {
    width: 23px !important;
    height: 23px !important;
    min-height: 23px !important;
    margin: 1px auto !important;
  }
  body.single-screen-staking #swapSlot .slippage-row {
    margin: 3px 0 !important;
  }
  body.single-screen-staking #swapSlot .btn-swap,
  body.single-screen-staking #swapSlot button[id*="swap"],
  body.single-screen-staking #swapSlot button[type="submit"] {
    margin-top: 3px !important;
    min-height: 32px !important;
    height: 32px !important;
  }
  body.single-screen-staking #swapSlot .balances-section {
    margin: 4px 0 0 !important;
    padding: 5px 7px !important;
  }
  body.single-screen-staking #swapSlot .balances-head {
    margin-bottom: 2px !important;
  }
  body.single-screen-staking #swapSlot .asset-row {
    min-height: 26px !important;
    padding: 3px 0 !important;
    gap: 6px !important;
  }
}


/* V30 — LAPTOP MICRO-ADJUSTMENT: smaller swap-direction control and a
   little clearance between the OKX label and percentage shortcuts. */
@media screen and (min-width: 901px) and (max-height: 780px) {
  body.single-screen-staking .okx-dex-brand img,
  body.single-screen-staking .okx-dex-badge img {
    max-height: 28px !important;
  }
  body.single-screen-staking .okx-exchange-caption {
    font-size: 8px !important;
    line-height: 1 !important;
    margin-top: 1px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons {
    margin-top: 7px !important;
    margin-bottom: 5px !important;
    position: relative !important;
    z-index: 1 !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    margin: 1px auto !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow svg,
  body.single-screen-staking #swapSlot .swap-arrow i {
    width: 11px !important;
    height: 11px !important;
    font-size: 11px !important;
  }
}


/* V31 — LAPTOP: compacta ligeramente el formulario desde porcentajes
   hasta saldos. Se excluye expresamente el bloque/imagen de OKX DEX. */
@media screen and (min-width: 901px) and (max-height: 780px) {
  body.single-screen-staking #swapSlot .percent-buttons {
    margin: 5px 0 3px !important;
    gap: 4px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons button {
    min-height: 19px !important;
    height: 19px !important;
    padding: 1px 3px !important;
    line-height: 1 !important;
    font-size: 8px !important;
  }
  body.single-screen-staking #swapSlot .swap-box {
    padding: 4px 6px !important;
    margin: 2px 0 !important;
  }
  body.single-screen-staking #swapSlot .swap-box input,
  body.single-screen-staking #swapSlot .swap-box .amount-input {
    min-height: 25px !important;
    height: 25px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow {
    width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    margin: 0 auto !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow svg {
    width: 17px !important;
    height: 17px !important;
    padding: 2px !important;
  }
  body.single-screen-staking #swapSlot .slippage-row {
    margin: 1px 0 !important;
    min-height: 15px !important;
  }
  body.single-screen-staking #swapSlot .slippage-buttons button {
    min-height: 15px !important;
    padding: 1px 4px !important;
    font-size: 7px !important;
  }
  body.single-screen-staking #swapSlot .btn-swap,
  body.single-screen-staking #swapSlot button[id*="swap"],
  body.single-screen-staking #swapSlot button[type="submit"] {
    min-height: 28px !important;
    height: 28px !important;
    padding: 3px 6px !important;
    margin: 1px 0 0 !important;
  }
  body.single-screen-staking #swapSlot .balances-section {
    margin: 3px 0 0 !important;
    padding: 4px 6px !important;
  }
  body.single-screen-staking #swapSlot .balances-head {
    min-height: 14px !important;
    margin: 0 0 1px !important;
    line-height: 1 !important;
  }
  body.single-screen-staking #swapSlot .asset-row {
    min-height: 23px !important;
    padding: 1px 0 !important;
    gap: 5px !important;
  }
  body.single-screen-staking #swapSlot .asset-row .token-logo,
  body.single-screen-staking #swapSlot .asset-row img {
    max-width: 20px !important;
    max-height: 20px !important;
  }
}


/* V32 — Bajar un poco desde porcentajes para no tapar texto OKX DEX */
@media screen and (min-width: 901px) {
  /* Espacio extra bajo el encabezado con el sticker OKX */
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact {
    min-height: 108px !important;
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
  }

  body.single-screen-staking #swapSlot .percent-buttons {
    margin-top: 10px !important;
  }

  /* El badge OKX queda por encima de cualquier solape */
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .okx-dex-brand {
    z-index: 5 !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .okx-exchange-caption {
    z-index: 5 !important;
    position: relative !important;
  }
}

/* En pantallas bajas de laptop, mantener el espacio sin aplastar el OKX */
@media screen and (min-width: 901px) and (max-height: 780px) {
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact {
    min-height: 102px !important;
    margin-bottom: 4px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons {
    margin-top: 8px !important;
  }
}

/* V33 — PC: mostrar únicamente el panel de staking a la derecha del gráfico.
   El historial se conserva para móvil y para el resto de funciones internas. */
@media screen and (min-width: 901px) {
  body.single-screen-staking .chart-side-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  body.single-screen-staking .chart-side-panel .purchase-activity-card {
    display: none !important;
  }

  body.single-screen-staking .chart-side-panel .chart-staking-card {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}


/* V34 — PC: encabezado compacto del gráfico, sin quitar elementos */
@media screen and (min-width: 901px) {
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo {
    display: grid !important;
    grid-template-columns: minmax(175px, 1fr) auto minmax(112px, auto) !important;
    grid-template-rows: minmax(54px, auto) !important;
    align-items: center !important;
    justify-items: stretch !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    min-height: 62px !important;
    height: auto !important;
    padding: 5px 10px !important;
    box-sizing: border-box !important;
  }

  body.single-screen-staking .chart-heading-left {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3px 6px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.single-screen-staking .chart-heading-left .chart-live-dot {
    flex: 0 0 7px !important;
    width: 7px !important;
    height: 7px !important;
  }

  body.single-screen-staking .chart-heading-left .chart-asset-logo {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }

  body.single-screen-staking .chart-heading-left strong {
    font-size: 10px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  body.single-screen-staking .chart-heading-left .chart-price {
    font-size: 10px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  /* V41 override: CA en la misma fila, no forzar 100% de ancho */
  body.single-screen-staking .chart-ca-copy {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 3px 8px !important;
    gap: 5px !important;
  }

  body.single-screen-staking .chart-ca-copy code {
    max-width: none !important;
    font-size: 10px !important;
  }

  body.single-screen-staking .chart-ca-btn {
    padding: 3px 7px !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  body.single-screen-staking .chart-logo-center {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: auto !important;
  }

  body.single-screen-staking .chart-brand-logo {
    height: 43px !important;
    max-height: 43px !important;
    max-width: 165px !important;
    width: auto !important;
  }

  body.single-screen-staking .chart-okx-logo {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 72px !important;
    width: auto !important;
  }

  body.single-screen-staking .chart-heading-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    width: auto !important;
  }

  body.single-screen-staking .chart-connect-slot,
  body.single-screen-staking #chartConnectSlot {
    min-width: 0 !important;
    width: auto !important;
  }

  body.single-screen-staking #chartConnectSlot .btn-connect,
  body.single-screen-staking .chart-connect-slot .btn-connect,
  body.single-screen-staking #chartWalletInfoSlot .btn-disconnect,
  body.single-screen-staking .chart-wallet-info-slot .btn-disconnect {
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    border-radius: 20px !important;
  }

  body.single-screen-staking .chart-source-line {
    padding-top: 3px !important;
    padding-bottom: 4px !important;
  }
}


/* V36 — Contrato completo visible en el encabezado del gráfico.
   Se elimina únicamente el botón Copiar CA de este encabezado. */
body.single-screen-staking .chart-heading-left .chart-ca-copy {
  display: flex !important;
  align-items: center !important;
  width: min(100%, 420px) !important;
  max-width: min(100%, 420px) !important;
  min-width: 0 !important;
  flex: 0 1 100% !important;
  margin: 2px 0 0 13px !important;
  padding: 3px 7px !important;
  box-sizing: border-box !important;
  border-radius: 7px !important;
  gap: 0 !important;
}

body.single-screen-staking .chart-heading-left .chart-ca-copy code {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-all !important;
  font-size: 8px !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

body.single-screen-staking .chart-heading-left .chart-ca-copy .chart-ca-btn {
  display: none !important;
}

@media screen and (max-width: 900px) {
  body.single-screen-staking .chart-heading-left .chart-ca-copy {
    width: min(100%, 100%) !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 3px 5px !important;
  }
  body.single-screen-staking .chart-heading-left .chart-ca-copy code {
    font-size: 7px !important;
    line-height: 1.2 !important;
  }
}


/* V41 — PC + laptop: CA abreviado siempre visible + logos en la misma línea.
   Copia el contrato completo al pulsar. NO toca móvil (≤900px). */
body.single-screen-staking .chart-heading-left .chart-ca-copy {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  text-align: left !important;
  cursor: pointer !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  padding: 3px 8px !important;
  margin: 0 !important;
  background: rgba(0, 0, 0, .34) !important;
  border: 1px solid rgba(130, 165, 205, .25) !important;
  border-radius: 8px !important;
  transition: border-color .15s ease, background .15s ease !important;
}
body.single-screen-staking .chart-heading-left .chart-ca-copy:hover,
body.single-screen-staking .chart-heading-left .chart-ca-copy:focus-visible {
  border-color: rgba(255, 205, 75, .8) !important;
  background: rgba(12, 25, 42, .85) !important;
  outline: none !important;
}
body.single-screen-staking .chart-heading-left .chart-ca-copy code {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
  letter-spacing: .02em !important;
  color: #e4edf8 !important;
  pointer-events: none !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}
body.single-screen-staking .chart-heading-left .chart-ca-copy .chart-ca-copy-icon {
  flex-shrink: 0 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  color: #f0d27a !important;
  opacity: .95 !important;
  pointer-events: none !important;
}

/* Solo PC / laptop (≥901px): una sola fila con CA + logos centrados */
@media screen and (min-width: 901px) {
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.2fr) max-content minmax(120px, 0.9fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    min-height: 56px !important;
    height: auto !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body.single-screen-staking .live-chart-heading.chart-heading-with-logo > .chart-heading-left {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  /* Anular reglas viejas que empujaban el CA a otra fila o lo ocultaban */
  body.single-screen-staking .chart-heading-left .chart-ca-copy {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 3px 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  body.single-screen-staking .chart-heading-left .chart-ca-copy code {
    max-width: none !important;
    font-size: 10px !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body.single-screen-staking .live-chart-heading.chart-heading-with-logo > .chart-logo-center {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    pointer-events: none !important;
  }

  body.single-screen-staking .live-chart-heading.chart-heading-with-logo > .chart-heading-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
  }

  body.single-screen-staking .live-chart-heading.chart-heading-with-logo .chart-brand-logo {
    display: block !important;
    height: 40px !important;
    max-height: 40px !important;
    max-width: 148px !important;
    width: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo .chart-okx-logo {
    display: block !important;
    height: 30px !important;
    max-height: 30px !important;
    max-width: 64px !important;
    width: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }
}

/* Laptop (901–1400): un poco más compacto, CA sigue visible */
@media screen and (min-width: 901px) and (max-width: 1400px) {
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo {
    grid-template-columns: minmax(200px, 1.15fr) max-content minmax(110px, 0.85fr) !important;
    column-gap: 8px !important;
    padding: 6px 10px !important;
  }
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo > .chart-logo-center {
    gap: 8px !important;
    transform: none !important;
  }
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo .chart-brand-logo {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 120px !important;
  }
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo .chart-okx-logo {
    height: 26px !important;
    max-height: 26px !important;
    max-width: 54px !important;
  }
  body.single-screen-staking .chart-heading-left .chart-ca-copy {
    padding: 2px 6px !important;
  }
  body.single-screen-staking .chart-heading-left .chart-ca-copy code {
    font-size: 9px !important;
  }
  body.single-screen-staking .chart-heading-left .chart-ca-copy .chart-ca-copy-icon {
    font-size: 10px !important;
  }
}


/* V42 — PC + laptop:
   - Franja superior: logo Sucre-Staking (el del gráfico) al mismo porte
   - Gráfico: solo OKX (se quita Sucre-Staking del centro)
   - Contrato completo visible y copiable
   Móvil (≤900px) sin cambios. */

/* Por defecto (móvil): ocultar logo ancho de topbar, mantener sello */
.brand-topbar-logo {
  display: none !important;
}

@media screen and (min-width: 901px) {
  /* Topbar: logo del gráfico en la franja izquierda */
  body.single-screen-staking .brand-lockup .brand-seal-mobile,
  body.single-screen-staking .brand-lockup .brand-wordmark {
    display: none !important;
  }
  body.single-screen-staking .brand-lockup .brand-topbar-logo {
    display: block !important;
    height: 40px !important;
    max-height: 40px !important;
    max-width: 180px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: none !important;
  }

  /* Gráfico: ocultar logo Sucre, dejar solo OKX */
  body.single-screen-staking .live-chart-heading .chart-brand-logo {
    display: none !important;
  }
  body.single-screen-staking .live-chart-heading .chart-okx-logo {
    display: block !important;
    height: 32px !important;
    max-height: 32px !important;
    max-width: 72px !important;
    width: auto !important;
    object-fit: contain !important;
  }
  body.single-screen-staking .live-chart-heading .chart-logo-center {
    gap: 0 !important;
  }

  /* Más espacio para el contrato completo en la izquierda */
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo {
    grid-template-columns: minmax(280px, 1.6fr) max-content minmax(120px, 0.7fr) !important;
  }
  body.single-screen-staking .chart-heading-left .chart-ca-copy {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body.single-screen-staking .chart-heading-left .chart-ca-copy code {
    display: block !important;
    max-width: min(100%, 340px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10px !important;
  }
}

/* Laptop: logo topbar y OKX un poco más compactos */
@media screen and (min-width: 901px) and (max-width: 1400px) {
  body.single-screen-staking .brand-lockup .brand-topbar-logo {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 150px !important;
  }
  body.single-screen-staking .live-chart-heading .chart-okx-logo {
    height: 28px !important;
    max-height: 28px !important;
    max-width: 60px !important;
  }
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo {
    grid-template-columns: minmax(240px, 1.5fr) max-content minmax(110px, 0.7fr) !important;
  }
  body.single-screen-staking .chart-heading-left .chart-ca-copy code {
    max-width: min(100%, 280px) !important;
    font-size: 9px !important;
  }
}


/* V43 — Porcentajes 25/50/75/100 dentro de "Tú envías" (como la foto de referencia).
   Así el botón de intercambio no queda tan pegado entre monedas y slippage. */
#swapSlot .percent-buttons.percent-buttons-in-pay,
.swap-box .percent-buttons.percent-buttons-in-pay {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: min(200px, 62%) !important;
  max-width: 100% !important;
  margin: 6px 0 8px auto !important;
  padding: 0 !important;
}
#swapSlot .percent-buttons.percent-buttons-in-pay button,
.swap-box .percent-buttons.percent-buttons-in-pay button {
  min-width: 0 !important;
  padding: 6px 2px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  border-radius: 7px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: rgba(12, 28, 48, .72) !important;
  color: #d5e2f2 !important;
  cursor: pointer !important;
}
#swapSlot .percent-buttons.percent-buttons-in-pay button:hover,
.swap-box .percent-buttons.percent-buttons-in-pay button:hover {
  background: rgba(255, 221, 0, .14) !important;
  border-color: rgba(255, 221, 0, .35) !important;
  color: #ffe566 !important;
}

/* Un poco más de aire entre cajas y el botón invertido */
#swapSlot .swap-arrow {
  margin: 10px auto !important;
}
#swapSlot .slippage-row {
  margin-top: 12px !important;
  margin-bottom: 10px !important;
}


/* V44 — Móvil: porcentajes dentro de "Tú envías", fila legible (no bajo SOL) */
@media (max-width: 700px) {
  body.mobile-dashboard-layout .swap-card .swap-box .percent-buttons,
  body.mobile-dashboard-layout .swap-card .percent-buttons.percent-buttons-in-pay,
  #swapSlot .swap-box .percent-buttons.percent-buttons-in-pay {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: min(220px, 70%) !important;
    max-width: 100% !important;
    margin: 8px 0 6px auto !important;
    padding: 0 !important;
  }
  body.mobile-dashboard-layout .swap-card .swap-box .percent-buttons button,
  body.mobile-dashboard-layout .swap-card .percent-buttons.percent-buttons-in-pay button,
  #swapSlot .swap-box .percent-buttons.percent-buttons-in-pay button {
    min-width: 0 !important;
    padding: 7px 4px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    line-height: 1.15 !important;
  }
  /* Anular layout viejo que metía los % dentro del dropdown SOL */
  body.mobile-dashboard-layout .swap-card.mobile-swap-reordered #payDropdown {
    display: block !important;
    width: auto !important;
    margin-left: 0 !important;
    align-items: stretch !important;
  }
  body.mobile-dashboard-layout .swap-card.mobile-swap-reordered #payDropdown > .percent-buttons {
    display: none !important; /* por si quedara alguno huérfano */
  }
}


/* V45 — Gráfico limpio + logo OKX en franja + socials bajo staking + 1 idioma + conectar en franja */
@media screen and (min-width: 901px) {
  /* Logo banner con OKX en la franja izquierda */
  body.single-screen-staking .brand-lockup .brand-seal-mobile,
  body.single-screen-staking .brand-lockup .brand-wordmark {
    display: none !important;
  }
  body.single-screen-staking .brand-lockup .brand-topbar-logo.brand-okx-banner,
  body.single-screen-staking .brand-lockup .brand-okx-banner {
    display: block !important;
    height: 52px !important;
    max-height: 52px !important;
    max-width: min(340px, 32vw) !important;
    width: auto !important;
    object-fit: contain !important;
    filter: none !important;
  }

  /* Franja derecha: conectar + un solo idioma */
  body.single-screen-staking .topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  body.single-screen-staking .topbar-connect-slot {
    display: flex !important;
    align-items: center !important;
  }
  body.single-screen-staking .topbar-connect-slot .btn-connect,
  body.single-screen-staking .topbar-connect-slot .btn-disconnect {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }
  body.single-screen-staking .topbar-connect-slot .btn-connect {
    background: linear-gradient(180deg, #ffe566 0%, #ffd000 45%, #f0b400 100%) !important;
    color: #1a1400 !important;
    border: 1px solid rgba(255, 220, 80, .55) !important;
  }
  body.single-screen-staking .topbar-connect-slot .btn-connect.connected,
  body.single-screen-staking .topbar-connect-slot .btn-disconnect {
    background: linear-gradient(180deg, #ff6b6b 0%, #e53935 50%, #c62828 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 120, 120, .55) !important;
  }

  /* Un solo botón de idioma (toggle), ocultar las dos banderas sueltas */
  body.single-screen-staking .lang-switch .lang-btn {
    display: none !important;
  }
  body.single-screen-staking .lang-switch .mobile-lang-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 40px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    background: rgba(10, 18, 30, .85) !important;
    color: #e8eef8 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
  }
  body.single-screen-staking .lang-switch .mobile-lang-toggle img {
    width: 18px !important;
    height: 18px !important;
    border-radius: 3px !important;
    object-fit: cover !important;
  }

  /* Gráfico limpio: sin cabecera de info/logos/conectar */
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo,
  body.single-screen-staking .chart-source-line {
    display: none !important;
  }
  body.single-screen-staking .live-chart-shell {
    border-radius: 14px !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .live-chart-mount {
    min-height: clamp(420px, 58vh, 680px) !important;
  }

  /* Enlaces sociales debajo del panel de staking (derecha) */
  body.single-screen-staking .side-socials {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-top: 10px !important;
    padding: 8px 4px 2px !important;
  }
  body.single-screen-staking .side-socials a {
    color: #f0d27a !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    opacity: .9 !important;
  }
  body.single-screen-staking .side-socials a:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
  }
}

@media screen and (min-width: 901px) and (max-width: 1400px) {
  body.single-screen-staking .brand-lockup .brand-okx-banner {
    height: 44px !important;
    max-height: 44px !important;
    max-width: min(280px, 30vw) !important;
  }
}

/* Móvil: no forzar banner OKX ni ocultar heading si no se pide */
@media (max-width: 900px) {
  .brand-okx-banner {
    display: none !important;
  }
  .side-socials {
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;
    margin: 12px 0 4px !important;
  }
  .side-socials a {
    color: #f0d27a !important;
    font-size: 16px !important;
    text-decoration: none !important;
  }
}

/* Un solo botón de billetera: ocultar disconnect separado si existe */
body.single-screen-staking #disconnectBtn {
  display: none !important;
}
body.single-screen-staking .chart-connect-slot,
body.single-screen-staking .chart-wallet-info-slot {
  display: none !important;
}


/* V46 — Nombres visibles para los enlaces del lateral derecho */
body.single-screen-staking .side-socials {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px 14px !important;
}
body.single-screen-staking .side-socials .side-social-link {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 48px !important;
  padding: 4px 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #f0d27a !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font: inherit !important;
}
body.single-screen-staking .side-socials .side-social-icon {
  display: block !important;
  font-size: 17px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
}
body.single-screen-staking .side-socials .side-social-label {
  display: block !important;
  color: #d7e5f8 !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
}
body.single-screen-staking .side-socials .side-social-link:hover {
  background: rgba(255,255,255,.07) !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
@media (max-width: 900px) {
  body.single-screen-staking .side-socials {
    justify-content: center !important;
    gap: 8px 12px !important;
  }
  body.single-screen-staking .side-socials .side-social-link {
    min-width: 50px !important;
  }
}


/* V47 — Mensaje breve de visión dentro de la tarjeta de staking */
body.single-screen-staking .staking-future-note {
  margin-top: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-left: 3px solid #e8bd55 !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.045) !important;
  color: #fff !important;
}
body.single-screen-staking .staking-future-note strong {
  display: block !important;
  margin: 0 0 5px !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .045em !important;
}
body.single-screen-staking .staking-future-note p {
  margin: 0 !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}


/* V48 — Mejorar legibilidad de textos apagados dentro del panel de staking
   Sin modificar tamaños, posiciones, fondos ni colores de estados/acento. */
body.single-screen-staking .chart-staking-card .stake-empty,
body.single-screen-staking .chart-staking-card #stakingContent .stake-empty {
  color: #f2f6fc !important;
}
body.single-screen-staking .chart-staking-card .stake-empty .stake-hint,
body.single-screen-staking .chart-staking-card #stakingContent .stake-empty p:last-child {
  color: #e6eef9 !important;
  opacity: 1 !important;
}
body.single-screen-staking .chart-staking-card .staking-minimum-note,
body.single-screen-staking .chart-staking-card .stake-note-small,
body.single-screen-staking .chart-staking-card .staking-terms span,
body.single-screen-staking .chart-staking-card .staking-content,
body.single-screen-staking .chart-staking-card .staking-content p,
body.single-screen-staking .chart-staking-card .staking-content small,
body.single-screen-staking .chart-staking-card .staking-content label {
  color: #eaf2fc !important;
  opacity: 1 !important;
}
body.single-screen-staking .chart-staking-card .staking-content .stake-status,
body.single-screen-staking .chart-staking-card .staking-content .status,
body.single-screen-staking .chart-staking-card .staking-content .success,
body.single-screen-staking .chart-staking-card .staking-content .warning {
  opacity: 1 !important;
}


/* V50 — Laptop: ampliar el embed de GeckoTerminal hacia abajo para mostrar
   completas las operaciones originales. Se habilita scroll vertical natural;
   no se altera el diseño de escritorio grande ni el de móviles. */
@media screen and (min-width: 901px) and (max-height: 780px) {
  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  body.single-screen-staking #stakingApp {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.single-screen-staking .app-main {
    height: auto !important;
    min-height: calc(100dvh - 62px) !important;
    max-height: none !important;
    overflow: visible !important;
    align-items: start !important;
  }
  body.single-screen-staking .app-main > .brand-stage {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.single-screen-staking .brand-stage .stage-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-items: start !important;
    grid-template-rows: auto !important;
    overflow: visible !important;
  }
  body.single-screen-staking .live-chart-shell {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.single-screen-staking .live-chart-mount,
  body.single-screen-staking .live-chart-shell.chart-mode-embed .live-chart-mount {
    height: 650px !important;
    min-height: 650px !important;
    max-height: none !important;
    flex: 0 0 650px !important;
    overflow: visible !important;
  }
  body.single-screen-staking .live-chart-mount iframe {
    height: 650px !important;
    min-height: 650px !important;
  }
  body.single-screen-staking .chart-side-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    align-self: start !important;
  }
  body.single-screen-staking .chart-staking-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* V51 — Laptop: volver a una sola pantalla estática y ajustar la altura
   del embed para que no obligue a desplazar toda la página. */
@media screen and (min-width: 901px) and (max-height: 780px) {
  html, body {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.single-screen-staking #stakingApp {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .app-main {
    height: calc(100dvh - 62px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 62px) !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }
  body.single-screen-staking .app-main > .brand-stage,
  body.single-screen-staking .brand-stage .stage-content {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .brand-stage .stage-content {
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
  }
  body.single-screen-staking .live-chart-shell {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .live-chart-mount,
  body.single-screen-staking .live-chart-shell.chart-mode-embed .live-chart-mount,
  body.single-screen-staking .live-chart-mount iframe {
    height: clamp(330px, 52vh, 390px) !important;
    min-height: 330px !important;
    max-height: 390px !important;
    flex: 0 0 auto !important;
  }
  body.single-screen-staking .chart-side-panel {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .chart-staking-card {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: auto !important;
  }
}


/* Native SCE on-chain trades table */
.sce-trades-panel{background:#071421;border-top:1px solid rgba(255,255,255,.09);padding:12px 14px 14px;min-width:0}
.sce-trades-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.sce-trades-head strong{font-size:12px;font-weight:900;color:#f4f7fb;letter-spacing:.02em}
.sce-trades-head span{font-size:9px;color:#78b9df;text-align:right}
.sce-trades-scroll{width:100%;overflow-x:auto}
.sce-trades-table{width:100%;border-collapse:collapse;min-width:560px}
.sce-trades-table th{padding:8px 7px;text-align:left;color:#80bce5;font-size:9px;letter-spacing:.08em;font-weight:800;border-bottom:1px solid rgba(255,255,255,.14);white-space:nowrap}
.sce-trades-table td{padding:8px 7px;color:#dce8f5;font-size:10px;border-bottom:1px solid rgba(255,255,255,.055);white-space:nowrap;font-variant-numeric:tabular-nums}
.sce-trades-table .trade-buy{color:#19d58b;font-weight:900}.sce-trades-table .trade-sell{color:#ff667b;font-weight:900}
.sce-trades-table a{color:#8bcaff;text-decoration:none;font-weight:800}.sce-trades-empty{text-align:center!important;color:#7ea9ca!important;padding:18px!important}
@media(max-width:700px){.sce-trades-panel{padding:10px 9px}.sce-trades-head strong{font-size:10px}.sce-trades-head span{font-size:8px}}

/* SCE native chart: compact TradingView-like instrument label and readable volume pane */
body.single-screen-staking .live-chart-heading .chart-heading-left{
  align-items:center!important;gap:9px!important;flex-wrap:nowrap!important;min-width:0!important;
}
body.single-screen-staking .live-chart-heading .chart-asset-logo{
  width:27px!important;height:27px!important;flex:0 0 27px!important;border-radius:50%!important;
  object-fit:cover!important;box-shadow:0 0 0 1px rgba(232,193,93,.65),0 2px 10px rgba(0,0,0,.35)!important;
}
body.single-screen-staking .live-chart-heading #sceChartAssetTitle{
  font-size:12px!important;font-weight:850!important;letter-spacing:.035em!important;
  color:#eef4fb!important;padding:0!important;line-height:1.2!important;
}
body.single-screen-staking .live-chart-heading #sceChartPrice{
  font-size:11px!important;font-weight:800!important;color:#22d49b!important;
}
@media(max-width:700px){
  body.single-screen-staking .live-chart-heading .chart-heading-left{gap:6px!important;}
  body.single-screen-staking .live-chart-heading .chart-asset-logo{width:23px!important;height:23px!important;flex-basis:23px!important;}
  body.single-screen-staking .live-chart-heading #sceChartAssetTitle{font-size:10px!important;}
}


/* V9 — Encabezado del instrumento SCE visible dentro del gráfico.
   Corrige el antiguo override "Gráfico limpio" que ocultaba toda la cabecera. */
body.single-screen-staking .live-chart-heading.chart-heading-with-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 7px 12px !important;
  margin: 0 !important;
  background: #08121d !important;
  border-bottom: 1px solid rgba(140, 165, 190, .18) !important;
  box-sizing: border-box !important;
}
body.single-screen-staking .live-chart-heading .chart-heading-left {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-width: 0 !important;
  width: auto !important;
}
body.single-screen-staking .live-chart-heading .chart-live-dot {
  display: none !important;
}
body.single-screen-staking .live-chart-heading .chart-asset-logo {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 0 0 1px rgba(232, 193, 93, .72), 0 2px 9px rgba(0,0,0,.35) !important;
}
body.single-screen-staking .live-chart-heading #sceChartAssetTitle {
  display: inline-flex !important;
  align-items: center !important;
  color: #f3f6fb !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: .045em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
body.single-screen-staking .live-chart-heading #sceChartPrice,
body.single-screen-staking .live-chart-heading .chart-ca-copy,
body.single-screen-staking .live-chart-heading .chart-logo-center,
body.single-screen-staking .live-chart-heading .chart-heading-actions {
  display: none !important;
}
body.single-screen-staking .chart-source-line {
  display: none !important;
}
@media (max-width: 700px) {
  body.single-screen-staking .live-chart-heading.chart-heading-with-logo {
    min-height: 42px !important;
    padding: 5px 9px !important;
  }
  body.single-screen-staking .live-chart-heading .chart-asset-logo {
    width: 29px !important;
    height: 29px !important;
    flex-basis: 29px !important;
  }
  body.single-screen-staking .live-chart-heading #sceChartAssetTitle {
    font-size: 11px !important;
  }
}


/* V10 — Distribución equilibrada: 50% gráfico y 50% operaciones.
   Se aplica a escritorio/laptop; el diseño móvil conserva su distribución propia. */
@media (min-width: 701px) {
  body.single-screen-staking .live-chart-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-content: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  body.single-screen-staking .live-chart-shell > .live-chart-heading {
    grid-row: 1 !important;
    min-height: 44px !important;
  }

  body.single-screen-staking .live-chart-shell > .live-chart-mount {
    grid-row: 2 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: none !important;
    overflow: hidden !important;
  }

  body.single-screen-staking .live-chart-shell > .live-chart-mount iframe,
  body.single-screen-staking .live-chart-shell > .live-chart-mount > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
  }

  body.single-screen-staking .live-chart-shell > .chart-foot {
    grid-row: 3 !important;
    min-height: 26px !important;
  }

  body.single-screen-staking .live-chart-shell > .sce-trades-panel {
    grid-row: 4 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.single-screen-staking .sce-trades-panel .sce-trades-head {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    margin-bottom: 4px !important;
  }

  body.single-screen-staking .sce-trades-panel .sce-trades-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: auto !important;
  }

  body.single-screen-staking .sce-trades-panel .sce-trades-table {
    width: 100% !important;
  }
}


/* V11 — El logo y el par viven superpuestos dentro de la esquina del gráfico.
   No se reserva una fila adicional y se elimina el logo central de marcas. */
@media (min-width: 701px) {
  body.single-screen-staking .live-chart-shell {
    position: relative !important;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  }
  body.single-screen-staking .live-chart-shell > .live-chart-heading {
    position: absolute !important;
    z-index: 20 !important;
    top: 10px !important;
    left: 14px !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 5px 9px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 9px !important;
    background: rgba(7,13,21,.78) !important;
    backdrop-filter: blur(6px) !important;
    pointer-events: none !important;
  }
  body.single-screen-staking .live-chart-heading .chart-heading-left {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
  }
  body.single-screen-staking .live-chart-heading .chart-live-dot {
    display: none !important;
  }
  body.single-screen-staking .live-chart-heading .chart-asset-logo {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    flex: 0 0 23px !important;
    object-fit: contain !important;
  }
  body.single-screen-staking .live-chart-heading #sceChartAssetTitle {
    display: inline-flex !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #f5f7fb !important;
    white-space: nowrap !important;
  }
  body.single-screen-staking .live-chart-heading #sceChartPrice {
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    color: #20d49a !important;
    white-space: nowrap !important;
  }
  body.single-screen-staking .live-chart-heading .chart-ca-copy,
  body.single-screen-staking .live-chart-heading .chart-logo-center,
  body.single-screen-staking .live-chart-heading .chart-heading-actions {
    display: none !important;
  }
}
@media (max-width: 700px) {
  body.single-screen-staking .live-chart-heading .chart-logo-center {
    display: none !important;
  }
}


/* V12 — corrección final de la cabecera y del reparto vertical:
   encabezado superpuesto, gráfico y operaciones sin fila vacía intermedia. */
@media (min-width: 701px) {
  body.single-screen-staking .live-chart-shell {
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .live-chart-shell > .live-chart-mount {
    grid-row: 1 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
  }
  body.single-screen-staking .live-chart-shell > .chart-foot {
    grid-row: 2 !important;
    min-height: 24px !important;
    height: 24px !important;
    margin: 0 !important;
  }
  body.single-screen-staking .live-chart-shell > .sce-trades-panel {
    grid-row: 3 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    margin-top: 0 !important;
  }
  body.single-screen-staking .live-chart-heading .chart-logo-center,
  body.single-screen-staking .live-chart-heading .chart-brand-logo,
  body.single-screen-staking .live-chart-heading .chart-okx-logo {
    display: none !important;
    visibility: hidden !important;
  }
}


/* V14 — Mostrar contrato comprimido y botón copiar en el encabezado del gráfico.
   El precio junto al par se oculta; el precio de mercado sigue en el eje del gráfico. */
body.single-screen-staking .live-chart-heading #sceChartPrice {
  display: none !important;
}
body.single-screen-staking .live-chart-heading .chart-ca-copy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  max-width: 150px !important;
  margin-left: 8px !important;
  padding: 5px 9px !important;
  border: 1px solid rgba(110,150,180,.32) !important;
  border-radius: 7px !important;
  background: rgba(12,24,38,.92) !important;
  color: #d9e8f7 !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.single-screen-staking .live-chart-heading .chart-ca-copy code {
  display: block !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  color: #b9cce0 !important;
  font-size: 10px !important;
  letter-spacing: .1px !important;
}
body.single-screen-staking .live-chart-heading .chart-ca-copy-icon {
  display: inline-flex !important;
  color: #f0d27a !important;
  font-size: 13px !important;
  pointer-events: none !important;
}
@media (max-width: 700px) {
  body.single-screen-staking .live-chart-heading .chart-ca-copy {
    max-width: 126px !important;
    margin-left: 5px !important;
    padding: 4px 6px !important;
  }
  body.single-screen-staking .live-chart-heading .chart-ca-copy code {
    font-size: 9px !important;
  }
}


/* V18 — Fondo estrellado sutil detrás del gráfico nativo SCE. */
body.single-screen-staking #sceChartMount {
  background:
    linear-gradient(rgba(5, 12, 23, .58), rgba(5, 12, 23, .68)),
    url("assets/sce-chart-stars.png") center center / cover no-repeat !important;
}
body.single-screen-staking #sceChartMount canvas {
  background: transparent !important;
}


/* V19 — Contador de holders SCE en el encabezado del gráfico. */
body.single-screen-staking .sce-holders-badge {
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  flex: 0 0 auto !important; margin-left: 7px !important; padding: 5px 8px !important;
  border: 1px solid rgba(50,190,145,.25) !important; border-radius: 7px !important;
  background: rgba(10,35,35,.78) !important; color: #a9f2d7 !important;
  font-size: 10px !important; font-weight: 700 !important; white-space: nowrap !important;
}
body.single-screen-staking .sce-holders-dot {
  width: 6px !important; height: 6px !important; border-radius: 50% !important;
  background: #18c58b !important; box-shadow: 0 0 7px rgba(24,197,139,.65) !important;
}
body.single-screen-staking .sce-holders-badge.is-stale {
  border-color: rgba(240,190,80,.35) !important; color: #e8c77a !important;
}
@media (max-width: 700px) {
  body.single-screen-staking .sce-holders-badge {
    margin-left: 4px !important; padding: 4px 5px !important; font-size: 9px !important;
  }
}


/* V22 — Contrato y contador de holders junto al título de operaciones.
   El encabezado del gráfico queda limpio: logo, par SCE/USDC y precio en vivo. */
body.single-screen-staking .live-chart-heading .chart-heading-left > .chart-ca-copy,
body.single-screen-staking .live-chart-heading .chart-heading-left > .sce-holders-badge {
  display: none !important;
}
body.single-screen-staking .sce-trades-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.single-screen-staking .sce-trades-tools {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
}
body.single-screen-staking .sce-trades-tools .chart-ca-copy {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  max-width: 128px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 4px 7px !important;
  border: 1px solid rgba(128,165,205,.24) !important;
  border-radius: 6px !important;
  background: rgba(13,25,40,.82) !important;
  color: #c9d9eb !important;
  cursor: pointer !important;
}
body.single-screen-staking .sce-trades-tools .chart-ca-copy code {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 9px !important;
}
body.single-screen-staking .sce-trades-tools .sce-holders-badge {
  margin: 0 !important;
}
body.single-screen-staking .sce-trades-tools #sceTradesStatus {
  white-space: nowrap !important;
}
@media (max-width: 700px) {
  body.single-screen-staking .sce-trades-head {
    align-items: flex-start !important;
  }
  body.single-screen-staking .sce-trades-tools {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }
  body.single-screen-staking .sce-trades-tools .chart-ca-copy {
    max-width: 118px !important;
  }
}


/* V23 — Precio siempre visible junto al par y sello pequeño junto al contrato. */
body.single-screen-staking .live-chart-heading .chart-heading-left #sceChartPrice {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  min-width: 1px !important;
  margin-left: 2px !important;
  color: #20d69b !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
}
body.single-screen-staking .sce-trades-tools .sce-contract-sticker {
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  border: 1px solid rgba(232,193,93,.55) !important;
  background: rgba(8,14,22,.8) !important;
  margin: 0 0 0 1px !important;
}
@media (max-width: 700px) {
  body.single-screen-staking .live-chart-heading .chart-heading-left #sceChartPrice {
    font-size: 10px !important;
  }
  body.single-screen-staking .sce-trades-tools .sce-contract-sticker {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
  }
}


/* V25 — Ajuste fino del intercambio en laptop (sin tocar escritorio amplio ni móvil).
   Da más aire a cantidades, porcentajes y controles manteniendo el panel en una pantalla. */
@media screen and (min-width: 1000px) and (max-width: 1450px) and (max-height: 820px) {
  body.single-screen-staking .wallet-sidebar .sidebar-scroll {
    padding: 8px !important;
  }
  body.single-screen-staking .purchase-card {
    padding: 7px !important;
  }
  body.single-screen-staking #swapSlot .swap-box {
    padding: 9px 11px !important;
    margin: 6px 0 !important;
    min-height: 112px !important;
    border-radius: 12px !important;
  }
  body.single-screen-staking #swapSlot .swap-box-header {
    min-height: 25px !important;
    margin-bottom: 4px !important;
    gap: 8px !important;
  }
  body.single-screen-staking #swapSlot .swap-box-header > span {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }
  body.single-screen-staking #swapSlot .token-select {
    min-height: 34px !important;
    padding: 4px 9px !important;
    font-size: 11px !important;
  }
  body.single-screen-staking #swapSlot .token-select img,
  body.single-screen-staking #swapSlot .token-select .token-logo {
    width: 23px !important;
    height: 23px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons.percent-buttons-in-pay {
    width: min(220px, 74%) !important;
    gap: 6px !important;
    margin: 7px 0 7px auto !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons button {
    min-height: 27px !important;
    padding: 4px 5px !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
    border-radius: 7px !important;
  }
  body.single-screen-staking #swapSlot .swap-input-row {
    gap: 4px !important;
  }
  body.single-screen-staking #swapSlot .swap-input-row input,
  body.single-screen-staking #swapSlot .swap-input-row strong,
  body.single-screen-staking #swapSlot .swap-box input,
  body.single-screen-staking #swapSlot .swap-box .amount-input {
    min-height: 32px !important;
    height: 34px !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
  }
  body.single-screen-staking #swapSlot .swap-input-row small,
  body.single-screen-staking #swapSlot .swap-box small,
  body.single-screen-staking #swapSlot .pay-balance-hint,
  body.single-screen-staking #swapSlot .swap-box .balance-label {
    font-size: 9px !important;
    line-height: 1.25 !important;
  }
  body.single-screen-staking #swapSlot .pay-balance-hint {
    margin-top: 5px !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow {
    width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    margin: 4px auto !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow svg {
    width: 24px !important;
    height: 24px !important;
    padding: 3px !important;
  }
  body.single-screen-staking #swapSlot .slippage-row {
    min-height: 22px !important;
    margin: 5px 0 !important;
    gap: 6px !important;
    font-size: 9px !important;
  }
  body.single-screen-staking #swapSlot .slippage-buttons button {
    min-height: 21px !important;
    padding: 2px 6px !important;
    font-size: 8px !important;
  }
  body.single-screen-staking #swapSlot .btn-swap,
  body.single-screen-staking #swapSlot button[id*="swap"],
  body.single-screen-staking #swapSlot button[type="submit"] {
    min-height: 37px !important;
    height: 37px !important;
    margin-top: 5px !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
  }
  body.single-screen-staking #swapSlot .balances-section {
    margin-top: 7px !important;
    padding: 7px 9px !important;
  }
  body.single-screen-staking #swapSlot .balances-head {
    min-height: 19px !important;
    margin-bottom: 3px !important;
    font-size: 8px !important;
  }
  body.single-screen-staking #swapSlot .balances-head button {
    min-height: 21px !important;
    padding: 2px 7px !important;
    font-size: 9px !important;
  }
  body.single-screen-staking #swapSlot .asset-row {
    min-height: 29px !important;
    padding: 4px 0 !important;
    gap: 7px !important;
  }
  body.single-screen-staking #swapSlot .asset-row img,
  body.single-screen-staking #swapSlot .asset-row .token-logo {
    width: 20px !important;
    height: 20px !important;
  }
  body.single-screen-staking #swapSlot .asset-row strong {
    font-size: 9px !important;
    line-height: 1.15 !important;
  }
  body.single-screen-staking #swapSlot .asset-row small {
    font-size: 7px !important;
    line-height: 1.1 !important;
  }
}


/* V26 — Laptop: compactar el intercambio para mostrar los tres saldos completos.
   Solo afecta al rango laptop; escritorio amplio y móvil permanecen intactos. */
@media screen and (min-width: 1000px) and (max-width: 1450px) and (max-height: 820px) {
  body.single-screen-staking #swapSlot .swap-box {
    min-height: 88px !important;
    padding: 7px 10px !important;
    margin: 4px 0 !important;
  }
  body.single-screen-staking #swapSlot .swap-box-header {
    min-height: 22px !important;
    margin-bottom: 2px !important;
    gap: 6px !important;
  }
  body.single-screen-staking #swapSlot .token-select {
    min-height: 30px !important;
    padding: 3px 8px !important;
  }
  body.single-screen-staking #swapSlot .token-select img,
  body.single-screen-staking #swapSlot .token-select .token-logo {
    width: 21px !important;
    height: 21px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons.percent-buttons-in-pay {
    margin: 4px 0 3px auto !important;
    gap: 5px !important;
  }
  body.single-screen-staking #swapSlot .percent-buttons button {
    min-height: 24px !important;
    padding: 3px 5px !important;
  }
  body.single-screen-staking #swapSlot .swap-input-row input,
  body.single-screen-staking #swapSlot .swap-input-row strong,
  body.single-screen-staking #swapSlot .swap-box input,
  body.single-screen-staking #swapSlot .swap-box .amount-input {
    min-height: 27px !important;
    height: 28px !important;
    font-size: 16px !important;
  }
  body.single-screen-staking #swapSlot .pay-balance-hint {
    margin-top: 2px !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow {
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    margin: 2px auto !important;
  }
  body.single-screen-staking #swapSlot .swap-arrow svg {
    width: 20px !important;
    height: 20px !important;
    padding: 2px !important;
  }
  body.single-screen-staking #swapSlot .slippage-row {
    min-height: 19px !important;
    margin: 3px 0 !important;
    gap: 5px !important;
  }
  body.single-screen-staking #swapSlot .slippage-buttons button {
    min-height: 19px !important;
    padding: 1px 5px !important;
  }
  body.single-screen-staking #swapSlot .btn-swap,
  body.single-screen-staking #swapSlot button[id*="swap"],
  body.single-screen-staking #swapSlot button[type="submit"] {
    min-height: 34px !important;
    height: 34px !important;
    margin-top: 3px !important;
    padding: 5px 8px !important;
  }
  body.single-screen-staking #swapSlot .balances-section {
    margin-top: 5px !important;
    padding: 5px 8px !important;
  }
  body.single-screen-staking #swapSlot .balances-head {
    min-height: 17px !important;
    margin-bottom: 2px !important;
  }
  body.single-screen-staking #swapSlot .balances-head button {
    min-height: 19px !important;
    padding: 1px 6px !important;
  }
  body.single-screen-staking #swapSlot .asset-row {
    min-height: 25px !important;
    padding: 2px 0 !important;
    gap: 6px !important;
  }
  body.single-screen-staking #swapSlot .asset-row img,
  body.single-screen-staking #swapSlot .asset-row .token-logo {
    width: 18px !important;
    height: 18px !important;
  }
  body.single-screen-staking #swapSlot .asset-row strong {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }
  body.single-screen-staking #swapSlot .asset-row small {
    font-size: 7px !important;
    line-height: 1 !important;
  }
}

/* V27 — Laptop: encabezado del intercambio en una sola franja compacta.
   El estado de billetera y el precio SCE quedan juntos; el texto de OKX pasa
   a la izquierda de su logo. Solo aplica a laptops, no altera PC amplio ni móvil. */
@media screen and (min-width: 1000px) and (max-width: 1450px) and (max-height: 820px) {
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 36px !important;
    height: 36px !important;
    margin: 0 0 2px !important;
    padding: 0 3px !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact > div:first-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    column-gap: 7px !important;
    row-gap: 1px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .exchange-wallet-label,
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .sce-live-price {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .exchange-wallet-address {
    display: none !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .okx-dex-brand {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .okx-exchange-caption {
    display: block !important;
    max-width: 78px !important;
    text-align: right !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .okx-dex-badge,
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .okx-dex-badge img {
    width: 43px !important;
    height: 30px !important;
    max-width: 43px !important;
    max-height: 30px !important;
    object-fit: contain !important;
  }
  body.single-screen-staking #swapSlot {
    margin-top: 0 !important;
  }
}

/* V28 — Laptop: mostrar la dirección de la wallet en el encabezado compacto.
   Oculta el estado y el precio SCE de esa franja; la dirección aparece al conectar.
   Afecta únicamente a la vista laptop. */
@media screen and (min-width: 1000px) and (max-width: 1450px) and (max-height: 820px) {
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .exchange-wallet-label,
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .sce-live-price {
    display: none !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .exchange-wallet-address {
    display: none !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact .exchange-wallet-address.is-connected {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 154px !important;
    min-width: 112px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact > div:first-child {
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
  }
}


/* V29 — Encabezado del instrumento integrado al gráfico.
   Se elimina el aspecto de tarjeta; logo, par y precio quedan flotando
   discretamente sobre el área del gráfico, en la misma esquina superior izquierda.
   No cambia dimensiones, series, escalas ni controles del gráfico. */
@media (min-width: 701px) {
  body.single-screen-staking .live-chart-shell > .live-chart-heading {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    top: 12px !important;
    left: 16px !important;
    min-height: 0 !important;
    height: auto !important;
  }
  body.single-screen-staking .live-chart-heading .chart-heading-left {
    gap: 7px !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.65) !important;
  }
  body.single-screen-staking .live-chart-heading .chart-asset-logo {
    width: 23px !important;
    height: 23px !important;
    flex-basis: 23px !important;
    box-shadow: 0 0 0 1px rgba(232,193,93,.55), 0 1px 5px rgba(0,0,0,.45) !important;
  }
  body.single-screen-staking .live-chart-heading #sceChartAssetTitle,
  body.single-screen-staking .live-chart-heading #sceChartPrice {
    text-shadow: 0 1px 4px rgba(0,0,0,.98), 0 0 7px rgba(0,0,0,.8) !important;
  }
}

/* V30 — Identificador visual Un Sucre en cada compra/venta verificada */
.sce-trades-table td.sce-trade-type-cell{
  display:table-cell;
  white-space:nowrap;
  vertical-align:middle;
}
.sce-trades-table .sce-trade-coin-logo{
  display:inline-block;
  width:17px;
  height:17px;
  object-fit:contain;
  vertical-align:middle;
  margin-right:6px;
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(232,193,93,.45),0 1px 4px rgba(0,0,0,.4);
}
.sce-trades-table .sce-trade-type-cell span{vertical-align:middle}
@media(max-width:700px){
  .sce-trades-table .sce-trade-coin-logo{width:15px;height:15px;margin-right:4px}
}


/* V31 — Ocultar encabezado SCE al consultar otros activos en TradingView */
.live-chart-shell.chart-view-external .live-chart-heading {
  display: none !important;
}

/* V31 — Desplazamiento de transacciones con flechas, sin scrollbar blanca */
.sce-trades-scroll {
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sce-trades-scroll::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
.sce-trades-scroll-controls {
  position: sticky;
  float: right;
  right: 4px;
  bottom: 8px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 25px;
  margin: -58px 4px 6px 0;
  pointer-events: none;
}
.sce-trades-scroll-arrow {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(91,177,232,.48);
  border-radius: 7px;
  color: #bfeaff;
  background: rgba(12,29,48,.94);
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}
.sce-trades-scroll-arrow:hover {
  color: #fff;
  background: rgba(20,91,130,.96);
  border-color: rgba(75,190,255,.8);
}
.sce-trades-scroll-arrow:active {
  transform: translateY(1px);
}


/* V33 — Flechas discretas separadas al inicio y al final de la lista */
.sce-trades-scroll-controls { display: none !important; }
.sce-trades-scroll-arrow {
  display: block;
  width: 100%;
  height: 19px;
  padding: 0 8px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #72c9f5 !important;
  font-size: 18px;
  line-height: 18px;
  text-align: right;
  cursor: pointer;
  opacity: .78;
}
.sce-trades-scroll-arrow:hover {
  color: #ffffff !important;
  background: transparent !important;
  opacity: 1;
}
.sce-trades-arrow-top { margin: 0 0 2px; }
.sce-trades-arrow-bottom { margin: 2px 0 0; }
.sce-trades-scroll-arrow:active { transform: translateY(1px); }


/* V145 — OKX-DEX artwork, staking language selector, duplicated staking brand. */
@media screen and (min-width: 901px) {
  body.single-screen-staking .brand-lockup .brand-topbar-logo {
    content: url("/assets/sucre-staking-banner-completo.png?v=20261122fullbanner") !important;
    width: 190px !important; max-width: 190px !important; height: auto !important; max-height: 54px !important;
  }
  body.single-screen-staking .topbar-right .brand-topbar-logo-right {
    display: block !important; width: 190px !important; max-width: 190px !important; height: auto !important; max-height: 54px !important; object-fit: contain !important;
  }
}
.brand-topbar-logo-right { display: none; }
body.single-screen-staking .staking-card-head { gap: 10px !important; }
body.single-screen-staking .staking-lang-slot { margin-left: auto; display: flex; align-items: center; flex: 0 0 auto; }
body.single-screen-staking .staking-lang-slot .lang-switch { display: flex !important; align-items: center; gap: 5px !important; }
body.single-screen-staking .staking-lang-slot .lang-btn { width: 30px !important; height: 23px !important; padding: 2px !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 5px !important; background: #101824 !important; }
body.single-screen-staking .staking-lang-slot .lang-btn img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 3px !important; }
body.single-screen-staking .staking-lang-slot .lang-btn.active { border-color: var(--ss-gold) !important; }
body.single-screen-staking .purchase-card .okx-connect-art { display: flex !important; align-items: center !important; justify-content: flex-end !important; flex: 0 1 250px !important; width: 250px !important; max-width: 52% !important; margin: 0 !important; }
body.single-screen-staking .purchase-card .okx-connect-wallet-art { display: block !important; width: 100% !important; height: auto !important; max-height: 112px !important; object-fit: contain !important; border: 0 !important; border-radius: 8px !important; }
body.single-screen-staking .purchase-card .okx-exchange-caption { display: none !important; }
@media screen and (max-width: 900px) {
  body.single-screen-staking .brand-topbar-logo-right { display: none !important; }
  body.single-screen-staking .purchase-card .okx-connect-art { width: 150px !important; max-width: 42% !important; flex-basis: 150px !important; }
  body.single-screen-staking .purchase-card .okx-connect-wallet-art { max-height: 78px !important; }
  body.single-screen-staking .staking-lang-slot .lang-btn { width: 27px !important; height: 21px !important; }
}


/* V146 — restore original blue market-card strip; remove topbar connect pill;
   transparent OKX artwork and staking language control. Desktop-only header changes. */
@media screen and (min-width: 901px) {
  body.single-screen-staking #topbarConnectSlot,
  body.single-screen-staking .topbar-connect-slot {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.single-screen-staking .topbar-right {
    gap: 0 !important;
    padding-left: 8px !important;
    background: transparent !important;
  }

  /* Original market strip: compact blue outlined coin cards */
  body.single-screen-staking .topbar-ticker-window {
    overflow: hidden !important;
    mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%) !important;
  }
  body.single-screen-staking .topbar-ticker-window .ticker-bar {
    height: 42px !important;
    background: transparent !important;
    border: 0 !important;
  }
  body.single-screen-staking .topbar-ticker-window .ticker-track {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 100% !important;
    animation: ss-market-marquee 46s linear infinite !important;
    will-change: transform;
  }
  body.single-screen-staking .topbar-ticker-window .ticker-item {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    height: 34px !important;
    min-width: 148px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(39, 170, 255, .78) !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, rgba(13, 48, 83, .96), rgba(5, 20, 39, .98)) !important;
    box-shadow: inset 0 1px 0 rgba(140, 220, 255, .16), 0 0 9px rgba(0, 145, 255, .24) !important;
    color: #dceeff !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }
  body.single-screen-staking .topbar-ticker-window .ticker-item:hover,
  body.single-screen-staking .topbar-ticker-window .ticker-item.ticker-active {
    border-color: #64d5ff !important;
    box-shadow: inset 0 1px 0 rgba(160, 230, 255, .2), 0 0 12px rgba(0, 165, 255, .42) !important;
  }
  body.single-screen-staking .topbar-ticker-window .ticker-logo {
    width: 19px !important;
    height: 19px !important;
    border-radius: 50% !important;
    flex: 0 0 19px !important;
  }
  body.single-screen-staking .topbar-ticker-window .ticker-item .sym {
    color: #f5fbff !important;
    font-weight: 800 !important;
  }
  body.single-screen-staking .topbar-ticker-window .ticker-item .price {
    color: #d7e9ff !important;
    font-weight: 650 !important;
  }
  body.single-screen-staking .topbar-ticker-window .ticker-change {
    font-size: 10px !important;
    font-weight: 800 !important;
  }

  /* Language control: no card/background, native flag and text only */
  body.single-screen-staking .staking-lang-slot .lang-switch {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  body.single-screen-staking .staking-lang-slot .mobile-lang-toggle {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 2px 4px !important;
    color: #eef5ff !important;
  }
  body.single-screen-staking .staking-lang-slot .mobile-lang-toggle img {
    border-radius: 2px !important;
    box-shadow: none !important;
  }

  /* OKX artwork sits directly on the exchange panel */
  body.single-screen-staking .purchase-card .okx-connect-art {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
  body.single-screen-staking .purchase-card .okx-connect-wallet-art {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    mix-blend-mode: normal !important;
  }
}


/* V147 — Functional OKX wallet action button: yellow connect / red disconnect. */
body.single-screen-staking .purchase-card .okx-connect-art {
  display: flex !important; align-items: center !important; justify-content: flex-end !important;
  flex: 0 1 250px !important; width: 250px !important; max-width: 58% !important; margin: 0 !important;
}
.okx-wallet-action {
  appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; min-height: 54px; padding: 8px 15px; border: 1px solid transparent;
  border-radius: 12px; color: #050505; font: 800 13px/1.15 system-ui, sans-serif; letter-spacing: .01em;
  cursor: pointer; transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.okx-wallet-action:active { transform: translateY(1px); }
.okx-wallet-action:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 3px; }
.okx-wallet-action.is-disconnected { background: linear-gradient(180deg,#ffe45c,#f5b900); border-color: #ffe27a; box-shadow: 0 4px 15px rgba(245,185,0,.24); }
.okx-wallet-action.is-disconnected:hover { background: linear-gradient(180deg,#ffec82,#ffc400); }
.okx-wallet-action.is-connected { background: linear-gradient(180deg,#ff7777,#d91f2b); border-color: #ff9b9b; color: #fff; box-shadow: 0 4px 15px rgba(217,31,43,.25); }
.okx-wallet-action.is-connected .okx-wallet-action-logo { filter: invert(1); }
.okx-wallet-action-logo { display: block; flex: 0 0 auto; width: 62px; height: 34px; object-fit: contain; }
.okx-wallet-action-label { display: block; white-space: nowrap; }
@media screen and (max-width: 900px) {
  body.single-screen-staking .purchase-card .okx-connect-art { width: 160px !important; max-width: 48% !important; flex-basis: 160px !important; }
  .okx-wallet-action { min-height: 44px; padding: 6px 9px; gap: 6px; font-size: 11px; border-radius: 10px; }
  .okx-wallet-action-logo { width: 48px; height: 27px; }
}


/* V149 deploy fix: keep the OKX action button fully inside the exchange heading. */
@media screen and (min-width: 901px) {
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact > div:first-child {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  body.single-screen-staking .purchase-card .okx-connect-art {
    flex: 0 0 220px !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    margin: 0 !important;
    position: relative !important;
    inset: auto !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action {
    box-sizing: border-box !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    min-height: 48px !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    position: static !important;
    transform: none;
    white-space: nowrap !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action-logo {
    width: 54px !important;
    height: 30px !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action-label {
    font-size: 12px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }
}


/* V150 — Laptop-only OKX button fit: narrower, aligned inside the exchange heading. */
@media screen and (min-width: 901px) and (max-width: 1440px) {
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact {
    gap: 6px !important;
  }
  body.single-screen-staking .purchase-card .sidebar-section-heading.compact > div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  body.single-screen-staking .purchase-card .okx-connect-art {
    flex: 0 0 178px !important;
    width: 178px !important;
    min-width: 178px !important;
    max-width: 178px !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action {
    box-sizing: border-box !important;
    width: 178px !important;
    min-width: 178px !important;
    max-width: 178px !important;
    min-height: 42px !important;
    padding: 5px 7px !important;
    gap: 5px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action-logo {
    width: 45px !important;
    height: 25px !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action-label {
    font-size: 10px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }
}


/* V151 — Laptop: subir ligeramente el botón OKX y dejar los logos superiores sin placas degradadas. */
@media screen and (min-width: 901px) and (max-width: 1440px) {
  body.single-screen-staking .purchase-card .okx-connect-art {
    position: relative !important;
    top: -6px !important;
  }
}
@media screen and (min-width: 901px) {
  body.single-screen-staking .app-topbar .brand-lockup,
  body.single-screen-staking .app-topbar .topbar-right {
    background: transparent !important;
  }
  body.single-screen-staking .app-topbar .brand-topbar-logo,
  body.single-screen-staking .app-topbar .brand-topbar-logo-right {
    background: transparent !important;
    mix-blend-mode: normal !important;
  }
}

/* V152 — Laptop: lift only the OKX wallet button a little more; sky backdrop behind both staking logos. */
@media screen and (min-width: 901px) and (max-width: 1440px) {
  body.single-screen-staking .purchase-card .okx-connect-art {
    top: -12px !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action {
    position: relative !important;
    top: -3px !important;
  }
}
@media screen and (min-width: 901px) {
  body.single-screen-staking .app-topbar .brand-lockup .brand-topbar-logo,
  body.single-screen-staking .app-topbar .topbar-right .brand-topbar-logo-right {
    background-image: url("/assets/staking-logo-sky-bg.png?v=20261115b") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 7px !important;
    padding: 3px 5px !important;
    box-sizing: content-box !important;
  }
}


/* V153 — Laptop: elevar un poco más únicamente el botón OKX, sin mover su contenedor. */
@media screen and (min-width: 901px) and (max-width: 1440px) {
  body.single-screen-staking .purchase-card .okx-wallet-action {
    top: -7px !important;
  }
}


/* V154 — Franja promocional Sucre-Swap: tarjetas de monedas clicables. */
body.single-screen-staking .topbar-ticker-window {
  pointer-events: auto !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-bar {
  pointer-events: auto !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-track {
  pointer-events: auto !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-item {
  display: flex !important;
  flex: 0 0 174px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 2px !important;
  width: 174px !important;
  min-width: 174px !important;
  max-width: 174px !important;
  height: 38px !important;
  padding: 3px 8px !important;
  border: 1px solid rgba(73, 181, 255, .78) !important;
  border-radius: 9px !important;
  background: linear-gradient(145deg, rgba(16, 59, 99, .98) 0%, rgba(5, 19, 39, .98) 72%, rgba(8, 34, 60, .98) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(180, 225, 255, .18), 0 2px 9px rgba(0, 125, 255, .22) !important;
  color: #eef8ff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-item:hover,
body.single-screen-staking .topbar-ticker-window .ticker-item:focus-visible {
  border-color: #f0cc67 !important;
  background: linear-gradient(145deg, rgba(25, 78, 122, .99), rgba(7, 27, 51, .99)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 235, 174, .2), 0 0 13px rgba(232, 193, 93, .34) !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-card-top,
body.single-screen-staking .topbar-ticker-window .ticker-card-bottom,
body.single-screen-staking .topbar-ticker-window .ticker-market-values {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-card-top {
  gap: 6px !important;
  width: 100% !important;
  line-height: 1 !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-card-bottom {
  justify-content: space-between !important;
  gap: 5px !important;
  width: 100% !important;
  padding-left: 22px !important;
  line-height: 1 !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-logo {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  background: rgba(255, 255, 255, .08) !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-item .sym {
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .035em !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-brand-tag {
  margin-left: auto !important;
  color: #f3d47d !important;
  font-size: 7px !important;
  font-weight: 900 !important;
  letter-spacing: .09em !important;
  white-space: nowrap !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-market-values {
  gap: 5px !important;
  white-space: nowrap !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-item .price {
  color: #e2efff !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  font-variant-numeric: tabular-nums !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-change {
  font-size: 8px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}
body.single-screen-staking .topbar-ticker-window .ticker-cta {
  flex: 0 0 auto !important;
  color: #071321 !important;
  background: linear-gradient(180deg, #ffe59a, #e9bd4d) !important;
  border-radius: 4px !important;
  padding: 3px 5px !important;
  font-size: 7px !important;
  font-weight: 950 !important;
  letter-spacing: .06em !important;
  white-space: nowrap !important;
}
@media (max-width: 900px) {
  body.single-screen-staking .topbar-ticker-window .ticker-item {
    flex-basis: 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 27px !important;
    padding: 2px 6px !important;
  }
  body.single-screen-staking .topbar-ticker-window .ticker-card-top { gap: 4px !important; }
  body.single-screen-staking .topbar-ticker-window .ticker-card-bottom { padding-left: 19px !important; }
  body.single-screen-staking .topbar-ticker-window .ticker-logo { width: 14px !important; height: 14px !important; flex-basis: 14px !important; }
  body.single-screen-staking .topbar-ticker-window .ticker-brand-tag { font-size: 6px !important; }
  body.single-screen-staking .topbar-ticker-window .ticker-item .sym { font-size: 9px !important; }
  body.single-screen-staking .topbar-ticker-window .ticker-item .price { font-size: 8px !important; }
  body.single-screen-staking .topbar-ticker-window .ticker-change { font-size: 7px !important; }
  body.single-screen-staking .topbar-ticker-window .ticker-cta { font-size: 6px !important; padding: 2px 4px !important; }
}

/* V155 — Bandera de idioma ligeramente más ancha, sin aumentar su altura. */
@media screen and (min-width: 901px) {
  body.single-screen-staking .staking-lang-slot .mobile-lang-toggle img {
    width: 24px !important;
    height: 18px !important;
    flex: 0 0 24px !important;
    object-fit: cover !important;
  }
}
@media screen and (max-width: 900px) {
  body.single-screen-staking .staking-lang-slot .mobile-lang-toggle img {
    width: 25px !important;
    height: 15px !important;
    flex: 0 0 25px !important;
    object-fit: cover !important;
  }
}


/* V196 — Ajustes exclusivos para celular:
   se oculta el botón duplicado del encabezado, se conserva el botón principal
   de conexión debajo del sticker Sucre-Staking y el acceso OKX usa el sticker negro. */
@media screen and (max-width: 700px) {
  /* Keep the original green connect button in the top bar, beside the language toggle. */
  body.single-screen-staking .purchase-card .okx-connect-art {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 3px !important;
    flex: 0 0 116px !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    margin: 0 !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 114px !important;
    min-width: 114px !important;
    max-width: 114px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 4px !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #000 !important;
    box-shadow: none !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action-picture {
    display: block !important;
    width: 106px !important;
    height: 57px !important;
    line-height: 0 !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action-logo {
    display: block !important;
    width: 106px !important;
    height: 57px !important;
    max-width: 106px !important;
    max-height: 57px !important;
    object-fit: contain !important;
    filter: none !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action-label {
    display: none !important;
  }
  body.single-screen-staking .purchase-card .okx-mobile-caption {
    display: block !important;
    width: 100% !important;
    color: #fff !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}
@media screen and (min-width: 701px) {
  .okx-mobile-caption { display: none !important; }
  .okx-wallet-action-picture { display: contents; }
}


/* V198 — Ajuste del sticker OKX y su leyenda en teléfonos únicamente. */
@media screen and (max-width: 700px) {
  body.single-screen-staking .purchase-card .okx-connect-art {
    box-sizing: border-box !important;
    flex: 0 0 136px !important;
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
    align-items: center !important;
    overflow: visible !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action {
    box-sizing: border-box !important;
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    padding: 3px 4px 4px !important;
    gap: 2px !important;
    overflow: visible !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action-picture {
    width: 96px !important;
    height: 52px !important;
    max-width: 96px !important;
  }
  body.single-screen-staking .purchase-card .okx-wallet-action-logo {
    width: 96px !important;
    height: 52px !important;
    max-width: 96px !important;
    max-height: 52px !important;
    object-fit: contain !important;
  }
  body.single-screen-staking .purchase-card .okx-mobile-caption {
    display: block !important;
    width: 100% !important;
    max-width: 124px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-size: 8px !important;
    line-height: 1.12 !important;
    text-align: center !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
  }
}


/* V147 — Live SCE market metrics beside the verified buys/sells heading. */
body.single-screen-staking .sce-market-metrics{
  display:flex;align-items:center;justify-content:flex-start;gap:7px;flex:1 1 390px;min-width:250px;flex-wrap:wrap;
}
body.single-screen-staking .sce-market-metric{
  display:flex;flex-direction:column;gap:3px;min-width:76px;padding:5px 8px;
  border:1px solid rgba(71,151,203,.22);border-radius:7px;
  background:linear-gradient(145deg,rgba(12,31,50,.92),rgba(5,14,25,.88));
}
body.single-screen-staking .sce-market-metric span{font-size:7px;line-height:1.1;letter-spacing:.09em;color:#829db7;font-weight:800;white-space:nowrap}
body.single-screen-staking .sce-market-metric strong{font-size:11px;line-height:1.2;color:#39d6a0;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:700px){
  body.single-screen-staking .sce-market-metrics{order:3;width:100%;flex:1 1 100%;min-width:0;gap:5px}
  body.single-screen-staking .sce-market-metric{flex:1 1 calc(50% - 5px);min-width:0;padding:6px 7px}
  body.single-screen-staking .sce-market-metric span{font-size:7px}
  body.single-screen-staking .sce-market-metric strong{font-size:10px}
}

/* V148 — Integrar las métricas al encabezado, sin tarjetas ni recuadros. */
body.single-screen-staking .sce-market-metrics{
  display:flex;align-items:center;justify-content:flex-start;gap:clamp(10px,1.15vw,18px);
  flex:1 1 auto;min-width:0;flex-wrap:wrap;padding:0;margin:0;background:transparent;border:0;
}
body.single-screen-staking .sce-market-metric{
  display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;
  min-width:0;padding:0 0 0 10px;margin:0;border:0;border-left:1px solid rgba(105,145,174,.22);
  border-radius:0;background:transparent;box-shadow:none;
}
body.single-screen-staking .sce-market-metric:first-child{padding-left:0;border-left:0}
body.single-screen-staking .sce-market-metric span{
  font-size:7px;line-height:1.15;letter-spacing:.075em;color:#829bb2;font-weight:700;white-space:nowrap;
}
body.single-screen-staking .sce-market-metric strong{
  font-size:11px;line-height:1.2;color:#dce9f5;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap;
}
body.single-screen-staking #sceMetricLiquidity,
body.single-screen-staking #sceMetricPrice{color:#39d6a0}
@media(max-width:700px){
  body.single-screen-staking .sce-market-metrics{order:3;width:100%;flex:1 1 100%;min-width:0;gap:10px 13px;padding:5px 0 0}
  body.single-screen-staking .sce-market-metric{flex:0 1 auto;min-width:0;padding-left:9px}
  body.single-screen-staking .sce-market-metric:first-child{padding-left:0}
  body.single-screen-staking .sce-market-metric span{font-size:7px}
  body.single-screen-staking .sce-market-metric strong{font-size:10px}
}

/* V149 — Integrar contrato SCE y contador de holders al estilo nativo,
   sin pastillas ni recuadros; conservar iconos y legibilidad. */
body.single-screen-staking .sce-trades-tools .trades-ca-copy,
body.single-screen-staking .sce-trades-tools .chart-ca-copy {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  min-width:0 !important;
  max-width:220px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#b9cce0 !important;
}
body.single-screen-staking .sce-trades-tools .trades-ca-copy code,
body.single-screen-staking .sce-trades-tools .chart-ca-copy code {
  display:block !important;
  max-width:none !important;
  padding:0 !important;
  overflow:visible !important;
  text-overflow:clip !important;
  white-space:nowrap !important;
  background:transparent !important;
  color:#b9cce0 !important;
  font-size:10px !important;
  letter-spacing:.1px !important;
}
body.single-screen-staking .sce-trades-tools .chart-ca-copy-icon {
  color:#f0d27a !important;
  font-size:13px !important;
}
body.single-screen-staking .sce-trades-tools .sce-holders-badge {
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#a9c5dc !important;
  font-size:10px !important;
  font-weight:700 !important;
}
body.single-screen-staking .sce-trades-tools .sce-holders-dot {
  flex:0 0 6px !important;
}
body.single-screen-staking .sce-trades-tools .sce-holders-badge.is-stale {
  border:0 !important;
  background:transparent !important;
  color:#e8c77a !important;
}
@media(max-width:700px){
  body.single-screen-staking .sce-trades-tools .trades-ca-copy,
  body.single-screen-staking .sce-trades-tools .chart-ca-copy {
    max-width:145px !important;
    padding:0 !important;
  }
  body.single-screen-staking .sce-trades-tools .trades-ca-copy code,
  body.single-screen-staking .sce-trades-tools .chart-ca-copy code {
    font-size:9px !important;
  }
  body.single-screen-staking .sce-trades-tools .sce-holders-badge {
    margin:0 !important;
    padding:0 !important;
    font-size:9px !important;
  }
}


/* Ajuste puntual: enlace Telegram/Soporte en redes laterales */
body.single-screen-staking .side-socials .side-social-link:nth-child(2),
body.single-screen-staking .side-socials .side-social-link:nth-child(2) .side-social-icon,
body.single-screen-staking .side-socials .side-social-link:nth-child(2) .side-social-label { color: #267fa8 !important; }
body.single-screen-staking .side-socials .side-social-link:nth-child(2) .side-social-label { color: #267fa8 !important; }
/* Ajuste de sello SCE: evitar que la moneda se monte sobre las franjas */
.brand-seal,.staking-card-seal,.sce-contract-sticker,.chart-asset-logo,.token-logo,.mini-logo{object-fit:contain;flex-shrink:0;max-width:100%;}
.staking-card-head{min-width:0;align-items:center;gap:10px;}
.staking-card-head img.staking-card-seal{width:38px;height:38px;margin-left:auto;position:relative;z-index:1;}
.brand-lockup{min-width:0;overflow:hidden;}
.brand-topbar-logo{max-width:100%;object-fit:contain;}
@media(max-width:480px){.brand-seal-mobile{width:34px;height:34px;flex:0 0 34px;object-fit:contain;} .staking-card-head img.staking-card-seal{width:34px;height:34px;}}

/* V153 — Full banner image fills the sky-blue slots on both ticker sides */
@media screen and (min-width: 901px) {
  body.single-screen-staking .app-topbar .brand-lockup .brand-topbar-logo,
  body.single-screen-staking .app-topbar .topbar-right .brand-topbar-logo-right {
    width: 200px !important;
    height: 60px !important;
    max-width: 200px !important;
    max-height: 60px !important;
    object-fit: cover !important;
    object-position: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: block !important;
  }
}

/* V154 — New Un Sucre coin banner for mobile topbar only; desktop preserved. */
@media screen and (max-width: 900px) {
  body.single-screen-staking .app-topbar .brand-lockup .brand-seal-mobile,
  body.single-screen-staking .app-topbar .brand-lockup .brand-wordmark {
    display: none !important;
  }
  body.single-screen-staking .app-topbar .brand-lockup .brand-topbar-logo {
    display: block !important;
    content: url('/assets/sucre-staking-mobile-banner-new.png?v=20261123mobile') !important;
    width: min(100%, 380px) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  body.single-screen-staking .app-topbar .brand-lockup {
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
}

/* V155 — Updated Un Sucre coin on both desktop/laptop topbar corners */
@media screen and (min-width: 901px) {
  body.single-screen-staking .app-topbar .brand-lockup .brand-topbar-logo,
  body.single-screen-staking .app-topbar .topbar-right .brand-topbar-logo-right {
    width: 66px !important; height: 66px !important; max-width: 66px !important; max-height: 66px !important;
    object-fit: contain !important; object-position: center !important; border-radius: 50% !important;
    padding: 0 !important; background: transparent !important; display: block !important;
    filter: drop-shadow(0 0 10px rgba(0,145,255,.55)) !important;
  }
}

/* V156 — Banner completo en ambos extremos de la franja superior para PC/laptop */
@media screen and (min-width: 901px) {
  body.single-screen-staking .app-topbar .brand-lockup .brand-topbar-logo,
  body.single-screen-staking .app-topbar .topbar-right .brand-topbar-logo-right {
    content: url('/assets/sucre-staking-side-banner.png?v=20261123sides') !important;
    width: 210px !important;
    max-width: 210px !important;
    height: 76px !important;
    max-height: 76px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    filter: none !important;
  }
}

/* V157 — Mobile dashboard uses the same complete Sucre-Staking banner as desktop */
@media screen and (max-width: 900px) {
  body.single-screen-staking .app-topbar > .chart-logo-center,
  body.mobile-dashboard-layout .app-topbar > .chart-logo-center {
    display: flex !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    flex: 0 0 100% !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 5px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  body.single-screen-staking .app-topbar .chart-brand-logo,
  body.mobile-dashboard-layout .app-topbar .chart-brand-logo {
    display: block !important;
    width: min(96vw, 560px) !important;
    max-width: 96vw !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    filter: none !important;
  }
  body.single-screen-staking .app-topbar .chart-okx-logo,
  body.mobile-dashboard-layout .app-topbar .chart-okx-logo { display:none !important; }
}

/* V157 — Mobile: transparent full brand banner centered tightly in chart heading */
@media screen and (max-width: 900px) {
  body.single-screen-staking .chart-logo-center {
    display:flex !important; align-items:center !important; justify-content:center !important;
    width:100% !important; min-height:0 !important; height:auto !important;
    margin:0 auto !important; padding:0 !important; overflow:visible !important;
    background:transparent !important;
  }
  body.single-screen-staking .chart-logo-center .chart-brand-logo {
    content:url('/assets/sucre-staking-mobile-transparent-banner.png?v=20261123transparentmobile') !important;
    display:block !important; width:min(72vw, 420px) !important;
    max-width:72vw !important; height:auto !important; max-height:none !important;
    object-fit:contain !important; object-position:center !important;
    margin:-4px auto 0 !important; padding:0 !important; border:0 !important;
    background:transparent !important; border-radius:0 !important;
  }
}
@media screen and (max-width: 480px) {
  body.single-screen-staking .chart-logo-center .chart-brand-logo {
    width:72vw !important; max-width:72vw !important; margin-top:-7px !important;
  }
}

/* V10 — Acercar el botón verde al logo en móviles, sin alterar PC/laptop. */
@media (max-width: 700px) {
  body.mobile-dashboard-layout .app-topbar {
    gap: 3px !important;
    padding-bottom: 3px !important;
  }
  body.mobile-dashboard-layout .app-topbar > .chart-logo-center {
    min-height: 54px !important;
    height: 54px !important;
    padding-bottom: 0 !important;
  }
  body.mobile-dashboard-layout .app-topbar > .topbar-right {
    margin-top: -7px !important;
    transform: translateY(-5px) !important;
  }
  body.mobile-dashboard-layout #connectBtn,
  body.mobile-dashboard-layout .topbar-right #connectBtn {
    margin-bottom: 0 !important;
  }
}
