:root{
  --bg:#0f0f0f;
  --panel:#1a1a1a;
  --panel-2:#222;
  --stroke:rgba(255,255,255,0.06);
  --white:#ffffff;
  --grey:#828282;
  --grey-2:#5a5a5a;
  --blue:#0c8be2;
  --blue-dark:#05141f;
  --blue-light:#45a0e0;
  --radius-lg:28px;
  --radius-md:20px;
  --radius-sm:14px;
  --transition:.25s ease;
}

*,*::before,*::after{box-sizing:border-box;-webkit-tap-highlight-color:transparent}

html,body{margin:0;padding:0;background:var(--bg);color:var(--white);font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-weight:400;min-height:100vh;overflow-x:hidden}

body::selection{background-color:rgba(12,139,226,0.45)}

#app{position:relative;width:100%;min-height:100vh;display:flex;flex-direction:column;align-items:center}

.screen{
  width:100%;
  max-width:420px;
  padding:30px 16px 60px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  transition:opacity .35s ease;
}

.hidden{display:none !important}

.content{
  display:flex;
  flex-direction:column;
  gap:14px;
  width:100%;
}

.vpn-logo{
  display:block;
  margin:14px auto 8px;
  font-size:20px;
  font-weight:700;
  letter-spacing:-0.4px;
  color:var(--white);
  text-align:center;
}

.sub-card{
  background:var(--panel);
  border-radius:var(--radius-lg);
  padding:24px;
  position:relative;
  overflow:hidden;
}
.sub-card::after{
  content:"";
  position:absolute;
  bottom:-160px;right:-40px;
  width:260px;height:260px;
  background:rgba(12,139,226,0.35);
  filter:blur(80px);
  border-radius:50%;
  pointer-events:none;
}
.sub-card>*{position:relative;z-index:1}

