:root {
  color-scheme: dark;
  --bg: #050806;
  --panel: rgba(13, 19, 15, .88);
  --panel-strong: #101711;
  --line: rgba(173, 213, 183, .12);
  --line-strong: rgba(153, 255, 190, .27);
  --text: #eef5ef;
  --muted: #809087;
  --green: #7dffae;
  --green-strong: #37d977;
  --amber: #f1c36c;
  --red: #ff766f;
  --blue: #7cbcff;
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 78% -15%, rgba(68, 185, 110, .15), transparent 28%), linear-gradient(155deg, #040605 0%, #07100a 52%, #050706 100%); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.grid-glow { position: fixed; inset: 0; pointer-events: none; opacity: .24; background-image: linear-gradient(rgba(125,255,174,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(125,255,174,.035) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, black, transparent 78%); }
.shell { width: min(1380px, calc(100% - 48px)); margin: auto; padding: 26px 0 40px; position: relative; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { position: relative; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 11px; display: grid; place-items: center; background: rgba(125,255,174,.06); transform: rotate(45deg); }
.brand-mark i { position: absolute; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.brand-mark i:nth-child(1) { transform: translate(-7px, 7px); }.brand-mark i:nth-child(2) { transform: translate(7px, -7px); }.brand-mark i:nth-child(3) { width: 9px; height: 9px; }
.brand > span:last-child { display: grid; gap: 2px; }.brand strong { font-size: 17px; letter-spacing: .08em; }.brand small { color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.live-pill { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: #aac0b1; font-size: 12px; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.hero { min-height: 410px; display: grid; grid-template-columns: 1fr 360px; align-items: center; gap: 30px; padding: 52px 4% 36px; }
.eyebrow, .section-index { margin: 0 0 10px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .22em; }
h1 { margin: 0; max-width: 750px; font-size: clamp(42px, 6.2vw, 78px); line-height: 1.04; letter-spacing: -.055em; font-weight: 780; }
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(152, 255, 190, .62); }
.hero-copy { max-width: 660px; margin: 24px 0 0; color: #91a398; font-size: 15px; line-height: 1.8; }
.hero-orbit { position: relative; width: 300px; height: 300px; justify-self: end; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(125,255,174,.16); border-radius: 50%; }.orbit-one { inset: 22px; animation: spin 17s linear infinite; }.orbit-two { inset: 58px; animation: spin 11s linear reverse infinite; }
.orbit span { position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 20px var(--green); }
.orbit-core { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 30px; transform: rotate(45deg); border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(125,255,174,.18), rgba(7,18,10,.85)); color: var(--green); font-size: 42px; font-weight: 300; box-shadow: 0 0 80px rgba(80,239,139,.16); }
.orbit-core::first-letter { transform: rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.panel { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(15, 23, 17, .9), rgba(8, 13, 10, .92)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.query-panel { padding: 18px; margin-bottom: 18px; }
.query-form { display: grid; grid-template-columns: 240px minmax(320px, 1fr) auto; gap: 12px; align-items: end; }
label { display: grid; gap: 8px; color: #9aa99f; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid rgba(178,218,188,.16); border-radius: 11px; padding: 13px 14px; outline: 0; color: var(--text); background: rgba(2, 7, 4, .6); transition: border-color .18s, box-shadow .18s; }
textarea { resize: vertical; line-height: 1.55; font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }
input:focus, select:focus, textarea:focus { border-color: rgba(125,255,174,.58); box-shadow: 0 0 0 3px rgba(125,255,174,.08); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 45px; border: 1px solid transparent; border-radius: 11px; padding: 12px 17px; font-weight: 760; text-decoration: none; cursor: pointer; transition: transform .16s, filter .16s, opacity .16s; }
.button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }.button:disabled { opacity: .35; cursor: not-allowed; }
.button-primary { min-width: 184px; color: #061109; background: linear-gradient(135deg, #92ffb9, #4de28a); box-shadow: 0 12px 34px rgba(71,217,126,.15); }
.button-ghost { color: #b7c6bc; border-color: var(--line); background: rgba(255,255,255,.025); }.button-secondary { color: #d7f4e0; border-color: rgba(125,255,174,.22); background: rgba(125,255,174,.08); }
.button-buy { color: #031208; background: var(--green); }.button-sell { color: #fff; background: rgba(255,118,111,.16); border-color: rgba(255,118,111,.32); }.button-danger { color: #fff; background: linear-gradient(135deg, #ce4e4a, #9d3634); }
.status-line { min-height: 20px; margin-top: 13px; padding-left: 12px; border-left: 2px solid #526158; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.status-line[data-type="working"] { color: #9fc7e8; border-color: var(--blue); }.status-line[data-type="success"] { color: #98deb0; border-color: var(--green); }.status-line[data-type="error"] { color: #ff9e99; border-color: var(--red); }.status-line[data-type="warning"] { color: #e7c988; border-color: var(--amber); }
.hidden { display: none !important; }.dashboard { display: grid; gap: 18px; }
.token-strip { min-height: 90px; padding: 17px 20px; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: center; }
.token-identity { display: flex; align-items: center; gap: 14px; }.token-avatar { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: #08120b; background: linear-gradient(145deg, var(--green), #51c97c); font-weight: 900; font-size: 20px; }
h2, h3 { margin: 0; }.token-identity h2 { font-size: 20px; }.token-identity p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.token-contract { min-width: 0; display: grid; gap: 6px; }.token-contract span { color: var(--muted); font-size: 10px; }.token-contract a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b9cdc0; font-family: "Cascadia Mono", Consolas, monospace; font-size: 11px; }
.token-state { text-align: right; display: grid; gap: 7px; }.token-state span { color: var(--green); font-size: 11px; }.token-state strong { color: var(--muted); font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { min-height: 146px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(16,25,18,.92), rgba(8,13,10,.96)); display: flex; flex-direction: column; }
.metric-card > span { color: #8b9d91; font-size: 10px; font-weight: 750; letter-spacing: .06em; }.metric-card > strong { margin: 20px 0 10px; font-size: clamp(21px, 2.2vw, 31px); line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; }.metric-card > small { margin-top: auto; color: #65756b; font-size: 10px; line-height: 1.4; }
.metric-featured { border-color: rgba(125,255,174,.24); background: radial-gradient(circle at 85% 15%, rgba(125,255,174,.16), transparent 42%), linear-gradient(145deg,#102319,#09100b); }.metric-featured strong, .buy-card strong { color: var(--green); }.sell-card strong { color: var(--red); }
.tabbar { padding: 7px; display: flex; gap: 5px; overflow-x: auto; box-shadow: none; }.tab { flex: 1 0 auto; border: 0; border-radius: 10px; padding: 12px 18px; color: #839188; background: transparent; font-weight: 700; cursor: pointer; }.tab.active { color: #071109; background: var(--green); }
.tab-panel { display: grid; gap: 18px; }.tab-panel .panel { padding: 22px; }.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }.section-head h3 { font-size: 17px; }.source-tag, .risk-tag { flex: none; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #8fa398; font-size: 9px; letter-spacing: .05em; }.risk-tag { color: #eabf77; border-color: rgba(241,195,108,.24); }
.data-list { display: grid; margin: 0; }.data-list div { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(173,213,183,.07); }.data-list div:last-child { border: 0; }.data-list dt { color: var(--muted); font-size: 11px; }.data-list dd { margin: 0; text-align: right; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }.mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px !important; }
.health-meter { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }.health-meter > div { flex: 1; height: 7px; border-radius: 99px; background: #1a241d; overflow: hidden; }.health-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e2645e, #f2cb6e, var(--green)); transition: width .5s; }.health-meter strong { min-width: 46px; color: var(--green); font-size: 22px; }
.source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.source-item { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }.source-item strong { display: block; font-size: 11px; margin-bottom: 6px; }.source-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.panel-note { margin: -4px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.table-wrap { overflow: auto; max-height: 560px; border: 1px solid rgba(173,213,183,.08); border-radius: 11px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }th { position: sticky; top: 0; z-index: 1; padding: 11px 12px; color: #77877d; background: #101611; text-align: left; font-weight: 700; white-space: nowrap; }td { padding: 12px; border-top: 1px solid rgba(173,213,183,.06); white-space: nowrap; }.address-link { color: #a8c8b4; font-family: "Cascadia Mono", Consolas, monospace; text-decoration: none; }.empty-cell { padding: 36px; color: var(--muted); text-align: center; }.direction-buy { color: var(--green); }.direction-sell { color: var(--red); }.tag { padding: 4px 7px; border: 1px solid var(--line); border-radius: 99px; color: #91a49a; font-size: 9px; }
.watch-panel { display: grid; gap: 15px; }.watch-grid { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: end; }.watch-grid > div p { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.holder-index-panel { display: grid; gap: 14px; }.holder-setup { padding: 14px 16px; border: 1px solid rgba(173,213,183,.1); border-radius: 11px; background: rgba(5,15,11,.38); }.holder-setup summary { cursor: pointer; color: var(--text); font-size: 12px; font-weight: 700; }.holder-setup ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 11px; line-height: 1.9; }.holder-setup a { color: var(--green); }.holder-key-grid { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 14px; align-items: end; }.holder-result-note { margin: 0; }
.trade-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.trade-buttons .button:last-child { grid-column: 1 / -1; }
.admin-panel { border-color: rgba(241,195,108,.15); }.admin-grid { display: grid; gap: 15px; }.admin-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }.confirm-check { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; color: #baa981; line-height: 1.6; }.confirm-check input { width: 16px; margin-top: 2px; accent-color: var(--amber); }.confirm-check span { font-size: 11px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 4px 0; color: #536158; font-size: 9px; letter-spacing: .05em; }
@media (max-width: 1080px) { .hero { grid-template-columns: 1fr 250px; }.hero-orbit { transform: scale(.78); transform-origin: right center; }.metric-grid { grid-template-columns: repeat(3,1fr); }.source-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 780px) { .shell { width: min(100% - 24px, 1380px); }.hero { min-height: 370px; grid-template-columns: 1fr; padding: 55px 2px 25px; }.hero-orbit { display: none; }.query-form { grid-template-columns: 1fr; }.token-strip { grid-template-columns: 1fr; }.token-state { text-align: left; }.metric-grid { grid-template-columns: repeat(2,1fr); }.split-grid { grid-template-columns: 1fr; }.watch-grid, .holder-key-grid { grid-template-columns: 1fr; }.top-actions .live-pill { display: none; } }
@media (max-width: 500px) { .brand small { display: none; }.button { padding-inline: 13px; }.metric-grid { grid-template-columns: 1fr; }.metric-card { min-height: 126px; }.source-grid { grid-template-columns: 1fr; }.data-list div { grid-template-columns: 1fr; gap: 5px; }.data-list dd { text-align: left; }.admin-fields { grid-template-columns: 1fr; }.trade-buttons { grid-template-columns: 1fr; }.trade-buttons .button:last-child { grid-column: auto; }footer { flex-direction: column; } }

.trade-dialog { width: min(920px, calc(100% - 28px)); max-height: min(900px, calc(100dvh - 28px)); padding: 0; border: 1px solid rgba(125,255,174,.2); border-radius: 20px; color: var(--text); background: #09100b; box-shadow: 0 28px 90px rgba(0,0,0,.72); }
.trade-dialog::backdrop { background: rgba(0,8,3,.78); backdrop-filter: blur(8px); }
.dialog-shell { display: grid; gap: 18px; padding: 24px; max-height: calc(100dvh - 30px); overflow: auto; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-head h2 { margin-top: 4px; font-size: 22px; }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: #a8b8ae; background: #101712; font-size: 24px; line-height: 1; cursor: pointer; }
.trade-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #070c08; }
.trade-mode { padding: 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-weight: 700; cursor: pointer; }
.trade-mode.active { color: #071109; background: var(--green); }
.trade-flow { display: grid; gap: 16px; }
.trade-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade-form-grid label, .trade-flow > label { display: grid; gap: 7px; color: #8fa097; font-size: 10px; }
.mono-input { font-family: "Cascadia Mono", Consolas, monospace; }
.trade-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 16px; border: 1px solid rgba(125,255,174,.14); border-radius: 12px; color: #91a49a; background: rgba(125,255,174,.035); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.trade-summary strong { color: var(--green); font-size: 16px; }
.trade-summary small { grid-column: 1 / -1; color: var(--muted); }
.trade-summary[data-type="error"] { color: #ff8b84; border-color: rgba(255,111,104,.3); }
.trade-summary[data-type="working"] { color: #e9c777; border-color: rgba(241,195,108,.25); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.full-button { width: 100%; }
.trade-address-table { max-height: 300px; }
.trade-auth-cell { color: #d3ae68; }
.lp-details { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
@media (max-width: 680px) { .trade-dialog { width: 100%; max-width: none; max-height: 100dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }.dialog-shell { padding: 18px 14px 24px; max-height: 94dvh; }.trade-form-grid, .dialog-actions { grid-template-columns: 1fr; }.trade-summary { grid-template-columns: 1fr; }.trade-summary small { grid-column: auto; }.trade-mode { padding: 10px 6px; font-size: 11px; }.trade-address-table { max-height: 260px; } }
.vault-panel { display: grid; gap: 16px; }
.vault-stats { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid rgba(125,255,174,.14); border-radius: 12px; background: rgba(125,255,174,.035); }
.vault-stats strong { color: var(--green); font-size: 22px; }.vault-stats span { color: var(--muted); font-size: 11px; }
.vault-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.vault-form label { display: grid; gap: 7px; color: #8fa097; font-size: 10px; }
.vault-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }.file-button { display: flex; align-items: center; justify-content: center; cursor: pointer; }.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vault-table { max-height: 360px; }
@media (max-width: 680px) { .vault-form, .vault-actions { grid-template-columns: 1fr; }.vault-stats { align-items: flex-start; flex-direction: column; }.vault-table { max-height: 300px; } }
