/* =========================
   BASE
========================= */

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#0f172a;
  color:#e5e7eb;
}

.wrap{
  max-width:860px;
  margin:8px auto;
  padding:0 16px;
}

.card{
  background:#111827;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  
  padding:28px;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}

.brand img{
  width:170px;
  max-width:70vw;
}

/* =========================
   TEXT BLOCKS
========================= */

.msg{
  margin-top:10px;
  font-size:1rem;
  opacity:.92;
  text-align:left;
  line-height:1.6;
}

.sub{
  font-size:.85rem;
  opacity:.85;
  text-align:center;
  margin-top:6px;
}

h1{
  margin:0;
  font-size:1rem;
  font-weight:800;
  text-align:center;
}

/* =========================
   INSTALL PROGRESS
========================= */

.bar{
  margin-top:24px;
  height:14px;
  background:rgba(255,255,255,.08);
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}

.bar>div{
  height:100%;
  width:0%;
  background:rgba(201,173,115,.95);
  transition:width .2s linear;
}

.meta{
  display:flex;
  justify-content:space-between;
  font-size:.8rem;
  margin-top:10px;
  opacity:.85;
}

/* =========================
   ACTION BUTTONS
========================= */

.actions{
  display:flex;
  justify-content:center;
  margin-top:24px;
}

button{
  border:1px solid rgba(201,173,115,.95);
  background:rgba(201,173,115,.95);
  color:#111827;
  padding:10px 18px;
  border-radius:12px;
  font-weight:800;
  font-size:.9rem;
  cursor:pointer;
}

button:disabled{
  opacity:.5;
  cursor:not-allowed;
}

/* =========================
   HEADER / FOOTER
========================= */

.app-header,
.app-footer{
  position:fixed !important;
  left:0;
  right:0;
  z-index:1000;
}

.app-footer{
  bottom:0;

  height:var(--spv-footer-h);
  padding:6px 0;
  padding-bottom:var(--spv-safe-bottom);

  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;

  text-align:center;
  font-size:.6rem;
  line-height:1.15;

  color:#777;
  background:#111827;
  border-top:1px solid #2a3344;

  z-index:8000;
}

/* =========================
   GENERIC FOOTER TEXT
========================= */

.footer{
  margin-top:28px;
  text-align:center;
  font-size:.75rem;
  opacity:.65;
}

/* =========================
   WEBKIT / SAFARI HARDENING
========================= */

html{
  -webkit-text-size-adjust:100% !important;
}

body{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-tap-highlight-color:transparent;
}

button{
  -webkit-appearance:none !important;
  appearance:none !important;
  touch-action:manipulation;
}

img{
  -webkit-user-drag:none;
}

.wrap{
  width:100%;
  box-sizing:border-box;
}

/* iOS Safari input zoom prevention */
input,
textarea,
select,
button{
  font-size:16px !important;
}

/* prevent accidental horizontal overflow */
body{
  overflow-x:hidden !important;
}

.app-main{
  top:30px !important;
}

.text-scroll{
  max-height:60vh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}

@media (max-width:768px){
  .text-scroll{
    max-height:45vh;
  }
}
