:root{
  --bg:#080d0c;--bg-soft:#0d1412;--panel:#101816;--panel-2:#121d1a;--border:rgba(255,255,255,.085);
  --text:#f2f7f5;--text-secondary:#91a19a;--accent-color:#2ED39A;--accent-2:#44e8ae;--danger:#ff6d78;
  --shadow:0 22px 70px rgba(0,0,0,.38);--radius:20px;--transition-smooth:.25s ease;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 72% -20%,rgba(46,211,154,.11),transparent 34%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55;overflow-x:hidden}.container{width:min(1160px,calc(100% - 34px));margin:0 auto}a{color:inherit;text-decoration:none}button{font:inherit}.top-bar{border-bottom:1px solid var(--border);background:#07100d}.top-bar-container{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;color:var(--text-secondary)}.status-indicator{display:flex;align-items:center;gap:8px}.pulse-dot{width:7px;height:7px;background:var(--accent-color);border-radius:50%;box-shadow:0 0 0 0 rgba(46,211,154,.6);animation:pulse 2s infinite}.status-text{color:#b9d8cd}.header{position:sticky;top:0;z-index:80;border-bottom:1px solid var(--border);background:rgba(8,13,12,.83);backdrop-filter:blur(18px)}.header-container{height:76px;display:flex;align-items:center;gap:30px}.logo{display:flex;align-items:center;gap:10px;font-weight:780}.logo-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid rgba(46,211,154,.45);border-radius:12px;background:linear-gradient(145deg,rgba(46,211,154,.18),rgba(46,211,154,.035));color:var(--accent-color);font-size:19px;box-shadow:0 0 30px rgba(46,211,154,.08)}.logo-text{font-size:18px}.nav{margin-left:auto;display:flex;align-items:center;gap:20px}.nav-link{font-size:13px;color:#9aa9a3;transition:var(--transition-smooth)}.nav-link:hover,.nav-support{color:var(--text)}.nav-support{color:var(--accent-color)}.header-actions{display:flex;align-items:center;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:12px;border:1px solid transparent;font-weight:720;font-size:14px;cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--accent-color);color:#04100c;box-shadow:0 10px 28px rgba(46,211,154,.14)}.btn-primary:hover{background:#3fe0a7}.btn-secondary{border-color:var(--border);background:rgba(255,255,255,.035);color:var(--text)}.burger-menu{display:none;width:42px;height:42px;border:1px solid var(--border);border-radius:12px;background:var(--panel);padding:11px}.burger-menu span{display:block;height:2px;background:#d8e0dd;margin:4px 0;border-radius:2px}.mobile-nav{display:none;position:fixed;top:114px;left:17px;right:17px;z-index:75;padding:14px;border:1px solid var(--border);border-radius:18px;background:#0d1512;box-shadow:var(--shadow)}.mobile-nav.open{display:grid;gap:4px}.mobile-link{padding:11px 12px;border-radius:10px;color:#a7b4af}.mobile-link:hover{background:rgba(255,255,255,.04);color:#fff}.support-mobile{color:var(--accent-color)}section{padding:90px 0}.hero{padding-top:72px}.hero-container{display:grid;grid-template-columns:.92fr 1.08fr;gap:56px;align-items:center}.hero-badge,.section-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;border:1px solid rgba(46,211,154,.25);background:rgba(46,211,154,.07);color:#83e5bf;font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}.hero-title{font-size:clamp(38px,5vw,64px);line-height:1.03;margin:18px 0 20px;letter-spacing:-.045em}.hero-title span{color:var(--accent-color)}.hero-subtitle,.section-subtitle{color:var(--text-secondary);font-size:16px;max-width:670px}.hero-game-switch,.tabs{display:flex;gap:8px;flex-wrap:wrap}.hero-game-switch{margin-top:24px}.game-pill,.tab{border:1px solid var(--border);background:rgba(255,255,255,.026);color:#9eaaa5;padding:10px 14px;border-radius:11px;font-weight:700;font-size:13px;cursor:pointer;transition:.2s ease}.game-pill:hover,.tab:hover{border-color:rgba(46,211,154,.3);color:#fff}.game-pill.active,.tab.active{background:rgba(46,211,154,.12);border-color:rgba(46,211,154,.48);color:#8af0c7}.hero-actions-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}.slider-container{position:relative;padding:10px;border:1px solid var(--border);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.01));box-shadow:var(--shadow);overflow:hidden}.slider{aspect-ratio:16/9;position:relative}.slide{position:absolute;inset:0;opacity:0;transform:scale(.985);transition:.42s ease;pointer-events:none}.slide.active{opacity:1;transform:scale(1);pointer-events:auto}.slide img{width:100%;height:100%;object-fit:cover;border-radius:16px;display:block}.slider-btn{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border:1px solid var(--border);border-radius:50%;background:rgba(8,13,12,.78);color:#fff;font-size:26px;line-height:1;cursor:pointer}.prev-btn{left:22px}.next-btn{right:22px}.slider-dots{position:absolute;left:0;right:0;bottom:24px;display:flex;justify-content:center;gap:7px}.slider-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.32);cursor:pointer}.slider-dot.active{width:22px;border-radius:6px;background:var(--accent-color)}.section-heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:28px}.section-title{font-size:clamp(30px,4vw,44px);letter-spacing:-.035em;line-height:1.06;margin:12px 0 0}.products,.compatibility,.install{background:linear-gradient(180deg,rgba(255,255,255,.015),rgba(255,255,255,0))}.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.product-card,.compat-card,.feature-card,.gameplay-card,.install-card{border:1px solid var(--border);background:linear-gradient(150deg,rgba(255,255,255,.038),rgba(255,255,255,.012));border-radius:18px}.product-card{padding:22px;display:flex;flex-direction:column;min-height:410px;transition:.22s ease}.product-card:hover{border-color:rgba(46,211,154,.26);transform:translateY(-3px)}.card-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.product-name{font-size:21px;margin:0}.status-badge{font-size:11px;font-weight:800;padding:5px 8px;border-radius:999px}.status-badge.online{color:#76e7bb;border:1px solid rgba(46,211,154,.27);background:rgba(46,211,154,.075)}.product-game{margin-top:6px;font-size:12px;color:var(--text-secondary)}.product-features-brief{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}.badge-feature{font-size:11px;color:#b4c2bc;border:1px solid var(--border);background:rgba(255,255,255,.025);padding:5px 8px;border-radius:8px}.card-specs-list{margin:0 0 22px;padding:0;list-style:none;display:grid;gap:10px;color:#9eadA7;font-size:13px}.card-specs-list li{position:relative;padding-left:18px}.card-specs-list li:before{content:"✓";position:absolute;left:0;color:var(--accent-color);font-weight:800}.product-price{margin-top:auto;font-size:23px;font-weight:800}.price-period{font-size:11px;color:var(--text-secondary);font-weight:500}.btn-card{width:100%;margin-top:14px}.card-support-note{font-size:11px;color:#73827c;margin-top:12px;text-align:center}.card-support-note a,.feature-desc a,.footer a,.modal-support-hint a{color:var(--accent-color)}.gameplay-grid{display:block;max-width:980px;margin:0 auto}.gameplay-slider-shell{width:100%}.gameplay-card{padding:10px;overflow:hidden}.gameplay-slide-card{width:100%}.gameplay-image-wrap{position:relative;overflow:hidden;border-radius:12px;background:#080d0b}.gameplay-card img{width:100%;aspect-ratio:16/9;object-fit:contain;border-radius:12px;display:block}.gameplay-meta{padding:12px 6px 5px;display:flex;align-items:center;justify-content:space-between;gap:12px}.gameplay-meta strong{font-size:14px}.gameplay-meta span{font-size:11px;color:var(--text-secondary)}.gameplay-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid rgba(255,255,255,.14);border-radius:50%;background:rgba(5,10,8,.78);backdrop-filter:blur(8px);color:#fff;font-size:30px;line-height:1;cursor:pointer;display:grid;place-items:center;transition:.2s ease;z-index:3}.gameplay-arrow:hover{border-color:rgba(46,211,154,.55);background:rgba(11,30,23,.9);color:var(--accent-color)}.gameplay-prev{left:18px}.gameplay-next{right:18px}.gameplay-slider-footer{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px}.gameplay-dots{display:flex;align-items:center;justify-content:center;gap:7px}.gameplay-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.25);cursor:pointer;transition:.2s ease}.gameplay-dot.active{width:24px;border-radius:5px;background:var(--accent-color)}.gameplay-counter{font-size:11px;color:var(--text-secondary);min-width:34px}.compatibility-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:30px}.compat-card{padding:21px;display:grid;gap:8px}.compat-label{font-size:11px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.08em}.compat-value{font-size:14px;font-weight:650}.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:30px}.feature-card{padding:22px}.feature-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(46,211,154,.08);border:1px solid rgba(46,211,154,.2);color:var(--accent-color);font-weight:900}.feature-title{font-size:16px;margin:17px 0 8px}.feature-desc{font-size:13px;color:var(--text-secondary);margin:0}.install-shell{border:1px solid rgba(46,211,154,.18);border-radius:26px;padding:34px;background:radial-gradient(circle at 100% 0,rgba(46,211,154,.10),transparent 30%),linear-gradient(145deg,#101916,#0c1311);box-shadow:var(--shadow)}.install-copy{max-width:760px}.install-game-tabs{margin:28px 0 18px}.install-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.install-card{padding:18px;cursor:pointer;transition:.2s ease}.install-card:hover,.install-card.selected{border-color:rgba(46,211,154,.5);background:rgba(46,211,154,.055)}.install-card-top{display:flex;justify-content:space-between;gap:10px;align-items:start}.install-name{font-size:18px;font-weight:780}.install-version{font-size:11px;color:#83918b}.install-tags{display:flex;gap:5px;flex-wrap:wrap;margin:14px 0}.install-actions{display:grid;grid-template-columns:1fr;gap:8px}.install-button[aria-disabled="true"]{opacity:.55;cursor:not-allowed}.install-note{margin-top:16px;font-size:12px;color:#75847e}.install-note code{color:#b8c8c1}.faq-container{max-width:860px;margin:30px auto 0;border-top:1px solid var(--border)}.faq-item{border-bottom:1px solid var(--border)}.faq-question{width:100%;display:flex;justify-content:space-between;align-items:center;padding:21px 0;border:0;background:transparent;color:#eef4f1;font-weight:700;text-align:left;cursor:pointer}.faq-icon{width:18px;height:18px;position:relative}.faq-icon:before,.faq-icon:after{content:"";position:absolute;left:3px;right:3px;top:8px;height:2px;background:#83928c}.faq-icon:after{transform:rotate(90deg);transition:.2s ease}.faq-item.open .faq-icon:after{transform:rotate(0)}.faq-answer{max-height:0;overflow:hidden;transition:max-height .28s ease}.faq-answer p{color:var(--text-secondary);font-size:14px;margin:0;padding:0 0 20px}.faq-item.open .faq-answer{max-height:200px}.modal{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:20px}.modal.open{display:grid}.modal-overlay{position:absolute;inset:0;background:rgba(0,0,0,.75);backdrop-filter:blur(7px)}.modal-wrapper{position:relative;width:min(920px,100%);max-height:90vh;overflow:auto;border:1px solid var(--border);border-radius:22px;background:#0d1512;box-shadow:0 35px 100px rgba(0,0,0,.6)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--border)}.modal-badge-free{display:block;font-size:11px;color:var(--accent-color);margin-bottom:5px}.modal-title{margin:0;font-size:23px}.modal-close-btn{width:38px;height:38px;border:1px solid var(--border);border-radius:11px;background:rgba(255,255,255,.03);color:white;font-size:25px;cursor:pointer}.modal-body{padding:20px}.modal-image-container img{width:100%;display:block;border-radius:14px;border:1px solid var(--border)}.modal-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:22px}.modal-desc{color:var(--text-secondary);font-size:14px}.modal-action-btn{margin-top:10px}.modal-support-hint{font-size:11px;color:#76857e;margin-top:13px}.features-list-title{font-size:14px}.modal-features-list{padding:0;list-style:none;display:grid;gap:9px;color:#a9b6b0;font-size:13px}.modal-features-list li:before{content:"✓";color:var(--accent-color);font-weight:900;margin-right:9px}.tg-widget{position:fixed;right:20px;bottom:20px;z-index:70;border:1px solid rgba(46,211,154,.28);border-radius:999px;background:#0d1713;box-shadow:var(--shadow)}.tg-widget-content{display:flex;align-items:center;gap:8px;padding:11px 15px;font-size:12px;font-weight:700}.tg-widget-icon{color:var(--accent-color)}.footer{padding:28px 0;border-top:1px solid var(--border);color:#75847e;font-size:12px}.footer-container{display:flex;justify-content:space-between;gap:20px}.section-animate{opacity:0;transform:translateY(18px);transition:.55s ease}.section-animate.visible{opacity:1;transform:none}
@keyframes pulse{70%{box-shadow:0 0 0 8px rgba(46,211,154,0)}100%{box-shadow:0 0 0 0 rgba(46,211,154,0)}}
@media(max-width:1020px){.nav{display:none}.burger-menu{display:block}.header-actions{margin-left:auto}.hero-container{grid-template-columns:1fr;gap:34px}.hero-content{max-width:760px}.products-grid{grid-template-columns:1fr 1fr}.compatibility-grid,.features-grid{grid-template-columns:1fr 1fr}.install-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.container{width:min(100% - 24px,1160px)}.top-bar-container{min-height:44px}.last-checked{display:none}.header-container{height:64px}.btn-login{display:none}.mobile-nav{top:108px}.hero{padding-top:48px}.hero-title{font-size:40px}.hero-subtitle{font-size:14px}.hero-visual{margin:0 -2px}.slider-btn{width:34px;height:34px}.section-heading-row{align-items:flex-start;flex-direction:column}.products-grid,.gameplay-grid,.compatibility-grid,.features-grid,.install-grid,.modal-details-grid{grid-template-columns:1fr}.products-grid{gap:12px}.product-card{min-height:auto}.install-shell{padding:22px 16px}.tg-widget-text{display:none}.tg-widget-content{padding:12px}.footer-container{flex-direction:column}.tabs{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.tab{white-space:nowrap;flex:0 0 auto}section{padding:68px 0}}

@media(max-width:700px){.gameplay-arrow{width:36px;height:36px;font-size:25px}.gameplay-prev{left:10px}.gameplay-next{right:10px}.gameplay-meta{align-items:flex-start;flex-direction:column;gap:3px}.gameplay-card img{aspect-ratio:auto;max-height:72vh}}

/* =========================================================
   AUTH MODAL & COMPONENT STYLES (INDEX 2 DESIGN & ENHANCEMENTS)
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --w: #ffffff;
  --w90: rgba(255,255,255,.9);
  --w70: rgba(255,255,255,.7);
  --w50: rgba(255,255,255,.5);
  --w35: rgba(255,255,255,.35);
  --w25: rgba(255,255,255,.25);
  --w15: rgba(255,255,255,.15);
  --w08: rgba(255,255,255,.08);
  --w06: rgba(255,255,255,.06);
  --w04: rgba(255,255,255,.04);
  --w03: rgba(255,255,255,.03);
  --green: #34d399;
  --green-bg: rgba(52,211,153,.1);
  --yellow: #fbbf24;
  --red: #ef4444;
  --blue: #60a5fa;
  --font: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --radius: 14px;
  --radius-sm: 8px;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.auth-modal-overlay.active,
.auth-modal-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  display: flex !important;
}
.auth-modal-overlay[hidden] {
  display: none !important;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-shell {
  width: min(100%, 430px);
  position: relative;
  z-index: 1;
  animation: authModalIn .25s ease-out both;
}

@keyframes authModalIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Шапка модалки: Название сайта по центру, крестик справа */
.auth-shell .brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
}
.auth-shell .brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--w);
  text-align: center;
}
.auth-modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .15s ease;
  z-index: 10;
}
.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.auth-shell .card {
  background: var(--bg2);
  border: 1px solid var(--w08);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  overflow: hidden;
  position: relative;
}

