/* Knoxlink account flow — calm, consistent and mobile-first. */
body[data-auth-flow="1"]{
  --auth-bg:#060a16;
  --auth-panel:#0c1324;
  --auth-line:rgba(137,157,204,.18);
  --auth-muted:#8d98ac;
  background:var(--auth-bg)!important;
  color:#f4f6fb;
}
body[data-auth-flow="1"] .site-main{padding:0!important;background:var(--auth-bg)}
body[data-auth-flow="1"] .knox-layout{display:block!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important}
body[data-auth-flow="1"] .knox-content{width:100%;min-height:0}
body[data-auth-flow="1"] .site-header{
  position:sticky;
  top:0;
  z-index:80;
  height:70px;
  overflow:visible;
  background:rgba(5,8,22,.94);
  backdrop-filter:blur(18px);
}
body[data-auth-flow="1"] .site-header .header-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;height:70px;min-height:70px;gap:28px;padding:0 24px}
body[data-auth-flow="1"] .logo{min-width:0}
body[data-auth-flow="1"] .logo-img{width:132px;height:auto;max-height:32px}
body[data-auth-flow="1"] .landing-top-nav{display:flex;align-items:center;justify-content:center;gap:25px}
body[data-auth-flow="1"] .landing-top-nav a{color:#8f99ab;font-size:.69rem;font-weight:720;text-decoration:none}
body[data-auth-flow="1"] .landing-top-nav a:hover{color:#fff}
body[data-auth-flow="1"] .top-actions{gap:8px}
body[data-auth-flow="1"] .top-actions>a{display:inline-flex;min-height:38px;align-items:center;justify-content:center;padding:0 14px;font-size:.69rem}
body[data-auth-flow="1"] .top-actions>a.btn-primary{display:none}
body[data-auth-flow="1"] .landing-mobile-nav{display:none}
body[data-auth-flow="1"] .site-footer{margin-top:0!important}

body[data-auth-flow="1"] .section{padding:44px 0 54px}
body[data-auth-flow="1"] .card{border:1px solid var(--auth-line);background:linear-gradient(155deg,rgba(14,23,42,.96),rgba(8,14,28,.96));color:#f3f5fa}
body[data-auth-flow="1"] .card-subtitle{color:var(--auth-muted)}
body[data-auth-flow="1"] input[type="text"],
body[data-auth-flow="1"] input[type="email"],
body[data-auth-flow="1"] input[type="password"],
body[data-auth-flow="1"] input[type="date"],
body[data-auth-flow="1"] select,
body[data-auth-flow="1"] textarea{
  width:100%;
  min-height:48px;
  padding:0 13px;
  border:1px solid rgba(142,160,200,.22);
  border-radius:12px;
  background:#080f1e;
  color:#f4f6fb;
  font:inherit;
}
body[data-auth-flow="1"] textarea{padding-top:12px;padding-bottom:12px}
body[data-auth-flow="1"] input:focus,
body[data-auth-flow="1"] select:focus,
body[data-auth-flow="1"] textarea:focus{border-color:rgba(157,105,244,.65);box-shadow:0 0 0 3px rgba(132,76,224,.1)!important}
body[data-auth-flow="1"] .btn-primary,
body[data-auth-flow="1"] .btn-secondary{display:inline-flex;min-height:44px;align-items:center;justify-content:center;border-radius:12px;font-size:.75rem;font-weight:800}
body[data-auth-flow="1"] .btn-primary{border:0;background:linear-gradient(105deg,#718cf4,#a957ea)}
body[data-auth-flow="1"] .btn-secondary{border-color:rgba(143,159,197,.22);background:#0b1221;color:#c5ccda}

/* Registration progress with real labels instead of anonymous bars. */
.knox-progress{width:100%;max-width:560px;margin-right:auto!important;margin-left:auto!important;gap:0!important}
.knox-progress-step{position:relative;display:grid;flex:1;gap:7px;justify-items:center;color:#667287;font-size:.58rem;font-weight:780;letter-spacing:.03em}
.knox-progress-step:before{content:"";position:absolute;z-index:0;top:6px;left:-50%;width:100%;height:2px;background:rgba(255,255,255,.09)}
.knox-progress-step:first-child:before{display:none}
.knox-progress-step i{position:relative;z-index:1;display:grid;width:14px;height:14px;place-items:center;border:3px solid #0b1221;border-radius:50%;background:#384256;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.knox-progress-step.active{color:#c8b8ef}
.knox-progress-step.active:before{background:linear-gradient(90deg,#6e91f5,#9b5ceb)}
.knox-progress-step.active i{background:#a060ed;box-shadow:0 0 0 1px rgba(177,118,250,.5),0 0 16px rgba(158,91,235,.35)}
.knox-register>.card{padding:28px}
.knox-register .knox-legal-choice{display:flex;gap:11px;align-items:flex-start;margin:0;padding:13px 14px;border:1px solid rgba(139,157,199,.15);border-radius:12px;background:rgba(255,255,255,.025);line-height:1.45}
.knox-register .knox-legal-choice input{flex:0 0 auto;width:18px;height:18px;margin:1px 0 0;accent-color:#9b5de9}
.knox-register .knox-legal-choice a{color:#bfa1fb;font-weight:760;text-underline-offset:3px}
.knox-field-help{display:block;margin-top:7px;color:#78859a;font-size:.64rem;line-height:1.45}

/* Legal document pages and registration modal. */
.knox-legal-page{min-height:calc(100dvh - 70px);padding:28px 16px 56px;background:linear-gradient(180deg,#070c18,#060a15)}
.knox-legal-shell{width:min(100%,820px);margin:0 auto}
.knox-legal-backbar{position:sticky;z-index:12;top:82px;display:flex;margin:0 0 18px}
.knox-legal-backbar a{display:inline-flex;min-height:42px;align-items:center;gap:9px;padding:0 14px;border:1px solid rgba(139,157,199,.2);border-radius:12px;background:rgba(9,15,29,.94);color:#c8d0de;font-size:.7rem;font-weight:780;text-decoration:none;box-shadow:0 10px 30px rgba(0,0,0,.2);backdrop-filter:blur(14px)}
.knox-legal-head{margin-bottom:20px}
.knox-legal-head small{display:block;margin-bottom:8px;color:#a881f6;font-size:.61rem;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
.knox-legal-head h1{margin:0;font-size:clamp(2rem,5vw,3.35rem);letter-spacing:-.045em}
.knox-legal-document{padding:28px 30px;border:1px solid var(--auth-line);border-radius:20px;background:#0a1120;box-shadow:0 22px 60px rgba(0,0,0,.2)}
.knox-legal-document h2{margin:30px 0 10px;color:#f0f3f8;font-size:1.02rem;letter-spacing:-.015em}
.knox-legal-document h2:first-of-type{margin-top:18px}
.knox-legal-document p{margin:0 0 12px;color:#a5afbf;font-size:.79rem;line-height:1.72}
.knox-legal-document ul{margin:8px 0 18px;padding-left:20px;color:#a5afbf}
.knox-legal-document li{margin:6px 0;font-size:.79rem;line-height:1.55}
.knox-legal-document .knox-legal-updated{margin:0 0 24px;padding-bottom:18px;border-bottom:1px solid rgba(139,157,199,.13);color:#77849a;font-size:.67rem}

.knox-legal-dialog{width:min(780px,calc(100% - 32px));height:min(780px,calc(100dvh - 42px));max-width:none;max-height:none;margin:auto;padding:0;overflow:hidden;border:1px solid rgba(151,166,204,.24);border-radius:20px;background:#080e1c;color:#f4f6fb;box-shadow:0 34px 100px rgba(0,0,0,.66)}
.knox-legal-dialog::backdrop{background:rgba(1,4,11,.78);backdrop-filter:blur(8px)}
.knox-legal-dialog-inner{display:grid;height:100%;grid-template-rows:auto minmax(0,1fr) auto}
.knox-legal-dialog-head{display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:18px;padding:12px 16px 12px 20px;border-bottom:1px solid rgba(139,157,199,.14);background:#0b1221}
.knox-legal-dialog-head>div{display:grid;gap:3px}
.knox-legal-dialog-head small{color:#726788;font-size:.53rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.knox-legal-dialog-head strong{font-size:.87rem}
.knox-legal-close{display:grid;width:42px;height:42px;place-items:center;flex:0 0 auto;border:1px solid rgba(147,163,199,.17);border-radius:12px;background:rgba(255,255,255,.035);color:#d7dce6;font-size:1.28rem;cursor:pointer}
.knox-legal-dialog-content{overflow:auto;padding:0 22px 24px;overscroll-behavior:contain}
.knox-legal-dialog-content .knox-legal-document{padding:20px 4px 10px;border:0;background:transparent;box-shadow:none}
.knox-legal-loading{display:grid;min-height:300px;place-items:center;color:#8792a5;font-size:.75rem}
.knox-legal-dialog-foot{display:flex;min-height:68px;align-items:center;justify-content:flex-end;padding:11px 16px;border-top:1px solid rgba(139,157,199,.14);background:#0b1221}
.knox-legal-dialog-foot button{min-height:44px;padding:0 17px;border:0;border-radius:12px;background:linear-gradient(105deg,#708df4,#aa58eb);color:#fff;font-size:.72rem;font-weight:830;cursor:pointer}

@media(max-width:720px){
  body[data-auth-flow="1"] .site-header{height:62px;min-height:62px;background:#050816}
  body[data-auth-flow="1"] .site-header .header-inner{height:62px;min-height:62px;grid-template-columns:auto minmax(0,1fr);grid-template-rows:1fr;gap:10px;padding:0 14px}
  body[data-auth-flow="1"] .logo-img{width:116px;max-height:29px}
  body[data-auth-flow="1"] .landing-top-nav{display:none}
  body[data-auth-flow="1"] .top-actions{min-width:0;gap:6px}
  body[data-auth-flow="1"] .top-actions>a.btn-ghost{display:inline-flex;min-height:44px;padding:0 5px;border:0;background:transparent;color:#c5cad9;font-size:.72rem}
  body[data-auth-flow="1"] .top-actions>a.btn-primary{display:none}
  body[data-auth-flow="1"][data-auth-screen="login"] .top-actions>a.btn-ghost{display:none!important}
  body[data-auth-flow="1"] .landing-mobile-nav{position:relative;display:block}
  body[data-auth-flow="1"] .landing-mobile-nav>summary{display:flex;width:44px;height:44px;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:1px solid rgba(255,255,255,.1);border-radius:12px;color:#f8f9ff;background:#101428;list-style:none;cursor:pointer}
  body[data-auth-flow="1"] .landing-mobile-nav>summary::-webkit-details-marker{display:none}
  body[data-auth-flow="1"] .landing-mobile-nav>summary span{display:block;width:16px;height:1.5px;border-radius:4px;background:currentColor;transition:transform .18s ease,opacity .18s ease}
  body[data-auth-flow="1"] .landing-mobile-nav[open]>summary span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
  body[data-auth-flow="1"] .landing-mobile-nav[open]>summary span:nth-child(2){opacity:0}
  body[data-auth-flow="1"] .landing-mobile-nav[open]>summary span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}
  body[data-auth-flow="1"] .landing-mobile-nav>nav{position:absolute;z-index:100;top:calc(100% + 9px);right:0;width:min(290px,calc(100vw - 28px));overflow:hidden;padding:7px 12px;border:1px solid rgba(140,158,205,.2);border-radius:14px;background:#090d1d;box-shadow:0 22px 55px rgba(0,0,0,.42)}
  body[data-auth-flow="1"] .landing-mobile-nav>nav a{display:flex;min-height:44px;align-items:center;border-bottom:1px solid rgba(255,255,255,.055);color:#cbd2e0;font-size:.78rem;font-weight:700;text-decoration:none}
  body[data-auth-flow="1"] .landing-mobile-nav>nav a:last-child{border-bottom:0;color:#cbb3ff}
  body[data-auth-flow="1"] .section{padding:30px 0 40px}
  body[data-auth-flow="1"] .container{padding-right:16px;padding-left:16px}
  .knox-register>.card{padding:20px 16px;border-radius:16px}
  .knox-reg-head{margin-bottom:19px!important;text-align:left!important}
  .knox-reg-head h1{font-size:2rem!important;line-height:1.05;letter-spacing:-.045em}
  .knox-reg-head .card-subtitle{margin-bottom:0;font-size:.75rem;line-height:1.55}
  .knox-progress{margin-bottom:18px!important}
  .knox-progress-step{font-size:.54rem}
  .knox-step-title{font-size:1.08rem!important}
  .knox-step-sub{font-size:.73rem;line-height:1.5}
  .knox-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
  .knox-actions .right{margin-left:0!important}
  .knox-actions>*{width:100%;min-width:0;padding-right:9px!important;padding-left:9px!important}
  .knox-note{font-size:.71rem!important}
  .knox-legal-page{min-height:calc(100dvh - 62px);padding:15px 14px 38px}
  .knox-legal-backbar{top:72px;margin-bottom:20px}
  .knox-legal-backbar a{min-height:40px;padding:0 12px;font-size:.65rem}
  .knox-legal-head{padding:4px 2px 0}
  .knox-legal-head h1{font-size:2.08rem;line-height:1.04}
  .knox-legal-document{padding:21px 17px;border-radius:16px}
  .knox-legal-document h2{margin-top:25px;font-size:.94rem;line-height:1.35}
  .knox-legal-document p,.knox-legal-document li{font-size:.74rem;line-height:1.68}
  .knox-legal-dialog{width:100%;height:100dvh;margin:0;border:0;border-radius:0}
  .knox-legal-dialog-head{min-height:62px;padding:9px 10px 9px 16px}
  .knox-legal-dialog-content{padding:0 15px 18px}
  .knox-legal-dialog-content .knox-legal-document{padding-top:16px}
  .knox-legal-dialog-foot{min-height:64px;padding:10px 12px}
  .knox-legal-dialog-foot button{width:100%}
}

@media(max-width:370px){
  body[data-auth-flow="1"] .logo-img{width:103px}
  .knox-actions{grid-template-columns:1fr!important}
}
