*{box-sizing:border-box}
:root{
  --bg:#07111f;
  --panel:#13243a;
  --panel-2:#0c1a2e;
  --gold:#f0d66b;
  --gold-2:#d4af37;
  --text:#f6f7fb;
  --muted:#aeb9c9;
  --line:rgba(255,255,255,.13);
  --blue:#61c6ff;
}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text)}
body{
  background:
    radial-gradient(circle at 50% 18%, rgba(212,175,55,.10), transparent 24%),
    radial-gradient(circle at 16% 78%, rgba(97,198,255,.08), transparent 24%),
    linear-gradient(180deg,#07111f 0%,#0b1d39 48%,#06101e 100%);
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.045;
  background:url("assets/shield-bg.svg") center 38% / 72% no-repeat;
  z-index:-2;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.055;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(212,175,55,.75) 49%, transparent 50%),
    linear-gradient(0deg, transparent 0 48%, rgba(97,198,255,.65) 49%, transparent 50%),
    radial-gradient(circle at 82% 20%, rgba(212,175,55,.16), transparent 18%);
  background-size:240px 240px,240px 240px,100% 100%;
  z-index:-1;
}
.app-shell{
  width:min(720px,100%);
  margin:0 auto;
  padding:34px 22px 32px;
}
.glass-card{
  background:linear-gradient(180deg,rgba(26,45,70,.92),rgba(12,26,46,.94));
  border:1px solid rgba(255,255,255,.13);
  border-radius:32px;
  box-shadow:0 20px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  padding:28px;
  margin-bottom:28px;
}
.hero-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:180px;
}
.brand-left{display:flex;align-items:center;gap:22px;min-width:0}
.app-logo{
  width:96px;
  height:96px;
  object-fit:cover;
  border-radius:28px;
  box-shadow:0 16px 35px rgba(0,0,0,.38);
  flex:0 0 auto;
}
h1{
  margin:0;
  font-size:clamp(44px,8vw,64px);
  letter-spacing:.16em;
  font-weight:800;
  background:linear-gradient(90deg,var(--gold),#fff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-card p{
  margin:10px 0 0;
  color:var(--muted);
  font-size:clamp(18px,4vw,28px);
  letter-spacing:.07em;
}
.language-box{
  border:1px solid rgba(240,214,107,.45);
  border-radius:24px;
  padding:0 14px;
  height:78px;
  display:flex;
  align-items:center;
  flex:0 0 auto;
}
select{
  background:transparent;
  color:var(--text);
  border:0;
  font-size:28px;
  outline:none;
}
option{color:#07111f}
h2{
  margin:0 0 20px;
  font-size:22px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold);
}
.password-box{
  border:1px solid rgba(240,214,107,.42);
  border-radius:28px;
  padding:22px;
  background:rgba(3,12,24,.58);
}
#passwordOutput{
  display:block;
  width:100%;
  word-break:break-all;
  font-size:clamp(27px,6vw,38px);
  font-weight:900;
  letter-spacing:.03em;
  line-height:1.25;
  min-height:52px;
}
.copy-btn{
  width:100%;
  margin-top:18px;
  border:0;
  border-radius:26px;
  background:rgba(255,255,255,.07);
  color:var(--text);
  height:70px;
  font-size:26px;
  font-weight:800;
}
.strength-line{
  margin:24px 0 28px;
  color:var(--muted);
  font-size:26px;
}
.strength-line strong{color:var(--blue)}
.primary-btn{
  width:100%;
  min-height:88px;
  border:0;
  border-radius:28px;
  background:linear-gradient(135deg,#ffe783,#d4af37);
  color:#06101e;
  font-size:26px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:0 18px 42px rgba(212,175,55,.25);
}
.mode-grid{display:grid;grid-template-columns:1fr;gap:14px}
.mode-btn{
  min-height:66px;
  border-radius:24px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-size:22px;
  font-weight:750;
}
.mode-btn.active{
  border-color:rgba(240,214,107,.65);
  background:linear-gradient(135deg,rgba(240,214,107,.20),rgba(255,255,255,.05));
}
.length-row{
  margin-top:26px;
  display:flex;
  justify-content:space-between;
  font-size:22px;
  color:var(--muted);
}
#lengthValue{color:var(--gold);font-weight:900}
input[type=range]{width:100%;margin:18px 0 24px;accent-color:var(--gold-2)}
.custom-options h3{
  margin:0 0 14px;
  color:var(--gold);
  letter-spacing:.12em;
  text-transform:uppercase;
}
.custom-options label{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 0;
  color:var(--text);
  font-size:20px;
}
.custom-options input{width:22px;height:22px;accent-color:var(--gold-2)}
.toast{
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  margin-top:14px;
  text-align:center;
  color:var(--gold);
  transition:.25s;
}
.toast.show{opacity:1;transform:translateY(0)}
footer{
  text-align:center;
  color:var(--muted);
  line-height:1.5;
  padding:10px 12px 30px;
}
button{cursor:pointer}
button:active{transform:scale(.99)}
@media(max-width:520px){
  .app-shell{padding:28px 18px}
  .glass-card{border-radius:28px;padding:24px}
  .hero-card{align-items:flex-start}
  .brand-left{display:block}
  .app-logo{width:84px;height:84px;margin-bottom:18px}
  .language-box{height:58px;border-radius:18px}
  select{font-size:22px}
}