.card-top {
  padding: 28px 28px 18px;
  border-bottom: 1px solid var(--w06);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(52,211,153,.16);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 18px;
}
.eyebrow:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.card-top h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0 0 8px;
  color: var(--w);
}
.card-top .subtitle {
  font-size: 13px;
  color: var(--w35);
  line-height: 1.55;
  max-width: 340px;
  margin: 0;
}

.card-body {
  padding: 24px 28px 28px;
  position: relative;
  min-height: 298px;
}

.step {
  display: none;
  animation: stepIn .24s ease both;
}
.step.active {
  display: block;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--w25);
  margin-bottom: 9px;
}

/* Умный ввод номера с гео-выбором (как в index 2) */
.smart-phone-container {
  display: flex;
  align-items: center;
  background: var(--w04);
  border: 1px solid var(--w08);
  border-radius: 12px;
  position: relative;
  min-height: 52px;
  transition: .15s ease;
}
.smart-phone-container:focus-within {
  border-color: var(--w25);
  background: var(--w06);
}

.geo-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-right: 1px solid var(--w08);
  height: 28px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--w90);
  user-select: none;
  white-space: nowrap;
}
.geo-dropdown-btn:hover {
  color: var(--w);
}
.geo-dropdown-arrow {
  width: 10px;
  height: 6px;
  opacity: .5;
  transition: transform .2s ease;
}
.geo-dropdown-btn.open .geo-dropdown-arrow {
  transform: rotate(180deg);
}