.status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--grey);
  font-size:14px;
  font-weight:500;
  margin-bottom:14px;
}
.status .dot{
  width:8px;height:8px;border-radius:50%;
  background:#3acb6a;
  box-shadow:0 0 10px rgba(58,203,106,0.7);
}
.status.inactive .dot{background:#cb3a3a;box-shadow:0 0 10px rgba(203,58,58,0.7)}

.days{
  font-size:54px;
  font-weight:600;
  line-height:1;
  letter-spacing:-1.5px;
  margin:0 0 6px;
}
.days small{
  font-size:24px;
  color:var(--grey);
  font-weight:500;
  letter-spacing:0;
}

.expire{color:var(--grey);font-size:15px;font-weight:500}
.expire b{color:var(--white);font-weight:600;transition:filter .3s ease}
.expire.blurred b{filter:blur(6px);opacity:0.7}

.section-title{
  color:var(--grey);
  font-size:15px;
  font-weight:500;
  margin:8px 0 -4px 6px;
}

.button-row{
  display:flex;
  gap:10px;
  width:100%;
}

.ui-button{
  flex:1;
  border:none;
  cursor:pointer;
  font-family:inherit;
  font-weight:600;
  font-size:15px;
  color:var(--white);
  background:var(--blue);
  border-radius:22px;
  padding:18px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:all .2s ease;
}
.ui-button:hover{filter:brightness(0.9)}
.ui-button:active{transform:scale(0.96)}

.ui-button .btn-svg{width:20px;height:20px;flex-shrink:0}

.ui-button.copy{
  background:var(--blue-dark);
  border:1px solid rgba(12,139,226,0.25);
  color:var(--blue);
}

.ui-button.main-copy{width:100%}

.ui-button.buy{width:100%}

.ui-button.ok{
  width:calc(100% - 48px);
  margin:auto 24px 24px;
}

.ui-button.pay{
  width:calc(100% - 48px);
  margin:4px 24px 24px;
}

.ui-button.connect-client{
  width:calc(100% - 48px);
  margin:8px 24px 24px;
}

.client-select-title{
  margin:8px 0 6px;
  color:var(--white);
  font-size:20px;
  font-weight:700;
  text-align:center;
  letter-spacing:-0.3px;
}
.client-select-subtitle{
  color:var(--grey);
  font-size:13px;
  text-align:center;
  margin:0 24px 18px;
}
.client-buttons-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  width:calc(100% - 48px);
  margin:6px 24px 12px;
}
.client-btn{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  background:var(--panel-2);
  border:2px solid transparent;
  border-radius:22px;
  padding:18px 14px;
  font-family:inherit;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
.client-btn:hover{background:#262626}
.client-btn.selected{
  border-color:var(--blue);
  background:rgba(12,139,226,0.10);
}
.client-btn:active{transform:scale(0.96)}

.client-icon{
  width:44px;
  height:44px;
  object-fit:contain;
}
.client-name{
  font-size:14px;
  font-weight:600;
  color:var(--white);
  letter-spacing:-0.2px;
}

.support-card{
  background:var(--panel);
  border-radius:var(--radius-lg);
  padding:20px 22px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.support-head{display:flex;align-items:center;gap:12px}
.support-icon{
  width:38px;height:38px;
  border-radius:50%;
  background:rgba(12,139,226,0.15);
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.support-icon svg{width:18px;height:18px}
.support-title{font-size:15px;font-weight:600;margin:0;color:var(--white)}
.support-text{font-size:13px;color:var(--grey);line-height:1.5;margin:0}

.support-btn{
  width:100%;
  background:var(--blue-dark);
  border:1px solid rgba(12,139,226,0.25);
  color:var(--blue);
  font-family:inherit;
  font-weight:600;
  font-size:15px;
  padding:14px;
  border-radius:18px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:8px;
  transition:all .2s;
}
.support-btn:hover{filter:brightness(1.15)}
.support-btn:active{transform:scale(0.97)}
.support-btn .btn-svg{width:18px;height:18px}

.channel-link{
  width:100%;
  background:transparent;
  border:none;
  color:var(--grey);
  font-family:inherit;
  font-weight:500;
  font-size:14px;
  padding:14px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:8px;
  transition:color .2s;
}
.channel-link:hover{color:var(--blue)}
.channel-link .btn-svg{width:16px;height:16px}

.ui-modal-overlay,
.pay-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  z-index:1000;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  transition:opacity .3s ease;
  padding:0;
}

.ui-modal-content,
.pay-modal-content,
.client-select-modal-content{
  width:100%;
  max-width:420px;
  background:var(--panel);
  border-radius:32px 32px 0 0;
  padding:8px 0 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-bottom:-100%;
  transition:margin-bottom .4s cubic-bezier(.25,.46,.45,.94);
  box-shadow:0 -10px 40px rgba(0,0,0,0.5);
  touch-action:pan-y;
}

.ui-modal-overlay.active .ui-modal-content,
.pay-modal-overlay.active .pay-modal-content,
.ui-modal-overlay.active .client-select-modal-content{
  margin-bottom:0;
}

.ui-modal-handle{
  height:4px;
  width:42px;
  background:rgba(255,255,255,0.2);
  border-radius:2px;
  margin:8px auto 16px;
}

.select-plan-title{
  margin:8px 24px 16px;
  align-self:flex-start;
  color:var(--grey);
  font-size:15px;
  font-weight:500;
}

.plans-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:0 24px 16px;
  width:calc(100% - 48px);
}
.plan-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  background:var(--panel-2);
  border-radius:22px;
  border:2px solid transparent;
  aspect-ratio:145/151;
  cursor:pointer;
  transition:all var(--transition);
  padding:8px 0;
  gap:2px;
  font-family:inherit;
}
.plan-card:hover{background:#2a2a2a}
.plan-card.active{
  border-color:var(--blue);
  background:rgba(12,139,226,0.12);
}
.plan-card:active{transform:scale(0.97)}

.plan-months{
  font-size:60px;
  font-style:italic;
  font-weight:600;
  color:var(--white);
  line-height:1;
  letter-spacing:-2px;
}
.plan-period{font-size:18px;color:var(--white);opacity:0.7;line-height:1;margin-top:4px}
.plan-price{font-size:16px;color:var(--grey);line-height:1;margin-top:10px}

.payment-method-toggle{
  position:relative;
  display:flex;
  background:var(--panel-2);
  border-radius:18px;
  padding:4px;
  margin:0 24px 16px;
  width:calc(100% - 48px);
}.payment-switch-bg{
  position:absolute;
  top:4px;left:4px;
  width:calc(50% - 4px);
  height:calc(100% - 8px);
  background:var(--blue);
  border-radius:14px;
  transition:transform .3s cubic-bezier(.25,.46,.45,.94);
}
.payment-switch-bg.switch-ton{transform:translateX(100%)}
.payment-method{
  flex:1;
  z-index:1;
  background:transparent;
  border:none;
  color:var(--grey);
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  padding:12px;
  cursor:pointer;
  border-radius:14px;
  transition:color .3s ease;
}
.payment-method.active{color:#fff}

.ton-connect-wrapper{
  width:calc(100% - 48px);
  margin:0 24px 14px;
  display:flex;
  justify-content:center;
  max-height:200px;
  overflow:hidden;
  transition:max-height .35s ease, margin .35s ease, opacity .25s ease;
  opacity:1;
}
.ton-connect-wrapper.hidden{
  display:flex !important;
  max-height:0;
  margin-top:0;
  margin-bottom:0;
  opacity:0;
  pointer-events:none;
}
.ton-connect-wrapper #ton-connect,
.ton-connect-wrapper #ton-connect > *,
.ton-connect-wrapper #ton-connect button{
  width:100% !important;
  max-width:100% !important;
}
.ton-connect-wrapper #ton-connect button{
  border-radius:22px !important;
  min-height:54px !important;
  justify-content:center !important;
}

.loading-screen{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  padding:0;
  max-width:none;
}
.loading-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}
.loading-spinner{
  width:36px;
  height:36px;
  border:3px solid rgba(255,255,255,0.1);
  border-top-color:var(--blue);
  border-radius:50%;
  animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.toast{
  position:fixed;
  bottom:30px;left:50%;
  transform:translate(-50%,80px);
  background:#232323;
  color:#fff;
  padding:12px 20px;
  border-radius:16px;
  font-size:14px;
  font-weight:500;
  opacity:0;
  transition:all .3s cubic-bezier(.22,.61,.36,1);
  z-index:1100;
  border:1px solid var(--stroke);
}
.toast.show{transform:translate(-50%,0);opacity:1}

/* ===== Login screen ===== */
.login-screen{
  justify-content:center;
  align-items:center;
  min-height:100vh;
  padding:24px 16px;
}
.login-card{
  width:100%;
  max-width:340px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.login-logo{
  width:64px;height:64px;
  border-radius:50%;
  background:rgba(12,139,226,0.12);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:4px;
}
.login-title{
  font-size:24px;
  font-weight:700;
  color:var(--white);
  margin:0;
  letter-spacing:-0.5px;
}
.login-subtitle{
  font-size:14px;
  color:var(--grey);
  margin:0 0 8px;
  text-align:center;
}
.login-field{
  width:100%;
}
.login-input{
  width:100%;
  background:var(--panel-2);
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:16px 18px;
  font-family:inherit;
  font-size:15px;
  font-weight:500;
  color:var(--white);
  outline:none;
  transition:border-color .2s ease, background .2s ease;
  text-align:center;
  letter-spacing:0.5px;
}
.login-input::placeholder{color:var(--grey-2);letter-spacing:0}
.login-input:focus{border-color:rgba(12,139,226,0.55);background:#262626}
.login-btn{width:100%}
.login-divider{
  width:100%;
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--grey-2);
  font-size:12px;
  font-weight:500;
  margin:4px 0;
}
.login-divider::before,
.login-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--stroke);
}
.login-reg-btn{width:100%}
.login-support{
  background:transparent;
  border:none;
  color:var(--grey-2);
  font-family:inherit;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:6px;
  padding:10px;
  margin-top:4px;
  transition:color .2s;
}
.login-support:hover{color:var(--blue)}
.login-support .btn-svg{width:14px;height:14px}

