:root {
  color-scheme: light;
  --blue: #087bff;
  --blue-deep: #0567dc;
  --blue-soft: #e8f2ff;
  --green: #12b957;
  --green-soft: #e9f9ef;
  --orange: #ff9418;
  --orange-soft: #fff4e4;
  --red: #fa3d45;
  --red-soft: #fff0f1;
  --ink: #101522;
  --muted: #778092;
  --line: #e8ebf1;
  --surface: rgba(255, 255, 255, .88);
  --shadow: 0 18px 50px rgba(30, 72, 128, .11);
  --radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #f6f8fc; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(8, 123, 255, .10), transparent 30rem),
    linear-gradient(180deg, #fbfdff, #f5f7fb 65%, #f8f9fc);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.ambient {
  position: fixed;
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .2;
  pointer-events: none;
}
.ambient-one { right: -160px; top: 16%; background: #51a8ff; }
.ambient-two { left: -180px; bottom: 4%; background: #a7ccff; }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.topbar, .admin-header, .sheet-title-row, .admin-toolbar, .certificate-head, .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar { min-height: 42px; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 13px; font-weight: 750; letter-spacing: -.01em; }
.brand-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 10px; box-shadow: inset 0 0 0 1px rgba(8,123,255,.08); }
.secure-pill { display: inline-flex; align-items: center; gap: 6px; color: #576276; font-size: 11px; font-weight: 650; }
.secure-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18,185,87,.12); }

.main-content { flex: 1; display: grid; align-items: center; padding: 18px 0 10px; }
.state-card { width: 100%; animation: page-in .55s cubic-bezier(.2,.9,.2,1) both; }
.hero { text-align: center; padding: 4px 6px 18px; }
.status-visual {
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  animation: hero-pop .7s cubic-bezier(.17,.89,.32,1.35) both;
}
.status-visual svg { width: 100%; height: 100%; overflow: visible; }
.hero h1 { margin: 0 0 6px; font-size: clamp(30px, 9vw, 40px); line-height: 1.02; letter-spacing: -.045em; }
.hero p { margin: 0; color: #343b49; font-size: 15px; line-height: 1.35; }
.date-line { margin-top: 10px !important; color: #9aa1ad !important; font-size: 11px !important; }

.section-label { margin: 6px 4px 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; }
.section-label .mini-icon { color: var(--blue); }
.details-card, .notice-card, .download-card, .dispute-card {
  border: 1px solid rgba(220, 225, 234, .88);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(42, 72, 120, .06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
}
.details-card { padding: 16px; }
.detail-row { display: grid; grid-template-columns: minmax(100px, .9fr) 1.35fr; gap: 10px; padding: 6px 0; align-items: start; }
.detail-row + .detail-row { border-top: 1px solid #f0f2f6; }
.detail-row span { color: var(--muted); font-size: 13px; }
.detail-row strong { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; text-align: right; }
.code-value { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .04em; }
.status-chip { justify-self: end; display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: 11px !important; }
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-chip.ready { color: #079445; background: var(--green-soft); }
.status-chip.creating { color: #d97600; background: var(--orange-soft); }
.status-chip.revoked { color: #dc2630; background: var(--red-soft); }

.notice-card { margin-top: 12px; padding: 14px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.notice-card .notice-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; }
.notice-card strong { display: block; margin: 0 0 3px; font-size: 13px; }
.notice-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.notice-card.blue { background: rgba(230, 242, 255, .9); border-color: #d9eaff; }
.notice-card.blue .notice-icon { color: var(--blue); background: white; }
.notice-card.orange { background: rgba(255, 245, 230, .92); border-color: #ffe8c6; }
.notice-card.orange .notice-icon { color: var(--orange); background: white; }

.download-card { margin-top: 12px; padding: 6px; }
.download-link { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 15px; color: var(--ink); text-decoration: none; transition: background .2s, transform .2s; }
.download-link + .download-link { border-top: 1px solid #f0f2f6; }
.download-link:active { transform: scale(.985); background: #f4f7fb; }
.file-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 19px; }
.download-link span { min-width: 0; flex: 1; }
.download-link strong, .download-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-link strong { font-size: 13px; }
.download-link small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.download-arrow { color: var(--blue); font-weight: 800; }

.primary-button, .secondary-button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, #1687ff, #0873ee);
  box-shadow: 0 10px 24px rgba(8, 123, 255, .25);
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s, filter .18s;
}
.primary-button:active, .secondary-button:active { transform: scale(.975); filter: brightness(.96); }
.primary-button.full, .secondary-button.full { width: 100%; margin-top: 14px; }
.secondary-button { color: var(--blue); background: var(--blue-soft); box-shadow: none; }
.secondary-button.danger { color: #d92934; background: var(--red-soft); }
.compact { min-height: 44px; border-radius: 14px; padding: 0 15px; }

.not-found-copy { margin: 6px 4px 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.not-found-copy p { margin: 0 0 11px; }
.search-again { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-again input { min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: 15px; padding: 0 14px; outline: none; background: white; text-transform: uppercase; }
.search-again button { width: 48px; height: 48px; border: 0; border-radius: 15px; color: white; background: var(--blue); font-size: 19px; }

.dispute-card { padding: 18px; }
.dispute-card h2 { margin: 0 0 8px; font-size: 20px; }
.dispute-card p, .dispute-card li { color: var(--muted); font-size: 12px; line-height: 1.45; }
.dispute-card ol { padding-left: 19px; }
.dispute-card .download-card { box-shadow: none; }
.email-link { display: flex; align-items: center; gap: 10px; padding: 13px 2px 1px; color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 700; }

.footer { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #161b25; font-size: 14px; font-weight: 800; }
.footer small { color: #a2a9b5; font-size: 9px; font-weight: 600; margin-left: 2px; }
.apple { font-size: 10px; color: #111; }

.skeleton { border-radius: 50%; background: #e8edf4; }
.skeleton-line, .skeleton-panel { background: linear-gradient(90deg, #edf1f6 25%, #f8fafc 50%, #edf1f6 75%); background-size: 220% 100%; animation: shimmer 1.35s infinite; }
.skeleton-line { width: 55%; height: 16px; margin: 9px auto; border-radius: 8px; }
.skeleton-line.wide { width: 78%; height: 32px; }
.skeleton-panel { height: 170px; margin-top: 28px; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); max-width: calc(100% - 32px); padding: 11px 15px; border-radius: 14px; color: white; background: rgba(20, 25, 36, .92); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Admin */
.admin-body { background: #f4f7fb; }
.admin-shell { position: relative; z-index: 1; width: min(100%, 760px); min-height: 100dvh; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px 80px; }
.admin-header { align-items: flex-start; padding: 6px 2px 20px; }
.admin-header h1 { margin: 18px 0 4px; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.admin-header p { margin: 0; color: var(--muted); font-size: 13px; }
.icon-button { width: 44px; height: 44px; border: 1px solid white; border-radius: 15px; background: rgba(255,255,255,.78); box-shadow: 0 8px 22px rgba(30,72,128,.08); font-size: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 16px; }
.stat-card { min-width: 0; padding: 13px; border: 1px solid white; border-radius: 18px; background: rgba(255,255,255,.8); box-shadow: 0 7px 20px rgba(30,72,128,.06); }
.stat-card span { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card strong { display: block; margin-top: 4px; font-size: 25px; letter-spacing: -.04em; }
.stat-card.ready strong { color: var(--green); }
.stat-card.creating strong { color: var(--orange); }
.stat-card.revoked strong { color: var(--red); }
.admin-toolbar { margin: 8px 0 12px; }
.search-box { min-width: 0; flex: 1; height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid white; border-radius: 14px; background: rgba(255,255,255,.85); box-shadow: 0 6px 20px rgba(30,72,128,.05); }
.search-box span { color: var(--muted); font-size: 21px; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.filter-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs button { flex: 0 0 auto; height: 34px; padding: 0 13px; border: 0; border-radius: 999px; color: #667085; background: #e9edf4; font-size: 12px; font-weight: 700; }
.filter-tabs button.active { color: white; background: var(--ink); }
.certificate-list { display: grid; gap: 10px; }
.admin-certificate { padding: 15px; border: 1px solid white; border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 8px 25px rgba(30,72,128,.06); animation: page-in .35s both; }
.certificate-head { align-items: flex-start; }
.certificate-device { min-width: 0; display: flex; gap: 11px; align-items: center; }
.device-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: var(--blue); background: var(--blue-soft); font-size: 19px; }
.certificate-device h3 { margin: 0 0 4px; font-size: 14px; }
.certificate-device p { margin: 0; max-width: 310px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.certificate-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 12px; }
.meta-box { padding: 10px; border-radius: 13px; background: #f7f9fc; }
.meta-box span { display: block; color: var(--muted); font-size: 9px; }
.meta-box strong { display: block; margin-top: 3px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.certificate-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; }
.certificate-actions button { min-height: 38px; border: 0; border-radius: 12px; padding: 0 12px; font-size: 11px; font-weight: 750; }
.copy-button { color: var(--blue); background: var(--blue-soft); }
.edit-button { color: #4f596b; background: #f0f3f7; }
.files-badge { color: #0c9848; background: var(--green-soft); }
.files-badge.missing { color: #c4740f; background: var(--orange-soft); }
.admin-empty { padding: 42px 20px; text-align: center; color: var(--muted); font-size: 13px; }

.sheet-dialog { width: min(100% - 20px, 520px); max-height: calc(100dvh - 22px); margin: auto auto 8px; padding: 0; border: 0; border-radius: 28px 28px 22px 22px; color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(21,43,80,.25); overflow: auto; }
.sheet-dialog::backdrop { background: rgba(14, 22, 36, .38); backdrop-filter: blur(4px); }
.sheet-dialog[open] { animation: sheet-up .35s cubic-bezier(.2,.85,.2,1) both; }
.sheet-dialog form { padding: 9px 18px max(20px, env(safe-area-inset-bottom)); }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 13px; border-radius: 99px; background: #d7dbe3; }
.sheet-title-row { align-items: flex-start; margin-bottom: 16px; }
.sheet-title-row h2 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.035em; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.close-button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #687184; background: #f0f2f6; font-size: 23px; line-height: 1; }
.field { display: block; margin: 0 0 11px; }
.field > span { display: block; margin: 0 0 6px 2px; color: #5b6473; font-size: 11px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: #f9fafc; transition: border-color .2s, box-shadow .2s; }
.field input, .field select { height: 46px; padding: 0 12px; }
.field textarea { padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(8,123,255,.5); box-shadow: 0 0 0 4px rgba(8,123,255,.09); }
.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.file-picker { min-width: 0; min-height: 66px; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px dashed #cdd5e1; border-radius: 15px; background: #fbfcfe; cursor: pointer; }
.file-picker input { display: none; }
.file-picker b { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 10px; }
.file-picker span { min-width: 0; }
.file-picker strong, .file-picker small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-picker strong { font-size: 10px; }
.file-picker small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-error { min-height: 16px; margin: 8px 2px 0; color: var(--red); font-size: 11px; }

@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes hero-pop { from { opacity: 0; transform: translateY(8px) scale(.82); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(60px) scale(.98); } }

@media (min-width: 640px) {
  .admin-shell { padding-left: 28px; padding-right: 28px; }
  .certificate-list { grid-template-columns: 1fr 1fr; }
  .sheet-dialog { margin: auto; border-radius: 28px; }
}

@media (max-width: 360px) {
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: 29px; }
  .status-visual { width: 102px; height: 102px; }
  .certificate-actions { grid-template-columns: 1fr 1fr; }
  .certificate-actions button:first-child { grid-column: 1 / -1; }
  .file-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* User Mini App — faithful 360 × 780 reference layout */
.user-body {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: #fff;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.user-body .ambient { display: none; }

.reference-app {
  width: min(100%, 390px);
  height: 100dvh;
  min-height: 0;
  padding: max(7px, env(safe-area-inset-top)) 15px max(7px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: #fff;
}

.reference-topbar {
  flex: 0 0 30px;
  min-height: 30px;
  align-items: center;
}

.reference-brand { display: flex; align-items: center; gap: 4px; color: #007aff; font-size: 11px; font-weight: 500; }
.reference-brand img { width: 16px; height: 16px; }
.reference-domain { color: #007aff; font-size: 10px; font-weight: 500; }

.reference-app .main-content {
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: hidden;
}

.reference-footer {
  flex: 0 0 27px;
  min-height: 27px;
  padding-top: 5px;
}
.reference-footer img { display: block; width: 102px; height: auto; }

.reference-screen {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: #000;
  animation: reference-in .35s ease-out both;
}

.reference-hero { flex: 0 0 auto; width: 100%; text-align: center; }
.compact-hero { padding-top: 30px; }
.reference-main-icon { display: block; width: 106px; height: 106px; margin: 0 auto 14px; object-fit: contain; }
.reference-hero h1 { margin: 0; font-size: 29px; line-height: 1.08; letter-spacing: -.045em; font-weight: 740; }
.reference-hero > p { margin: 3px 0 0; font-size: 14px; line-height: 1.15; color: #000; }
.reference-meta { margin-top: 9px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #999; font-size: 8px; white-space: nowrap; }
.reference-meta span { display: inline-flex; align-items: center; gap: 2px; }
.reference-meta img { width: 8px; height: 8px; opacity: .7; }
.reference-meta i { font-style: normal; color: #aaa; }
.reference-meta .accent { color: #ff9602; }

.reference-section { flex: 0 0 auto; width: 300px; max-width: 100%; margin-top: 17px; }
.reference-section > h2 { display: flex; align-items: center; gap: 4px; margin: 0 0 9px 4px; font-size: 15px; font-weight: 450; }
.reference-section > h2 img { width: 14px; height: 14px; }
.reference-tech-card { min-height: 105px; padding: 10px 13px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; }
.reference-tech-card h3 { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; font-size: 12px; font-weight: 450; }
.reference-tech-card h3 img { width: 13px; height: 13px; }
.reference-tech-card p { display: flex; align-items: baseline; min-width: 0; margin: 2px 0; font-size: 14px; line-height: 1.12; }
.reference-tech-card p b { flex: 0 0 auto; font-weight: 450; }
.reference-tech-card p span { margin-left: 5px; min-width: 0; overflow: hidden; color: #aaa; text-overflow: ellipsis; white-space: nowrap; }
.reference-status { margin-left: 6px; padding: 2px 6px; border-radius: 3px; color: #fff; font-size: 8px; font-style: normal; line-height: 1; }
.reference-status.ready { background: #69d592; }
.reference-status.creating { background: #ffb54c; }
.reference-status.revoked { background: #ff1616; }

.reference-files { flex: 0 0 auto; width: 300px; max-width: 100%; margin-top: 10px; padding: 8px 11px; border: 1px solid #e6e6e6; border-radius: 12px; background: #fff; }
.reference-files a, .reference-files .empty-file { min-height: 30px; display: flex; align-items: center; gap: 8px; color: #999; text-decoration: none; font-size: 13px; }
.reference-files a + a, .reference-files .empty-file + .empty-file { margin-top: 3px; }
.reference-files img { width: 22px; height: 22px; flex: 0 0 auto; }
.reference-files span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-files b { color: #999; font-size: 14px; font-weight: 400; transform: rotate(180deg); }

.reference-verified { flex: 0 0 auto; width: 300px; max-width: 100%; min-height: 67px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: #dceeff; }
.reference-verified h3 { margin: 0 0 4px; font-size: 10px; font-weight: 500; }
.reference-verified h3 span { display: inline-grid; width: 11px; height: 11px; margin-right: 3px; place-items: center; border-radius: 50%; color: #fff; background: #007aff; font-size: 7px; }
.reference-verified p { margin: 0; color: #999; font-size: 9px; line-height: 1.16; }

.reference-home-button {
  flex: 0 0 auto;
  height: 34px;
  margin-top: 10px;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  background: #007aff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
}
.reference-home-button.wide { width: 294px; max-width: 100%; }
.reference-home-button.round { width: 34px; padding: 0; border-radius: 50%; }
.reference-home-button img { width: 14px; height: 14px; }
.reference-actions { flex: 0 0 auto; width: 300px; max-width: 100%; display: flex; justify-content: center; gap: 10px; }
.reference-actions.split .reference-home-button.wide { width: auto; }
.reference-actions .dispute-button { width: 144px; }

.success-icon { width: 108px; height: 108px; }
.ready-screen .compact-hero { padding-top: 43px; }
.ready-screen .reference-section { margin-top: 18px; }

.purchase-hero { padding-top: 43px; }
.purchase-icon { width: 108px; height: 108px; margin-bottom: 13px; }
.reference-progress-card { flex: 0 0 auto; width: 300px; max-width: 100%; min-height: 73px; margin-top: 24px; padding: 9px 12px; border-radius: 11px; background: #f4f4f5; }
.reference-progress-card h3 { display: flex; align-items: center; gap: 4px; margin: 0 0 5px; font-size: 12px; font-weight: 450; }
.reference-progress-card h3 img { width: 13px; height: 13px; }
.reference-progress-card h3 span { margin-left: auto; color: #aaa; }
.reference-progress-card p { margin: 0; color: #aaa; font-size: 9px; line-height: 1.13; }
.purchase-screen .reference-section { margin-top: 12px; }

.reference-revoked-icon { position: relative; width: 104px; height: 104px; margin: 0 auto 19px; border: 7px solid red; border-radius: 50%; }
.reference-revoked-icon i, .reference-revoked-icon b { position: absolute; left: 24px; top: 45px; width: 44px; height: 7px; border-radius: 5px; background: red; transform: rotate(45deg); }
.reference-revoked-icon b { transform: rotate(-45deg); }
.revoked-screen .compact-hero { padding-top: 41px; }
.reference-alert { flex: 0 0 auto; width: 300px; max-width: 100%; min-height: 73px; margin-top: 13px; padding: 10px 12px; border-radius: 12px; }
.orange-alert { background: #fff0db; }
.reference-alert h3 { display: flex; align-items: center; gap: 4px; margin: 0 0 5px; font-size: 10px; font-weight: 450; }
.reference-alert h3 img { width: 13px; height: 13px; }
.reference-alert p { margin: 0; color: #999; font-size: 9px; line-height: 1.15; }

.missing-hero { padding-top: 39px; }
.missing-icon { width: 96px; height: 96px; margin-bottom: 11px; }
.missing-hero h1 { font-size: 27px; }
.reference-missing-copy { flex: 0 0 auto; width: 286px; max-width: 100%; margin-top: 13px; color: #aaa; }
.reference-missing-copy p { margin: 0 0 10px; font-size: 10px; line-height: 1.16; }
.reference-code-form { flex: 0 0 auto; width: 294px; max-width: 100%; display: grid; grid-template-columns: 1fr 81px; gap: 5px; }
.reference-code-form input, .reference-code-form button { height: 32px; border-radius: 9px; font-size: 9px; }
.reference-code-form input { min-width: 0; border: 1px solid #e5e5e5; padding: 0 9px; outline: none; text-transform: uppercase; user-select: text; -webkit-user-select: text; }
.reference-code-form button { border: 0; color: #fff; background: #007aff; }
.missing-screen .reference-home-button { margin-top: 7px; }

.dispute-hero { padding-top: 30px; }
.dispute-icon { width: 96px; height: 96px; margin-bottom: 13px; }
.reference-dispute-copy { flex: 0 0 auto; width: 286px; max-width: 100%; margin-top: 10px; color: #999; }
.reference-dispute-copy p, .reference-dispute-copy li { font-size: 9px; line-height: 1.12; }
.reference-dispute-copy p { margin: 0 0 8px; }
.reference-dispute-copy ol { margin: 0 0 9px; padding-left: 15px; }
.reference-dispute-copy a { color: #007aff; text-decoration: none; }
.dispute-files { margin-top: 1px; }
.reference-email { flex: 0 0 auto; width: 300px; max-width: 100%; height: 42px; margin-top: 8px; padding: 0 13px; border: 1px solid #e6e6e6; border-radius: 11px; display: flex; align-items: center; gap: 8px; color: #888; font-size: 13px; }
.reference-email img { width: 23px; height: 23px; flex: 0 0 auto; }
.dispute-screen .reference-home-button { margin-top: 9px; }

.reference-home-hero { flex: 0 0 auto; width: 100%; padding-top: 51px; text-align: center; }
.reference-home-hero > img { width: 117px; height: 117px; }
.reference-home-hero h1 { margin: 15px 0 2px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.reference-home-hero p { margin: 0; font-size: 14px; }
.reference-home-hero small { display: block; margin-top: 7px; color: #aaa; font-size: 8px; }
.home-screen .reference-verified { margin-top: 12px; }
.reference-info-title { width: 300px; max-width: 100%; margin: 17px 0 13px; font-size: 15px; font-weight: 450; }
.reference-rings { flex: 0 0 auto; width: 300px; max-width: 100%; display: flex; justify-content: space-between; }
.reference-ring-wrap { width: 89px; text-align: center; color: #999; font-size: 9px; }
.reference-ring { width: 71px; height: 71px; margin: 0 auto 7px; padding: 8px; border-radius: 50%; background: conic-gradient(var(--ring) calc(var(--value) * 1%), #d8d8d8 0); transform: rotate(-90deg); }
.reference-ring > div { width: 55px; height: 55px; border-radius: 50%; display: grid; align-content: center; background: #fff; transform: rotate(90deg); }
.reference-ring b { display: block; color: #333; font-size: 16px; font-weight: 400; line-height: 1; }
.reference-ring small { color: #777; font-size: 6px; }
.reference-back-certificate { flex: 0 0 auto; height: 31px; margin-top: 13px; padding: 0 14px; border: 0; border-radius: 10px; color: #007aff; background: #e7f2ff; font-size: 10px; }

.user-body input, .user-body textarea { touch-action: manipulation; }

@keyframes reference-in { from { opacity: 0; transform: translateY(4px); } }

@media (max-height: 720px) {
  .reference-main-icon { width: 82px; height: 82px; margin-bottom: 8px; }
  .compact-hero, .ready-screen .compact-hero, .purchase-hero, .revoked-screen .compact-hero, .missing-hero, .dispute-hero { padding-top: 12px; }
  .reference-hero h1 { font-size: 25px; }
  .reference-section { margin-top: 9px; }
  .reference-tech-card { min-height: 91px; padding-top: 7px; padding-bottom: 7px; }
  .reference-tech-card p { font-size: 12px; }
  .reference-progress-card { min-height: 59px; margin-top: 9px; padding-top: 7px; padding-bottom: 7px; }
  .reference-verified { min-height: 53px; padding-top: 7px; padding-bottom: 7px; }
  .reference-files { padding-top: 4px; padding-bottom: 4px; }
  .reference-home-button { height: 30px; margin-top: 6px; }
  .reference-missing-copy { margin-top: 7px; }
  .reference-missing-copy p { margin-bottom: 6px; font-size: 9px; }
  .reference-dispute-copy { margin-top: 5px; }
  .reference-dispute-copy p, .reference-dispute-copy li { font-size: 8px; }
  .reference-dispute-copy p { margin-bottom: 5px; }
  .reference-dispute-copy ol { margin-bottom: 5px; }
  .reference-home-hero { padding-top: 20px; }
  .reference-home-hero > img { width: 94px; height: 94px; }
}

@media (max-height: 620px) {
  .reference-topbar { flex-basis: 25px; min-height: 25px; }
  .reference-footer { flex-basis: 20px; min-height: 20px; padding: 0; }
  .reference-footer img { width: 86px; }
  .reference-main-icon { width: 65px; height: 65px; }
  .reference-hero h1 { font-size: 21px; }
  .reference-hero > p { font-size: 11px; }
  .reference-meta { margin-top: 4px; }
  .reference-section > h2 { margin-bottom: 4px; font-size: 12px; }
  .reference-tech-card { min-height: 79px; }
  .reference-tech-card p { font-size: 10px; }
  .reference-alert, .reference-progress-card { min-height: 48px; }
  .reference-verified { min-height: 44px; margin-top: 5px; }
  .reference-verified p { font-size: 7px; }
}

/* Modern application theme */
.user-body {
  --modern-blue: #5b67f1;
  --modern-purple: #8b5cf6;
  --modern-ink: #171a2b;
  --modern-muted: #7d849a;
  --modern-line: rgba(117, 128, 167, .14);
  background:
    radial-gradient(circle at 12% -8%, rgba(91, 103, 241, .22), transparent 31%),
    radial-gradient(circle at 104% 18%, rgba(139, 92, 246, .18), transparent 34%),
    linear-gradient(165deg, #f9faff 0%, #f1f4ff 55%, #f8f9ff 100%);
}

.user-body::before, .user-body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 150px;
  height: 150px;
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .15);
  transform: rotate(28deg);
  pointer-events: none;
}
.user-body::before { left: -96px; top: 37%; }
.user-body::after { right: -105px; bottom: 12%; transform: rotate(-18deg); }

.user-body .reference-app {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: max(7px, env(safe-area-inset-top)) 13px max(7px, env(safe-area-inset-bottom));
  background: transparent;
}

.user-body .modern-topbar {
  flex: 0 0 51px;
  min-height: 51px;
  padding: 0 6px;
}

.modern-brand { display: flex; align-items: center; gap: 9px; }
.modern-brand-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #6b74ff, #8557e9);
  box-shadow: 0 8px 20px rgba(91, 103, 241, .27), inset 0 1px 0 rgba(255,255,255,.25);
}
.modern-brand-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modern-brand > span:last-child { display: flex; flex-direction: column; }
.modern-brand strong { color: var(--modern-ink); font-size: 12px; line-height: 1.1; letter-spacing: -.01em; }
.modern-brand small { margin-top: 2px; color: var(--modern-muted); font-size: 8px; font-weight: 550; letter-spacing: .03em; }
.modern-domain { height: 27px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid rgba(255,255,255,.85); border-radius: 999px; color: #505775; background: rgba(255,255,255,.62); box-shadow: 0 6px 18px rgba(56,65,110,.07); backdrop-filter: blur(14px); font-size: 9px; font-weight: 700; }
.modern-domain i { width: 6px; height: 6px; border-radius: 50%; background: #20c878; box-shadow: 0 0 0 4px rgba(32,200,120,.12); }

.user-body .reference-app .main-content { overflow: hidden; }
.screen-enter { animation: modern-screen-in .38s cubic-bezier(.2,.8,.2,1); }

.user-body .modern-nav {
  flex: 0 0 58px;
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 20px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 14px 32px rgba(58,69,117,.13), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.modern-nav button { min-width: 0; border: 0; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #9097ab; background: transparent; transition: .25s ease; }
.modern-nav button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.modern-nav button span { font-size: 7px; font-weight: 700; }
.modern-nav button.active { color: #fff; background: linear-gradient(135deg, #626df5, #8159e9); box-shadow: 0 7px 18px rgba(91,103,241,.25); }
.modern-nav button.active svg { transform: translateY(-1px) scale(1.05); }

.modern-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modern-screen { --screen-accent: #5b67f1; --screen-soft: rgba(91,103,241,.12); justify-content: flex-start; }
.modern-screen.ready-screen { --screen-accent: #12b76a; --screen-soft: rgba(18,183,106,.12); }
.modern-screen.purchase-screen { --screen-accent: #f59e0b; --screen-soft: rgba(245,158,11,.13); }
.modern-screen.revoked-screen { --screen-accent: #f04455; --screen-soft: rgba(240,68,85,.12); }
.modern-screen.missing-screen { --screen-accent: #5376f3; --screen-soft: rgba(83,118,243,.12); }
.modern-screen.dispute-screen { --screen-accent: #8b5cf6; --screen-soft: rgba(139,92,246,.12); }

.user-body .modern-hero { flex: 0 0 auto; padding-top: 7px; }
.modern-status-visual { position: relative; width: 91px; height: 91px; margin: 0 auto 7px; display: grid; place-items: center; }
.modern-status-visual > span { position: relative; z-index: 2; width: 67px; height: 67px; display: grid; place-items: center; border-radius: 23px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--screen-accent), white 18%), var(--screen-accent)); box-shadow: 0 14px 28px color-mix(in srgb, var(--screen-accent), transparent 70%), inset 0 1px 0 rgba(255,255,255,.35); transform: rotate(-5deg); animation: modern-core-float 3.2s ease-in-out infinite; }
.modern-status-visual > span .modern-icon { width: 35px; height: 35px; stroke-width: 1.65; transform: rotate(5deg); }
.modern-status-visual .orbit { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--screen-accent), transparent 68%); }
.modern-status-visual .orbit.one { inset: 4px; border-top-color: var(--screen-accent); animation: modern-orbit 8s linear infinite; }
.modern-status-visual .orbit.two { inset: 0; border-style: dashed; opacity: .45; animation: modern-orbit 13s linear infinite reverse; }
.modern-status-visual .orbit.one::after { content: ""; position: absolute; right: 8px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--screen-accent); box-shadow: 0 0 0 4px var(--screen-soft); }
.modern-status-visual.creating > span .modern-icon { animation: modern-clock 4s ease-in-out infinite; }
.modern-status-visual.missing > span { border-radius: 50%; }

.modern-eyebrow { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 999px; color: var(--screen-accent); background: var(--screen-soft); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.user-body .modern-hero h1 { margin-top: 5px; color: var(--modern-ink); font-size: 26px; line-height: 1.04; font-weight: 780; letter-spacing: -.045em; }
.user-body .modern-hero > p { margin-top: 3px; color: #535a73; font-size: 11px; font-weight: 500; }
.modern-meta { margin-top: 6px; gap: 4px; color: #9299ad; }
.modern-meta span { gap: 2px; font-size: 7px; font-weight: 650; }
.modern-meta .modern-icon { width: 9px; height: 9px; }
.modern-meta .accent { color: #f59e0b; }

.user-body .modern-section { width: 100%; margin-top: 8px; }
.user-body .modern-section > h2 { gap: 5px; margin: 0 0 5px 5px; color: #4e566e; font-size: 10px; font-weight: 750; }
.modern-section > h2 .modern-icon { width: 14px; height: 14px; color: var(--screen-accent); }

.user-body .modern-card {
  min-height: 101px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 26px rgba(48,59,103,.08), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(16px);
}
.modern-card-title { display: flex; align-items: center; gap: 8px; }
.modern-card-title > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--screen-accent); background: var(--screen-soft); }
.modern-card-title .modern-icon { width: 16px; height: 16px; }
.modern-card-title > div { display: flex; flex-direction: column; }
.modern-card-title b { color: var(--modern-ink); font-size: 10px; }
.modern-card-title small { margin-top: 1px; color: #9aa1b3; font-size: 6px; font-weight: 650; letter-spacing: .04em; }
.modern-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 7px; }
.user-body .modern-data-grid p { min-width: 0; margin: 0; padding: 5px 7px; border-radius: 9px; display: block; background: rgba(244,246,252,.85); line-height: 1.05; }
.modern-data-grid p b { display: block; margin-bottom: 2px; color: #959caf; font-size: 6px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.modern-data-grid p span { display: block; margin: 0; color: #4e566e; font-size: 8px; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modern-data-grid .reference-status { margin: 0; display: inline-flex; padding: 3px 6px; border-radius: 999px; font-size: 6px; }

.user-body .modern-files { width: 100%; margin-top: 7px; padding: 5px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 9px 24px rgba(48,59,103,.07); backdrop-filter: blur(16px); }
.user-body .modern-files a, .user-body .modern-files .empty-file { min-height: 34px; gap: 8px; padding: 3px 6px; border-radius: 12px; color: var(--modern-ink); }
.user-body .modern-files a + a, .user-body .modern-files .empty-file + .empty-file { margin-top: 2px; border-top: 1px solid rgba(117,128,167,.08); }
.modern-files a > i, .modern-files .empty-file > i { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--screen-accent); background: var(--screen-soft); font-style: normal; }
.modern-files i .modern-icon { width: 15px; height: 15px; }
.modern-files a > span, .modern-files .empty-file > span { display: flex; flex-direction: column; gap: 1px; }
.modern-files span b { overflow: hidden; color: #4b5268; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.modern-files span small { color: #a0a6b7; font-size: 6px; }
.modern-files a > strong, .modern-files .empty-file > strong { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 9px; color: var(--screen-accent); background: var(--screen-soft); transform: none; }
.modern-files strong .modern-icon { width: 13px; height: 13px; }

.user-body .modern-verified { width: 100%; min-height: 52px; margin-top: 7px; padding: 7px 9px; border: 1px solid rgba(91,103,241,.11); border-radius: 17px; display: grid; grid-template-columns: 30px 1fr; gap: 8px; background: linear-gradient(135deg, rgba(235,239,255,.92), rgba(244,238,255,.9)); box-shadow: 0 8px 22px rgba(77,86,141,.06); }
.modern-verified-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #626df5, #8759e9); box-shadow: 0 7px 14px rgba(91,103,241,.18); }
.modern-verified-icon .modern-icon { width: 17px; height: 17px; }
.modern-verified h3 { margin: 1px 0 2px; color: #444c66; font-size: 8px; font-weight: 780; }
.modern-verified p { color: #8d94a8; font-size: 6px; line-height: 1.25; }

.user-body .modern-primary, .user-body .modern-secondary {
  min-height: 36px;
  height: 36px;
  border: 0;
  border-radius: 13px;
  gap: 6px;
  font-size: 9px;
  font-weight: 750;
  transition: transform .18s, filter .18s;
}
.user-body .modern-primary { color: #fff; background: linear-gradient(135deg, #626df5, #8159e9); box-shadow: 0 10px 20px rgba(91,103,241,.22); }
.user-body .modern-secondary { color: #626df5; background: rgba(235,238,255,.95); box-shadow: none; }
.user-body .modern-primary:active, .user-body .modern-secondary:active { transform: scale(.97); filter: brightness(.97); }
.modern-primary .modern-icon, .modern-secondary .modern-icon { width: 14px; height: 14px; }
.user-body .reference-home-button.wide { width: 100%; }
.user-body .reference-home-button.round { width: 36px; padding: 0; border-radius: 13px; }
.user-body .reference-actions { width: 100%; height: 42px; gap: 7px; }
.user-body .reference-actions .dispute-button { width: 145px; }

.user-body .modern-progress { width: 100%; min-height: 57px; margin-top: 8px; padding: 8px 9px; border: 1px solid rgba(245,158,11,.12); border-radius: 18px; display: grid; grid-template-columns: 31px 1fr 7px; gap: 8px; align-items: center; background: linear-gradient(135deg, rgba(255,249,234,.92), rgba(255,245,229,.86)); box-shadow: 0 8px 22px rgba(126,88,29,.06); }
.modern-progress-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #ffb238, #f28a16); }
.modern-progress-icon .modern-icon { width: 17px; height: 17px; }
.modern-progress h3 { margin: 0 0 3px; color: #574a35; font-size: 8px; }
.modern-progress p { color: #a3957e; font-size: 6px; line-height: 1.18; }
.modern-progress > i { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 5px rgba(245,158,11,.12); animation: modern-pulse 1.8s ease-in-out infinite; }

.user-body .modern-alert { width: 100%; min-height: 53px; margin-top: 7px; padding: 8px 9px; border: 1px solid rgba(240,68,85,.10); border-radius: 17px; display: grid; grid-template-columns: 30px 1fr; gap: 8px; background: linear-gradient(135deg, rgba(255,241,243,.94), rgba(255,247,239,.9)); }
.modern-alert > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #f04455; background: rgba(240,68,85,.11); }
.modern-alert > span .modern-icon { width: 16px; height: 16px; }
.modern-alert h3 { margin: 1px 0 2px; color: #6a4550; font-size: 7px; }
.modern-alert p { color: #a4868e; font-size: 6px; line-height: 1.18; }

.user-body .modern-copy { width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.88); border-radius: 18px; color: #757d94; background: rgba(255,255,255,.62); box-shadow: 0 9px 24px rgba(48,59,103,.06); backdrop-filter: blur(14px); }
.user-body .modern-copy p { margin: 0 0 7px; color: #757d94; font-size: 7px; line-height: 1.28; }
.user-body .modern-copy p:last-child { margin-bottom: 0; }
.modern-missing-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
.modern-missing-actions .reference-home-button { margin: 0; }

.user-body .dispute-copy { padding: 8px 10px; }
.user-body .dispute-copy p, .user-body .dispute-copy li { font-size: 6px; line-height: 1.22; }
.user-body .dispute-copy p { margin-bottom: 5px; }
.user-body .dispute-copy ol { margin: 0 0 5px; padding-left: 13px; }
.user-body .dispute-copy a { color: #636df4; font-weight: 700; }
.user-body .modern-email { width: 100%; height: 34px; margin-top: 6px; padding: 0 10px; border: 1px solid rgba(255,255,255,.9); border-radius: 13px; color: #586078; background: rgba(255,255,255,.7); box-shadow: 0 7px 20px rgba(48,59,103,.05); font-size: 8px; font-weight: 700; }
.modern-email .modern-icon { width: 15px; height: 15px; color: #7167ed; }

.user-body .modern-home-hero { padding-top: 5px; }
.modern-home-hero .modern-status-visual { margin-bottom: 6px; }
.user-body .modern-home-hero h1 { margin: 5px 0 2px; color: var(--modern-ink); font-size: 27px; }
.user-body .modern-home-hero p { color: #555d74; font-size: 10px; }
.user-body .modern-home-hero small { margin-top: 5px; display: inline-flex; align-items: center; gap: 3px; color: #969daf; font-size: 7px; }
.modern-home-hero small .modern-icon { width: 10px; height: 10px; }
.user-body .reference-info-title { width: 100%; margin: 8px 0 6px 3px; display: flex; align-items: center; gap: 5px; color: #50576e; font-size: 10px; font-weight: 750; }
.reference-info-title .modern-icon { width: 14px; height: 14px; color: #6b6ff3; }
.user-body .reference-rings { width: 100%; }
.user-body .reference-ring-wrap { width: 30%; color: #8f96a9; font-size: 7px; }
.user-body .reference-ring { width: 63px; height: 63px; padding: 7px; margin-bottom: 4px; box-shadow: 0 8px 20px rgba(51,61,104,.09); }
.user-body .reference-ring > div { width: 49px; height: 49px; background: #f8f9ff; }
.user-body .reference-ring b { font-size: 13px; font-weight: 700; }
.user-body .reference-ring small { font-size: 5px; }
.user-body .reference-back-certificate { height: 34px; margin-top: 8px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 8px; font-weight: 750; }
.reference-back-certificate .modern-icon { width: 13px; height: 13px; }

.modern-loading { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.modern-loading div { width: 70px; height: 70px; margin-bottom: 5px; border: 8px solid rgba(91,103,241,.1); border-top-color: #626df5; border-radius: 50%; animation: modern-orbit 1s linear infinite; }
.modern-loading span { width: 65%; height: 9px; border-radius: 99px; background: linear-gradient(90deg, rgba(255,255,255,.4), rgba(255,255,255,.9), rgba(255,255,255,.4)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.modern-loading span:nth-child(3) { width: 42%; }
.modern-loading span:nth-child(4) { width: 82%; height: 70px; border-radius: 18px; }

@keyframes modern-orbit { to { transform: rotate(360deg); } }
@keyframes modern-core-float { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes modern-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.82); } }
@keyframes modern-clock { 0%,100% { transform: rotate(5deg); } 50% { transform: rotate(20deg); } }
@keyframes modern-screen-in { from { opacity: 0; transform: translateY(8px) scale(.99); } }

@media (max-height: 700px) {
  .user-body .modern-topbar { flex-basis: 44px; min-height: 44px; }
  .user-body .modern-nav { flex-basis: 52px; min-height: 52px; }
  .modern-status-visual { width: 72px; height: 72px; margin-bottom: 3px; }
  .modern-status-visual > span { width: 54px; height: 54px; border-radius: 18px; }
  .modern-status-visual > span .modern-icon { width: 28px; height: 28px; }
  .user-body .modern-hero { padding-top: 2px; }
  .modern-eyebrow { height: 15px; font-size: 6px; }
  .user-body .modern-hero h1 { margin-top: 3px; font-size: 22px; }
  .user-body .modern-hero > p { font-size: 9px; }
  .modern-meta { margin-top: 3px; }
  .user-body .modern-section { margin-top: 5px; }
  .user-body .modern-card { min-height: 87px; padding: 6px 8px; }
  .modern-card-title > span { width: 24px; height: 24px; }
  .modern-card-title b { font-size: 8px; }
  .modern-data-grid { gap: 3px; margin-top: 4px; }
  .user-body .modern-data-grid p { padding: 3px 5px; }
  .user-body .modern-files { margin-top: 4px; }
  .user-body .modern-files a, .user-body .modern-files .empty-file { min-height: 29px; }
  .user-body .modern-verified { min-height: 44px; margin-top: 4px; padding: 5px 7px; }
  .modern-verified-icon { width: 27px; height: 27px; }
  .user-body .modern-primary, .user-body .modern-secondary { min-height: 31px; height: 31px; margin-top: 5px; }
  .user-body .reference-actions { height: 36px; }
  .user-body .modern-progress { min-height: 48px; margin-top: 5px; padding: 5px 7px; }
  .user-body .modern-alert { min-height: 45px; margin-top: 4px; padding: 5px 7px; }
  .user-body .modern-copy { margin-top: 4px; padding: 6px 8px; }
  .user-body .modern-copy p { margin-bottom: 4px; font-size: 6px; }
  .modern-missing-actions { margin-top: 4px; }
  .user-body .dispute-copy p, .user-body .dispute-copy li { font-size: 5.4px; }
  .user-body .dispute-copy p, .user-body .dispute-copy ol { margin-bottom: 3px; }
  .user-body .modern-email { height: 28px; margin-top: 4px; }
  .user-body .reference-ring { width: 54px; height: 54px; padding: 6px; }
  .user-body .reference-ring > div { width: 42px; height: 42px; }
}

@media (max-height: 590px) {
  .modern-brand-icon { width: 30px; height: 30px; border-radius: 10px; }
  .modern-brand-icon svg { width: 18px; height: 18px; }
  .modern-brand small { display: none; }
  .user-body .modern-topbar { flex-basis: 36px; min-height: 36px; }
  .user-body .modern-nav { flex-basis: 46px; min-height: 46px; border-radius: 16px; }
  .modern-nav button span { display: none; }
  .modern-status-visual { width: 58px; height: 58px; }
  .modern-status-visual > span { width: 45px; height: 45px; border-radius: 15px; }
  .modern-status-visual > span .modern-icon { width: 23px; height: 23px; }
  .modern-eyebrow { display: none; }
  .user-body .modern-hero h1 { font-size: 19px; }
  .user-body .modern-hero > p { font-size: 8px; }
  .user-body .modern-card { min-height: 78px; }
  .modern-card-title { display: none; }
  .modern-data-grid { margin-top: 0; }
  .user-body .modern-data-grid p { padding: 3px 5px; }
  .user-body .modern-verified { min-height: 38px; grid-template-columns: 25px 1fr; }
  .modern-verified-icon { width: 25px; height: 25px; }
  .modern-verified p { font-size: 5px; }
  .user-body .modern-copy p { font-size: 5.1px; line-height: 1.16; }
  .user-body .dispute-copy p, .user-body .dispute-copy li { font-size: 4.6px; }
  .user-body .modern-files a, .user-body .modern-files .empty-file { min-height: 25px; }
  .modern-files a > i, .modern-files .empty-file > i { width: 23px; height: 23px; }
  .user-body .reference-info-title { margin: 4px 0; }
  .user-body .reference-ring { width: 48px; height: 48px; padding: 5px; }
  .user-body .reference-ring > div { width: 38px; height: 38px; }
}
