/* TrueWeb live account layer. Kept separate from the recovered visual CSS. */
:root{--tw-live:#bcf568;--tw-card:#191d19;--tw-card2:#101311;--tw-border:rgba(255,255,255,.09);--tw-muted:#a3ada0;--tw-danger:#ff6b6b}
.tw-auth-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(8px);z-index:9998;display:none;align-items:center;justify-content:center;padding:20px}
.tw-auth-backdrop.open{display:flex}.tw-auth-modal{width:min(440px,100%);background:#191d19;border:1px solid var(--tw-border);border-radius:24px;padding:26px;box-shadow:0 28px 80px rgba(0,0,0,.45);position:relative}.tw-auth-close{position:absolute;right:16px;top:14px;width:38px;height:38px;border-radius:12px;background:#252c24;border:1px solid var(--tw-border);cursor:pointer}.tw-auth-modal h2{font-size:26px;font-weight:800;margin:4px 0 7px}.tw-auth-modal p{color:var(--tw-muted);line-height:1.5}.tw-auth-options{display:grid;gap:12px;margin-top:22px}.tw-login-button{width:100%;min-height:48px;border-radius:12px;border:1px solid var(--tw-border);display:flex;align-items:center;justify-content:center;gap:9px;background:#252c24;font-weight:700;cursor:pointer}.tw-login-button.telegram{background:#229ed9;color:white;border-color:transparent}.tw-login-note{font-size:12px!important;margin-top:16px!important}.tw-google-wrap{min-height:44px;display:flex;justify-content:center;align-items:center}.tw-error{margin-top:12px;color:#ff9898;font-size:13px;white-space:pre-wrap}.tw-toast{position:fixed;z-index:10001;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;background:#191d19;border:1px solid var(--tw-border);border-radius:14px;padding:12px 16px;max-width:min(520px,calc(100% - 32px));box-shadow:0 16px 50px rgba(0,0,0,.4);transition:.22s}.tw-toast.show{transform:translateX(-50%) translateY(0);opacity:1}.tw-live-wrap{display:grid;gap:16px}.tw-live-hero{background:linear-gradient(135deg,#202d15,#101311);border:1px solid rgba(188,245,104,.18);border-radius:24px;padding:24px;display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.tw-status{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.tw-status:before{content:"";width:9px;height:9px;border-radius:50%;background:#778}.tw-status.active:before{background:var(--tw-live);box-shadow:0 0 16px rgba(188,245,104,.5)}.tw-live-title{font-size:30px;font-weight:850;line-height:1.1;margin:10px 0 7px}.tw-live-subtle{color:var(--tw-muted);line-height:1.45}.tw-live-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tw-stat{background:var(--tw-card2);border:1px solid var(--tw-border);border-radius:18px;padding:17px}.tw-stat span{color:var(--tw-muted);font-size:12px}.tw-stat strong{display:block;font-size:20px;margin-top:7px}.tw-live-panel{background:var(--tw-card);border:1px solid var(--tw-border);border-radius:20px;padding:20px}.tw-live-panel h2{font-size:19px;font-weight:800;margin-bottom:12px}.tw-sub-url{display:flex;gap:9px}.tw-sub-url input{min-width:0;flex:1;background:#101311;border:1px solid var(--tw-border);border-radius:12px;padding:12px;color:#f3f5f1}.tw-action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.tw-btn{border-radius:12px;padding:11px 15px;font-weight:750;background:var(--tw-live);color:#17220b;cursor:pointer}.tw-btn.secondary{background:#252c24;color:#fff;border:1px solid var(--tw-border)}.tw-btn.danger{background:rgba(255,107,107,.12);color:#ff9898;border:1px solid rgba(255,107,107,.24)}.tw-provider-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.tw-provider{border:1px solid var(--tw-border);border-radius:999px;padding:7px 10px;font-size:12px}.tw-provider.ok{border-color:rgba(188,245,104,.25);background:rgba(188,245,104,.07)}.tw-device-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.tw-device{background:#191d19;border:1px solid var(--tw-border);border-radius:18px;padding:18px}.tw-device-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tw-device h3{font-weight:800;font-size:17px}.tw-device p{color:var(--tw-muted);font-size:13px;margin-top:6px;overflow-wrap:anywhere}.tw-empty{padding:30px;text-align:center;color:var(--tw-muted);border:1px dashed var(--tw-border);border-radius:18px}.tw-loading{min-height:180px;display:grid;place-items:center;color:var(--tw-muted)}.tw-inline-error{color:#ff9b9b;background:rgba(255,107,107,.08);border:1px solid rgba(255,107,107,.2);border-radius:14px;padding:13px}.tw-header-user{max-width:180px;overflow:hidden;text-overflow:ellipsis}.tw-spinner{width:22px;height:22px;border:3px solid rgba(255,255,255,.15);border-top-color:var(--tw-live);border-radius:50%;animation:twspin .7s linear infinite}@keyframes twspin{to{transform:rotate(360deg)}}
@media(max-width:780px){.tw-live-hero{flex-direction:column}.tw-live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tw-device-list{grid-template-columns:1fr}.tw-sub-url{flex-direction:column}.tw-live-title{font-size:25px}}

/* Help simplified: one direct support action. */
.support-copy{color:#a3ada0;line-height:1.65;margin-top:10px;max-width:620px}
.tw-support-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:fit-content;max-width:100%;margin-top:22px;padding:13px 17px;border-radius:12px;background:#bcf568;color:#17220b;font-weight:800;border:1px solid #bcf568;transition:transform .15s ease,filter .15s ease}
.tw-support-button:hover{filter:brightness(1.05);transform:translateY(-1px)}
.help-grid:has(.tw-support-button){grid-template-columns:minmax(0,1.6fr) minmax(240px,.8fr)}
.help-aside:has(.proxy-help:only-child){display:flex;align-items:stretch}
.help-aside:has(.proxy-help:only-child) .proxy-help{width:100%}
@media(max-width:900px){.help-grid:has(.tw-support-button){grid-template-columns:1fr}}
@media(max-width:640px){.tw-support-button{width:100%;font-size:13px;text-align:center}.support-copy{font-size:13px}}

/* === start.trueweb24.ru palette === */
:root{
  --tw-live:#309326;
  --tw-card:#0c2117;
  --tw-card2:#071a10;
  --tw-border:#183e2a;
  --tw-muted:#8faf9d;
}

.tw-auth-modal,
.tw-toast,
.tw-live-panel,
.tw-device{
  background:#0c2117!important;
  border-color:#183e2a!important;
}

.tw-auth-close,
.tw-login-button,
.tw-btn.secondary{
  background:#071a10!important;
  border-color:#214c34!important;
  color:#fff!important;
}

.tw-login-button.telegram,
.tw-btn,
.tw-support-button{
  background:#309326!important;
  border-color:#309326!important;
  color:#fff!important;
}

.tw-login-button.telegram:hover,
.tw-btn:hover,
.tw-support-button:hover{
  background:#38a92b!important;
  border-color:#38a92b!important;
}

.tw-live-hero{
  background:#0c2117!important;
  border-color:#1c5134!important;
}

.tw-stat,
.tw-sub-url input{
  background:#071a10!important;
  border-color:#183e2a!important;
}

/* === One-tap app subscription import === */

.tw-app-imports{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}

.tw-app-import{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:58px;
  padding:11px 14px;
  border:1px solid #214c34;
  border-radius:11px;
  background:#071a10;
  color:#fff!important;
  text-decoration:none!important;
  transition:.15s ease;
}

.tw-app-import:hover{
  background:#102b1e;
  border-color:#36704e;
  transform:translateY(-1px);
}

.tw-import-icon{
  width:36px;
  height:36px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#309326;
  color:#fff;
  font-size:15px;
  font-weight:800;
}

.tw-app-import>span:last-child{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.tw-app-import strong{
  font-size:13px;
  line-height:1.3;
}

.tw-app-import small{
  color:#8faf9d;
  font-size:10px;
  line-height:1.3;
}

@media(max-width:600px){
  .tw-app-imports{
    grid-template-columns:1fr;
  }
}

/* TrueWeb visitor counter */
.tw-visit-counter{
  font-size:12px;
  color:#6f9180;
  white-space:nowrap;
}


/* Footer legal links */
.tw-legal-links{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px 14px;
  font-size:11px;
}

.tw-legal-links a{
  color:#6f9180!important;
  text-decoration:none!important;
  transition:.15s ease;
}

.tw-legal-links a:hover{
  color:#48c93b!important;
}

@media(max-width:700px){
  .tw-legal-links{
    width:100%;
    gap:7px 12px;
    line-height:1.4;
  }
}

/* TrueWeb payment status */
.tw-payment-message{
  position:fixed;
  left:50%;
  bottom:24px;
  z-index:99999;
  transform:translate(-50%,20px);
  opacity:0;
  pointer-events:none;

  max-width:calc(100vw - 32px);
  padding:12px 18px;

  border:1px solid #214c34;
  border-radius:12px;

  background:#071a10;
  color:#fff;

  font-size:13px;
  font-weight:600;

  box-shadow:0 12px 35px rgba(0,0,0,.35);

  transition:.2s ease;
}

.tw-payment-message.show{
  opacity:1;
  transform:translate(-50%,0);
}

.tw-payment-message.success{
  border-color:#309326;
}

.tw-payment-message.error{
  border-color:#8c3434;
}


/* Telegram account linking */
.tw-telegram-link-card{
  width:min(100%,900px);
  box-sizing:border-box;
  margin:0 auto 18px;
  padding:18px;

  display:flex;
  align-items:flex-start;
  gap:14px;

  background:#071a10;
  border:1px solid #214c34;
  border-radius:14px;
}

.tw-telegram-link-icon{
  width:42px;
  height:42px;
  flex:none;

  display:grid;
  place-items:center;

  border-radius:11px;
  background:#309326;

  color:#fff;
  font-size:20px;
  font-weight:800;
}

.tw-telegram-link-body{
  flex:1;
  min-width:0;
}

.tw-telegram-link-body strong{
  display:block;
  margin-bottom:5px;
  font-size:15px;
  color:#fff;
}

.tw-telegram-link-body p{
  margin:0 0 12px;
  color:#a1b9aa;
  font-size:13px;
  line-height:1.45;
}

.tw-telegram-link-body small{
  display:block;
  margin-top:9px;
  color:#6f9180;
  font-size:10px;
  line-height:1.4;
}

.tw-telegram-link-button{
  border:0;
  border-radius:9px;
  padding:10px 15px;

  background:#309326;
  color:#fff;

  font:inherit;
  font-size:12px;
  font-weight:700;

  cursor:pointer;
}

.tw-telegram-link-button:hover{
  background:#38a92b;
}

.tw-link-notice{
  position:fixed;
  left:50%;
  bottom:24px;
  z-index:100000;

  transform:translate(-50%,20px);

  max-width:calc(100vw - 32px);
  padding:12px 18px;

  border:1px solid #214c34;
  border-radius:12px;

  background:#071a10;
  color:#fff;

  font-size:13px;
  font-weight:600;

  opacity:0;
  transition:.2s ease;

  box-shadow:0 12px 35px rgba(0,0,0,.35);
}

.tw-link-notice.show{
  opacity:1;
  transform:translate(-50%,0);
}

.tw-link-notice.success{
  border-color:#309326;
}

.tw-link-notice.error{
  border-color:#8c3434;
}

@media(max-width:600px){
  .tw-telegram-link-card{
    margin:0 12px 16px;
    width:calc(100% - 24px);
  }
}