.geo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #141414;
  border: 1px solid var(--w08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  z-index: 100;
  overflow: hidden;
  padding: 6px;
}
.geo-list.hide {
  display: none;
}
.geo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--w90);
  transition: background .12s ease;
}
.geo-item:hover {
  background: var(--w06);
  color: var(--w);
}
.geo-item-prefix {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--green);
}

.phone-input-wrap {
  flex: 1;
  min-width: 0;
}
.phone-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--w90);
  font-family: var(--mono);
  font-size: 16px;
  padding: 15px 16px;
  letter-spacing: .04em;
}
.phone-input-wrap input::placeholder {
  color: var(--w25);
}

.hint {
  font-size: 12px;
  color: var(--w25);
  line-height: 1.45;
  margin-top: 10px;
}

.auth-shell .actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.auth-shell .actions .btn-primary,
.auth-shell #btn-code-submit,
.auth-shell #btn-phone-submit,
.auth-shell #btn-password-submit {
  background: #ffffff !important;
  color: #0a0a0a !important;
  flex: 1;
  min-height: 48px;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1) !important;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.auth-shell .actions .btn-primary:hover,
.auth-shell #btn-code-submit:hover:not(:disabled),
.auth-shell #btn-phone-submit:hover:not(:disabled),
.auth-shell #btn-password-submit:hover:not(:disabled) {
  background: #f0f0f0 !important;
  transform: translateY(-1px);
}
.auth-shell .actions .btn-primary:disabled,
.auth-shell #btn-code-submit:disabled,
.auth-shell #btn-phone-submit:disabled,
.auth-shell #btn-password-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.auth-shell .actions .btn-muted {
  background: var(--w04) !important;
  border: 1px solid var(--w08) !important;
  color: var(--w50) !important;
  border-radius: 12px;
  min-height: 46px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s ease;
}
.auth-shell .actions .btn-muted:hover {
  background: var(--w06) !important;
  border-color: var(--w15) !important;
  color: var(--w70) !important;
}

