/* Shared layout primitives for the MARA account interface. */
:root {
  color-scheme: dark;
  --bg: #071411;
  --surface: #0d201a;
  --surface-raised: #122a22;
  --surface-soft: #10231d;
  --line: #243b30;
  --line-soft: #1b3027;
  --gold: #e0bc70;
  --gold-light: #f1d79e;
  --gold-dark: #9f7c36;
  --text: #f1f4ee;
  --muted: #92a79a;
  --green: #7bcea0;
  --red: #e9a29a;
  --radius: 18px;
  --shadow: 0 14px 40px #00000020;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 0; min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-width: 0; min-height: 100vh; direction: rtl; background: var(--bg); color: var(--text); }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
button:disabled, .button:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
input, textarea { caret-color: var(--gold); }
select { color-scheme: dark; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.5; }
strong { font-weight: 700; }
::selection { background: #c6a75f50; color: #fff; }
[hidden] { display: none !important; }
.ltr, .numeric, .wallet-address { direction: ltr; unicode-bidi: isolate; }
.numeric { font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-danger { color: var(--red); }
.screen-reader-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.desktop-only { display: none !important; }

.app-shell { min-height: 100vh; }
.app-sidebar { display: none; }
.app-main { min-width: 0; padding-bottom: 100px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 78px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); background: #091812; }
.topbar-title { display: block; flex: 1; min-width: 0; font-size: 15px; font-weight: 700; }
.topbar-title > svg { width: 21px; color: var(--gold); }
.topbar-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; color: var(--muted); font-size: 10px; }
.topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: #14251d; color: #c9d3c9; transition: color .2s, border-color .2s, background .2s; }
.icon-button:hover { border-color: #607452; color: var(--gold-light); background: #1a3024; }
.icon-button svg { width: 18px; height: 18px; }
.demo-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 25px; padding: 2px 8px; border: 1px solid #7a613744; border-radius: 6px; color: var(--gold); background: #cfa44d0c; font-size: 10px; font-weight: 700; white-space: nowrap; }
.demo-banner { display: flex; align-items: flex-start; justify-content: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid #b9914c26; color: #bdad87; background: #d3ac6310; font-size: 10px; text-align: center; }
.demo-banner svg { width: 15px; height: 15px; margin-top: 2px; color: var(--gold); }
.page-content { width: 100%; max-width: 1260px; margin: 0 auto; padding: 25px 18px 24px; animation: page-in .3s ease-out; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { margin: 4px 0 6px; font-size: clamp(23px, 3vw, 30px); letter-spacing: -.5px; }
.page-heading p { max-width: 670px; font-size: 12px; color: var(--muted); }
.eyebrow { display: block; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.section { margin-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.section-heading h2 { font-size: 16px; }
.section-heading > p, .section-heading > span { font-size: 11px; color: var(--muted); }
.section-heading > .button { font-size: 11px; }
.page-footer { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: #6b8273; font-size: 10px; line-height: 1.9; text-align: center; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; isolation: isolate; overflow: hidden; padding: 28px 24px 0; border: 1px solid #49613e; border-radius: 22px; background: radial-gradient(ellipse at 10% 10%, #37533660 0%, transparent 60%), linear-gradient(120deg, #10291e 0%, #173024 48%, #13251c 100%); box-shadow: var(--shadow); }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ""; opacity: .12; background-image: linear-gradient(#b1c39725 1px, transparent 1px), linear-gradient(90deg, #b1c39725 1px, transparent 1px); background-size: 45px 45px; mask-image: linear-gradient(90deg, #000, transparent 80%); pointer-events: none; }
.hero::after { position: absolute; top: -180px; left: -90px; z-index: -1; width: 430px; height: 430px; border: 1px solid #e0bc7025; border-radius: 50%; box-shadow: 0 0 0 50px #e0bc7007, 0 0 0 110px #e0bc7005; content: ""; pointer-events: none; }
.hero-copy { align-self: center; min-width: 0; position: relative; z-index: 1; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; font-size: 9px; letter-spacing: 1px; }
.hero-title { max-width: 580px; margin-bottom: 13px; font-size: clamp(27px, 4vw, 43px); font-weight: 700; line-height: 1.65; letter-spacing: -.8px; }
.hero-title em, .hero-title span { color: var(--gold-light); font-style: normal; }
.hero-description { max-width: 480px; color: #a7b9aa; font-size: 12px; line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-image { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; padding: 25px 35px 16px; }
.hero-image::before { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: #dcc06d17; filter: blur(24px); content: ""; }
.hero-image img { position: relative; width: min(100%, 250px); aspect-ratio: 1; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 18px 25px #0007); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 0; border-top: 1px solid #d4bd7430; }
.hero-metric { min-width: 0; }
.hero-metric + .hero-metric { padding-inline-start: 12px; border-inline-start: 1px solid #d4bd7420; }
.hero-metric strong { display: block; color: #f5e3b5; font-size: 19px; font-family: "Segoe UI", Tahoma, sans-serif; line-height: 1.25; letter-spacing: -.5px; }
.hero-metric span, .hero-metric small { display: block; margin-top: 6px; color: #9fb29f; font-size: 9px; }
.hero-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 -24px; padding: 12px 20px; border-top: 1px solid #d4bd7420; background: #04110b40; font-size: 10px; color: #9db39d; }
.hero-footer svg { width: 15px; height: 15px; color: #a7bc94; }
.hero-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; max-width: 100%; padding: 9px 17px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-raised); color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.7; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; }
.button svg { width: 17px; height: 17px; }
.button:hover { transform: translateY(-1px); }
.button.primary { border-color: #e9c57c; color: #172117; background: linear-gradient(110deg, #dfbb71, #efd292); box-shadow: 0 4px 16px #d4a85516; }
.button.primary:hover { background: #f2d79b; box-shadow: 0 6px 20px #d4a85525; }
.button.secondary { border-color: #4d6146; color: #e3d5b7; background: #a4b18108; }
.button.secondary:hover { border-color: #ad955d; background: #b5ac7712; }
.button.ghost { padding-inline: 8px; background: transparent; color: var(--muted); }
.button.ghost:hover { color: var(--gold); }
.button.danger { border-color: #d4877950; background: #b257441a; color: #edb3a5; }
.button.small { min-height: 33px; padding: 5px 11px; border-radius: 8px; font-size: 10px; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #7bcea010; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #8cb29c08; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-pill.open { border-color: #6ea78030; background: #66af7b0c; color: #92d3a3; }
.status-pill.closed { border-color: #c4a86b30; background: #c4a86b0c; color: #d1b97f; }
.status-pill.closed .status-dot { background: #d0b87f; box-shadow: 0 0 0 3px #d0b87f10; }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.stat-card { position: relative; min-width: 0; padding: 17px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(140deg, #14291f, #10231c); }
.stat-card.accent { border-color: #75603a80; background: linear-gradient(135deg, #37321d50, #15271d); }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; margin-bottom: 13px; border: 1px solid #e0bc7020; border-radius: 10px; color: var(--gold); background: #e0bc7009; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-label { display: block; margin-bottom: 6px; color: #a6b6aa; font-size: 10px; }
.stat-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; min-width: 0; font-size: clamp(23px, 3vw, 29px); font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-weight: 600; line-height: 1.4; letter-spacing: -.7px; }
.stat-value small, .stat-value span.unit { color: #9bad9c; font-size: 11px; letter-spacing: 0; }
.stat-note { display: block; margin-top: 8px; color: #769780; font-size: 9px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 20px 0 0; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; padding: 14px 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: #c0cdbf; font-size: 10px; text-align: center; transition: border-color .2s, background .2s; }
.quick-action > svg, .quick-action > [data-icon] { width: 22px; height: 22px; color: var(--gold); }
.quick-action:hover { border-color: #736643; background: #1a3022; }
.card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 19px; }
.card-title { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.card-title svg { width: 19px; height: 19px; color: var(--gold); }
.card p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.card-header > p, .card-header > span { font-size: 10px; }
.grid-two, .grid-three, .feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.grid-two > *, .grid-three > *, .feature-grid > * { min-width: 0; }
.feature-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #0e221b; }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid #b2965030; border-radius: 12px; color: var(--gold); background: #c8a5550b; }
.feature-card h3 { margin: 1px 0 5px; font-size: 12px; }
.feature-card p { color: var(--muted); font-size: 11px; line-height: 1.9; }
.inline-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: #89a18d; font-size: 10px; line-height: 1.9; }
.inline-note svg { width: 15px; height: 15px; margin-top: 2px; color: #a48e59; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: #b5c39807; color: #b5c5b5; font-size: 11px; line-height: 1.9; }
.notice > svg { width: 18px; height: 18px; margin-top: 2px; }
.notice.warning { border-color: #b3975435; background: #b397540b; color: #c4b58e; }
.notice.warning > svg { color: var(--gold); }
.notice.success { border-color: #7bcea035; background: #7bcea009; color: #9fc2a6; }
.list { display: grid; gap: 0; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; font-size: 11px; }
.list-row + .list-row { border-top: 1px solid var(--line-soft); }
.list-row > span:first-child { color: var(--muted); }
.progress-bar { height: 5px; overflow: hidden; border-radius: 10px; background: #071711; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ae9452, #e5c980); transition: width .3s ease; }

.level-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.level-card { position: relative; min-width: 0; overflow: hidden; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(125deg, #14281f, #0d2019); transition: border-color .2s, transform .2s; }
.level-card:hover { border-color: #6b6541; transform: translateY(-2px); }
.level-card.current { border-color: #c6a55b; box-shadow: inset 0 0 25px #c6a55b09; }
.level-number { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--gold-light); font-family: "Segoe UI", Tahoma, sans-serif; font-size: 20px; font-weight: 700; }
.level-number svg { width: 22px; height: 22px; }
.level-price { margin-top: 18px; color: #e6e8dd; font-size: 30px; font-weight: 600; font-family: "Segoe UI", Tahoma, sans-serif; line-height: 1.3; letter-spacing: -.8px; }
.level-price small { margin-inline-start: 4px; color: #8fa58f; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.level-meta { display: grid; gap: 9px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 10px; }
.level-meta > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.level-meta span { color: var(--muted); }
.level-meta strong { font-size: 12px; font-weight: 500; }
.level-badge { position: absolute; top: 18px; left: 16px; padding: 3px 8px; border: 1px solid #bd9e5a50; border-radius: 6px; color: #d8bd7b; background: #bda65a11; font-size: 9px; }
.level-card-footer { margin-top: 18px; }
.level-card-footer .button { width: 100%; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #54644b #0d2019; }
.level-table { min-width: 580px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: right; }
th { padding: 13px 15px; border-bottom: 1px solid #47523b; color: #91a58f; background: #172b20; font-size: 10px; font-weight: 400; white-space: nowrap; }
td { padding: 14px 15px; border-bottom: 1px solid var(--line-soft); color: #c3cec1; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #c7b26e05; }
tbody tr.current { background: #bfab6910; }
tbody tr.current td { color: var(--gold-light); }
td:first-child { color: #d8bd7b; font-weight: 700; }
.card:has(> .table-scroll) { overflow: hidden; }

.task-list { display: grid; gap: 12px; }
.task-card { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #10241c; }
.task-card.completed { border-color: #49704d66; background: #152d204a; }
.task-number { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid #c2ab6530; border-radius: 11px; background: #c2ab6509; color: var(--gold); font-family: "Segoe UI", Tahoma, sans-serif; font-size: 15px; }
.task-number svg { width: 18px; height: 18px; }
.task-details { min-width: 0; flex: 1 1 130px; }
.task-details h3 { margin-bottom: 4px; font-size: 12px; }
.task-details p { color: var(--muted); font-size: 10px; }
.task-reward { margin-inline-start: auto; color: #dfc78e; font-size: 13px; font-weight: 700; white-space: nowrap; }
.task-reward > small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; color: var(--muted); }
.hero-metric strong, .team-requirements strong { direction: ltr; unicode-bidi: isolate; }
.hero-metric strong { text-align: right; }
.feature-card { flex-direction: column; gap: 8px; }
.profile-card { position: relative; }
.profile-card > .level-badge { position: static; margin-inline-start: auto; }
.task-card > .button { width: 100%; }
.task-progress { width: 100%; flex-basis: 100%; }
.task-progress .progress-bar { margin-top: 7px; }
.task-countdown { color: #d4c494; font-size: 11px; }
.task-card.completed .task-number { border-color: #70b88330; color: #8fc69b; background: #70b88309; }
.wallet-balance { padding: 25px 23px; border: 1px solid #8c78424d; border-radius: 17px; background: radial-gradient(ellipse at 0% 10%, #6c6c2a2b, transparent 65%), linear-gradient(115deg, #193225, #142b20); }
.wallet-balance > span, .wallet-balance > p { color: #a9b89e; font-size: 11px; }
.wallet-balance-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; color: #f5dfad; font-family: "Segoe UI", Tahoma, sans-serif; font-size: clamp(35px, 6vw, 46px); font-weight: 500; line-height: 1.3; letter-spacing: -1px; }
.wallet-balance-amount small { color: #baa77e; font-size: 14px; letter-spacing: 0; }
.wallet-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.wallet-actions .button { flex: 1; }
.field { display: grid; gap: 7px; min-width: 0; }
.field + .field { margin-top: 17px; }
.field-label { color: #bfccbc; font-size: 11px; font-weight: 700; }
.field-hint { color: #78917b; font-size: 10px; line-height: 1.9; }
.input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 11px 13px; border: 1px solid #2d4535; border-radius: 10px; outline: none; color: var(--text); background: #071a12; font-size: 12px; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: #5f7a65; opacity: 1; }
.input:focus { border-color: #a78b4b; box-shadow: 0 0 0 3px #c1a15d0c; }
.input[readonly] { color: #8fa68f; background: #0d2119; }
textarea.input { min-height: 95px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 17px; }
.form-grid .field + .field { margin: 0; }
.wallet-address { overflow-wrap: anywhere; padding: 13px; border: 1px dashed #4e6041; border-radius: 9px; color: #c2ba92; background: #0a1a13; font-family: Consolas, "Courier New", monospace; font-size: 11px; line-height: 1.8; text-align: left; }
.network-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid #7d8aa52e; border-radius: 6px; background: #788aaf0c; color: #b0bbd0; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 10px; white-space: nowrap; }
.network-badge svg { width: 13px; height: 13px; }
.transaction-list { display: grid; gap: 0; }
.transaction-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 15px 0; }
.transaction-row + .transaction-row { border-top: 1px solid var(--line-soft); }
.transaction-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; flex: 0 0 auto; border: 1px solid #6b9c6e25; border-radius: 10px; background: #6b9c6e0a; color: #8db193; }
.transaction-icon svg { width: 17px; height: 17px; }
.transaction-details { min-width: 0; flex: 1; }
.transaction-details strong { display: block; color: #c7d2c3; font-size: 11px; font-weight: 400; }
.transaction-details span, .transaction-details small { display: block; margin-top: 3px; color: #718e76; font-size: 9px; }
.transaction-amount { color: #aacb9e; font-size: 13px; font-weight: 600; white-space: nowrap; }
.transaction-amount.negative { color: #d9bd84; }
.empty-state { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 180px; gap: 10px; padding: 30px 15px; color: var(--muted); font-size: 12px; text-align: center; }
.empty-state > svg { width: 35px; height: 35px; margin-bottom: 5px; color: #576e50; }
.empty-state p { max-width: 310px; font-size: 11px; }

.mining-panel { position: relative; overflow: hidden; padding: 26px 20px 24px; border: 1px solid #5d603d80; border-radius: 20px; background: radial-gradient(ellipse at 50% 35%, #375a3629, transparent 65%), #0e231a; text-align: center; }
.mining-panel::before { position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(#c6ba7233 1px, transparent 1px); background-size: 31px 31px; mask-image: radial-gradient(ellipse at center, #000, transparent 65%); content: ""; pointer-events: none; }
.mining-panel > * { position: relative; }
.mining-panel h2 { font-size: 20px; }
.mining-panel > p { max-width: 460px; margin: 7px auto 0; color: #93ac94; font-size: 11px; }
.mining-orbit { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 270px); aspect-ratio: 1; margin: 24px auto; }
.mining-core { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 124px; height: 124px; border: 1px solid #d9ba6e; border-radius: 50%; background: radial-gradient(circle at 40% 25%, #58633d, #1f3925 58%, #0e2518); box-shadow: 0 0 0 9px #c1a15d0a, 0 0 45px #d2b66520, inset 0 0 30px #0005; color: var(--gold-light); font-size: 58px; }
.mining-core svg { width: 65px; height: 65px; stroke-width: 1.1; }
.mining-ring { position: absolute; inset: 15px; border: 1px solid #bba15b2b; border-radius: 50%; }
.mining-ring::before, .mining-ring::after { position: absolute; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #b7a05d; box-shadow: 0 0 10px #d0bd7880; content: ""; }
.mining-ring::before { left: -3px; }
.mining-ring::after { right: -3px; }
.mining-ring:nth-child(2) { inset: 35px; transform: rotate(45deg); border-style: dashed; border-color: #bba15b40; }
.mining-ring:nth-child(3) { inset: 0; border-color: #bba15b16; transform: rotate(90deg); }
.mining-animation.running .mining-ring { animation: orbit-spin 5s linear infinite; }
.mining-animation.running .mining-ring:nth-child(2) { animation-direction: reverse; animation-duration: 8s; }
.mining-animation.running .mining-core { animation: mining-glow 1.2s ease-in-out infinite; }
.mining-result { min-height: 38px; margin-bottom: 13px; color: #dfc580; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 23px; font-weight: 600; }
.mining-result small { font-size: 12px; font-weight: 400; }
.mining-controls { display: grid; justify-items: center; gap: 11px; }
.mining-controls > .button { min-width: min(100%, 230px); }
.counter { color: #a8b79b; font-size: 11px; }
.counter strong { color: #e1c888; }
.robot-card { position: relative; overflow: hidden; padding: 25px; border: 1px solid #76654170; border-radius: 19px; background: linear-gradient(120deg, #1f3221, #0f241a); }
.robot-visual { display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; margin: 10px auto 23px; border: 1px solid #c1a35c50; border-radius: 28px; background: radial-gradient(circle at 35% 20%, #55603a, #203523 70%); box-shadow: 0 0 0 10px #b6985306, 0 15px 40px #0003; color: #e5cb86; }
.robot-visual > svg { width: 64px; height: 64px; stroke-width: 1.4; }
.robot-visual { flex-direction: column; width: 160px; height: 160px; gap: 8px; }
.robot-visual .robot-status { margin-top: 0; font-size: 9px; }
.robot-card h2, .robot-card h3 { font-size: 21px; }
.robot-card > p { margin-top: 8px; color: #9ab094; font-size: 12px; }
.robot-card .list { margin-top: 18px; }
.robot-status { display: flex; align-items: center; gap: 7px; width: fit-content; margin-top: 15px; padding: 5px 10px; border: 1px solid #65916840; border-radius: 7px; background: #7cbd8209; color: #acd2a7; font-size: 10px; }
.robot-card > .button { width: 100%; margin-top: 22px; }

.milestone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.milestone-card { min-width: 0; padding: 17px 15px; border: 1px solid var(--line); border-radius: 13px; background: #10241c; }
.milestone-card.claimed { border-color: #4b765145; background: #18322060; }
.milestone-card > svg { width: 23px; height: 23px; margin-bottom: 13px; color: #b7a166; }
.milestone-number { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; color: #e5cb89; font-size: 24px; font-family: "Segoe UI", Tahoma, sans-serif; font-weight: 600; line-height: 1.3; }
.milestone-number small { font-size: 10px; color: #8eaa8f; }
.milestone-card p { min-height: 38px; color: #90a98f; font-size: 10px; }
.milestone-card .progress-bar { margin-top: 13px; }
.milestone-card .button { width: 100%; margin-top: 13px; }
.team-tier { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: #0f231b; }
.team-tier > svg { width: 30px; height: 30px; margin-bottom: 14px; color: #b9a15e; }
.team-tier h3 { margin-bottom: 8px; font-size: 15px; }
.team-tier > strong { color: var(--gold); font-family: "Segoe UI", Tahoma, sans-serif; font-size: 26px; }
.team-tier > strong small { font-size: 11px; font-weight: 400; }
.team-requirements { display: grid; gap: 8px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line-soft); color: #90a88e; font-size: 10px; }
.team-requirements > div { display: flex; align-items: center; gap: 7px; }
.team-requirements svg { width: 13px; height: 13px; color: #6d956f; }
.referral-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.referral-rate { min-width: 0; padding: 19px 10px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(130deg, #173021, #0f241b); text-align: center; }
.referral-rate strong { display: block; margin: 5px 0 7px; color: var(--gold); font-family: "Segoe UI", Tahoma, sans-serif; font-size: 31px; font-weight: 600; line-height: 1.3; }
.referral-rate span, .referral-rate p { color: var(--muted); font-size: 10px; }
.referral-rate svg { width: 21px; height: 21px; margin: 0 auto 12px; color: #b7aa79; }
.profile-card { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 23px; border: 1px solid #75613b70; border-radius: 17px; background: linear-gradient(130deg, #23352290, #10251b); }
.avatar { display: flex; align-items: center; justify-content: center; width: 61px; height: 61px; flex: 0 0 auto; border: 1px solid #bda56970; border-radius: 16px; background: #b19b5718; color: #e6ce8d; font-size: 21px; }
.avatar svg { width: 27px; height: 27px; }
.profile-card h2 { font-size: 17px; }
.profile-card p { margin-top: 5px; color: #90a68d; font-size: 10px; }
.profile-card > .status-pill { margin-inline-start: auto; }
.settings-list { display: grid; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 14px 0; color: #bac9b6; font-size: 11px; }
.settings-row + .settings-row { border-top: 1px solid var(--line-soft); }
.settings-row > span:first-child { display: flex; align-items: center; gap: 10px; }
.settings-row > span:first-child > svg { width: 17px; height: 17px; color: #b4a36b; }
.settings-row > span:last-child { color: #8da28a; font-size: 10px; }
.auth-note { padding: 15px; border: 1px dashed #8b775647; border-radius: 10px; background: #bda16606; color: #ac9f7d; font-size: 10px; line-height: 2; }
.segmented { display: flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #0a1a13; }
.segmented button { min-height: 31px; padding: 5px 14px; border: 0; border-radius: 6px; background: transparent; color: #8fa58d; font-size: 10px; }
.segmented button.active, .segmented button[aria-pressed="true"] { background: #b6a06420; color: var(--gold-light); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; color: #a4b59c; font-size: 9px; white-space: nowrap; }
.tabs { display: flex; align-items: stretch; gap: 3px; margin-bottom: 21px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 14px; border: 0; background: transparent; color: #879f85; font-size: 11px; white-space: nowrap; }
.tab.active { color: var(--gold-light); }
.tab.active::after { position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; border-radius: 2px 2px 0 0; background: var(--gold); content: ""; }
.reward-callout { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 18px 0; padding: 19px; border: 1px solid #a38b4f4a; border-radius: 12px; background: linear-gradient(100deg, #8b783317, #cdb66b07); }
.reward-callout > svg { width: 28px; height: 28px; color: var(--gold); }
.reward-callout strong { color: #e6d29e; font-size: 12px; }
.reward-callout p { margin-top: 4px; color: #9fab8b; font-size: 10px; }
.reference-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.reference-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #0c1e17; }
.reference-card img { width: 100%; height: auto; object-fit: contain; }
.reference-card p, .reference-card figcaption { padding: 13px 15px; color: #a0b397; font-size: 11px; }

.modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: #020c09c9; backdrop-filter: blur(6px); animation: page-in .15s ease-out; }
.modal { width: 100%; max-width: 480px; max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #5b6142; border-radius: 19px; background: #10251b; box-shadow: 0 30px 100px #0006; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
.modal-header h2, .modal-header h3 { font-size: 16px; }
.modal-close { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; color: #a6b49a; background: #142c1f; }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 21px; color: #a6b69d; font-size: 12px; line-height: 2; }
.modal-body p + p { margin-top: 12px; }
.modal-body .field { margin-top: 17px; }
.modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 0 20px 20px; }
.modal-footer .button { flex: 1 1 auto; }
.toast { position: fixed; z-index: 120; right: 20px; bottom: 98px; left: 20px; width: fit-content; max-width: calc(100% - 40px); margin: 0 auto; padding: 13px 19px; transform: translateY(15px); border: 1px solid #6e774e; border-radius: 11px; opacity: 0; background: #233523; color: #eadfb7; box-shadow: 0 10px 40px #0007; font-size: 11px; text-align: center; line-height: 1.9; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { transform: translateY(0); opacity: 1; }
.mobile-nav { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; min-height: 73px; padding: 8px 5px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid #3c4d36; background: #0c1e17f5; backdrop-filter: blur(15px); }
.mobile-nav .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 51px; padding: 5px 2px; border: 0; border-radius: 9px; background: transparent; color: #7e967f; font-size: 9px; line-height: 1.6; }
.mobile-nav .nav-item.active { background: #b69d5d11; color: var(--gold); }
.mobile-nav .nav-item > svg, .mobile-nav .nav-item [data-icon] { width: 20px; height: 20px; }
.mobile-nav .nav-item span { white-space: nowrap; }

@media (min-width: 480px) {
  .page-content { padding-inline: 24px; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-card > .button { width: auto; }
  .task-card { flex-wrap: nowrap; }
  .task-card:has(.task-progress) { flex-wrap: wrap; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-image img { width: 240px; }
}

@media (min-width: 700px) {
  :root { font-size: 14px; }
  .topbar { min-height: 82px; padding: 16px 28px; }
  .topbar-title { font-size: 16px; }
  .topbar-meta { font-size: 10px; }
  .demo-banner { padding: 8px 28px; font-size: 10px; }
  .demo-badge { padding-inline: 10px; }
  .page-content { padding: 30px 28px; }
  .hero { grid-template-columns: 1.25fr .75fr; padding: 30px 30px 0; }
  .hero-copy { padding-bottom: 26px; }
  .hero-image { grid-column: 2; grid-row: 1; padding: 0 3px 24px 0; }
  .hero-image img { width: min(100%, 265px); }
  .hero-title { font-size: 32px; }
  .hero-description { font-size: 11px; }
  .hero-metrics { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; padding: 21px 0; }
  .hero-metric strong { font-size: 24px; }
  .hero-metric span, .hero-metric small { font-size: 10px; }
  .hero-footer { margin-inline: -30px; padding-inline: 30px; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
  .stat-card { padding: 19px; }
  .stat-icon { position: absolute; top: 17px; left: 16px; width: 29px; height: 29px; margin: 0; border-radius: 9px; }
  .stat-icon svg { width: 15px; height: 15px; }
  .stat-label { min-height: 25px; margin-bottom: 15px; padding-inline-end: 20px; font-size: 10px; }
  .stat-value { font-size: 27px; }
  .stat-note { margin-top: 7px; font-size: 9px; }
  .quick-actions { gap: 14px; }
  .quick-action { flex-direction: row; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 14px 12px; font-size: 11px; }
  .quick-action > svg { width: 20px; height: 20px; }
  .grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .milestone-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .section { margin-top: 31px; }
  .card { padding: 22px; }
  .mining-panel { padding: 31px; }
}

@media (min-width: 1024px) {
  .desktop-only { display: revert !important; }
  .mobile-only, .mobile-nav { display: none !important; }
  .app-shell { padding-inline-start: 228px; }
  .app-sidebar { position: fixed; z-index: 60; inset-block: 0; inset-inline-start: 0; display: flex; flex-direction: column; width: 228px; padding: 29px 17px 20px; border-inline-end: 1px solid #263b2b; background: #0b1b14; }
  .brand { display: flex; align-items: center; gap: 11px; min-height: 61px; margin: 0 8px; padding-bottom: 25px; border-bottom: 1px solid #283d2b; }
  .brand-image { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid #80704480; border-radius: 50%; object-fit: cover; }
  .brand-name { display: block; color: #f0da9f; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: 3px; }
  .brand-subtitle { display: block; margin-top: 5px; color: #7e987c; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 8px; letter-spacing: .7px; }
  .sidebar-nav { display: grid; gap: 6px; align-content: start; margin-top: 27px; }
  .sidebar-nav > .eyebrow { margin: 0 15px 10px; color: #607a60; font-size: 9px; letter-spacing: 0; }
  .sidebar-nav .nav-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; padding: 11px 15px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #89a186; font-size: 11px; line-height: 1.6; text-align: right; transition: color .2s, background .2s; }
  .sidebar-nav .nav-item > svg, .sidebar-nav .nav-item [data-icon] { width: 18px; height: 18px; color: #728e70; }
  .sidebar-nav .nav-item:hover { color: #dedab7; background: #b39b5d09; }
  .sidebar-nav .nav-item.active { border-color: #b9a15a26; color: #e6ce8e; background: linear-gradient(90deg, #b39b5d0a, #b39b5d1c); }
  .sidebar-nav .nav-item.active svg { color: #d8bb72; }
  .sidebar-nav .nav-item.active::before { position: absolute; inset-inline-start: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: #d2b76c; content: ""; }
  .sidebar-footer { display: grid; gap: 11px; margin-top: auto; padding: 24px 9px 0; }
  .sidebar-footer > .card, .sidebar-footer > div { padding: 14px 13px; border: 1px solid #33462f; border-radius: 11px; background: #18291b50; }
  .sidebar-footer p { margin-top: 7px; color: #708c6e; font-size: 9px; line-height: 1.9; }
  .sidebar-footer strong { display: flex; align-items: center; gap: 7px; color: #c4bc8b; font-size: 10px; font-weight: 400; }
  .sidebar-footer small { color: #537153; font-size: 8px; text-align: center; letter-spacing: .3px; }
  .app-main { padding-bottom: 0; }
  .topbar { min-height: 78px; padding-inline: 34px; }
  .topbar-meta { display: inline-flex; margin: 0 14px 0 0; padding-inline-start: 14px; border-inline-start: 1px solid #30462f; font-size: 10px; font-weight: 400; }
  .topbar-actions { gap: 12px; }
  .page-content { padding: 29px 30px 32px; }
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(210px, .8fr); padding-top: 31px; }
  .hero-title { font-size: 34px; }
  .hero-copy > .eyebrow { margin-bottom: 13px; }
  .hero-image { padding-inline-start: 13px; }
  .hero-image img { width: min(100%, 260px); }
  .hero-metrics { gap: 22px; }
  .stat-card { padding: 18px 15px; }
  .stat-value { font-size: 25px; }
  .stat-icon { left: 12px; width: 27px; height: 27px; }
  .stat-label { padding-inline-end: 18px; font-size: 9px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toast { right: 258px; bottom: 30px; left: 30px; }
}

@media (min-width: 1280px) {
  .app-shell { padding-inline-start: 246px; }
  .app-sidebar { width: 246px; padding-inline: 20px; }
  .page-content { padding: 34px 38px 36px; }
  .topbar { padding-inline: 38px; }
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(250px, .8fr); padding: 33px 36px 0; }
  .hero-copy { padding-bottom: 28px; }
  .hero-copy > .eyebrow { font-size: 10px; }
  .hero-title { font-size: 39px; }
  .hero-description { max-width: 440px; font-size: 12px; }
  .hero-image { padding-bottom: 23px; }
  .hero-image img { width: min(100%, 275px); }
  .hero-metrics { padding-top: 23px; padding-bottom: 23px; }
  .hero-footer { margin-inline: -36px; padding-inline: 36px; }
  .stats-grid { gap: 17px; }
  .stat-card { padding: 22px; }
  .stat-label { font-size: 10px; }
  .stat-icon { left: 18px; top: 21px; width: 31px; height: 31px; }
  .stat-icon svg { width: 17px; height: 17px; }
  .stat-value { font-size: 29px; }
  .stat-note { font-size: 10px; }
  .level-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .toast { right: 276px; }
}

@media (min-width: 1550px) {
  .topbar { padding-inline: max(38px, calc((100vw - 1450px) / 2)); }
  .hero-title { font-size: 43px; }
  .hero-image img { width: 290px; }
}

@media (max-width: 379px) {
  .page-content { padding-inline: 13px; }
  .topbar { padding-inline: 15px; }
  .topbar-title { font-size: 13px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .demo-badge { padding-inline: 5px; font-size: 9px; }
  .hero { padding-inline: 20px; }
  .hero-footer { margin-inline: -20px; }
  .hero-title { font-size: 27px; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { padding-inline: 12px; font-size: 11px; }
  .hero-metric strong { font-size: 18px; }
  .hero-metric span, .hero-metric small { font-size: 8px; }
  .card { padding: 17px; }
  .stat-card { padding: 15px 13px; }
  .stat-value { font-size: 23px; }
  .referral-rates { gap: 7px; }
  .referral-rate { padding-inline: 5px; }
  .referral-rate strong { font-size: 27px; }
  .milestone-card { padding-inline: 12px; }
}

@media (max-width: 599px) {
  .topbar { gap: 10px; padding-inline: 15px; }
  .topbar-meta { display: block; font-size: 9px; line-height: 1.8; }
  .topbar-meta > span:first-child { display: none; }
  .topbar-meta [data-clock] { display: block; white-space: nowrap; }
  .topbar-actions .avatar { width: 38px; height: 38px; min-width: 38px; border-radius: 12px; font-size: 16px; }
  .topbar-actions > .status-pill { display: none; }
  .demo-banner { font-size: 11px; padding-inline: 14px; text-align: start; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-action { padding: 16px 8px; font-size: 12px; }
  .page-heading p, .hero-description, .card p { font-size: 13px; }
  .feature-card p { font-size: 12px; }
  .stat-label { font-size: 11px; }
  .stat-note { font-size: 10px; }
  .list-row { font-size: 12px; }
}

@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes mining-glow { 0%, 100% { box-shadow: 0 0 0 9px #c1a15d0a, 0 0 45px #d2b66520; } 50% { box-shadow: 0 0 0 13px #c1a15d10, 0 0 70px #d2b66545; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  body { color: #142319; background: #fff; }
  .app-sidebar, .mobile-nav, .topbar-actions, .hero-actions, .wallet-actions, .modal-overlay, .toast, .button { display: none !important; }
  .app-shell { padding: 0; }
  .app-main { padding-bottom: 0; }
  .page-content { max-width: none; padding: 18px; }
  .hero, .card, .stat-card, .level-card, .notice, .team-tier, .milestone-card, .feature-card, .wallet-balance { color: #17291e; background: #fff; border-color: #a6b39c; box-shadow: none; break-inside: avoid; }
  .hero-title, .hero-title span, .stat-value, .level-price, .level-number, .wallet-balance-amount { color: #3a512f; }
  .demo-banner, .demo-badge { color: #5e542f; background: #f5f2e6; }
  .table-scroll { overflow: visible; }
  th, td { color: #293d28; border-color: #c8d1c3; background: #fff; }
  .page-footer { color: #596c54; }
}
