:root {
  color-scheme: dark;
  --ink: #f5f8ff;
  --muted: #aab8cf;
  --blue: #3f8cff;
  --blue-deep: #155cda;
  --line: rgba(196, 216, 247, .17);
  --glass: rgba(12, 30, 57, .76);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #07152c; scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #07152c;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before,
body::after { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; }
body::before {
  background: url("/assets/sg7-login-background-night.jpg") center 48% / cover no-repeat;
  transform: scale(1.025);
}
body::after {
  background:
    radial-gradient(ellipse at 68% 15%, rgba(34, 117, 234, .42), transparent 36%),
    radial-gradient(ellipse at 8% 88%, rgba(226, 27, 66, .18), transparent 36%),
    linear-gradient(105deg, rgba(4, 14, 31, .88), rgba(6, 24, 51, .77) 52%, rgba(5, 18, 38, .65));
}

.install-shell { width: min(1320px, 100%); margin: 0 auto; padding: 22px 38px max(24px, env(safe-area-inset-bottom)); }
.install-header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 2px 20px; border-bottom: 1px solid rgba(222, 235, 255, .14); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(255,255,255,.76); border-radius: 16px; background: #fff; box-shadow: 0 9px 30px rgba(0,0,0,.2); }
.brand-mark img { display: block; width: 43px; height: 43px; object-fit: contain; }
.brand-copy { display: grid; gap: 4px; }
.brand b { font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.brand small { color: #afc4e1; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.secure-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid rgba(214,231,255,.17); border-radius: 999px; color: #c8d9ee; background: rgba(255,255,255,.07); font-size: 11px; font-weight: 700; }
.secure-chip i,.eyebrow i,.preview-live-dot,.qr-card em i { width: 7px; height: 7px; border-radius: 50%; background: #58dfa8; box-shadow: 0 0 15px rgba(88,223,168,.8); }
.header-login { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid rgba(214,231,255,.21); border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; text-decoration: none; transition: background .2s, transform .2s; }
.header-login:hover { transform: translateY(-1px); background: rgba(255,255,255,.15); }

.install-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: clamp(20px, 4vw, 58px);
  align-items: center;
  min-height: 610px;
  margin-top: 26px;
  padding: clamp(36px, 5.4vw, 76px) clamp(30px, 5.2vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(223,237,255,.2);
  border-radius: 34px;
  background: linear-gradient(120deg, rgba(7,24,49,.83), rgba(9,34,69,.69) 55%, rgba(14,44,82,.58));
  box-shadow: 0 32px 100px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
}
.install-hero::before { position: absolute; inset: 0; content: ""; pointer-events: none; background: radial-gradient(ellipse at 20% 0%, rgba(69,142,247,.2), transparent 50%); }
.install-hero::after { position: absolute; top: -130px; right: 38%; width: 310px; height: 310px; content: ""; border: 1px solid rgba(198,222,255,.08); border-radius: 50%; box-shadow: 0 0 0 36px rgba(198,222,255,.025), 0 0 0 74px rgba(198,222,255,.018); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgba(130,184,255,.24); border-radius: 999px; color: #bdd7ff; background: rgba(49,118,210,.15); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.eyebrow i { width: 6px; height: 6px; }
.hero-copy h1 { margin: 25px 0 18px; color: #fff; font-size: clamp(46px, 6vw, 76px); font-weight: 800; line-height: .99; letter-spacing: -.065em; }
.hero-copy h1 span { color: #9ec7ff; background: linear-gradient(95deg, #cce1ff 0%, #74adff 55%, #ff8399 110%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy > p:not(.install-feedback) { max-width: 520px; margin: 0; color: #c2d0e4; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; margin-top: 28px; }
.install-button,.open-button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 0 21px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; color: #fff; font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.install-button { border-color: rgba(158,196,255,.44); background: linear-gradient(120deg, #438fff, #155fdf); box-shadow: 0 12px 30px rgba(20,93,220,.32), inset 0 1px rgba(255,255,255,.25); }
.install-button:hover,.open-button:hover { transform: translateY(-2px); }
.install-button:hover { box-shadow: 0 17px 35px rgba(20,93,220,.42), inset 0 1px rgba(255,255,255,.32); }
.install-button[hidden] { display: none !important; }
.button-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.2); font-size: 19px; font-weight: 500; line-height: 1; }
.open-button { border-color: rgba(222,235,255,.24); background: rgba(255,255,255,.075); }
.open-button:hover { background: rgba(255,255,255,.14); }
.open-button span { color: #a9ccff; font-size: 18px; }
.install-feedback { min-height: 18px; margin: 11px 0 0; color: #c7d9f2; font-size: 12px; line-height: 1.5; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 25px; color: #b9cbe3; font-size: 10px; font-weight: 650; }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points b { display: grid; width: 16px; height: 16px; place-items: center; border: 1px solid rgba(93,222,175,.32); border-radius: 50%; color: #67e5b0; background: rgba(62,196,145,.1); font-size: 10px; }

.install-preview { position: relative; z-index: 1; display: grid; min-height: 490px; place-items: center; perspective: 1000px; }
.preview-orbit { position: absolute; top: 50%; left: 50%; width: 430px; height: 430px; border: 1px solid rgba(180,211,255,.1); border-radius: 50%; transform: translate(-50%,-50%); }
.preview-orbit-two { width: 350px; height: 350px; border-color: rgba(180,211,255,.12); }
.phone-frame { position: relative; z-index: 1; width: 266px; height: 492px; padding: 7px; overflow: hidden; border: 1px solid rgba(255,255,255,.68); border-radius: 36px; background: linear-gradient(145deg,#f4f7fb,#8d9db5 20%,#101c31 33%,#dbe5f2 52%,#5d6d83 70%,#0e1727); box-shadow: 0 36px 75px rgba(0,0,0,.44), 0 0 55px rgba(72,144,255,.18), inset 0 0 0 1px rgba(255,255,255,.38); transform: rotateY(-8deg) rotateX(2deg); }
.phone-screen { position: relative; display: flex; height: 100%; flex-direction: column; padding: 14px 13px 10px; overflow: hidden; border-radius: 29px; color: #192b49; background: linear-gradient(180deg,#fff,#f7f9fc); }
.phone-status { display: flex; justify-content: space-between; padding: 1px 5px 13px; color: #192b49; font-size: 9px; font-weight: 800; }
.phone-status-icons { letter-spacing: 2px; font-size: 8px; }
.phone-brand { display: flex; align-items: center; gap: 8px; padding: 3px 1px 12px; }
.phone-brand img { width: 34px; height: 34px; object-fit: contain; }
.phone-brand > span:nth-child(2) { display: grid; gap: 1px; }
.phone-brand b { font-size: 12px; letter-spacing: -.3px; }
.phone-brand small { color: #8292a9; font-size: 6px; font-weight: 800; letter-spacing: .12em; }
.phone-menu { margin-left: auto; color: #6d809d; font-size: 17px; letter-spacing: 1px; }
.phone-search { display: flex; height: 34px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #e9eef5; border-radius: 11px; color: #8b9ab0; background: #f6f8fb; font-size: 8px; }
.phone-search span { color: #4676b8; font-size: 18px; line-height: 1; }
.phone-inbox-heading { display: flex; align-items: end; justify-content: space-between; padding: 17px 2px 10px; }
.phone-inbox-heading div { display: grid; gap: 3px; }
.phone-inbox-heading small { color: #8b9bb1; font-size: 6px; font-weight: 850; letter-spacing: .12em; }
.phone-inbox-heading b { color: #152a4c; font-size: 18px; letter-spacing: -.6px; }
.phone-inbox-heading > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 8px; color: #fff; background: #2774ed; font-size: 8px; font-weight: 800; }
.phone-message { display: flex; min-height: 70px; align-items: center; gap: 9px; border-top: 1px solid #edf0f5; }
.message-avatar { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 850; }
.avatar-blue { color: #1766ce; background: #e4efff; }
.avatar-rose { color: #c73459; background: #ffebf0; }
.avatar-gold { color: #9a6a03; background: #fff2ca; }
.avatar-navy { color: #fff; background: #20375c; }
.message-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.message-copy b,.message-copy strong,.message-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-copy b { color: #203757; font-size: 8px; }
.message-copy strong { color: #3a4d68; font-size: 8px; }
.message-copy small { color: #8b99ad; font-size: 7px; }
.phone-message time { align-self: flex-start; padding-top: 13px; color: #92a1b5; font-size: 6px; }
.phone-message-muted { opacity: .7; }
.phone-bottom-nav { display: flex; justify-content: space-around; gap: 4px; margin: auto -13px -10px; padding: 11px 7px 12px; border-top: 1px solid #e8edf4; background: rgba(255,255,255,.96); }
.phone-bottom-nav span { display: grid; flex: 1; justify-items: center; gap: 4px; color: #8291a7; font-size: 6px; font-weight: 750; }
.phone-bottom-nav i { position: relative; display: block; width: 14px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; }
.phone-bottom-nav i::after { position: absolute; top: 2px; left: 1px; width: 9px; height: 3px; border-top: 1px solid currentColor; content: ""; transform: skewY(28deg); }
.phone-bottom-nav .active { color: #176be5; }
.qr-card { position: absolute; right: -10px; bottom: 22px; z-index: 3; display: flex; width: 232px; align-items: center; gap: 11px; padding: 11px; border: 1px solid rgba(255,255,255,.86); border-radius: 17px; color: #183152; background: rgba(255,255,255,.97); box-shadow: 0 20px 48px rgba(0,0,0,.25); }
.qr-code { display: block; width: 78px; height: 78px; flex: none; object-fit: contain; border-radius: 8px; }
.qr-card > span { display: grid; gap: 5px; }
.qr-card b { font-size: 9px; line-height: 1.3; }
.qr-card small { color: #6f8097; font-size: 8px; line-height: 1.4; }
.qr-card em { display: flex; align-items: center; gap: 5px; color: #71839b; font-size: 7px; font-style: normal; font-weight: 750; }
.qr-card em i { width: 5px; height: 5px; }
.preview-label { position: absolute; top: 31px; right: -4px; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(235,243,255,.7); border-radius: 13px; background: rgba(9,25,49,.83); box-shadow: 0 14px 32px rgba(0,0,0,.2); backdrop-filter: blur(12px); }
.preview-live-dot { width: 7px; height: 7px; flex: none; }
.preview-label span:last-child { display: grid; gap: 3px; }
.preview-label b { color: #eff6ff; font-size: 8px; }
.preview-label small { color: #abc0dc; font-size: 7px; }

.install-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.steps-heading { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 4px 3px; }
.steps-heading > span { color: #9fbde4; font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.steps-heading h2 { margin: 0; color: #f2f6fc; font-size: clamp(18px,2.3vw,25px); letter-spacing: -.04em; }
.step-card { position: relative; display: flex; min-height: 154px; align-items: flex-start; gap: 15px; padding: 22px; border: 1px solid rgba(219,234,255,.16); border-radius: 20px; background: linear-gradient(130deg,rgba(12,32,62,.84),rgba(12,30,56,.64)); box-shadow: 0 15px 40px rgba(0,0,0,.1); backdrop-filter: blur(14px); transition: transform .2s,border-color .2s,background .2s; }
.step-card:hover { transform: translateY(-3px); border-color: rgba(125,177,247,.38); background: linear-gradient(130deg,rgba(17,43,81,.94),rgba(15,36,67,.8)); }
.step-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 1px solid rgba(156,195,255,.2); border-radius: 14px; color: #c6dcff; background: rgba(67,137,234,.18); font-size: 17px; font-weight: 800; }
.platform-icon { border-color: rgba(255,255,255,.86); background: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.13); }
.platform-logo { display: block; width: 28px; height: 28px; object-fit: contain; }
.android-logo { width: 31px; height: 31px; }
.apple-logo { width: 24px; height: 29px; }
.android-attribution { display: block; margin-top: 8px; color: #8498b4; font-size: 7px; line-height: 1.45; }
.step-card > div { max-width: 460px; }
.step-kicker { color: #81b4ff; font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.step-card h3 { margin: 4px 0 7px; color: #f7faff; font-size: 15px; }
.step-card p { margin: 0; color: #adbed5; font-size: 11px; line-height: 1.7; }
.step-card b { color: #e8f1ff; }
.step-arrow { margin: 1px 0 0 auto; color: #8ebaff; font-size: 16px; }
.install-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 4px 5px; color: #a6b6cc; font-size: 10px; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; color: #dfeaff; font-weight: 800; }
.footer-brand img { display: block; padding: 3px; border-radius: 7px; background: #fff; }
.install-footer > a { display: inline-flex; align-items: center; gap: 7px; color: #bed6f7; font-weight: 750; text-decoration: none; }
.install-footer > a:hover { color: #fff; }
body.is-ios #androidInstructions { opacity: .57; }
body.is-android #iosInstructions { opacity: .57; }
body.is-installed .install-button { display: none !important; }

@media (max-width: 980px) {
  .install-shell { padding-right: 25px; padding-left: 25px; }
  .install-hero { grid-template-columns: minmax(0,1fr) minmax(330px,.86fr); padding-right: 38px; padding-left: 38px; }
  .hero-copy h1 { font-size: clamp(44px,6vw,64px); }
  .phone-frame { transform: rotateY(-4deg) scale(.94); }
  .qr-card { right: -18px; }
}
@media (max-width: 760px) {
  .install-shell { padding: 15px 17px max(22px,env(safe-area-inset-bottom)); }
  .install-header { min-height: 56px; padding: 0 1px 15px; }
  .brand-mark { width: 43px; height: 43px; border-radius: 14px; }
  .brand-mark img { width: 37px; height: 37px; }
  .brand b { font-size: 16px; }
  .brand small { font-size: 7px; }
  .header-actions { gap: 8px; }
  .secure-chip { padding: 8px 10px; font-size: 9px; }
  .header-login { padding: 9px 11px; border-radius: 10px; font-size: 10px; }
  .install-hero { grid-template-columns: 1fr; gap: 8px; min-height: 0; margin-top: 16px; padding: 29px 23px 18px; border-radius: 27px; }
  .hero-copy h1 { margin: 20px 0 13px; font-size: clamp(43px,10vw,62px); }
  .hero-copy > p:not(.install-feedback) { max-width: 460px; font-size: 13px; }
  .hero-actions { gap: 9px; margin-top: 21px; }
  .install-button,.open-button { min-height: 50px; flex: 1 1 100%; border-radius: 13px; font-size: 12px; }
  .install-feedback { min-height: 12px; font-size: 11px; }
  .hero-points { display: grid; gap: 8px; margin-top: 14px; font-size: 9px; }
  .install-preview { min-height: 435px; margin: 0 -14px -8px; overflow: hidden; }
  .preview-orbit { width: 340px; height: 340px; }
  .preview-orbit-two { width: 275px; height: 275px; }
  .phone-frame { width: 236px; height: 425px; transform: rotateY(-5deg) scale(.96); }
  .phone-screen { padding-top: 11px; }
  .phone-message { min-height: 59px; }
  .phone-inbox-heading { padding-top: 12px; }
  .qr-card { display: none; }
  .preview-label { top: 20px; right: 2px; padding: 9px 11px; }
  .install-steps { grid-template-columns: 1fr; gap: 10px; margin-top: 13px; }
  .steps-heading { display: block; padding: 17px 3px 5px; }
  .steps-heading h2 { margin-top: 5px; font-size: 20px; }
  .step-card { min-height: 0; padding: 16px; border-radius: 16px; }
  .step-icon { width: 38px; height: 38px; border-radius: 12px; }
  .step-card p { font-size: 10px; }
  .install-footer { flex-wrap: wrap; justify-content: center; padding-top: 18px; text-align: center; line-height: 1.5; }
  .install-footer > span:nth-child(2) { flex-basis: 100%; order: 2; }
  .install-footer > a { order: 3; }
}
@media (max-width: 390px) {
  .install-shell { padding-right: 12px; padding-left: 12px; }
  .install-hero { padding-right: 18px; padding-left: 18px; }
  .secure-chip { display: none; }
  .hero-copy h1 { font-size: 42px; }
  .preview-label { right: -3px; }
  .preview-label b { font-size: 7px; }
  .preview-label small { font-size: 6px; }
  .step-card { gap: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
