/* Halaman detail agen · gaya Orbital */
.agent-page main, .agent-page .foot, .agent-page .missing { position: relative; z-index: 2; }
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 10% 20%, #fff8, transparent 60%), radial-gradient(1px 1px at 30% 70%, #fff6, transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 30%, #9ff4ff99, transparent 60%), radial-gradient(1px 1px at 85% 80%, #fff7, transparent 60%),
    radial-gradient(1px 1px at 55% 50%, #ff9df599, transparent 60%), radial-gradient(1px 1px at 20% 90%, #fff5, transparent 60%),
    radial-gradient(60% 50% at 80% 0%, rgba(34,228,255,.12), transparent 70%), radial-gradient(50% 50% at 0% 60%, rgba(255,61,240,.10), transparent 70%), #030614;
  background-size: 220px 220px, 260px 260px, 300px 300px, 240px 240px, 280px 280px, 200px 200px, 100% 100%, 100% 100%, 100% 100%; }
.muted { color: var(--muted); }
code { font-family: var(--font-mono); font-size: 12.5px; }

/* hero */
.a-hero { padding-top: 110px; }
.back { display: inline-block; font-size: 12px; color: var(--muted); text-decoration: none; margin-bottom: 18px; }
.back:hover { color: var(--accent); }
.a-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.a-world { position: relative; height: min(560px, 70vh); overflow: hidden; padding: 0; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
#world:active { cursor: grabbing; }
.w-tags { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; }
.w-tags span:empty { display: none; }
.w-tags span { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: rgba(3,6,20,.6); border: 1px solid var(--line); }
.w-tags .live { color: var(--ok); border-color: rgba(125,255,178,.4); } .w-tags .paused { color: #ffc53d; border-color: rgba(255,197,61,.4); }
.w-tags .feat { color: #ffd25a; border-color: rgba(255,210,90,.5); }
.w-hint { position: absolute; bottom: 14px; left: 16px; font-size: 11px; color: var(--muted); }
.a-id h1 { font-size: clamp(38px, 4.4vw, 66px); margin: 10px 0 10px; }
.a-tag { color: #b8c8e4; font-size: 17px; margin: 0 0 16px; max-width: 520px; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.a-chips span { font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(8,16,40,.5); }
.a-chips .m { color: var(--accent); border-color: rgba(34,228,255,.4); }
.a-price { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: rgba(8,16,40,.55); backdrop-filter: blur(14px); }
.a-price small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.a-price b { font-family: var(--font-display); font-size: 40px; font-weight: 800; margin-right: 8px; }
.a-price span { font-size: 11px; color: var(--muted); }
.big-hire { font-size: 16px; padding: 15px 26px; }
.a-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.a-mini div { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(8,16,40,.4); }
.a-mini small { display: block; font-size: 11px; color: var(--muted); }
.a-mini b { font-family: var(--font-display); font-size: 22px; }
.a-mini .glow { color: var(--accent); text-shadow: 0 0 16px rgba(34,228,255,.6); }
@media (max-width: 900px) { .a-grid { grid-template-columns: 1fr; } .a-world { height: 380px; } }
@media (max-width: 520px) { .a-mini { grid-template-columns: 1fr 1fr; } }

/* books */
.books { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; }
.b-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; overflow: hidden; background: var(--line); }
.b-cards div { padding: 20px; background: rgba(6,12,30,.85); }
.b-cards small { display: block; font-size: 11px; color: var(--muted); }
.b-cards b { display: block; font-family: var(--font-display); font-size: 28px; margin: 2px 0; }
.b-cards span { font-size: 12px; color: var(--muted); }
.b-cards .hl { background: linear-gradient(140deg, rgba(34,228,255,.18), rgba(6,12,30,.85)); }
.b-cards .hl b { color: var(--accent); }
.chart { padding: 20px 20px 14px; display: flex; flex-direction: column; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.legend { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.legend .l1 { background: var(--accent); } .legend .l2 { background: var(--accent2); }
.chart svg { width: 100%; flex: 1; min-height: 220px; }
.chart-foot { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
@media (max-width: 900px) { .books { grid-template-columns: 1fr; } }

/* receipts */
.table-wrap { padding: 6px 6px 12px; overflow-x: auto; }
.receipts { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.receipts th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.receipts td { padding: 11px 14px; border-bottom: 1px solid rgba(140,200,255,.07); font-family: var(--font-mono); font-size: 12.5px; }
.receipts td:nth-child(n+3):nth-child(-n+7), .receipts th:nth-child(n+3):nth-child(-n+7) { text-align: right; }
.receipts .kept { color: var(--ok); }
.receipts .who { display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: 6px; background: rgba(255,255,255,.08); color: var(--muted); }
.receipts .who.out { background: rgba(34,228,255,.15); color: var(--accent); }
.receipts tr.new td { animation: rowflash 1.6s ease-out; }
.receipts a { color: var(--accent); text-decoration: none; }
.more { display: block; margin: 10px auto 0; background: none; border: 1px solid var(--line); color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 12px; }
.more[hidden] { display: none; }

/* owner + side */
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.owner { padding: 28px; }
.owner h3, .side h3 { font-family: var(--font-display); font-size: 26px; margin: 8px 0 6px; }
.ctl { padding: 18px 0; border-top: 1px solid var(--line); }
.ctl h4 { margin: 0 0 8px; font-size: 15px; }
.ctl p { margin: 0 0 10px; font-size: 13px; }
.row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.row.between { justify-content: space-between; align-items: center; }
.row label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); flex: 1; min-width: 120px; }
.row input { flex: 1; min-width: 0; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
.row input:focus { border-color: var(--accent); }
.btn { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 999px; padding: 10px 16px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.owner .nx-cta { padding: 10px 18px; font-size: 14px; }
.side { display: grid; gap: 14px; }
.side > .glass { padding: 24px; }
.pledge-card:empty { display: none; }
.pledge-card .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin: 10px 0 6px; }
.pledge-card .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffc53d, var(--accent2)); }
.pledge-card dl, .ident dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 12px 0; font-size: 13px; }
.pledge-card dt, .ident dt { color: var(--muted); }
.pledge-card dd, .ident dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; word-break: break-all; }
.copy { font-family: var(--font-mono); font-size: 11px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: none; cursor: pointer; flex: none; }
.ident details { margin-top: 6px; } .ident summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.ident pre { font-size: 11.5px; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; }
.hire-code { margin-top: 14px; display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.hire-code span { font-size: 11px; } .hire-code code { color: var(--accent); word-break: break-all; } .hire-code .copy { justify-self: start; }
.feature.on { border-color: rgba(255,210,90,.5); box-shadow: 0 0 60px rgba(255,210,90,.15); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.missing { padding-top: 160px; min-height: 70vh; }
.missing h1 { font-size: clamp(36px, 5vw, 64px); }
.missing p { color: var(--muted); max-width: 520px; margin-bottom: 24px; }
.missing .nx-cta { text-decoration: none; display: inline-block; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 200; padding: 12px 18px; border-radius: 999px; font-size: 12.5px;
  background: rgba(8,16,40,.95); border: 1px solid rgba(34,228,255,.4); box-shadow: 0 0 30px rgba(34,228,255,.2); transition: .35s cubic-bezier(.2,.7,.2,1); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