/* ===== Main screen header ===== */
.main-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:4px;
}
.main-header .vpn-logo{margin:0;flex:1;text-align:center}
.main-header .icon-btn{width:36px;height:36px;color:var(--grey-2)}

@media(max-width:380px){
  .days{font-size:46px}
  .plan-months{font-size:50px}
}


/* ===== Devices section (main screen) ===== */
.devices-card{
  background:var(--panel);
  border-radius:var(--radius-lg);
  padding:18px 20px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:600px;
  opacity:1;
  overflow:hidden;
  transition:max-height .5s cubic-bezier(0.4,0,0.2,1),opacity .4s ease,padding .5s cubic-bezier(0.4,0,0.2,1),margin .5s cubic-bezier(0.4,0,0.2,1),transform .5s cubic-bezier(0.4,0,0.2,1);
}
.devices-card.is-collapsed{
  max-height:0;
  opacity:0;
  padding-top:0;
  padding-bottom:0;
  margin-top:-14px;
  transform:translateY(-10px);
  pointer-events:none;
}
.devices-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.devices-title{
  font-size:17px;
  font-weight:600;
  color:var(--white);
  margin:0;
  letter-spacing:-0.2px;
}
.devices-add{
  width:34px;height:34px;
  border-radius:50%;
  border:none;
  background:var(--blue-dark);
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:all .2s ease;
  flex-shrink:0;
  border:1px solid rgba(12,139,226,0.25);
}
.devices-add svg{width:18px;height:18px}
.devices-add:hover{background:rgba(12,139,226,0.18);filter:brightness(1.1)}
.devices-add:active{transform:scale(0.92)}