.err {
  min-height: 18px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.22);
  border-top-color: #000;
  animation: spin .7s linear infinite;
  display: none;
}
.btn.loading .spinner {
  display: block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Step 2: Info panel */
.info-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--w03);
  border: 1px solid var(--w06);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  color: var(--w50);
  font-size: 12px;
  line-height: 1.45;
}
.info-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52,211,153,.08);
  flex-shrink: 0;
}
.sent-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
}
.sent-phone-row b {
  color: var(--w70);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .01em;
}
.change-phone-btn {
  border: 1px solid rgba(52,211,153,.2);
  background: var(--green-bg);
  color: var(--green);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.change-phone-btn:hover {
  background: rgba(52,211,153,.16);
  border-color: rgba(52,211,153,.34);
  color: var(--w);
}

.code-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.btn-where-link {
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.btn-where-link:hover {
  text-decoration: underline;
}

/* Поле ввода кода подтверждения (как в index 2.html) */
.input-wrap.code-input-wrap {
  display: flex;
  align-items: center;
  background: var(--w04);
  border: 1px solid var(--w08);
  border-radius: 12px;
  transition: .15s ease;
  min-height: 52px;
}
.input-wrap.code-input-wrap:focus-within {
  border-color: var(--w25);
  background: var(--w06);
}
.input-wrap.code-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--w90);
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: .35em;
  text-align: center;
  padding: 14px 16px;
}
.input-wrap.code-input-wrap input::placeholder {
  color: var(--w25);
  letter-spacing: .35em;
}

