:root{
  --bg:#040912;
  --panel:rgba(7,17,31,.92);
  --line:rgba(112,171,255,.18);
  --line2:rgba(67,169,255,.44);
  --text:#f4f8ff;
  --muted:#9cafc8;
  --blue:#1fa2ff;
  --blue2:#006eff;
  --green:#27d38f;
  --orange:#ffbd59;
  --shadow:0 26px 80px rgba(0,0,0,.45);
  --max:1460px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 75% 0%, rgba(31,162,255,.15), transparent 28%),
    radial-gradient(circle at 15% 12%, rgba(0,110,255,.14), transparent 30%),
    linear-gradient(180deg,#02060d 0%,#06101c 38%,#03070e 100%);
}
body[data-lang="ar"]{direction:rtl;text-align:right}
body[data-lang="fr"]{direction:ltr;text-align:left}
button,input,select,textarea{font-family:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
#app{max-width:var(--max);margin:0 auto;padding:22px 18px 64px}
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(16px);
  background:rgba(2,7,14,.76);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{display:flex;flex-direction:column;line-height:1;background:none;border:0;color:inherit;text-align:inherit}
.brand strong{font-size:26px;letter-spacing:.3px;font-weight:900}
.brand strong span{color:var(--blue)}
.brand small{color:#d3e8ff;margin-top:5px;font-weight:700;font-size:12px}
.nav-links{display:flex;align-items:center;gap:18px;color:#d9e7fb;font-size:14px;flex-wrap:wrap;justify-content:center}
.nav-links button{color:inherit;background:none;border:0;padding:8px 2px;opacity:.86;font-size:14px}
.nav-links .active{color:#4db6ff;opacity:1}
.nav-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.pill,.lang-select{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:#e7f2ff;
  border-radius:999px;
  padding:10px 14px;
  font-size:13px;
}
.lang-select{outline:none;min-width:136px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:34px 0 18px}
.section-head h2{margin:0;font-size:34px}
.section-head p{margin:8px 0 0;color:var(--muted);line-height:1.7;font-size:15px}
.blue-mark{width:5px;height:32px;border-radius:999px;background:linear-gradient(180deg,var(--blue),#12d8ff);flex:0 0 auto}
.btn{
  appearance:none;
  border:0;
  border-radius:17px;
  padding:15px 22px;
  font-size:17px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:.15s transform,.15s opacity,.15s border-color;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,var(--blue2),#35bdff);color:#fff;min-width:210px}
.btn-ghost{background:rgba(255,255,255,.035);color:#fff;border:1px solid rgba(255,255,255,.15);min-width:210px}
.btn-google{background:linear-gradient(135deg,#0d4caf,#1175ff);color:#fff}
.btn-images{background:linear-gradient(135deg,#2c8f41,#36c168);color:#fff}
.btn-lens{background:linear-gradient(135deg,#6534c8,#9652ef);color:#fff}
.btn-gemini{background:linear-gradient(135deg,#243096,#536aff);color:#fff}
.btn-soft{background:rgba(255,255,255,.055);color:#f4f8ff;border:1px solid rgba(255,255,255,.11)}
.note{margin-top:18px;color:#b9c9dd;font-size:13px;line-height:1.8;text-align:center}
.toast{
  position:fixed;
  z-index:100;
  left:18px;
  bottom:18px;
  transform:translateY(16px);
  opacity:0;
  pointer-events:none;
  background:#071827;
  border:1px solid rgba(31,162,255,.25);
  color:#f2f8ff;
  border-radius:16px;
  padding:14px 16px;
  box-shadow:var(--shadow);
  transition:.18s;
  max-width:360px;
  line-height:1.6;
}
body[data-lang="ar"] .toast{left:18px;right:auto}
body[data-lang="fr"] .toast{right:18px;left:auto}
.toast.show{transform:none;opacity:1}
@media(max-width:900px){.nav-links{display:none}.section-head{align-items:flex-start}}
@media(max-width:620px){#app{padding-inline:14px}.btn{width:100%;min-width:0}}


.btn-connect{
  background:linear-gradient(135deg,#18a0fb,#27d38f);
  color:#02111c;
  border:1px solid rgba(255,255,255,.12);
  min-width:210px;
  box-shadow:0 16px 38px rgba(31,162,255,.16);
}
.btn-connect:hover{
  box-shadow:0 20px 46px rgba(39,211,143,.18);
}

/* Terminator Auto DZ brand tuning */
.brand strong{
  letter-spacing:.1px;
}
.brand small{
  opacity:.92;
}


.beta-badge{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(255,189,89,.25);
  background:rgba(255,189,89,.08);
  color:#ffdc9f;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
}


/* PWA v42 — install button, modal and mobile app navigation */
.install-app-button,
.btn-install-app{
  border:1px solid rgba(39,211,143,.22) !important;
  background:linear-gradient(135deg,rgba(31,162,255,.18),rgba(39,211,143,.18)) !important;
  color:#eafff8 !important;
}
.install-app-button.is-installed,
.btn-install-app.is-installed{
  opacity:.65;
  cursor:default;
}
.mobile-app-dock{
  display:none;
}
.pwa-install-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(0,4,10,.72);
  backdrop-filter:blur(14px);
  opacity:0;
  pointer-events:none;
  transition:.16s opacity;
}
.pwa-install-modal.show{
  opacity:1;
  pointer-events:auto;
}
.pwa-install-dialog{
  position:relative;
  width:min(520px,100%);
  border:1px solid rgba(112,171,255,.24);
  background:linear-gradient(180deg,#071827,#040b14);
  border-radius:28px;
  padding:28px;
  text-align:center;
  box-shadow:0 30px 100px rgba(0,0,0,.55);
}
.pwa-install-dialog img{
  width:96px;
  height:96px;
  border-radius:24px;
  box-shadow:0 16px 44px rgba(31,162,255,.18);
}
.pwa-install-dialog h3{margin:16px 0 8px;font-size:24px}
.pwa-install-dialog p{margin:0;color:#d4e5f8;line-height:1.8;font-size:15px}
.pwa-install-dialog small{display:block;margin:12px 0 18px;color:var(--muted);line-height:1.7}
.pwa-modal-close{
  position:absolute;
  top:12px;
  inset-inline-end:12px;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:#fff;
  font-size:24px;
}
@media(max-width:900px){
  body{padding-bottom:78px}
  #app{padding-bottom:30px}
  .nav{padding:10px 12px;gap:8px}
  .brand strong{font-size:20px}
  .brand small{display:none}
  .nav-actions{gap:6px}
  .lang-select{min-width:104px;padding:8px 10px}
  .beta-badge{display:none}
  .install-app-button{width:42px;height:42px;padding:0;justify-content:center}
  .install-app-button [data-install-label]{display:none}
  .mobile-app-dock{
    position:fixed;
    z-index:90;
    left:10px;
    right:10px;
    bottom:10px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    border:1px solid rgba(112,171,255,.20);
    background:rgba(3,10,18,.92);
    backdrop-filter:blur(18px);
    border-radius:22px;
    padding:7px;
    box-shadow:0 20px 60px rgba(0,0,0,.45);
  }
  .mobile-app-dock button{
    border:0;
    background:transparent;
    color:#dce8f8;
    min-width:0;
    padding:5px 3px;
    display:grid;
    gap:3px;
    place-items:center;
    border-radius:15px;
  }
  .mobile-app-dock button:active{background:rgba(31,162,255,.12)}
  .mobile-app-dock span{font-size:20px;line-height:1}
  .mobile-app-dock small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
}
@media(display-mode:standalone){
  .topbar{padding-top:env(safe-area-inset-top)}
  .mobile-app-dock{bottom:max(10px,env(safe-area-inset-bottom))}
}