.devices-list{
  list-style:none;
  padding:0;
  margin:4px 0 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.device-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:var(--panel-2);
  border-radius:18px;
  cursor:pointer;
  border:1px solid transparent;
  transition:background .2s ease, border-color .2s ease, transform .15s ease;
}
.device-item:hover{background:#262626;border-color:rgba(12,139,226,0.18)}
.device-item:active{transform:scale(0.98)}
.device-item .di-icon{
  width:38px;height:38px;
  border-radius:12px;
  background:rgba(12,139,226,0.15);
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.device-item .di-icon svg{width:20px;height:20px}
.device-item .di-meta{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.device-item .di-name{
  font-size:14px;
  font-weight:600;
  color:var(--white);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  letter-spacing:-0.2px;
}
.device-item .di-sub{
  font-size:12px;
  color:var(--grey);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.device-item .di-chev{
  color:var(--grey-2);
  flex-shrink:0;
  display:flex;align-items:center;
}
.device-item .di-chev svg{width:18px;height:18px;fill:currentColor}

.devices-empty{
  padding:14px 4px 4px;
  text-align:center;
  color:var(--grey);
  font-size:13px;
  line-height:1.5;
}
.devices-empty b{color:var(--blue);font-weight:600}

/* ===== Device settings screen ===== */
.device-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:6px 0 18px;
}
.device-header-title{
  font-size:17px;
  font-weight:600;
  color:var(--white);
  letter-spacing:-0.2px;
  text-align:center;
  flex:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  padding:0 8px;
}
.icon-btn{
  width:38px;height:38px;
  border-radius:50%;
  border:none;
  background:var(--panel-2);
  color:var(--white);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:all .2s ease;
  flex-shrink:0;
}
.icon-btn svg{width:20px;height:20px}
.icon-btn:hover{background:#2a2a2a}
.icon-btn:active{transform:scale(0.92)}
.icon-btn-spacer{width:38px;height:38px;flex-shrink:0}

.device-hero{
  background:var(--panel);
  border-radius:var(--radius-lg);
  padding:26px 24px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  position:relative;
  overflow:hidden;
}
.device-hero::after{
  content:"";
  position:absolute;
  top:-120px;left:50%;
  transform:translateX(-50%);
  width:280px;height:240px;
  background:rgba(12,139,226,0.28);
  filter:blur(80px);
  border-radius:50%;
  pointer-events:none;
}
.device-hero>*{position:relative;z-index:1}
.device-hero-icon{
  width:64px;height:64px;
  border-radius:20px;
  background:rgba(12,139,226,0.18);
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:4px;
}
.device-hero-icon svg{width:32px;height:32px}
.device-hero-name{
  font-size:22px;
  font-weight:700;
  color:var(--white);
  text-align:center;
  letter-spacing:-0.4px;
  word-break:break-word;
  max-width:100%;
}
.device-hero-platform{
  font-size:13px;
  color:var(--grey);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.6px;
}

.settings-section{
  background:var(--panel);
  border-radius:var(--radius-lg);
  padding:18px 20px 20px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.settings-label{
  font-size:13px;
  font-weight:600;
  color:var(--grey);
  letter-spacing:0.2px;
  text-transform:uppercase;
}
.settings-row{
  display:flex;
  gap:8px;
  align-items:stretch;
}
.settings-input{
  flex:1;
  background:var(--panel-2);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:12px 14px;
  font-family:inherit;
  font-size:14px;
  font-weight:500;
  color:var(--white);
  outline:none;
  transition:border-color .2s ease, background .2s ease;
  min-width:0;
}
.settings-input::placeholder{color:var(--grey-2)}
.settings-input:focus{border-color:rgba(12,139,226,0.55);background:#262626}

.settings-save{
  background:var(--blue-dark);
  border:1px solid rgba(12,139,226,0.25);
  color:var(--blue);
  font-family:inherit;
  font-weight:600;
  font-size:14px;
  border-radius:14px;
  padding:0 16px;
  cursor:pointer;
  transition:all .2s ease;
  white-space:nowrap;
}
.settings-save:hover{filter:brightness(1.15)}
.settings-save:active{transform:scale(0.96)}
.settings-save.saved{
  background:rgba(58,203,106,0.12);
  border-color:rgba(58,203,106,0.35);
  color:#3acb6a;
}

.settings-hint{
  font-size:12px;
  color:var(--grey);
  line-height:1.5;
}

.install-section{gap:14px}
.install-steps{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.install-steps li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:13px;
  line-height:1.5;
  color:var(--white);
}
.install-steps b{color:var(--blue);font-weight:600}
.step-num{
  width:24px;height:24px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--blue-dark);
  border:1px solid rgba(12,139,226,0.25);
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;
  margin-top:-1px;
}

.happ-link{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  background:var(--panel-2);
  border:1px solid var(--stroke);
  border-radius:18px;
  text-decoration:none;
  color:var(--white);
  cursor:pointer;
  transition:all .2s ease;
}
.happ-link:hover{background:#262626;border-color:rgba(12,139,226,0.25)}
.happ-link:active{transform:scale(0.98)}
.happ-link-icon{
  width:38px;height:38px;
  border-radius:12px;
  background:rgba(12,139,226,0.15);
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.happ-link-icon svg{width:20px;height:20px}
.happ-link-text{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}
.happ-link-title{font-size:14px;font-weight:600;color:var(--white)}
.happ-link-platform{font-size:12px;color:var(--grey)}
.happ-link-chev{color:var(--grey-2);display:flex;align-items:center}
.happ-link-chev svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none}

.ui-button.danger{
  background:rgba(203,58,58,0.10);
  border:1px solid rgba(203,58,58,0.30);
  color:#ff6b6b;
  width:100%;
}
.ui-button.danger:hover{filter:brightness(1.1);background:rgba(203,58,58,0.18)}
.ui-button.danger .btn-svg{color:#ff6b6b}

/* ===== Add device modal ===== */
.add-device-content{padding-bottom:24px}
.add-device-title{
  margin:8px 0 6px;
  color:var(--white);
  font-size:20px;
  font-weight:700;
  text-align:center;
  letter-spacing:-0.3px;
}
.add-device-subtitle{
  color:var(--grey);
  font-size:13px;
  text-align:center;
  margin:0 24px 18px;
}
.platform-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  width:calc(100% - 48px);
  margin:0 24px 16px;
}
.platform-btn{
  background:var(--panel-2);
  border:2px solid transparent;
  border-radius:18px;
  padding:14px 8px;
  font-family:inherit;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:all .2s ease;
  aspect-ratio:1/1.05;
}
.platform-btn:hover{background:#262626}
.platform-btn.selected{
  border-color:var(--blue);
  background:rgba(12,139,226,0.10);
}
.platform-btn:active{transform:scale(0.96)}
.platform-ico{
  width:40px;height:40px;
  display:flex;align-items:center;justify-content:center;
  color:var(--white);
}
.platform-ico svg{width:30px;height:30px}
.platform-name{
  font-size:13px;
  font-weight:600;
  color:var(--white);
  letter-spacing:-0.2px;
}

.add-device-field{
  width:calc(100% - 48px);
  margin:0 24px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.add-device-label{
  font-size:13px;
  font-weight:600;
  color:var(--grey);
  letter-spacing:0.2px;
  text-transform:uppercase;
}

.ui-button.add-device-confirm{
  width:calc(100% - 48px);
  margin:0 24px;
}

/* ===== Confirm delete modal ===== */
.confirm-content{padding:8px 0 24px}
.confirm-icon{
  width:54px;height:54px;
  border-radius:50%;
  background:rgba(203,58,58,0.15);
  color:#ff6b6b;
  display:flex;align-items:center;justify-content:center;
  margin:8px auto 12px;
}
.confirm-icon svg{width:28px;height:28px}
.confirm-title{
  margin:0 24px 8px;
  color:var(--white);
  font-size:20px;
  font-weight:700;
  text-align:center;
  letter-spacing:-0.3px;
}
.confirm-text{
  color:var(--grey);
  font-size:13px;
  line-height:1.5;
  text-align:center;
  margin:0 28px 18px;
}
.confirm-buttons{
  display:flex;
  gap:10px;
  width:calc(100% - 48px);
  margin:0 24px;
}
.confirm-buttons .ui-button{flex:1}


.wizard-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:calc(100% - 32px);
  margin:0 16px 12px;
}
.wizard-header .icon-btn{
  width:32px;height:32px;
  background:var(--panel-2);
}
.wizard-header .icon-btn svg{width:18px;height:18px}
.wizard-back.hidden{visibility:hidden;display:flex !important}

.wizard-steps{
  display:flex;
  align-items:center;
  gap:6px;
}
.wizard-step{
  width:22px;
  height:4px;
  border-radius:2px;
  background:rgba(255,255,255,0.12);
  transition:background .25s ease, width .25s ease;
}
.wizard-step.active{background:var(--blue);width:28px}
.wizard-step.done{background:rgba(12,139,226,0.55)}

.wizard-step-panel{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  animation:wizardFade .25s ease;
}
.wizard-step-panel.hidden{display:none !important}
@keyframes wizardFade{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}

.platform-ico img {
  filter: brightness(0) invert(1);
}

.wizard-happ{margin:0 24px 14px;width:calc(100% - 48px)}
.wizard-hint{
  font-size:13px;
  color:var(--grey);
  text-align:center;
  margin:0 28px 14px;
  line-height:1.5;
}

.sub-url-row{
  display:flex;
  gap:8px;
  align-items:stretch;
  width:calc(100% - 48px);
  margin:0 24px 14px;
}
.sub-url-box{
  flex:1;
  min-width:0;
  background:var(--panel-2);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:12px 14px;
  font-family:'SF Mono',Menlo,Consolas,monospace;
  font-size:12px;
  color:var(--white);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:flex;
  align-items:center;
}
.sub-url-copy{
  background:var(--blue-dark);
  border:1px solid rgba(12,139,226,0.25);
  color:var(--blue);
  width:44px;height:auto;
  border-radius:14px;
  flex-shrink:0;
}
.sub-url-copy svg{width:18px;height:18px}
.sub-url-copy.copied{
  background:rgba(58,203,106,0.12);
  border-color:rgba(58,203,106,0.35);
  color:#3acb6a;
}

.wizard-steps-list{
  width:calc(100% - 48px);
  margin:6px 24px 16px;
}

.ui-button.wizard-done{
  width:calc(100% - 48px);
  margin:0 24px;
  background:var(--blue-dark);
  border:1px solid rgba(12,139,226,0.25);
  color:var(--blue);
}
.ui-button.wizard-done:hover{filter:brightness(1.15)}

.wizard-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:calc(100% - 48px);
  margin:0 24px;
}
.wizard-actions .ui-button{width:100%;margin:0}

.hello-icon{
  width:64px;height:64px;
  border-radius:50%;
  background:rgba(12,139,226,0.12);
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  margin:8px auto 4px;
}
.hello-icon svg{width:32px;height:32px}

.hello-sub2title{
  margin:0 24px 12px;
  color:var(--white);
  font-size:15px;
  text-align:center;
  font-weight:400;
  line-height:1.5;
}