/* BERUR automation hub — premium DollarPrinter-inspired workspace */
.dp-hub-hero{position:relative;overflow:hidden;padding:clamp(22px,4vw,42px);margin:0 0 28px;border:1px solid #315078;border-radius:20px;background:radial-gradient(circle at 82% 48%,#244a77 0,transparent 27%),linear-gradient(118deg,#111c2d 0%,#172a45 52%,#102238 100%);box-shadow:0 22px 55px #0005}
.dp-hub-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 40%,#8abaff0a 60%,transparent 75%);pointer-events:none}
.dp-hub-kicker,.dp-hub-hero-foot,.dp-hub-section-note,.dp-hub-overline,.dp-module-meta{font:9px 'DM Mono',monospace;letter-spacing:.13em;color:#9db1cc}
.dp-hub-kicker{display:flex;align-items:center;gap:10px;color:#a9caff}
.dp-live-dot{width:7px;height:7px;border-radius:50%;background:#00d39a;box-shadow:0 0 12px #00d39a;display:inline-block}
.dp-hub-version{padding:5px 8px;border:1px solid #6b94c755;border-radius:30px;color:#b4c9e7}
.dp-hub-hero-copy{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:240px}
.dp-hub-hero-copy h2{font-size:clamp(34px,5vw,56px);line-height:1.02;letter-spacing:-.06em;margin:24px 0 13px;color:#f4f8ff}
.dp-hub-hero-copy h2 em{font-style:normal;color:#77b1ff}
.dp-hub-hero-copy p{max-width:580px;color:#aabbd2;font-size:12px;line-height:1.8;margin:0}
.dp-hub-hero-foot{position:relative;z-index:1;display:flex;justify-content:space-between;gap:12px;border-top:1px solid #7895b52c;padding-top:15px;margin-top:12px;font-size:8px}
.dp-hub-orbit{position:relative;flex:0 0 205px;width:205px;height:205px;display:grid;place-items:center}
.dp-orbit-ring{position:absolute;width:188px;height:188px;border:1px solid #74a8e44d;border-radius:50%;box-shadow:0 0 35px #4488dc20,inset 0 0 35px #4488dc12}
.dp-orbit-ring:before,.dp-orbit-ring:after{content:"";position:absolute;border:1px dashed #6f9bd34d;border-radius:50%;inset:18px}
.dp-orbit-ring:after{inset:42px;border-style:solid;border-color:#6f9bd32b}
.dp-orbit-core{width:88px;height:88px;border-radius:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#397fe0,#174b91);box-shadow:0 0 40px #4389e65c;color:#fff;font:800 31px Manrope;transform:rotate(-8deg)}
.dp-orbit-core span{font:8px 'DM Mono',monospace;letter-spacing:.16em}
.dp-orbit-node{position:absolute;display:grid;place-items:center;width:35px;height:35px;border:1px solid #6399d777;border-radius:11px;background:#142a46;color:#a9caff;font:9px 'DM Mono',monospace;font-style:normal;box-shadow:0 7px 20px #0005}
.dp-orbit-node.n1{top:8px;right:48px}.dp-orbit-node.n2{bottom:16px;right:13px}.dp-orbit-node.n3{bottom:18px;left:20px}
.dp-hub-section-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:0 0 14px}
.dp-hub-section-head h3{font-size:21px;letter-spacing:-.04em;margin:5px 0 0;color:#f1f5fb}
.dp-hub-overline{color:#6fa9f5}
.dp-hub-section-note{font-size:8px}
.dp-hub-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.dp-module-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:206px;text-align:left;padding:19px;border:1px solid #2c3a50;border-radius:15px;background:linear-gradient(145deg,#171f2d,#111823);color:#f3f6fb;cursor:pointer;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;overflow:hidden}
.dp-module-card:before{content:"";position:absolute;inset:0 auto 0 0;width:2px;background:linear-gradient(#4c92f4,#00c896);opacity:.0;transition:opacity .2s}
.dp-module-card:hover{transform:translateY(-3px);border-color:#527fb5;box-shadow:0 14px 28px #0004}
.dp-module-card:hover:before{opacity:1}
.dp-module-featured{background:radial-gradient(circle at 100% 0,#25456c 0,transparent 52%),linear-gradient(145deg,#192b43,#111a29);border-color:#3a5e8c}
.dp-module-icon{width:37px;height:37px;display:grid;place-items:center;margin-bottom:18px;border:1px solid #4a78b355;border-radius:11px;background:#203957;color:#a8cbff;font-size:19px}
.dp-module-meta{font-size:8px;color:#7f9abb;margin-bottom:7px}
.dp-module-card>b{font-size:16px;letter-spacing:-.025em}
.dp-module-card>small{font-size:10px;line-height:1.65;color:#9aa9bc;margin-top:8px;max-width:280px}
.dp-module-link{font:8px 'DM Mono',monospace;letter-spacing:.1em;color:#7db5ff;margin-top:auto;padding-top:18px}
.dp-hub-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:19px 21px;margin-top:17px;border:1px solid #2d3c51;border-radius:14px;background:#121a26}
.dp-hub-bottom b{display:block;margin-top:7px;font-size:13px;color:#e9f0fa}
.dp-hub-bottom p{max-width:700px;margin:5px 0 0;color:#9aa9bc;font-size:10px;line-height:1.65}
.dp-hub-safe{flex:0 0 auto;padding:8px 11px;border:1px solid #248b6c66;border-radius:30px;background:#102c25;color:#79e0b7;font:8px 'DM Mono',monospace;letter-spacing:.1em}
.dp-intro{padding:21px 23px;border:1px solid #35547b;border-radius:14px;background:linear-gradient(112deg,#172b46,#172238 65%,#1c2b40);box-shadow:0 9px 26px #0003}
.dp-intro b{font-size:15px;color:#edf4ff}.dp-intro p{color:#aabbd1}
.dp-live-pill{color:#9dc5ff;border-color:#5488c866;background:#162c47}
.dp-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dp-template-card{position:relative;overflow:hidden;background:linear-gradient(145deg,#192638,#111923);border-color:#30445f;transition:transform .2s,border-color .2s}
.dp-template-card:hover{transform:translateY(-2px);border-color:#5685bd}
.dp-template-card h3{font-size:17px;margin:15px 0 8px}
.dp-template-card p{font-size:11px;line-height:1.7;color:#a3b1c3;min-height:48px}
.dp-template-actions{display:flex;gap:9px;margin-top:15px;flex-wrap:wrap}
.dp-template-actions .primary{background:linear-gradient(135deg,#4b91f5,#2867c8);color:white}
.dp-template-actions .secondary{background:#202e42;border-color:#3a4f6c}
.dp-saved-list{display:grid;gap:9px;color:#9eacc0;font-size:10px}
.dp-saved-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:#111a28;border:1px solid #2b3b52;border-radius:10px}
.dp-saved-row b{color:#e4edf9;font-size:11px}
.dp-copy-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.dp-copy-grid .panel,.dp-lesson{background:linear-gradient(145deg,#192638,#111923);border-color:#30445f}
.dp-switch{display:flex;align-items:center;gap:9px;margin:18px 0;font-size:11px;color:#d7e2f1}
.dp-switch input{accent-color:#4d96ff;width:auto}
.dp-stat-row{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.dp-stat-row>div{flex:1;min-width:110px;padding:13px;background:#101a29;border:1px solid #2e4058;border-radius:10px}
.dp-stat-row small,.dp-stat-row b{display:block}
.dp-stat-row small{font-size:9px;color:#91a2b8}
.dp-stat-row b{font:600 14px 'DM Mono',monospace;margin-top:7px;color:#eaf2ff}
.dp-performance-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:15px}
.dp-performance-grid .metric{background:linear-gradient(145deg,#1b2b40,#121b28);border-color:#30445e}
.dp-performance-grid .metric strong{color:#dcecff}
.dp-lesson{padding:15px;margin-bottom:9px;border:1px solid #30445f;border-radius:11px}
.dp-lesson summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;color:#eaf2ff}
.dp-lesson summary span{color:#79aff8;font:10px 'DM Mono',monospace}
.dp-lesson summary i{margin-left:auto;color:#8ca4c2;font-size:9px;font-style:normal}
.dp-lesson p{font-size:10px;line-height:1.7;color:#a5b5c9}
.dp-bridge-status{padding:10px 12px;border:1px solid #344b6d;border-radius:9px;background:#101a28;color:#a8bdd8;font-size:10px}
.dp-bridge-status[data-kind="success"]{color:#83e7c5;border-color:#248c70;background:#102b28}
.dp-bridge-status[data-kind="research"]{color:#f4c978;border-color:#80683a;background:#292317}
@media(max-width:850px){.dp-hub-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dp-hub-orbit{transform:scale(.85);margin-right:-12px}}
@media(max-width:600px){.dp-hub-hero{padding:20px;border-radius:15px}.dp-hub-hero-copy{min-height:0}.dp-hub-hero-copy h2{font-size:34px;margin:21px 0 10px}.dp-hub-hero-copy p{font-size:10px}.dp-hub-orbit{flex:0 0 105px;width:105px;height:130px;transform:scale(.58);transform-origin:center right;margin-left:-50px;margin-right:-35px}.dp-hub-hero-foot{font-size:7px}.dp-hub-module-grid{grid-template-columns:1fr 1fr;gap:9px}.dp-module-card{min-height:190px;padding:13px}.dp-module-card>b{font-size:13px}.dp-module-card>small{font-size:9px}.dp-module-icon{margin-bottom:12px}.dp-module-meta{font-size:7px}.dp-module-link{font-size:7px}.dp-hub-section-note{display:none}.dp-hub-bottom{align-items:flex-start;flex-direction:column}.dp-template-grid,.dp-copy-grid{grid-template-columns:1fr}.dp-performance-grid{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){.dp-module-card,.dp-template-card{transition:none}}

/* Bot-first DollarPrinter-style library */
.dp-upload-panel{margin:18px 0;padding:clamp(16px,3vw,24px);border:1px solid #315078;background:linear-gradient(135deg,#121d2e,#101722)}
.dp-upload-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.dp-upload-head h3,.dp-library-subhead h3{margin:5px 0}
.dp-upload-head p{margin:5px 0;color:#aebed1;max-width:650px}
.dp-upload-button{display:inline-flex;align-items:center;cursor:pointer}
.dp-uploaded-bots{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:14px}
.dp-uploaded-bot{padding:16px;border:1px solid #2d4059;border-radius:14px;background:#0d1521}
.dp-uploaded-bot-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dp-uploaded-bot p{color:#aebed1;font-size:13px}
.dp-library-subhead{display:flex;align-items:center;justify-content:space-between;margin:22px 0 10px}
#trade-signal[hidden]{display:none!important}
@media(max-width:640px){.dp-upload-head{align-items:stretch}.dp-upload-button{justify-content:center}}