/* Таймер карточка из index 2.html */
.timer-card {
  margin-top: 14px;
  background: var(--w03);
  border: 1px solid var(--w06);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#timer-text {
  font-size: 12px;
  color: var(--w35);
  line-height: 1.35;
}
#timer-count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--w90);
}
#resend-btn {
  border: 1px solid var(--w08);
  background: var(--w06);
  color: var(--w70);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
#resend-btn:not(:disabled):hover {
  border-color: var(--w15);
  background: var(--w08);
  color: var(--w90);
}
#resend-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* 2FA Step */
.input-wrap.password-wrap {
  display: flex;
  align-items: center;
  background: var(--w04);
  border: 1px solid var(--w08);
  border-radius: 12px;
  transition: .15s;
  min-height: 52px;
}
.input-wrap.password-wrap:focus-within {
  border-color: var(--w25);
  background: var(--w06);
}
.input-wrap.password-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--w90);
  font-size: 16px;
  padding: 15px 16px;
}
.eye-toggle-btn {
  background: transparent;
  border: 0;
  color: var(--w50);
  padding: 0 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .15s ease;
}
.eye-toggle-btn:hover {
  color: var(--w90);
}

/* Step 3: Success из index 2.html */
.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}
.success-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--green-bg);
  border: 1px solid rgba(52,211,153,.24);
  display: grid;
  place-items: center;
  color: var(--green);
  margin-bottom: 18px;
}
.success h2 {
  font-size: 22px;
  letter-spacing: -.03em;
  margin-bottom: 8px;
  color: var(--w);
}
.success p {
  font-size: 13px;
  color: var(--w35);
  line-height: 1.5;
}

