/* Kartochka uslubidagi sahifalar: ro'yxatdan o'tish (registration.tpl), qoidalar (static_rules.tpl), qayta aloqa (feedback.tpl).
   main.tpl da [available=register|static|rules|feedback] bilan yuklanadi. Qoidalar sahifasi (rules.html, dle-rules-page.html va
   ro'yxatdan o'tishning 1-bosqichi) static_rules.tpl dan: .kc-auth--register (bosqichlar) / .kc-auth--doc (ochiq sahifa).
   Qayta aloqa (index.php?do=feedback, feedback.tpl): .kc-auth--form. 2026-10-26. */
.kc-auth-page{padding:0!important;background:none!important}
/* .kc-rules ham: ochiq qoidalar sahifasida .kc-auth o'rami yo'q */
.kc-auth,.kc-rules{--g:#facc6d;--g2:#de984d;--ink:#141414;--field:#111;--line:rgba(255,255,255,.09);--muted:#9b9b9b;--text:#ececec}
.kc-auth{position:relative;max-width:640px;margin:0 auto;padding:32px 16px 120px;color:var(--text);
  font-family:var(--prokino-font,Rubik,Arial,sans-serif);-webkit-font-smoothing:antialiased}
.kc-auth--doc{max-width:760px;padding-bottom:56px}
.kc-auth::before{content:"";position:absolute;left:50%;top:-40px;width:min(720px,100%);height:340px;transform:translateX(-50%);
  background:radial-gradient(closest-side,rgba(250,204,109,.16),rgba(250,204,109,0));pointer-events:none;z-index:0}
.kc-auth__card{position:relative;z-index:1;padding:34px 34px 30px;border-radius:24px;
  background:linear-gradient(180deg,#1c1c1c 0%,#151515 100%);border:1px solid rgba(250,204,109,.16);
  box-shadow:0 30px 80px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.05)}
.kc-auth__card::before{content:"";position:absolute;left:24px;right:24px;top:-1px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(250,204,109,.65),transparent)}

/* brend */
.kc-brand{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 22px;color:var(--g);
  font-weight:500;font-size:22px;letter-spacing:.06em}
.kc-brand svg{width:26px;height:26px;fill:var(--g)}
.kc-brand em{font-style:normal;font-size:15px;letter-spacing:0;margin-left:-6px;opacity:.85}

