.setup-intro {
 display:flex;
 gap:16px;
 align-items:center;
 margin-bottom:18px;
 padding:18px;
 border:1px solid #2d5a4b;
 border-radius:16px;
 background:linear-gradient(135deg,#102a22,#0a1b16);
}

.setup-intro-icon {
 display:grid;
 place-items:center;
 width:50px;
 height:50px;
 flex:none;
 border-radius:14px;
 background:var(--green);
 color:#052019;
 font-size:16px;
 font-weight:950;
 letter-spacing:.04em;
 box-shadow:0 10px 28px rgba(84,224,174,.16);
}

.setup-intro h3,
.connect-form-heading h3 {
 margin:2px 0 7px;
 font-size:22px;
 letter-spacing:-.02em;
}

.setup-intro p:last-child,
.connect-form-heading p:last-child {
 margin:0;
 color:var(--muted);
 font-size:14px;
 line-height:1.55;
}

.public-key-card {
 margin-bottom:20px;
 padding:18px;
 border:1px solid #39705e;
 border-radius:16px;
 background:#081712;
 box-shadow:inset 0 1px rgba(255,255,255,.025);
}

.public-key-heading {
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:15px;
 margin-bottom:12px;
}

.public-key-heading span,
.connect-form-heading>span {
 display:block;
 color:var(--green);
 font-size:11px;
 font-weight:900;
 letter-spacing:.12em;
}

.public-key-heading b {
 display:block;
 margin-top:4px;
 font-size:16px;
}

.public-key-heading em {
 padding:7px 9px;
 border:1px solid #315a4c;
 border-radius:999px;
 background:#10271f;
 color:#a9cbbf;
 font-size:10px;
 font-style:normal;
 font-weight:850;
 letter-spacing:.06em;
 white-space:nowrap;
}

.public-key-card textarea {
 margin:0;
 padding-right:150px;
 background:#05100d;
 border-color:#27483e;
 color:#cce4db;
}

.public-key-card .copy-field button {
 bottom:8px;
 background:var(--green);
 color:#052019;
}

.connect-guide {
 margin:0 0 20px;
 border:1px solid #315f50;
 border-radius:16px;
 background:#091a15;
 overflow:hidden;
}

.connect-guide>summary {
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:16px;
 padding:17px 18px;
 list-style:none;
 cursor:pointer;
 background:linear-gradient(135deg,#102d23,#0a1c16);
}

.connect-guide>summary::-webkit-details-marker {
 display:none;
}

.connect-guide>summary span,
.connect-guide>summary small {
 display:block;
}

.connect-guide>summary b {
 color:#effaf6;
 font-size:18px;
}

.connect-guide>summary small {
 margin-top:4px;
 color:#9dbdb1;
 font-size:14px;
}

.connect-guide>summary em {
 flex:none;
 padding:8px 10px;
 border:1px solid #3c745f;
 border-radius:999px;
 color:var(--green);
 font-size:12px;
 font-style:normal;
 font-weight:900;
 letter-spacing:.08em;
}

.connect-guide[open]>summary {
 border-bottom:1px solid #315f50;
}

body.guide-open {
 overflow:hidden;
}

.connect-guide[open] {
 position:fixed;
 inset:18px;
 z-index:1000;
 margin:0;
 overflow:auto;
 border-color:#477967;
 background:#06130f;
 box-shadow:0 0 0 100vmax rgba(1,8,6,.82),0 24px 80px rgba(0,0,0,.62);
}

.connect-guide[open]>summary {
 position:sticky;
 top:0;
 z-index:3;
}

.connect-guide[open] .connect-guide-shell {
 width:min(1500px,100%);
 margin:0 auto;
 padding:22px;
}

.connect-guide[open] .connect-guide-panel {
 grid-template-columns:minmax(0,1fr) minmax(300px,360px);
}

.connect-guide[open] .connect-guide-media img {
 max-height:calc(100vh - 285px);
 min-height:420px;
 object-fit:contain;
}

.connect-guide[open]>summary em {
 color:#d9eee6;
}

.connect-guide-shell {
 padding:18px;
}

.connect-guide-header {
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:18px;
 margin-bottom:16px;
}

.connect-guide-header h3 {
 margin:3px 0 6px;
 font-size:23px;
 letter-spacing:-.02em;
}

.connect-guide-header p:last-child {
 margin:0;
 color:#a8c5ba;
 font-size:15px;
 line-height:1.5;
}

.connect-guide-header button {
 flex:none;
 padding:9px 12px;
 border:1px solid #446f60;
 border-radius:9px;
 background:#10271f;
 color:#dcefe8;
 font:inherit;
 font-size:14px;
 font-weight:800;
 cursor:pointer;
}

.connect-guide-tabs {
 display:grid;
 grid-template-columns:repeat(6,1fr);
 gap:7px;
 margin-bottom:12px;
}

.connect-guide-tabs button {
 display:grid;
 gap:3px;
 min-width:0;
 padding:10px 5px;
 border:1px solid #294b40;
 border-radius:9px;
 background:#071510;
 color:#9ebbb0;
 font:inherit;
 font-size:15px;
 font-weight:900;
 cursor:pointer;
}

.connect-guide-tabs button span {
 overflow:hidden;
 font-size:11px;
 font-weight:750;
 text-overflow:ellipsis;
 white-space:nowrap;
}

.connect-guide-tabs button[aria-selected="true"] {
 border-color:#58dbaa;
 background:#164331;
 color:#ebfff7;
 box-shadow:0 0 0 1px rgba(88,219,170,.12);
}

.connect-guide-panel {
 display:grid;
 grid-template-columns:minmax(0,1.65fr) minmax(230px,.75fr);
 overflow:hidden;
 border:1px solid #315f50;
 border-radius:13px;
 background:#06130f;
}

.connect-guide-media {
 min-width:0;
 background:#00120d;
}

.connect-guide-media img {
 display:block;
 width:100%;
 height:auto;
 aspect-ratio:16/9;
 object-fit:contain;
}

.connect-guide-copy {
 padding:20px;
 border-left:1px solid #315f50;
 background:linear-gradient(155deg,#0e2b21,#081812);
}

.connect-guide-copy>span {
 color:var(--amber);
 font-size:12px;
 font-weight:900;
 letter-spacing:.12em;
}

.connect-guide-copy h4 {
 margin:8px 0 10px;
 color:#f1faf7;
 font-size:21px;
 line-height:1.25;
}

.connect-guide-copy>p {
 margin:0;
 color:#b3cdc3;
 font-size:15px;
 line-height:1.58;
}

.guide-verification-note {
 margin-top:16px;
 padding:12px;
 border:1px solid #745f2c;
 border-radius:10px;
 background:#2a2414;
}

.guide-verification-note b {
 color:#f7d878;
 font-size:14px;
}

.guide-verification-note p {
 margin:5px 0 0;
 color:#e0d4ad;
 font-size:13px;
 line-height:1.45;
}

.connect-guide-controls {
 display:grid;
 grid-template-columns:1fr auto 1fr;
 gap:10px;
 margin-top:12px;
}

.connect-guide-controls button {
 min-height:44px;
 padding:10px 14px;
 border:1px solid #396858;
 border-radius:9px;
 background:#15372c;
 color:#e0f5ed;
 font:inherit;
 font-size:14px;
 font-weight:850;
 cursor:pointer;
}

.connect-guide-controls button:last-child {
 justify-self:stretch;
 background:var(--green);
 color:#052019;
}

.connect-guide-controls button:disabled {
 opacity:.42;
 cursor:not-allowed;
}

.connect-guide :focus-visible {
 outline:3px solid rgba(88,219,170,.65);
 outline-offset:2px;
}

.visual-walkthrough {
 margin:0 0 20px;
 padding:18px;
 border:1px solid #315e50;
 border-radius:16px;
 background:linear-gradient(145deg,#0b211a,#071510);
}

.visual-guide-heading {
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 gap:18px;
 margin-bottom:15px;
}

.visual-guide-heading h3 {
 margin:3px 0 7px;
 font-size:22px;
 letter-spacing:-.02em;
}

.visual-guide-heading p:last-child {
 max-width:680px;
 margin:0;
 color:var(--muted);
 font-size:16px;
 line-height:1.55;
}

.visual-guide-heading>span {
 flex:none;
 padding:8px 10px;
 border:1px solid #6b5830;
 border-radius:999px;
 background:#302814;
 color:var(--amber);
 font-size:12px;
 font-weight:900;
 letter-spacing:.1em;
 white-space:nowrap;
}

.walkthrough-player {
 overflow:hidden;
 margin:0;
 border:1px solid #37695a;
 border-radius:13px;
 background:#03100c;
}

.walkthrough-player>img {
 display:block;
 width:100%;
 height:auto;
 aspect-ratio:14/9;
 object-fit:cover;
}

.walkthrough-player figcaption {
 display:flex;
 align-items:center;
 gap:13px;
 padding:13px 15px;
 border-top:1px solid #284b40;
 background:#0d261e;
}

.walkthrough-player figcaption span {
 flex:none;
 padding:6px 8px;
 border-radius:7px;
 background:#164331;
 color:var(--green);
 font-size:12px;
 font-weight:900;
 letter-spacing:.08em;
}

.walkthrough-player figcaption p {
 margin:0;
 color:#b7d1c7;
 font-size:14px;
 line-height:1.45;
}

.walkthrough-actions {
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:10px;
 margin-top:12px;
}

.walkthrough-actions a {
 display:flex;
 align-items:center;
 justify-content:center;
 min-height:45px;
 padding:10px 13px;
 border-radius:10px;
 font-size:14px;
 font-weight:850;
 text-align:center;
 text-decoration:none;
}

.walkthrough-primary {
 background:var(--green);
 color:#052019;
}

.walkthrough-secondary {
 border:1px solid #39705e;
 background:#15372c;
 color:#e0fff3;
}

.walkthrough-full-guide {
 margin-top:12px;
 border:1px solid #294c41;
 border-radius:11px;
 background:#081a14;
}

.walkthrough-full-guide summary {
 padding:14px 15px;
 color:#d8eee6;
 font-size:14px;
 font-weight:800;
 cursor:pointer;
}

.full-guide-image {
 max-height:720px;
 overflow:auto;
 border-top:1px solid #294c41;
 background:#062019;
}

.full-guide-image img {
 display:block;
 width:100%;
 height:auto;
}

.exness-steps {
 display:grid;
 gap:11px;
 margin:0;
 padding:0;
 list-style:none;
}

.exness-steps li {
 display:grid;
 grid-template-columns:42px 1fr;
 gap:14px;
 padding:17px;
 border:1px solid #24483c;
 border-radius:14px;
 background:#0a1a15;
 transition:border-color .18s,background .18s,transform .18s;
}

.exness-steps li:hover {
 border-color:#3c725f;
 background:#0d211a;
 transform:translateY(-1px);
}

.step-number {
 display:grid;
 place-items:center;
 width:38px;
 height:38px;
 border-radius:12px;
 background:#153a2d;
 color:var(--green);
 font-size:15px;
 font-weight:950;
}

.exness-steps b {
 display:block;
 font-size:16px;
 line-height:1.35;
}

.exness-steps p {
 margin:6px 0 0;
 color:var(--muted);
 font-size:14px;
 line-height:1.55;
}

.exness-steps strong {
 color:#effaf6;
}

.exness-steps .critical-step {
 border-color:#6b5830;
 background:linear-gradient(135deg,#201d12,#101914);
}

.critical-step .step-number {
 background:#433817;
 color:var(--amber);
}

.step-action {
 display:inline-flex;
 width:auto;
 margin-top:12px;
 padding:10px 13px;
 border:1px solid #39705e;
 border-radius:9px;
 background:#183c30;
 color:#e0fff3;
 font-size:13px;
 font-weight:850;
 text-decoration:none;
}

button.step-action {
 font-family:inherit;
 cursor:pointer;
}

.step-check {
 display:inline-flex;
 margin-top:11px;
 padding:7px 9px;
 border-radius:8px;
 background:#112b22;
 color:#9ed8c2;
 font-size:12px;
 font-weight:800;
}

.critical-step .step-check {
 background:#3a3018;
 color:#f7d98f;
}

.setup-safety-note {
 display:flex;
 gap:11px;
 align-items:flex-start;
 margin-top:16px;
 padding:14px;
 border:1px solid #285947;
 border-radius:12px;
 background:#0d241c;
}

.setup-safety-note>span {
 display:grid;
 place-items:center;
 width:25px;
 height:25px;
 flex:none;
 border-radius:50%;
 background:#174a36;
 color:var(--green);
 font-weight:900;
}

.setup-safety-note p {
 margin:1px 0;
 color:#a9c8bc;
 font-size:13px;
 line-height:1.5;
}

.setup-safety-note b {
 color:#eaf8f3;
}

.connect-form {
 margin-top:22px;
 padding-top:24px;
 border-top:1px solid var(--line);
 scroll-margin-top:18px;
}

.connect-form-heading {
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 gap:18px;
 margin-bottom:2px;
}

.connect-form-heading>span {
 padding:8px 10px;
 border:1px solid #356452;
 border-radius:999px;
 background:#10291f;
 white-space:nowrap;
}

.gateway-routing {
 margin:15px 0;
 padding:15px;
 border:1px solid #315f50;
 border-radius:12px;
 background:#0a2019;
}

.gateway-routing>div:first-child {
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 margin-bottom:12px;
}

.gateway-routing>div:first-child span {
 color:var(--green);
 font-size:12px;
 font-weight:900;
 letter-spacing:.1em;
}

.gateway-routing>div:first-child b {
 color:#e8f8f2;
 font-size:14px;
}

.gateway-routing dl {
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:10px;
 margin:0;
}

.gateway-routing dl div {
 min-width:0;
 padding:10px;
 border:1px solid #27493e;
 border-radius:9px;
 background:#061510;
}

.gateway-routing dt {
 color:#89ad9f;
 font-size:12px;
 font-weight:800;
}

.gateway-routing dd {
 overflow-wrap:anywhere;
 margin:4px 0 0;
 color:#dff5ed;
 font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
 font-size:13px;
}

.gateway-routing>p {
 margin:11px 0 0;
 color:#a9c8bc;
 font-size:14px;
 line-height:1.5;
}

@media(max-width:650px) {
 .setup-intro {
  align-items:flex-start;
 }

 .public-key-heading,
 .connect-form-heading,
 .visual-guide-heading {
  display:block;
 }

 .public-key-heading em,
 .connect-form-heading>span {
  display:inline-flex;
  margin-top:10px;
 }

 .public-key-card textarea {
  padding-right:15px;
  padding-bottom:58px;
 }

 .public-key-card .copy-field button {
  left:8px;
  right:8px;
  width:calc(100% - 16px);
 }

 .exness-steps li {
  grid-template-columns:36px 1fr;
  gap:11px;
  padding:14px;
 }

 .step-number {
  width:34px;
  height:34px;
 }

 .step-action {
  width:100%;
  justify-content:center;
  text-align:center;
 }

 .visual-guide-heading>span {
  display:inline-flex;
  margin-top:10px;
 }

 .visual-walkthrough {
  padding:13px;
 }

 .walkthrough-actions {
  grid-template-columns:1fr;
 }

 .walkthrough-player figcaption {
  display:block;
 }

 .walkthrough-player figcaption p {
  margin-top:9px;
 }

 .full-guide-image {
  max-height:560px;
 }

 .gateway-routing>div:first-child {
  display:block;
 }

 .gateway-routing>div:first-child b {
  display:block;
  margin-top:5px;
 }

 .gateway-routing dl {
  grid-template-columns:1fr;
 }

 .connect-guide>summary {
  align-items:flex-start;
 }

 .connect-guide[open] {
  inset:0;
  border:0;
  border-radius:0;
 }

 .connect-guide[open] .connect-guide-shell {
  padding:13px;
 }

 .connect-guide[open] .connect-guide-media img {
  min-height:0;
  max-height:none;
 }

 .connect-guide-shell {
  padding:13px;
 }

 .connect-guide-header {
  display:block;
 }

 .connect-guide-header button {
  width:100%;
  margin-top:12px;
 }

 .connect-guide-tabs {
  grid-template-columns:repeat(3,1fr);
 }

 .connect-guide-panel {
  grid-template-columns:1fr;
 }

 .connect-guide-copy {
  border-top:1px solid #315f50;
  border-left:0;
 }

 .connect-guide-controls {
  grid-template-columns:1fr 1fr;
 }

 .connect-guide-controls button:nth-child(2) {
  grid-column:1/-1;
  grid-row:2;
 }
}
