/* VIC iOS web wallet — match Android identity screen, no BrandMe chrome */
html, body {
  margin: 0;
  background: #f3f4f6;
  color: #0d172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ios-app {
  min-height: 100dvh;
  padding: 0;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: #f3f4f6;
}
.ios-appbar {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #9e9e9e;
  padding-top: env(safe-area-inset-top);
}
body[data-screen="licence"] .ios-appbar,
body[data-screen="identity"] .ios-appbar,
body[data-screen="age"] .ios-appbar {
  display: none;
}
.ios-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 0 4px 0 16px;
}
.ios-toolbar-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0d172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ios-toolbar-gear {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #0d172a;
  display: grid;
  place-items: center;
}
.ios-screen[hidden], [data-panel][hidden] { display: none !important; }
.ios-screen--details { padding-bottom: 24px; background: #fff; }
body[data-screen="home"] .ios-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body[data-screen="home"] .ios-nav {
  position: relative;
  left: auto;
  transform: none;
  flex: 0 0 auto;
}
.ios-screen[data-screen="home"]:not([hidden]) {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ios-home-art, .ios-pullup img {
  display: block;
  width: 100%;
  height: auto;
}
.ios-home-art { flex: 0 0 auto; }
.ios-pullup {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  background: #405b76;
}
.ios-tabs {
  display: flex;
  gap: 4px;
  margin: 10px 16px 0;
  padding: 3px;
  border-radius: 10px;
  background: #eef2f6;
}
.ios-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
}
.ios-tab[aria-selected="true"] {
  background: #004b87;
  color: #fff;
}
.ios-section-h {
  margin-top: 12px;
  padding: 12px 16px;
  background: #f3f4f6;
  font-size: 15px;
  font-weight: 700;
}
.ios-row { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.ios-cardno { display: flex; align-items: center; gap: 10px; }
.ios-reveal {
  border: 0;
  background: none;
  color: #004b87;
  font-weight: 600;
  padding: 4px 0;
}
.ios-nav {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 8;
  background: #fff;
}
body[data-screen="home"] .ios-nav,
body[data-screen="account"] .ios-nav { display: block; }
.ios-nav-art { display: block; width: 100%; height: auto; }
.ios-nav-hit {
  position: absolute;
  left: 0;
  top: 0;
  width: 20%;
  height: 100%;
  border: 0;
  background: transparent;
}
.ios-nav-hit--account { left: auto; right: 0; }
.ios-account { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.ios-account-title { margin: 8px 0 4px; font-size: 28px; }
.ios-account-name { margin: 0; font-weight: 700; }
.ios-muted { color: #6b7280; font-size: 14px; }
.ios-panel {
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.ios-panel-row {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: #1a1a1a;
  border-bottom: 1px solid #f1f5f9;
}
.ios-panel-row:last-child { border-bottom: 0; }
.ios-back {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  font-size: 15px;
  color: #004b87;
  text-decoration: none;
  padding: 8px;
}
.ios-top {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  min-height: 44px;
  padding: calc(8px + env(safe-area-inset-top)) 8px 4px;
  background: #fff;
}
.ios-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
}
.ios-refreshed {
  margin: 0 16px 8px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}
.ios-banner {
  margin: 0 16px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.ios-banner a { color: inherit; font-weight: 700; }
.ios-banner--trial { background: #eff6ff; color: #1e3a8a; }
.ios-banner--lock { background: #fef2f2; color: #991b1b; }
.ios-card-wrap { padding: 0; }
.ios-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  aspect-ratio: 596 / 461;
  overflow: hidden;
  cursor: pointer;
}
.ios-card-bg {
  display: block;
  width: 100%;
  height: auto;
}
.ios-card-header {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% * 85 / 461);
  object-fit: fill;
  pointer-events: none;
}
.ios-photo-slot {
  position: absolute;
  left: calc(100% * 31 / 596);
  top: calc(100% * 115 / 461);
  width: calc(100% * 253 / 596);
  height: calc(100% * 322 / 461);
  overflow: hidden;
  background: #e5e7eb;
}
.ios-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ios-photo--empty { background: #d1d5db; }
.ios-holo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}
.ios-fields { padding: 8px 16px 0; }
.ios-name {
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  padding: 12px 0 8px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.ios-label {
  display: block;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 4px;
}
.ios-grid p, .ios-address {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  white-space: pre-line;
}
.ios-address { margin-top: 4px; }
.ios-empty { padding: 48px 24px; text-align: center; }
.ios-empty a { color: #004b87; }
.ios-a2hs {
  margin: 20px 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: 14px;
}
.ios-qr {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  z-index: 20;
}
.ios-qr[hidden] { display: none; }
.ios-qr-sheet {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
}
.ios-qr-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ios-qr-bar p { margin: 0; font-weight: 700; }
.ios-qr-close {
  border: 0;
  background: none;
  color: #004b87;
  font-size: 16px;
  padding: 8px;
}
.ios-qr-time { text-align: center; color: #6b7280; font-size: 14px; }
.ios-qr-img {
  display: block;
  width: min(72vw, 280px);
  height: auto;
  margin: 8px auto 0;
}
.ios-qr-err { color: #991b1b; text-align: center; }
.ios-rule {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 16px 0;
}
.ios-sig {
  display: block;
  max-width: 220px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 8px;
}
.ios-sig-text {
  margin: 0 0 8px;
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 24px;
  font-weight: 700;
  color: #0d172a;
}
.ios-type-note {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  color: #0d172a;
}
.ios-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ios-status img { display: block; }
.ios-barcode {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.ios-barcode img {
  flex: 1;
  height: 68px;
  width: auto;
  max-width: calc(100% - 48px);
  object-fit: contain;
  object-position: left center;
}
.ios-barcode-expand {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #0d172a;
  display: grid;
  place-items: center;
}
.ios-barcode-sheet {
  min-height: 70dvh;
  border-radius: 0;
}
.ios-barcode-heading {
  margin: 12px 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.ios-barcode-full {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0;
}
.ios-barcode-note {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}
.ios-signedout {
  padding: 48px 24px 24px;
  text-align: center;
}
.ios-signedout h1 { font-size: 22px; margin: 12px 0 8px; }
.ios-signedout p { color: #4b5563; line-height: 1.45; }
.ios-signedout-btn {
  display: inline-block;
  margin: 16px 0;
  padding: 12px 22px;
  border-radius: 10px;
  background: #004b87;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.ios-wiz-body {
  margin: 0;
  min-height: 100dvh;
  background: #f3f4f6;
  color: #0d172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ios-wiz {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}
.ios-wiz-head {
  text-align: center;
  margin-bottom: 18px;
}
.ios-wiz-icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 12px;
}
.ios-wiz-head h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px;
}
.ios-wiz-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #6b7280;
}
.ios-wiz-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
}
.ios-wiz-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 8px;
  min-width: 0;
}
.ios-wiz-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
  display: block;
  background: #e5e7eb;
}
.ios-wiz-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #374151;
}
.ios-wiz-done {
  display: block;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #004b87;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.ios-wiz-done:active {
  filter: brightness(0.96);
}
