/* ArtemisX VPN user auth and account surfaces */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#07111f;
  --bg2:#0b1629;
  --card:#101b2d;
  --card2:#132039;
  --border:rgba(255,255,255,.12);
  --border2:rgba(255,255,255,.2);
  --blue:#2f7df6;
  --blue2:#1d8df6;
  --blue-bg:rgba(47,125,246,.12);
  --green:#10b981;
  --green-bg:rgba(16,185,129,.12);
  --red:#ef4444;
  --red-bg:rgba(239,68,68,.12);
  --yellow:#f59e0b;
  --yellow-bg:rgba(245,158,11,.12);
  --text:#f8fafc;
  --text2:rgba(248,250,252,.72);
  --text3:rgba(248,250,252,.5);
  --shadow:0 28px 90px rgba(0,0,0,.34);
}
html{scroll-behavior:smooth}
body{
  min-height:100vh;
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 18% -12%,rgba(47,125,246,.24),transparent 34%),
    radial-gradient(circle at 84% 0,rgba(16,185,129,.11),transparent 28%),
    linear-gradient(180deg,#07111f,#091426 58%,#07111f);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

/* Auth */
.auth-page,.account-page{min-height:100vh}
.auth-page{
  width:min(1040px,100%);
  min-height:100vh;
  margin:0 auto;
  padding:40px 24px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 420px;
  gap:34px;
  align-items:center;
}
.auth-page--login{max-width:980px}
.auth-aside{
  min-height:520px;
  padding:34px;
  border:1px solid var(--border);
  border-radius:28px;
  background:
    linear-gradient(160deg,rgba(47,125,246,.18),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
  overflow:hidden;
}
.auth-aside::after{
  content:"";
  position:absolute;
  right:-90px;
  top:-90px;
  width:250px;
  height:250px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.15),transparent 68%);
}
.auth-brand,.nav-brand,.auth-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:-.01em;
}
.auth-brand,.auth-copy,.auth-proof{position:relative;z-index:1}
.auth-brand img,.nav-brand img{height:38px;width:38px;object-fit:cover;object-position:left}
.auth-brand span,.nav-brand span{font-size:1.05rem;word-spacing:.18em}
.eyebrow{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:var(--blue-bg);
  color:#93c5fd;
  font-size:.72rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:18px;
}
.auth-copy h1{
  max-width:560px;
  font-size:clamp(2rem,4vw,3.25rem);
  line-height:1.04;
  letter-spacing:-.055em;
  margin-bottom:16px;
}
.auth-copy p{
  max-width:520px;
  color:var(--text2);
  font-size:.98rem;
  line-height:1.75;
}
.auth-proof{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.proof-card{
  min-height:92px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.055);
}
.proof-card strong{display:block;font-size:.92rem}
.proof-card span{display:block;margin-top:6px;color:var(--text3);font-size:.74rem;font-weight:700;line-height:1.45}
.auth-panel{width:100%}
.auth-card{
  width:100%;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035)),var(--card);
  border:1px solid var(--border);
  border-radius:26px;
  padding:34px;
  box-shadow:0 22px 70px rgba(0,0,0,.28);
  backdrop-filter:blur(18px);
}
.auth-logo{margin-bottom:28px}
.auth-logo img{height:38px;width:38px;object-fit:cover;object-position:left}
.auth-logo span{font-weight:800;font-size:1.08rem;word-spacing:.18em}
.auth-title{
  font-size:1.75rem;
  font-weight:800;
  letter-spacing:-.04em;
  margin-bottom:8px;
}
.auth-sub{
  color:var(--text2);
  font-size:.9rem;
  line-height:1.65;
  margin-bottom:24px;
}
.field{margin-bottom:15px}
.field label{
  display:block;
  font-size:.75rem;
  color:var(--text2);
  margin-bottom:7px;
  font-weight:800;
}
input,select{
  width:100%;
  min-height:48px;
  background:rgba(7,17,31,.72);
  color:var(--text);
  border:1px solid var(--border2);
  border-radius:13px;
  padding:12px 14px;
  font-size:.9rem;
  font-family:inherit;
  transition:.2s;
}
input:focus,select:focus{
  outline:none;
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(47,125,246,.14);
  background:rgba(7,17,31,.88);
}
input::placeholder{color:var(--text3)}
.auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--text3);
  font-size:.78rem;
  font-weight:800;
  margin:2px 0 18px;
}
.btn-primary{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:13px;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:#fff;
  font-weight:800;
  font-size:.92rem;
  cursor:pointer;
  font-family:inherit;
  transition:.2s;
  box-shadow:0 16px 34px rgba(47,125,246,.24);
}
.btn-primary:hover{transform:translateY(-1px);background:linear-gradient(135deg,#1d4ed8,#1676d8)}
.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}
.btn-secondary{
  width:100%;
  min-height:46px;
  margin-top:10px;
  border:1px solid rgba(148,163,184,.26);
  border-radius:13px;
  background:rgba(15,23,42,.36);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}
.btn-secondary:hover{border-color:rgba(96,165,250,.42);background:rgba(30,41,59,.58)}
.btn-secondary:disabled{opacity:.6;cursor:not-allowed}
.clerk-auth{display:none}
.auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:6px 0 18px;
  color:var(--text3);
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
}
.auth-divider::before,.auth-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(148,163,184,.22);
}
.btn-social{
  width:100%;
  min-height:48px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:13px;
  background:rgba(15,23,42,.42);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}