.footer-note {
  text-align: center;
  color: var(--w25);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 18px;
}

/* Модалка помощи: Где найти код */
.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.help-overlay[hidden] {
  display: none !important;
}
.help-modal {
  width: min(100%, 400px);
  background: #141414;
  border: 1px solid var(--w08);
  border-radius: 18px;
  padding: 24px 22px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--w04);
  border: 1px solid var(--w08);
  color: var(--w70);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.help-close:hover {
  color: var(--w);
  background: var(--w08);
}
.help-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--w);
}
.help-list {
  display: grid;
  gap: 12px;
  font-size: 13px;
  color: var(--w70);
  line-height: 1.45;
}
.help-list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.help-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.help-list-item b {
  color: var(--w);
}

/* Shake анимация для ошибок */
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.shake {
  animation: shakeError .35s ease both;
  border-color: var(--red) !important;
}

@media(max-width:480px) {
  .auth-modal-overlay {
    padding: 16px 12px;
  }
  .auth-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .brand {
    margin-bottom: 16px;
  }
  .card-top {
    padding: 22px 20px 16px;
  }
  .card-body {
    padding: 20px;
    min-height: 286px;
  }
  .card-top h1 {
    font-size: 24px;
  }
  .auth-shell .actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
  }
  .auth-shell .timer-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .sent-phone-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}