/* bosqichlar */
.kc-steps{display:flex;align-items:center;justify-content:center;gap:0;margin:0 0 26px;padding:0;list-style:none}
.kc-steps li{display:flex;align-items:center;gap:8px;color:#6f6f6f;font-size:13px;font-weight:500;white-space:nowrap}
.kc-steps li+li::before{content:"";width:34px;height:2px;margin:0 10px;border-radius:2px;background:#2c2c2c}
.kc-steps li span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:13px;font-weight:600;
  border:1.5px solid #343434;color:#7a7a7a;background:#141414}
.kc-steps li.is-active{color:var(--text)}
.kc-steps li.is-active span{background:linear-gradient(135deg,var(--g),var(--g2));border-color:transparent;color:var(--ink);
  box-shadow:0 0 0 4px rgba(250,204,109,.14)}
.kc-steps li.is-done{color:#bdbdbd}
.kc-steps li.is-done span{border-color:rgba(250,204,109,.55);color:var(--g)}
.kc-steps li.is-done+li::before,.kc-steps li.is-done::before{background:linear-gradient(90deg,rgba(250,204,109,.55),rgba(250,204,109,.25))}

/* sarlavha */
.kc-auth__title{margin:0;text-align:center;font-size:30px;line-height:1.2;font-weight:700;color:#fff;text-transform:none;letter-spacing:0;text-wrap:balance}
.kc-auth__sub{margin:10px auto 0;max-width:46ch;text-align:center;color:var(--muted);font-size:15px;line-height:1.55}

/* afzalliklar */
.kc-perks{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:20px 0 4px;padding:0;list-style:none}
.kc-perks li{display:flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;font-size:13px;color:#d6d6d6;
  background:rgba(255,255,255,.04);border:1px solid var(--line)}
.kc-perks svg{width:15px;height:15px;fill:none;stroke:var(--g);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* qoidalar */
.kc-rules-wrap{margin-top:24px}
.kc-rules{font-size:15px;line-height:1.7;font-weight:400;color:#d2d2d2}
.kc-rules__body{padding:22px 22px 6px;border-radius:18px;background:rgba(0,0,0,.28);border:1px solid var(--line)}
.kc-rules__lead{margin:0 0 18px;font-size:16px;color:#e6e6e6}
.kc-rules h3{display:flex;align-items:center;gap:10px;margin:22px 0 10px;font-size:17px;font-weight:600;color:#fff;text-transform:none;letter-spacing:0}
.kc-rules h3:first-of-type{margin-top:6px}
.kc-rules h3 span{display:inline-grid;place-items:center;flex:none;width:26px;height:26px;border-radius:8px;font-size:13px;
  color:var(--ink);background:linear-gradient(135deg,var(--g),var(--g2))}
.kc-rules p{margin:0 0 14px}
.kc-rules b{color:#fff;font-weight:600}
.kc-rules ul{margin:0 0 14px;padding:0;list-style:none;display:grid;gap:9px}
.kc-rules ul li{position:relative;padding:10px 12px 10px 42px;border-radius:12px;background:rgba(248,113,113,.06);border:1px solid rgba(248,113,113,.14)}
.kc-rules ul li::before{content:"";position:absolute;left:14px;top:50%;width:16px;height:16px;transform:translateY(-50%);border-radius:50%;
  background:rgba(248,113,113,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%23141414' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat}
.kc-rules__note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;color:#f5e6c4;
  background:rgba(250,204,109,.08);border:1px solid rgba(250,204,109,.25)}
.kc-rules__note::before{content:"!";flex:none;display:inline-grid;place-items:center;width:20px;height:20px;margin-top:3px;border-radius:50%;
  font-weight:700;font-size:13px;color:var(--ink);background:var(--g)}
.kc-rules__actions{margin-top:18px}
.kc-rules__actions:empty{display:none}
.kc-rules__actions form{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 0;margin:0;font-size:0}
.kc-rules__actions input.bbcodes{flex:1 1 200px;height:54px;margin:0;padding:0 18px;border-radius:15px;cursor:pointer;
  font:600 16px/1 var(--prokino-font,Rubik,Arial,sans-serif);transition:transform .15s,box-shadow .2s,background .2s,border-color .2s}
.kc-rules__actions input[type=submit].bbcodes{order:-1;border:0;color:var(--ink)!important;background:linear-gradient(135deg,var(--g),var(--g2));
  box-shadow:0 12px 30px rgba(250,204,109,.22)}
.kc-rules__actions input[type=submit].bbcodes:hover{transform:translateY(-1px);box-shadow:0 16px 36px rgba(250,204,109,.3)}
.kc-rules__actions input[type=button].bbcodes{margin-left:12px;background:transparent;color:#cfcfcf!important;border:1px solid rgba(255,255,255,.16)}
.kc-rules__actions input[type=button].bbcodes:hover{border-color:rgba(255,255,255,.32);color:#fff!important}

/* forma */
.kc-fields{display:grid;gap:18px;margin-top:24px}
.kc-label{display:block;margin:0 0 8px;font-size:14px;font-weight:500;color:#cfcfcf}
.kc-row{display:flex;gap:10px}
.kc-row .kc-input{flex:1;min-width:0}
.kc-input{position:relative;display:flex;align-items:center}
.kc-input>svg{position:absolute;left:16px;width:19px;height:19px;fill:none;stroke:#7b7b7b;stroke-width:1.8;stroke-linecap:round;
  stroke-linejoin:round;pointer-events:none;transition:stroke .2s}
.kc-auth .kc-input input,.kc-auth .kc-textarea{width:100%;height:54px;margin:0;padding:0 16px 0 48px;border-radius:15px;
  background:var(--field);border:1px solid rgba(255,255,255,.1);color:#fff;font:400 16px/1.3 var(--prokino-font,Rubik,Arial,sans-serif);
  outline:none;box-shadow:none;transition:border-color .2s,box-shadow .2s,background .2s}
.kc-auth .kc-textarea{height:auto;min-height:110px;padding:14px 16px;resize:vertical}
.kc-auth .kc-input input::placeholder,.kc-auth .kc-textarea::placeholder{color:#5f5f5f}
.kc-auth .kc-input input:focus,.kc-auth .kc-textarea:focus{border-color:rgba(250,204,109,.7);background:#141414;
  box-shadow:0 0 0 4px rgba(250,204,109,.12)}
.kc-input:focus-within>svg{stroke:var(--g)}
.kc-input .kc-eye{position:absolute;right:8px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:11px;
  background:transparent;cursor:pointer}
.kc-input .kc-eye svg{width:20px;height:20px;fill:none;stroke:#7b7b7b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kc-input .kc-eye:hover svg,.kc-input .kc-eye.is-on svg{stroke:var(--g)}
.kc-auth .kc-input input[type=password],.kc-auth .kc-input input.kc-has-eye{padding-right:54px}
.kc-check{flex:none;height:54px;padding:0 18px;border-radius:15px;cursor:pointer;color:var(--g);background:rgba(250,204,109,.07);
  border:1px solid rgba(250,204,109,.35);font:600 15px/1 var(--prokino-font,Rubik,Arial,sans-serif);transition:background .2s}
.kc-check:hover{background:rgba(250,204,109,.14)}
.kc-result:not(:empty){margin-top:8px;padding:9px 12px;border-radius:11px;font-size:14px;background:rgba(255,255,255,.04);border:1px solid var(--line)}
.kc-hint{margin:7px 2px 0;font-size:12.5px;line-height:1.45;color:#7f7f7f}
.kc-captcha{display:flex;gap:10px;align-items:stretch}
.kc-captcha>a,.kc-captcha>img{flex:none;display:block;border-radius:15px;overflow:hidden;background:#fff;line-height:0}
.kc-captcha img{display:block;height:54px;width:auto;max-width:150px;object-fit:contain}
.kc-captcha .kc-input{flex:1;min-width:0}
.kc-file{position:relative;display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:15px;cursor:pointer;
  background:var(--field);border:1px dashed rgba(255,255,255,.18);transition:border-color .2s}
.kc-file:hover{border-color:rgba(250,204,109,.55)}
.kc-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.kc-file svg{width:22px;height:22px;fill:none;stroke:var(--g);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kc-file span{color:#e3e3e3;font-weight:500}
.kc-file em{margin-left:auto;font-style:normal;font-size:12.5px;color:#7f7f7f}
.kc-xfields{width:100%;border-collapse:collapse}
.kc-xfields td{display:block;padding:0 0 8px;color:#cfcfcf}
.kc-xfields input,.kc-xfields select,.kc-xfields textarea{width:100%;min-height:48px;padding:10px 14px;border-radius:13px;
  background:var(--field);border:1px solid rgba(255,255,255,.1);color:#fff}
.kc-submit{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:56px;margin:26px 0 0;border:0;border-radius:16px;
  cursor:pointer;color:var(--ink);background:linear-gradient(135deg,var(--g),var(--g2));
  font:700 17px/1 var(--prokino-font,Rubik,Arial,sans-serif);box-shadow:0 14px 34px rgba(250,204,109,.22);
  transition:transform .15s,box-shadow .2s}
.kc-submit:hover{transform:translateY(-1px);box-shadow:0 18px 40px rgba(250,204,109,.3)}
a.kc-submit{text-decoration:none!important;color:var(--ink)!important}
.kc-submit svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.kc-auth__legal{margin:14px 0 0;text-align:center;font-size:13px;color:#7f7f7f}
.kc-auth__foot{position:relative;z-index:1;margin:20px 0 0;text-align:center;font-size:14px;line-height:1.6;color:var(--muted)}
.kc-auth__foot span{display:inline-block;margin:0 8px}
.kc-auth a.kc-link,.kc-auth__legal a,.kc-auth__foot a{color:var(--g);text-decoration:none;cursor:pointer}
.kc-auth__legal a:hover,.kc-auth__foot a:hover{text-decoration:underline}
.kc-auth :focus-visible{outline:2px solid var(--g);outline-offset:2px}

@media (min-width:768px){
  .kc-auth--register .kc-rules__body{max-height:min(48vh,500px);overflow:auto;scrollbar-width:thin;scrollbar-color:#3a3a3a transparent}
}
@media (max-width:767px){
  .kc-auth{padding:16px 12px 96px}
  .kc-auth--doc{padding-bottom:40px}
  .kc-auth__card{padding:26px 18px 22px;border-radius:20px}
  .kc-auth__title{font-size:25px}
  .kc-steps li{font-size:12px;gap:6px}
  .kc-steps li+li::before{width:16px;margin:0 6px}
  .kc-rules__body{padding:18px 16px 4px}
  .kc-auth--register .kc-rules__actions{position:sticky;bottom:calc(59px + env(safe-area-inset-bottom,0px));z-index:2;margin:14px -18px -22px;
    padding:12px 18px 14px;border-radius:0 0 20px 20px;background:linear-gradient(180deg,rgba(21,21,21,0),#151515 26%)}
  .kc-rules__actions input.bbcodes{flex:0 1 auto;height:50px;padding:0 14px;font-size:15px;border-radius:14px}
  .kc-rules__actions input[type=submit].bbcodes{flex-grow:1}
  .kc-rules__actions input[type=button].bbcodes{margin-left:10px}
  .kc-check{padding:0 14px}
}
/* 360px dan tor ekran: 1-2-3 qatori karta ichiga sig'sin (320px da 272px > 260px edi) */
@media (max-width:359px){.kc-steps li{gap:5px}.kc-steps li+li::before{width:10px;margin:0 4px}}
@media (prefers-reduced-motion:reduce){.kc-auth *{transition:none!important}}

/* Qayta aloqa. DLE butun shablonni <form id="sendmail"> ga o'raydi; yuborilgach forma ichi info.tpl (.kc-msg) bilan almashadi.
   "Qabul qiluvchi" ({recipient} — admin loginlari ro'yxati) ko'rinmaydi, lekin formada qoladi: xabar birinchi adminga boradi. */
.kc-auth--form{padding-bottom:56px}
.kc-grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.kc-hint--top{margin:-8px 2px 0}
.kc-recip{display:none}
.kc-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.kc-chip{height:34px;margin:0;padding:0 14px;border-radius:999px;cursor:pointer;color:#d6d6d6;background:rgba(255,255,255,.04);border:1px solid var(--line);font:500 13px/1 var(--prokino-font,Rubik,Arial,sans-serif);transition:background .2s,border-color .2s,color .2s}
.kc-chip:hover{border-color:rgba(250,204,109,.45);color:#fff}
.kc-chip.is-on{color:var(--ink);background:linear-gradient(135deg,var(--g),var(--g2));border-color:transparent}
.kc-auth--form .kc-textarea{min-height:160px}
.kc-contacts{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 0}
.kc-contact{display:flex;align-items:center;gap:11px;min-width:0;padding:13px 14px;border-radius:16px;text-decoration:none!important;background:#171717;border:1px solid var(--line);transition:border-color .2s,transform .15s}
.kc-contact:hover{border-color:rgba(250,204,109,.4);transform:translateY(-1px)}
.kc-contact svg{flex:none;width:20px;height:20px;fill:none;stroke:var(--g);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kc-contact span{min-width:0}
.kc-contact b,.kc-contact i{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kc-contact b{margin-bottom:3px;color:#ececec;font-weight:600;font-size:14px}
.kc-contact i{font-style:normal;font-size:12.5px;color:var(--muted)}
#sendmail .kc-msg{margin:28px 0 56px}
#sendmail .kc-msg__card{max-width:640px;margin:0 auto}
@media (max-width:767px){
  .kc-auth--form{padding-bottom:40px}
  .kc-grid2{grid-template-columns:1fr}
  .kc-contacts{grid-template-columns:1fr}
}