.btn-social:hover{border-color:rgba(96,165,250,.42);background:rgba(30,41,59,.6)}
.clerk-inline{margin-top:16px}
.auth-footer{
  text-align:center;
  margin-top:20px;
  color:var(--text3);
  font-size:.84rem;
}
.auth-footer a{color:#93c5fd;font-weight:800}
.alert{
  display:none;
  padding:12px 14px;
  border-radius:13px;
  font-size:.83rem;
  margin-bottom:15px;
  line-height:1.5;
}
.alert-error{background:var(--red-bg);color:#fecaca;border:1px solid rgba(239,68,68,.22)}
.alert-success{background:var(--green-bg);color:#a7f3d0;border:1px solid rgba(16,185,129,.24)}
.alert.show{display:block}

/* Account */
.account-page{
  background:
    radial-gradient(circle at 14% -8%,rgba(47,125,246,.22),transparent 32%),
    radial-gradient(circle at 92% 0,rgba(16,185,129,.10),transparent 30%),
    var(--bg);
}
.account-nav{
  position:sticky;
  top:0;
  z-index:10;
  min-height:70px;
  padding:0 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(7,17,31,.84);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(18px);
}
.nav-actions{display:flex;align-items:center;gap:12px}
.nav-actions a{
  color:var(--text2);
  font-size:.85rem;
  font-weight:800;
  padding:9px 12px;
  border-radius:999px;
}
.nav-actions a:hover{color:var(--text);background:rgba(255,255,255,.06)}
.btn-logout,.btn-mini,.btn-upgrade{
  font-family:inherit;
  font-weight:800;
  cursor:pointer;
  transition:.2s;
}
.btn-logout{
  background:rgba(255,255,255,.055);
  border:1px solid var(--border);
  color:var(--text2);
  padding:9px 14px;
  border-radius:999px;
  font-size:.8rem;
}
.btn-logout:hover{border-color:rgba(239,68,68,.38);color:#fecaca;background:var(--red-bg)}
.account-container{max-width:1180px;margin:0 auto;padding:38px 24px 70px}
.account-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:22px;
}
.account-hero h1{
  font-size:clamp(1.85rem,3vw,2.65rem);
  line-height:1.04;
  letter-spacing:-.055em;
}
.account-hero p{
  color:var(--text2);
  font-size:.95rem;
  margin-top:10px;
  max-width:620px;
  line-height:1.65;
}
.btn-upgrade{
  flex:0 0 auto;
  display:inline-flex;
  min-height:44px;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  box-shadow:0 14px 34px rgba(47,125,246,.22);
  font-size:.84rem;
}
.account-overview{
  display:grid;
  grid-template-columns:1.2fr .9fr .9fr;
  gap:14px;
  margin-bottom:18px;
}
.summary-card{
  min-height:128px;
  padding:20px;
  border-radius:22px;
  border:1px solid var(--border);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.03)),var(--card);
  box-shadow:0 18px 58px rgba(0,0,0,.18);
}
.summary-card--primary{background:linear-gradient(145deg,rgba(47,125,246,.28),rgba(255,255,255,.04)),var(--card)}
.summary-card span{display:block;color:var(--text3);font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.summary-card strong{display:block;margin-top:12px;font-size:1.55rem;line-height:1.1;letter-spacing:-.035em}
.summary-card em{display:block;margin-top:10px;color:var(--text2);font-style:normal;font-size:.82rem;font-weight:700;line-height:1.45}
.account-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:18px;
  align-items:start;
}
.account-main,.account-side{display:grid;gap:18px}
.info-card{
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.03)),var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  padding:22px;
  box-shadow:0 18px 58px rgba(0,0,0,.18);
}
.card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.card-head h2{font-size:1rem;font-weight:800;letter-spacing:-.02em}
.card-head p{color:var(--text3);font-size:.8rem;margin-top:5px;line-height:1.5}
.profile-list{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:12px;
}
.profile-list div{
  padding:16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.04);
}
.profile-list span{display:block;color:var(--text3);font-size:.76rem;font-weight:800;margin-bottom:6px}
.profile-list strong{display:block;font-size:.95rem;overflow:hidden;text-overflow:ellipsis}
.soft-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  color:var(--text2);
  font-size:.75rem;
  font-weight:800;
  white-space:nowrap;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 11px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:800;
  white-space:nowrap;
}
.b-blue{background:var(--blue-bg);color:#93c5fd}
.b-yellow{background:var(--yellow-bg);color:#fcd34d}
.b-green{background:var(--green-bg);color:#86efac}
.b-red{background:var(--red-bg);color:#fecaca}
.device-list{display:grid;gap:10px}
.device-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.device-main{display:flex;align-items:center;gap:12px;min-width:0}
.device-icon{
  width:40px;
  height:40px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:var(--blue-bg);
  color:#93c5fd;
  font-weight:800;
  flex:0 0 auto;
}
.device-name{font-weight:800;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.device-meta{color:var(--text3);font-size:.76rem;margin-top:3px;line-height:1.4}
.device-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.btn-mini{
  border:1px solid var(--border);
  background:rgba(255,255,255,.055);
  color:var(--text2);
  border-radius:999px;
  padding:7px 10px;
  font-size:.72rem;
}
.btn-mini:hover{border-color:rgba(239,68,68,.38);color:#fecaca;background:var(--red-bg)}
.pw-form{display:grid;gap:0}
.empty-state{
  padding:18px;
  border:1px dashed var(--border2);
  border-radius:16px;
  color:var(--text3);
  font-size:.86rem;
  line-height:1.6;
}

@media(max-width:960px){
  .auth-page{grid-template-columns:1fr;max-width:560px}
  .auth-aside{display:none}
  .account-overview,.account-layout{grid-template-columns:1fr}
  .account-hero{align-items:flex-start;flex-direction:column}
  .btn-upgrade{width:100%}
}
@media(max-width:640px){
  .auth-page{padding:24px 16px}
  .auth-card{padding:26px}
  .account-nav{padding:0 16px}
  .nav-brand span{display:none}
  .nav-actions{gap:6px}
  .nav-actions a{font-size:.78rem;padding:8px}
  .account-container{padding:28px 16px 56px}
  .profile-list{grid-template-columns:1fr}
  .card-head{align-items:flex-start;flex-direction:column}
  .device-item{align-items:flex-start;flex-direction:column}
  .device-actions{width:100%;justify-content:space-between}
}
