*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:root {
  --phone-radius: 42px;
  --phone-w: 310px;
  --phone-h: 630px;
  --screen-radius: 36px;
  --navy: #022854;
  --navy-2: #0A3A6F;
  --cyan: #0EB5F5;
  --sky: #7FD4F9;
  --sky-soft: #E5F3F9;
  --slate-50: #F5FAFD;
  --slate-500: #475569;
  --slate-400: #64748B;
  --slate-350: #7A8FA5;
  --slate-300: #94A3B8;
  --ink: #0A1428;
}

.icon {
  display: inline-block;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon[stroke]:not([fill]) {
  fill: none;
}

/* Phone mockup shared by both pages */
.phone {
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: var(--phone-radius);
  background: #0B1728;
  overflow: hidden;
  box-shadow:
    0 40px 80px -15px rgba(2, 40, 84, 0.25),
    0 10px 20px -5px rgba(2, 40, 84, 0.15);
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #0B1728;
  border-radius: 13px;
  z-index: 3;
}
.phone__screen {
  position: absolute;
  inset: 6px;
  background: #F8F7F8;
  border-radius: var(--screen-radius);
  overflow: hidden;
}
.status-bar {
  height: 34px;
  background: var(--navy);
  color: #fff;
  padding: 12px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.status-bar__right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-bar__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}
.status-bar__battery {
  width: 18px;
  height: 10px;
  background: #fff;
  border-radius: 2px;
}
.app-header {
  background: var(--navy);
  color: #fff;
  padding: 10px 20px 16px;
}
.app-header__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0;
}
.app-header__sub {
  color: var(--sky);
  font-size: 10px;
  margin-top: 6px;
}
.phone__body {
  position: relative;
  padding: 16px;
}
.stats-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--sky-soft);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(2, 40, 84, 0.08);
}
.stats-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sky-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stats-card__num {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.6px;
  line-height: 1;
}
.stats-card__desc {
  font-size: 11px;
  color: var(--slate-350);
  margin-top: 2px;
}
.progress-card {
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--sky-soft);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.progress-card__head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
}
.progress-card__remain {
  color: var(--slate-350);
  font-weight: 500;
  font-size: 10px;
}
.progress-bar {
  position: relative;
  background: var(--sky-soft);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar__fill {
  position: absolute;
  inset: 0;
  width: 65%;
  background: linear-gradient(180deg, var(--cyan), #0A8FC9);
  border-radius: 4px;
}
.progress-card__pct {
  font-size: 10px;
  font-weight: 500;
  color: var(--cyan);
}
.records__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin: 14px 0 8px;
}
.record {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--sky-soft);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 6px;
}
.record__flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.record__flag > span {
  flex: 1;
}
.record__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.record__sub {
  font-size: 10px;
  color: var(--slate-350);
  margin-top: 2px;
}
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--sky-soft);
  display: flex;
  justify-content: space-between;
  padding: 12px 24px;
  height: 60px;
  align-items: center;
}
.tab-bar svg {
  width: 22px;
  height: 22px;
}

/* Passport / certificate card */
.cert {
  width: 250px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(2, 40, 84, 0.19),
    0 4px 12px rgba(2, 40, 84, 0.08);
}
.cert__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}
.cert__headLeft {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cert__seal {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert__valid {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.cert__code {
  font-size: 10px;
  color: var(--sky);
  letter-spacing: 0.5px;
}
.cert__body {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cert__eyebrow {
  font-size: 8px;
  font-weight: 600;
  color: var(--slate-350);
  letter-spacing: 1px;
}
.cert__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.4px;
  line-height: 1.1;
}
.cert__divider {
  height: 1px;
  background: var(--sky-soft);
}
.cert__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.cert__meta__label {
  font-size: 8px;
  font-weight: 600;
  color: var(--slate-350);
  letter-spacing: 0.8px;
}
.cert__meta__value {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2px;
}
.cert__meta__value--accent {
  color: var(--cyan);
}
